Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.5.0.0
- * @ Author : DeZender
- * @ Release on : 22.06.2018
- * @ Official site : http://DeZender.Net
- *
- */
- define('IRK_THEME_VER', wp_get_theme()->get('Version'));
- define('IRK_THEME_PATH', trailingslashit(get_template_directory()));
- define('IRK_THEME_URI', trailingslashit(get_template_directory_uri()));
- define('IRK_INC_PATH', trailingslashit(IRK_THEME_PATH . 'includes'));
- define('IRK_CLASS_PATH', trailingslashit(IRK_THEME_PATH . 'classes'));
- define('IRK_TPL_PATH', trailingslashit(IRK_THEME_PATH . 'templates'));
- define('IRK_WIDGET_PATH', trailingslashit(IRK_THEME_PATH . 'widgets'));
- define('IRK_VCEL_PATH', trailingslashit(IRK_THEME_PATH . 'vc-elements'));
- define('IRK_PART_PATH', trailingslashit(IRK_THEME_PATH . 'partials'));
- define('IRK_MM_PATH', trailingslashit(get_template_directory() . '/mega-menu'));
- define('IRK_QV_PATH', trailingslashit(get_template_directory() . '/quickview'));
- define('IRK_VIDEO_PATH', trailingslashit(get_template_directory() . '/video'));
- define('IRK_PU_PATH', trailingslashit(get_template_directory() . '/popup'));
- define('IRK_CSS_URI', trailingslashit(get_template_directory_uri() . '/assets/css'));
- define('IRK_IMG_URI', trailingslashit(get_template_directory_uri() . '/assets/img'));
- define('IRK_JS_URI', trailingslashit(get_template_directory_uri() . '/assets/js'));
- define('IRK_FONTS_URI', trailingslashit(get_template_directory_uri() . '/assets/fonts/iranyekan'));
- include IRK_INC_PATH . 'theme-functions.php';
- include IRK_MM_PATH . 'mega-menu.php';
- include IRK_INC_PATH . 'slider-cpt.php';
- include IRK_INC_PATH . 'breadcrumbs.php';
- include IRK_INC_PATH . 'news-cpt.php';
- include IRK_INC_PATH . 'comment-callback.php';
- include IRK_INC_PATH . 'brand-tax.php';
- if (!irk_get_option('advanced_attributes')) {
- include IRK_INC_PATH . 'class-var-radio-button.php';
- }
- include IRK_WIDGET_PATH . 'class-widget-banner.php';
- include IRK_WIDGET_PATH . 'class-widget-multi-banner.php';
- include IRK_WIDGET_PATH . 'class-widget-services.php';
- include IRK_WIDGET_PATH . 'class-widget-product.php';
- include IRK_WIDGET_PATH . 'class-widget-posts-slider.php';
- include IRK_WIDGET_PATH . 'class-widget-suggestion.php';
- include IRK_WIDGET_PATH . 'class-widget-posts.php';
- include IRK_WIDGET_PATH . 'class-widget-related-posts.php';
- include IRK_WIDGET_PATH . 'class-widget-news.php';
- include IRK_WIDGET_PATH . 'class-widget-brands.php';
- include IRK_INC_PATH . 'wc-hooks.php';
- include IRK_QV_PATH . 'quickview.php';
- include IRK_INC_PATH . 'ajax.php';
- add_action('vc_before_init', 'irk_vc_before_init_actions');
- if (is_admin()) {
- include IRK_INC_PATH . 'jdf.php';
- include IRK_INC_PATH . 'admin-ajax.php';
- include IRK_INC_PATH . 'admin-menu.php';
- include IRK_INC_PATH . 'page-mtb.php';
- include IRK_INC_PATH . 'cat-mtb.php';
- include IRK_INC_PATH . 'amazing.php';
- include IRK_INC_PATH . 'product-cat-mtb.php';
- include IRK_INC_PATH . 'options-backup.php';
- include IRK_INC_PATH . 'product-mtb.php';
- include IRK_INC_PATH . 'tinymce-btn.php';
- include IRK_CLASS_PATH . 'class-product-price-field.php';
- include IRK_CLASS_PATH . 'class-product-upcoming-field.php';
- } else {
- include IRK_INC_PATH . 'shortcode.php';
- include IRK_INC_PATH . 'tab-seller-products.php';
- include IRK_THEME_PATH . 'panel-favorites/panel-favorites.php';
- include IRK_PU_PATH . 'popup.php';
- if (irk_get_option('auth_google')) {
- include IRK_INC_PATH . 'socials-auth.php';
- }
- }
- add_action('admin_notices', 'irk_admin_notices');
- if (!irk_is_woocommerce_activated() && !is_admin() && $GLOBALS['pagenow'] !== 'wp-login.php') {
- wp_die('جهت استفاده از پوسته لطفا افزونه <a href="https://wordpress.org/plugins/woocommerce/" target="_blank">ووکامرس</a> را نصب و فعال نمایید.');
- }
- add_action('after_setup_theme', 'irk_init_theme');
- add_action('after_switch_theme', 'irk_set_myaccount_page_id');
- add_action('wp_enqueue_scripts', 'irk_attach_asset_files');
- add_action('admin_enqueue_scripts', 'irk_attach_admin_asset_files');
- add_action(
- 'admin_head',
- function() {
- echo '<meta name="_nonce" content="' . wp_create_nonce('ajax_nonce') . '">' . PHP_EOL;
- }
- );
- add_action(
- 'wp_head',
- function() {
- echo '<meta name="irk_nonce" content="' . wp_create_nonce('ajax_nonce') . '">' . PHP_EOL;
- echo '<meta name="img_uri" content="' . IRK_IMG_URI . '">' . PHP_EOL;
- }
- );
- add_action(
- 'after_setup_theme',
- function() {
- register_nav_menu('top_menu', 'فهرست بالا');
- register_nav_menu('cat_menu', 'فهرست دستهها');
- register_nav_menu('footer_menu1', 'فهرست پابرگ 1');
- register_nav_menu('footer_menu2', 'فهرست پابرگ 2');
- register_nav_menu('footer_menu3', 'فهرست پابرگ 3');
- }
- );
- add_action('widgets_init', 'irk_theme_slug_widgets_init');
- add_filter('upload_mimes', 'irk_mime_types');
- add_filter('body_class', 'irk_add_compare_page_class');
- add_filter('body_class', 'irk_body_classes');
- add_action('wp_enqueue_scripts', 'irk_apply_theme_settings');
- add_action('template_redirect', 'irk_404_page_redirect');
- if (is_admin()) {
- require 'theme-updates/theme-update-checker.php';
- $update_checker = new ThemeUpdateChecker('irankala', 'http://sreza-salehi.ir/irankala-update-a1aa7s0fav/info.json');
- }
- add_filter('body_class', 'irk_add_theme_demo_class');
- add_action('init', 'irk_zhk_guard_init');
- class IRK_Theme_SDK
- {
- private $name = null;
- private $slug = null;
- private $parent_slug = null;
- private $text_domain = null;
- private static $option_name = null;
- private $product_token = null;
- public static $api_url = 'http://guard.zhaket.com/api/';
- private static $instance = null;
- public function __construct(array $settings)
- {
- $defaults = array('name' => '', 'slug' => 'zhk_guard_register', 'parent_slug' => 'irk-options', 'text_domain' => '', 'product_token' => '', 'option_name' => 'zhk_guard_register_settings');
- foreach ($settings as $key => $setting) {
- if (array_key_exists($key, $defaults) && !empty($setting)) {
- $defaults[$key] = $setting;
- }
- }
- $this->name = $defaults['name'];
- $this->slug = $defaults['slug'];
- $this->parent_slug = $defaults['parent_slug'];
- $this->text_domain = $defaults['text_domain'];
- self::$option_name = $defaults['option_name'];
- $this->product_token = $defaults['product_token'];
- add_action('admin_menu', array($this, 'admin_menu'));
- add_action('wp_ajax_' . $this->slug, array($this, 'wp_starter'));
- add_action('wp_ajax_' . $this->slug . '_revalidate', array($this, 'revalidate_starter'));
- add_action('init', array($this, 'schedule_programs'));
- add_action($this->slug . '_daily_validator', array($this, 'daily_event'));
- add_action('admin_notices', array($this, 'admin_notice'));
- }
- public function admin_menu()
- {
- add_submenu_page($this->parent_slug, 'ثبت نسخه', 'ثبت نسخه', 'manage_options', $this->slug, array($this, 'menu_content'));
- }
- public function menu_content()
- {
- $option = get_option(self::$option_name);
- $now = json_decode(get_option($option));
- $starter = (isset($now->starter) && !empty($now->starter) ? base64_decode($now->starter) : '');
- if (isset($_GET['debugger']) && !empty($_GET['debugger']) && $_GET['debugger'] === 'show') {
- $data_show = $option;
- } else {
- $data_show = '';
- ................................................................
- .........................................
- ................
Add Comment
Please, Sign In to add comment