/**
* SuperMag functions and definitions.
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Acme Themes
* @subpackage SuperMag
*/
/**
* Default Theme layout options
*
* @since SuperMag 1.0.0
*
* @param null
* @return array $supermag_theme_layout
*
*/
if ( !function_exists('supermag_get_default_theme_options') ) :
function supermag_get_default_theme_options() {
$default_theme_options = array(
/*feature section options*/
'supermag-feature-cat' => 0,
'supermag-feature-post-one' => 0,
'supermag-feature-post-two' => 0,
'supermag-feature-side-display-options' => 'from-recent',
'supermag-feature-side-title-length' => 6,
'supermag-feature-side-from-category' => 0,
'supermag-feature-add-one' => get_template_directory_uri()."/assets/img/supermag-add1-240-172.png",
'supermag-feature-add-one-link' => "https://www.acmethemes.com/",
'supermag-feature-add-two' => get_template_directory_uri()."/assets/img/supermag-add2-240-172.png",
'supermag-feature-add-two-link' => "https://www.acmethemes.com/themes/supermag/",
'supermag-enable-feature' => true,
/*header options*/
'supermag-header-logo' => '',
'supermag-header-id-display-opt' => 'title-and-tagline',
'supermag-show-date' => 1,
'supermag-breaking-news-title' => __( 'Recent posts', 'supermag' ),
'supermag-breaking-news-options' => 'slide',
'supermag-facebook-url' => '',
'supermag-twitter-url' => '',
'supermag-youtube-url' => '',
'supermag-instagram-url' => '',
'supermag-google-plus-url' => '',
'supermag-pinterest-url' => '',
'supermag-enable-social' => 0,
'supermag-header-main-show-banner-ads' => 'image',
'supermag-header-main-banner-ads' => '',
'supermag-header-main-banner-ads-link' => 'https://www.acmethemes.com/themes/supermag/',
'supermag-header-logo-ads-display-position' => 'left-logo-right-ainfo',
'supermag-menu-show-home-icon' => 1,
'supermag-enable-random-post' => 1,
'supermag-enable-sticky-menu' => '',
'supermag-menu-show-search' => 1,
'supermag-menu-search-type' => 'dropdown-search',
'supermag-enable-sticky-sidebar' => 1,
'supermag-header-date-format' => 'default',
'supermag-header-media-position' => 'above-menu',
'supermag-header-media-customizer-link' => '',
'supermag-header-image-link' => esc_url( home_url() ),
'supermag-header-image-link-new-tab' => '',
/*footer options*/
'supermag-footer-copyright' => __( 'Copyright © All rights reserved', 'supermag' ),
/*layout/design options*/
'supermag-default-layout' => 'boxed',
'supermag-enable-box-shadow' => '',
'supermag-sidebar-layout' => 'right-sidebar',
'supermag-front-page-sidebar-layout' => 'right-sidebar',
'supermag-archive-sidebar-layout' => 'right-sidebar',
'supermag-blog-archive-layout' => 'left-image',
'supermag-blog-archive-image-layout' => 'full',
'supermag-disable-image-zoom' => '',
'supermag-blog-archive-more-text' => __( 'Read More', 'supermag' ),
'supermag-blog-archive-category-display-options' => 'default',
'supermag-single-category-display-options' => 'default',
'supermag-primary-color' => '#4db2ec',
'supermag-cat-hover-color' => '#2d2d2d',
'supermag-custom-css' => '',
/*single related post options*/
'supermag-show-related' => 1,
'supermag-related-title' => __( 'Related posts', 'supermag' ),
'supermag-related-post-display-from' => 'cat',
'supermag-single-post-layout' => 'large-image',
'supermag-single-image-layout' => 'full',
/*theme options*/
'supermag-search-placholder' => __( 'Search', 'supermag' ),
'supermag-show-breadcrumb' => 0,
'supermag-side-show-message' => '',
'supermag-image-size-message' => '',
'supermag-side-image-message' => '',
'supermag-hide-front-page-content' => '',
'supermag-you-are-here-text' => __( 'You are here', 'supermag' ),
/*woocommerce*/
'supermag-wc-shop-archive-sidebar-layout' => 'no-sidebar',
'supermag-wc-product-column-number' => 4,
'supermag-wc-shop-archive-total-product' => 16,
'supermag-wc-single-product-sidebar-layout' => 'no-sidebar',
/*Reset*/
'supermag-reset-options' => '0'
);
return apply_filters( 'supermag_default_theme_options', $default_theme_options );
}
endif;
/**
* Get theme options
*
* @since SuperMag 1.0.0
*
* @param null
* @return array supermag_theme_options
*
*/
if ( !function_exists('supermag_get_theme_options') ) :
function supermag_get_theme_options() {
$supermag_default_theme_options = supermag_get_default_theme_options();
$supermag_get_theme_options = get_theme_mod( 'supermag_theme_options');
if( is_array($supermag_get_theme_options )){
return array_merge( $supermag_default_theme_options ,$supermag_get_theme_options );
}
else{
return $supermag_default_theme_options;
}
}
endif;
$supermag_saved_theme_options = supermag_get_theme_options();
$GLOBALS['supermag_customizer_all_values'] = $supermag_saved_theme_options;
/**
* require int.
*/
require_once trailingslashit( get_template_directory() ).'acmethemes/init.php';{"id":19,"count":3,"description":"","link":"https:\/\/uttarakhandpahal.com\/category\/%e0%a4%b8%e0%a5%8d%e0%a4%b5%e0%a4%be%e0%a4%b8%e0%a5%8d%e0%a4%a5%e0%a5%8d%e0%a4%af\/","name":"\u0938\u094d\u0935\u093e\u0938\u094d\u0925\u094d\u092f","slug":"%e0%a4%b8%e0%a5%8d%e0%a4%b5%e0%a4%be%e0%a4%b8%e0%a5%8d%e0%a4%a5%e0%a5%8d%e0%a4%af","taxonomy":"category","parent":0,"meta":[],"yoast_head":"\n\u0938\u094d\u0935\u093e\u0938\u094d\u0925\u094d\u092f Archives - Uttarakhand Pahal<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/uttarakhandpahal.com\/category\/\u0938\u094d\u0935\u093e\u0938\u094d\u0925\u094d\u092f\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0938\u094d\u0935\u093e\u0938\u094d\u0925\u094d\u092f Archives - Uttarakhand Pahal\" \/>\n<meta property=\"og:url\" content=\"https:\/\/uttarakhandpahal.com\/category\/\u0938\u094d\u0935\u093e\u0938\u094d\u0925\u094d\u092f\/\" \/>\n<meta property=\"og:site_name\" content=\"Uttarakhand Pahal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"CollectionPage\",\"@id\":\"https:\/\/uttarakhandpahal.com\/category\/%e0%a4%b8%e0%a5%8d%e0%a4%b5%e0%a4%be%e0%a4%b8%e0%a5%8d%e0%a4%a5%e0%a5%8d%e0%a4%af\/\",\"url\":\"https:\/\/uttarakhandpahal.com\/category\/%e0%a4%b8%e0%a5%8d%e0%a4%b5%e0%a4%be%e0%a4%b8%e0%a5%8d%e0%a4%a5%e0%a5%8d%e0%a4%af\/\",\"name\":\"\u0938\u094d\u0935\u093e\u0938\u094d\u0925\u094d\u092f Archives - Uttarakhand Pahal\",\"isPartOf\":{\"@id\":\"https:\/\/uttarakhandpahal.com\/#website\"},\"breadcrumb\":{\"@id\":\"https:\/\/uttarakhandpahal.com\/category\/%e0%a4%b8%e0%a5%8d%e0%a4%b5%e0%a4%be%e0%a4%b8%e0%a5%8d%e0%a4%a5%e0%a5%8d%e0%a4%af\/#breadcrumb\"},\"inLanguage\":\"en-US\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/uttarakhandpahal.com\/category\/%e0%a4%b8%e0%a5%8d%e0%a4%b5%e0%a4%be%e0%a4%b8%e0%a5%8d%e0%a4%a5%e0%a5%8d%e0%a4%af\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/uttarakhandpahal.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0938\u094d\u0935\u093e\u0938\u094d\u0925\u094d\u092f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/uttarakhandpahal.com\/#website\",\"url\":\"https:\/\/uttarakhandpahal.com\/\",\"name\":\"mookdarshak\",\"description\":\"Uttarakhand Pahal\",\"publisher\":{\"@id\":\"https:\/\/uttarakhandpahal.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/uttarakhandpahal.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/uttarakhandpahal.com\/#organization\",\"name\":\"mookdarshak\",\"url\":\"https:\/\/uttarakhandpahal.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/uttarakhandpahal.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/uttarakhandpahal.com\/wp-content\/uploads\/2024\/08\/Pahadi-samvad-logo-new.jpg\",\"contentUrl\":\"https:\/\/uttarakhandpahal.com\/wp-content\/uploads\/2024\/08\/Pahadi-samvad-logo-new.jpg\",\"width\":2085,\"height\":576,\"caption\":\"mookdarshak\"},\"image\":{\"@id\":\"https:\/\/uttarakhandpahal.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u0938\u094d\u0935\u093e\u0938\u094d\u0925\u094d\u092f Archives - Uttarakhand Pahal","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/uttarakhandpahal.com\/category\/\u0938\u094d\u0935\u093e\u0938\u094d\u0925\u094d\u092f\/","og_locale":"en_US","og_type":"article","og_title":"\u0938\u094d\u0935\u093e\u0938\u094d\u0925\u094d\u092f Archives - Uttarakhand Pahal","og_url":"https:\/\/uttarakhandpahal.com\/category\/\u0938\u094d\u0935\u093e\u0938\u094d\u0925\u094d\u092f\/","og_site_name":"Uttarakhand Pahal","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"CollectionPage","@id":"https:\/\/uttarakhandpahal.com\/category\/%e0%a4%b8%e0%a5%8d%e0%a4%b5%e0%a4%be%e0%a4%b8%e0%a5%8d%e0%a4%a5%e0%a5%8d%e0%a4%af\/","url":"https:\/\/uttarakhandpahal.com\/category\/%e0%a4%b8%e0%a5%8d%e0%a4%b5%e0%a4%be%e0%a4%b8%e0%a5%8d%e0%a4%a5%e0%a5%8d%e0%a4%af\/","name":"\u0938\u094d\u0935\u093e\u0938\u094d\u0925\u094d\u092f Archives - Uttarakhand Pahal","isPartOf":{"@id":"https:\/\/uttarakhandpahal.com\/#website"},"breadcrumb":{"@id":"https:\/\/uttarakhandpahal.com\/category\/%e0%a4%b8%e0%a5%8d%e0%a4%b5%e0%a4%be%e0%a4%b8%e0%a5%8d%e0%a4%a5%e0%a5%8d%e0%a4%af\/#breadcrumb"},"inLanguage":"en-US"},{"@type":"BreadcrumbList","@id":"https:\/\/uttarakhandpahal.com\/category\/%e0%a4%b8%e0%a5%8d%e0%a4%b5%e0%a4%be%e0%a4%b8%e0%a5%8d%e0%a4%a5%e0%a5%8d%e0%a4%af\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/uttarakhandpahal.com\/"},{"@type":"ListItem","position":2,"name":"\u0938\u094d\u0935\u093e\u0938\u094d\u0925\u094d\u092f"}]},{"@type":"WebSite","@id":"https:\/\/uttarakhandpahal.com\/#website","url":"https:\/\/uttarakhandpahal.com\/","name":"mookdarshak","description":"Uttarakhand Pahal","publisher":{"@id":"https:\/\/uttarakhandpahal.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/uttarakhandpahal.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/uttarakhandpahal.com\/#organization","name":"mookdarshak","url":"https:\/\/uttarakhandpahal.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/uttarakhandpahal.com\/#\/schema\/logo\/image\/","url":"https:\/\/uttarakhandpahal.com\/wp-content\/uploads\/2024\/08\/Pahadi-samvad-logo-new.jpg","contentUrl":"https:\/\/uttarakhandpahal.com\/wp-content\/uploads\/2024\/08\/Pahadi-samvad-logo-new.jpg","width":2085,"height":576,"caption":"mookdarshak"},"image":{"@id":"https:\/\/uttarakhandpahal.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/uttarakhandpahal.com\/wp-json\/wp\/v2\/categories\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uttarakhandpahal.com\/wp-json\/wp\/v2\/categories"}],"about":[{"href":"https:\/\/uttarakhandpahal.com\/wp-json\/wp\/v2\/taxonomies\/category"}],"wp:post_type":[{"href":"https:\/\/uttarakhandpahal.com\/wp-json\/wp\/v2\/posts?categories=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}