<?php/** * Enqueue script and styles for child theme */function woodmart_child_enqueue_styles() {	wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'woodmart-style' ), woodmart_get_theme_info( 'Version' ) );}add_action( 'wp_enqueue_scripts', 'woodmart_child_enqueue_styles', 10010 );/** * T1.7 - restore public cache headers on public HTML. * * The host sends "Cache-Control: no-store, no-cache, must-revalidate" plus * "Pragma: no-cache" even on pages LiteSpeed has already cached, so browsers and * the CDN can never store the HTML. This re-sends public caching for public pages * only and deliberately leaves admin, logged-in and WooCommerce customer pages * untouched so no private response becomes publicly cacheable. */add_action( 'send_headers', 'likesat_child_public_cache_headers', 999 );add_action( 'shutdown', 'likesat_child_public_cache_headers', 0 );function likesat_child_public_cache_headers() {	if ( is_admin() || is_user_logged_in() ) {		return;	}	if ( defined( 'DONOTCACHEPAGE' ) && DONOTCACHEPAGE ) {		return;	}	if ( function_exists( 'is_cart' ) && ( is_cart() || is_checkout() || is_account_page() ) ) {		return;	}	header_remove( 'Pragma' );	header_remove( 'Expires' );	header( 'Cache-Control: public, max-age=600', true );}/** * SEO hardening (phase 1 remainder). * * 1. The shop archive renders no heading at all, so give it a single H1. * 2. Feed URLs are duplicates of the product page, so keep them out of the index. * 3. Add baseline security headers to public frontend pages. *//** * 1. Shop archive H1. */add_action( 'woocommerce_before_main_content', 'likesat_shop_archive_h1', 5 );function likesat_shop_archive_h1() {	if ( ! function_exists( 'is_shop' ) || ! is_shop() ) {		return;	}	if ( function_exists( 'is_search' ) && is_search() ) {		return;	}	echo '<h1 class="likesat-shop-h1" style="text-align:center;margin:0 0 24px;">متجر شبكة لايك سات</h1>';}/** * 2. Feed URLs stay out of the index. */function likesat_is_feed_request() {	if ( function_exists( 'is_feed' ) && is_feed() ) {		return true;	}	$uri = isset( $_SERVER['REQUEST_URI'] ) ? (string) $_SERVER['REQUEST_URI'] : '';	return (bool) preg_match( '#/feed/?$#', $uri );}add_filter( 'wp_robots', 'likesat_feed_robots' );function likesat_feed_robots( $robots ) {	if ( likesat_is_feed_request() ) {		$robots['index']  = false;		$robots['follow'] = false;	}	return $robots;}add_action( 'send_headers', 'likesat_feed_robots_header' );function likesat_feed_robots_header() {	if ( ! headers_sent() && likesat_is_feed_request() ) {		header( 'X-Robots-Tag: noindex, nofollow', true );	}}/** * 3. Baseline security headers for public frontend pages. */add_action( 'send_headers', 'likesat_security_headers', 998 );function likesat_security_headers() {	if ( is_admin() || is_user_logged_in() || headers_sent() ) {		return;	}	header( 'X-Content-Type-Options: nosniff', true );	header( 'X-Frame-Options: SAMEORIGIN', true );	header( 'Referrer-Policy: strict-origin-when-cross-origin', true );	header( 'Permissions-Policy: geolocation=(), microphone=(), camera=()', true );}/** * One-time: exclude WooCommerce/utility pages from Rank Math sitemaps. */add_action( 'admin_init', 'likesat_rm_exclude_utility_pages', 5 );function likesat_rm_exclude_utility_pages() {	if ( get_option( 'likesat_rm_excluded_done' ) ) {		return;	}	$opt   = get_option( 'rank-math-options-sitemap' );	$opt   = is_array( $opt ) ? $opt : array();	$excl  = isset( $opt['exclude_posts'] ) ? $opt['exclude_posts'] : '';	$ids   = array_filter( wp_parse_id_list( $excl ) );	foreach ( array( 9, 10, 11, 19, 33 ) as $id ) {		if ( ! in_array( $id, $ids, true ) ) {			$ids[] = $id;		}	}	$opt['exclude_posts'] = implode( ',', $ids );	update_option( 'rank-math-options-sitemap', $opt );	update_option( 'likesat_rm_excluded_done', 1 );}<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//likesat.net/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://likesat.net/post-sitemap.xml</loc>
		<lastmod>2026-10-09T09:47:30+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://likesat.net/page-sitemap.xml</loc>
		<lastmod>2026-10-12T12:58:24+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://likesat.net/product-sitemap.xml</loc>
		<lastmod>2026-10-18T17:42:39+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://likesat.net/product_cat-sitemap.xml</loc>
		<lastmod>2026-10-18T17:42:39+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->