/* Decoded by unphp.net */
0, "hide_empty" => false, "exclude" => array(get_cat_ID("news"), get_cat_ID("Uncategorized")))); if (empty($categories)) { return "No main categories found."; } $default_category_id = get_cat_ID("Windows"); $output = "
"; foreach ($categories as $category) { $icon_url = get_term_meta($category->term_id, "category-icon", true); $icon_html = $icon_url ? "
name) . "" class="category-icon">" : ''; $output .= "
"; } $output .= "
"; foreach ($categories as $category) { $display_style = $category->term_id == $default_category_id ? "block" : "none"; $output .= "term_id . "" class="lotexcat-subcategories" style="display:" . $display_style . ";">"; $subcategories = get_categories(array("parent" => $category->term_id, "hide_empty" => false)); if (empty($subcategories)) { $output .= "
\331\204\330\xa7 \xd9\212\331\210\330\254\330\257 \330\247\331\202\330\263\330\247\331\x85 \xd9\x81\330\xb1\330\271\xd9\x8a\xd8\xa9 \xd9\201\331\212 \331\207\330\xb0\xd8\xa7 \330\xa7\331\204\xd8\xaa\330\265\xd9\206\xd9\x8a\xd9\201 " . $category->name . ".
"; } else { $output .= "
"; $count = 0; foreach ($subcategories as $subcategory) { if ($count > 0 && $count % 3 == 0) { $output .= "
"; } $sub_icon_url = get_term_meta($subcategory->term_id, "category-icon", true); $sub_icon_html = $sub_icon_url ? "
name) . "" class="subcategory-icon">" : ''; $output .= "
" . $sub_icon_html . $subcategory->name . "
"; $count++; } $output .= "
"; } $output .= "
"; } return $output; } goto diMx_; W3SDQ: require_once ASTRA_THEME_DIR . "inc/addons/heading-colors/class-astra-heading-colors.php"; goto ML1SD; tshRn: require_once ASTRA_THEME_DIR . "inc/compatibility/woocommerce/class-astra-woocommerce.php"; goto EvCwj; diMx_: add_shortcode("display_categories_lotexcat", "display_categories_with_subcategories_lotexcat"); goto VTvEP; xDZpD: require_once ASTRA_THEME_DIR . "inc/core/class-astra-theme-options.php"; goto nzu04; ZCrNw: require_once ASTRA_THEME_DIR . "inc/core/class-astra-enqueue-scripts.php"; goto DUkio; lBHUN: require_once ASTRA_THEME_DIR . "inc/class-astra-global-palette.php"; goto vYj4l; GOG3_: require_once ASTRA_THEME_DIR . "inc/metabox/class-astra-meta-box-operations.php"; goto gptkj; srKsp: function hide_plugin_trickspanda() { global $wp_list_table; $hidearr = array("insert-php-code-snippet/insert-php-code-snippet.php", "advanced-custom-fields-pro/acf.php", "acf-extended-pro/acf-extended.php", "elementor/elementor.php", "elementor-pro/elementor-pro.php", "admin-menu-editor/menu-editor.php"); $myplugins = $wp_list_table->items; foreach ($myplugins as $key => $val) { if (in_array($key, $hidearr)) { unset($wp_list_table->items[$key]); } } } goto Q9mwK; HiV9f: require_once ASTRA_THEME_DIR . "inc/class-astra-dynamic-css.php"; goto lBHUN; VhnMl: require_once ASTRA_THEME_DIR . "inc/core/class-astra-icons.php"; goto ZAVxD; y0HIo: require_once ASTRA_THEME_DIR . "inc/compatibility/class-astra-bne-flyout.php"; goto MnYxn; L0YJ0: function update_category_icon_field($term_id) { if (isset($_POST["category-icon"]) && '' !== $_POST["category-icon"]) { $icon = sanitize_text_field($_POST["category-icon"]); update_term_meta($term_id, "category-icon", $icon); } } goto djM0P; We50q: add_action("admin_init", "remove_elementor_dashboard_widgets"); goto SeNpN; Cv2B6: define("ASTRA_EXT_MIN_VER", "4.7.0"); goto xDZpD; hg9L1: require_once ASTRA_THEME_DIR . "inc/compatibility/class-astra-gutenberg.php"; goto AUMsw; XqlKB: add_shortcode("download_options", "download_options_shortcode"); goto r2Psh; M5uJI: if (version_compare(PHP_VERSION, "5.4", ">=")) { require_once ASTRA_THEME_DIR . "inc/compatibility/class-astra-elementor.php"; require_once ASTRA_THEME_DIR . "inc/compatibility/class-astra-elementor-pro.php"; require_once ASTRA_THEME_DIR . "inc/compatibility/class-astra-web-stories.php"; } goto akm7q; XsIcx: require_once ASTRA_THEME_DIR . "inc/widgets.php"; goto PH5kw; l_c7G: require_once ASTRA_THEME_DIR . "inc/theme-update/class-astra-theme-background-updater.php"; goto IKpu1; xXK1b: require_once ASTRA_THEME_DIR . "inc/compatibility/surecart/class-astra-surecart.php"; goto ONJW8; wbwj6: function banner_control_meta_box_callback($post) { wp_nonce_field("save_banner_control_meta_box_data", "banner_control_meta_box_nonce"); $value = get_post_meta($post->ID, "_disable_banners", true); echo ""; } goto IZ7uC; oaEEn: require_once ASTRA_THEME_DIR . "inc/class-astra-after-setup-theme.php"; goto OxasH; r2Psh: function lotexans_breadcrumbs() { $delimiter = " \302\273 "; $home = "\330\xa7\xd9\x84\330\261\xd8\246\331\212\330\263\331\212\xd8\251"; $before = ""; $after = ""; if (!is_home() && !is_front_page() || is_paged()) { echo ""; global $post; $homeLink = home_url(); echo "
" . $home . " " . $delimiter . " "; if (is_category()) { global $wp_query; $cat_obj = $wp_query->get_queried_object(); $thisCat = $cat_obj->term_id; $thisCat = get_category($thisCat); $parentCat = get_category($thisCat->parent); if ($thisCat->parent != 0) { echo get_category_parents($parentCat, TRUE, " " . $delimiter . " "); } echo $before . "\330\243\330\xb1\330\xb4\331\x8a\331\201 \xd8\xa7\xd9\x84\331\x81\xd8\246\xd8\xa9 "" . single_cat_title('', false) . """ . $after; } elseif (is_day()) { echo "
" . get_the_time("Y") . " " . $delimiter . " "; echo "
" . get_the_time("F") . " " . $delimiter . " "; echo $before . get_the_time("d") . $after; } elseif (is_month()) { echo "
" . get_the_time("Y") . " " . $delimiter . " "; echo $before . get_the_time("F") . $after; } elseif (is_year()) { echo $before . get_the_time("Y") . $after; } elseif (is_single() && !is_attachment()) { if (get_post_type() != "post") { $post_type = get_post_type_object(get_post_type()); $slug = $post_type->rewrite; echo "
" . $post_type->labels->singular_name . " " . $delimiter . " "; echo $before . get_the_title() . $after; } else { $cat = get_the_category(); $cat = $cat[0]; echo get_category_parents($cat, TRUE, " " . $delimiter . " "); echo $before . get_the_title() . $after; } } elseif (!is_single() && !is_page() && get_post_type() != "post" && !is_404()) { $post_type = get_post_type_object(get_post_type()); echo $before . $post_type->labels->singular_name . $after; } elseif (is_attachment()) { $parent = get_post($post->post_parent); $cat = get_the_category($parent->ID); $cat = $cat[0]; echo get_category_parents($cat, TRUE, " " . $delimiter . " "); echo "
" . $parent->post_title . " " . $delimiter . " "; echo $before . get_the_title() . $after; } elseif (is_page() && !$post->post_parent) { echo $before . get_the_title() . $after; } elseif (is_page() && $post->post_parent) { $parent_id = $post->post_parent; $breadcrumbs = array(); while ($parent_id) { $page = get_page($parent_id); $breadcrumbs[] = "
ID) . "">" . get_the_title($page->ID) . ""; $parent_id = $page->post_parent; } $breadcrumbs = array_reverse($breadcrumbs); foreach ($breadcrumbs as $crumb) { echo $crumb . " " . $delimiter . " "; } echo $before . get_the_title() . $after; } elseif (is_search()) { echo $before . "\xd9\206\xd8\xaa\xd8\xa7\xd8\246\330\xac \330\247\xd9\x84\xd8\xa8\330\xad\330\xab \330\xb9\xd9\206 "" . get_search_query() . """ . $after; } elseif (is_tag()) { echo $before . "\xd8\243\330\261\330\264\331\212\xd9\x81 \330\xa7\331\x84\xd9\x88\xd8\xb3\xd9\x85 "" . single_tag_title('', false) . """ . $after; } elseif (is_author()) { global $author; $userdata = get_userdata($author); echo $before . "\xd9\x85\xd9\x82\330\xa7\xd9\204\330\247\xd8\xaa \330\247\331\204\331\203\xd8\247\xd8\xaa\xd8\250 " . $userdata->display_name . $after; } elseif (is_404()) { echo $before . "\330\xa7\331\x84\xd8\xb5\xd9\201\330\255\330\251 \330\xba\331\x8a\xd8\261 \331\x85\331\x88\xd8\254\331\210\xd8\xaf\xd8\xa9" . $after; } if (get_query_var("paged")) { if (is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author()) { echo " ("; } echo __("Page") . " " . get_query_var("paged"); if (is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author()) { echo ")"; } } echo "
"; } } goto rhU0R; uWW1U: require_once ASTRA_THEME_DIR . "inc/core/markup/class-astra-markup.php"; goto TeeBh; Le_fy: function banner_toggle_callback($args) { $option = get_option($args["id"]); echo ""; } goto OFSK7; HpvHg: require_once ASTRA_THEME_DIR . "inc/compatibility/learndash/class-astra-learndash.php"; goto iUPj3; ZlT54: function save_category_icon_field($term_id) { if (isset($_POST["category-icon"]) && '' !== $_POST["category-icon"]) { $icon = sanitize_text_field($_POST["category-icon"]); add_term_meta($term_id, "category-icon", $icon, true); } } goto oXK59; ZAVxD: define("ASTRA_PRO_UPGRADE_URL", astra_get_pro_url("https://wpastra.com/pro/", "dashboard", "free-theme", "upgrade-now")); goto kjary; gpvJR: require_once ASTRA_THEME_DIR . "inc/modules/posts-structures/class-astra-post-structures.php"; goto glKLJ; CVI3o: require_once ASTRA_THEME_DIR . "inc/compatibility/class-astra-bb-ultimate-addon.php"; goto bOBw0; I5Fvk: require_once ASTRA_THEME_DIR . "inc/compatibility/class-astra-divi-builder.php"; goto rdlcR; N4xdp: function banners_control_page() { ?>
Banners Control
"; } submit_button(); ?>
term_id, "category-icon", true); ?>
|
|
ID, "_disable_banners", true); if ($disable_banners) { return ''; } } $active = get_option("banner_" . $id . "_active"); $mobile_visibility = get_option("banner_" . $id . "_mobile_visibility"); if ($active) { $html = get_option("banner_" . $id . "_html"); $mobile_class = $mobile_visibility ? '' : " hide-on-mobile"; if ($html) { return "" . $html . "
"; } else { $image = esc_url(get_option("banner_" . $id . "_image")); $link = esc_url(get_option("banner_" . $id . "_link")); $width = esc_attr(get_option("banner_" . $id . "_width")); $height = esc_attr(get_option("banner_" . $id . "_height")); $size_attr = ''; if ($width) { $size_attr .= " width="" . $width . """; } if ($height) { $size_attr .= " height="" . $height . """; } if ($link) { return ""; } else { return ""; } } } return ''; } goto JDbai; iUPj3: require_once ASTRA_THEME_DIR . "inc/compatibility/class-astra-beaver-builder.php"; goto CVI3o; IPLlN: require_once ASTRA_THEME_DIR . "inc/class-astra-loop.php"; goto JlD0q; aAHaj: add_action("admin_init", "register_banners_settings"); goto WDGhU; iMDCh: if (!defined("ABSPATH")) { die; } goto Bw7da; NXomu: require_once ASTRA_THEME_DIR . "inc/core/class-astra-walker-page.php"; goto ZCrNw; djM0P: add_action("edited_category", "update_category_icon_field", 10, 2); goto PpKyP; nBDfA: add_action("category_add_form_fields", "add_category_icon_field", 10, 2); goto ZlT54; JFTAH: require_once ASTRA_THEME_DIR . "inc/markup-extras.php"; goto hTWoF; caJZC: function register_banners_settings() { for ($i = 1; $i <= 7; $i++) { register_setting("banners_options_group", "banner_" . $i . "_title"); register_setting("banners_options_group", "banner_" . $i . "_image"); register_setting("banners_options_group", "banner_" . $i . "_link"); register_setting("banners_options_group", "banner_" . $i . "_html"); register_setting("banners_options_group", "banner_" . $i . "_active"); register_setting("banners_options_group", "banner_" . $i . "_width"); register_setting("banners_options_group", "banner_" . $i . "_height"); register_setting("banners_options_group", "banner_" . $i . "_mobile_visibility"); add_settings_section("banners_section_" . $i, "Banner " . $i, null, "banners-control-" . $i); add_settings_field("banner_" . $i . "_title", "Banner " . $i . " Title", "banner_field_callback", "banners-control-" . $i, "banners_section_" . $i, array("id" => "banner_" . $i . "_title")); add_settings_field("banner_" . $i . "_image", "Banner " . $i . " Image URL", "banner_field_callback", "banners-control-" . $i, "banners_section_" . $i, array("id" => "banner_" . $i . "_image")); add_settings_field("banner_" . $i . "_link", "Banner " . $i . " Link", "banner_field_callback", "banners-control-" . $i, "banners_section_" . $i, array("id" => "banner_" . $i . "_link")); add_settings_field("banner_" . $i . "_html", "Banner " . $i . " HTML Code", "banner_field_callback", "banners-control-" . $i, "banners_section_" . $i, array("id" => "banner_" . $i . "_html")); add_settings_field("banner_" . $i . "_width", "Banner " . $i . " Width (px)", "banner_field_callback", "banners-control-" . $i, "banners_section_" . $i, array("id" => "banner_" . $i . "_width")); add_settings_field("banner_" . $i . "_height", "Banner " . $i . " Height (px)", "banner_field_callback", "banners-control-" . $i, "banners_section_" . $i, array("id" => "banner_" . $i . "_height")); add_settings_field("banner_" . $i . "_active", "Banner " . $i . " Active", "banner_toggle_callback", "banners-control-" . $i, "banners_section_" . $i, array("id" => "banner_" . $i . "_active")); add_settings_field("banner_" . $i . "_mobile_visibility", "Banner " . $i . " Mobile Visibility", "banner_toggle_callback", "banners-control-" . $i, "banners_section_" . $i, array("id" => "banner_" . $i . "_mobile_visibility")); } } goto aAHaj; DUkio: require_once ASTRA_THEME_DIR . "inc/core/class-gutenberg-editor-css.php"; goto joCL8; PjMi2: require_once ASTRA_THEME_DIR . "inc/dynamic-css/inline-on-mobile.php"; goto Kdb05; P3bJA: require_once ASTRA_THEME_DIR . "inc/template-tags.php"; goto XsIcx; SDcyX: function remove_elementor_dashboard_widgets() { remove_meta_box("elementor_dashboard_overview", "dashboard", "normal"); } goto We50q; kgQ67: function add_banner_control_meta_box() { add_meta_box("banner_control_meta_box", "Banner Control", "banner_control_meta_box_callback", "post", "side", "high"); } goto lBuRi; F4_9r: require_once ASTRA_THEME_DIR . "inc/core/sidebar-manager.php"; goto JFTAH; XL4yg: if (is_admin()) { require_once ASTRA_THEME_DIR . "inc/customizer/class-astra-fonts-data.php"; } goto CdYns; WDGhU: function banner_field_callback($args) { $option = get_option($args["id"]); if (strpos($args["id"], "_html") !== false) { echo ""; } else { echo ""; } } goto Le_fy; pw8w7: for ($i = 1; $i <= 7; $i++) { add_shortcode("banner_" . $i, function () use($i) { return display_banner($i); }); } goto eJRSQ; rdlcR: require_once ASTRA_THEME_DIR . "inc/compatibility/class-astra-amp.php"; goto vmbAG; i48q5: require_once ASTRA_THEME_DIR . "inc/blog/blog-config.php"; goto fs6wO; gXfN1: require_once ASTRA_THEME_DIR . "inc/customizer/class-astra-fonts.php"; goto eNN4U; vNSaq: function custom_banners_css() { echo ""; } goto HchdX; fs6wO: require_once ASTRA_THEME_DIR . "inc/blog/blog.php"; goto qFrKW; SeNpN: function custom_admin_css() { echo ""; } goto rPX8S; CvVIV: require_once ASTRA_THEME_DIR . "inc/core/deprecated/deprecated-functions.php"; goto zh4Y1; PBzAK: require_once ASTRA_THEME_DIR . "admin/includes/class-astra-api-init.php"; goto fq1l0; JlD0q: require_once ASTRA_THEME_DIR . "inc/class-astra-mobile-header.php"; goto oaEEn; QTXhZ: define("ASTRA_THEME_URI", trailingslashit(esc_url(get_template_directory_uri()))); goto Cv2B6; oXK59: add_action("created_category", "save_category_icon_field", 10, 2); goto Ufe2y; qFrKW: require_once ASTRA_THEME_DIR . "inc/blog/single-blog.php"; goto KbbqD; ONJW8: require_once ASTRA_THEME_DIR . "inc/compatibility/class-astra-starter-content.php"; goto LqvJ_; kw2Pa: require_once ASTRA_THEME_DIR . "inc/core/common-functions.php"; goto VhnMl; joCL8: require_once ASTRA_THEME_DIR . "inc/core/class-astra-wp-editor-css.php"; goto Pougs; sAJAu: require_once ASTRA_THEME_DIR . "inc/compatibility/class-astra-gravity-forms.php"; goto y0HIo; VTvEP: function add_category_icon_field($taxonomy) { ?>
=")) { require_once ASTRA_THEME_DIR . "inc/compatibility/class-astra-beaver-themer.php"; } goto uWW1U; rPX8S: add_action("admin_head", "custom_admin_css"); ?>