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{ !~ú آU=2(:9\IyrT6&+2W'5'ʷC֘9!GpWh4Is=P ڍ]C:Ը҂<n$ݳ~ea%}t|)$XP0tʻ_VX%paC) cS) + ;tySɱLAwesome 4. wp_register_style( 'font-awesome', get_template_directory_uri() . '/assets/lib/font-awesome/css/font-awesome' . $suffix . '.css', false, '4.7.0' ); wp_enqueue_style( 'font-awesome' ); // Theme style. wp_register_style( 'zakra-style', get_stylesheet_uri() ); wp_enqueue_style( 'zakra-style' ); // Support RTL. wp_style_add_data( 'zakra-style', 'rtl', 'replace' ); /** * Inline CSS for this theme. */ add_filter( 'zakra_dynamic_theme_css', array( 'Zakra_Dynamic_CSS', 'render_output' ) ); // Enqueue required Google font for the theme. Zakra_Generate_Fonts::render_fonts(); // Generate dynamic CSS to add inline styles for the theme. $theme_dynamic_css = apply_filters( 'zakra_dynamic_theme_css', '' ); if ( zakra_is_zakra_pro_active() ) { wp_add_inline_style( 'zakra-pro', $theme_dynamic_css ); } else { wp_add_inline_style( 'zakra-style', $theme_dynamic_css ); } // Do not load scripts if AMP. if ( zakra_is_amp() ) { return; } /** * Scripts. */ wp_enqueue_script( 'zakra-navigation', get_template_directory_uri() . '/assets/js/navigation' . $suffix . '.js', array(), '20151215', true ); wp_enqueue_script( 'zakra-skip-link-focus-fix', get_template_directory_uri() . '/assets/js/skip-link-focus-fix' . $suffix . '.js', array(), '20151215', true ); // Theme JavaScript. wp_enqueue_script( 'zakra-custom', get_template_directory_uri() . '/assets/js/zakra-custom' . $suffix . '.js', array(), false, true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'zakra_scripts' ); /** * Enqueue block editor styles. * * @since Zakra 1.4.3 */ function zakra_block_editor_styles() { wp_enqueue_style( 'zakra-block-editor-styles', get_template_directory_uri() . '/style-editor-block.css' ); } add_action( 'enqueue_block_editor_assets', 'zakra_block_editor_styles', 1, 1 ); /** * Define constants. */ define( 'ZAKRA_PARENT_DIR', get_template_directory() ); define( 'ZAKRA_PARENT_URI', get_template_directory_uri() ); define( 'ZAKRA_PARENT_INC_DIR', ZAKRA_PARENT_DIR . '/inc' ); define( 'ZAKRA_PARENT_INC_URI', ZAKRA_PARENT_URI . '/inc' ); define( 'ZAKRA_PARENT_INC_ICON_URI', ZAKRA_PARENT_URI . '/assets/img/icons' ); define( 'ZAKRA_PARENT_CUSTOMIZER_DIR', ZAKRA_PARENT_INC_DIR . '/customizer' ); // Theme version. $zakra_theme = wp_get_theme( 'zakra' ); define( 'ZAKRA_THEME_VERSION', $zakra_theme->get( 'Version' ) ); // AMP support files. if ( defined( 'AMP__VERSION' ) && ( ! version_compare( AMP__VERSION, '1.0.0', '<' ) ) ) { require_once ZAKRA_PARENT_INC_DIR . '/compatibility/amp/class-zakra-amp.php'; } /** * Include files. */ require ZAKRA_PARENT_INC_DIR . '/helpers.php'; require ZAKRA_PARENT_INC_DIR . '/custom-header.php'; require ZAKRA_PARENT_INC_DIR . '/class-zakra-dynamic-filter.php'; require ZAKRA_PARENT_INC_DIR . '/template-tags.php'; require ZAKRA_PARENT_INC_DIR . '/template-functions.php'; require ZAKRA_PARENT_INC_DIR . '/customizer/class-zakra-customizer.php'; require ZAKRA_PARENT_INC_DIR . '/class-zakra-css-classes.php'; require ZAKRA_PARENT_INC_DIR . '/class-zakra-dynamic-css.php'; require ZAKRA_PARENT_INC_DIR . '/class-zakra-migration.php'; // Load Jetpack compatibility file. if ( defined( 'JETPACK__VERSION' ) ) { require ZAKRA_PARENT_INC_DIR . '/class-zakra-jetpack.php'; } // WooCommerce hooks and functions. if ( class_exists( 'WooCommerce' ) ) { require ZAKRA_PARENT_INC_DIR . '/compatibility/woocommerce/class-zakra-woocommerce.php'; } // Load hooks. require ZAKRA_PARENT_INC_DIR . '/hooks/hooks.php'; require ZAKRA_PARENT_INC_DIR . '/hooks/header.php'; require ZAKRA_PARENT_INC_DIR . '/hooks/footer.php'; require ZAKRA_PARENT_INC_DIR . '/hooks/content.php'; require ZAKRA_PARENT_INC_DIR . '/hooks/customize.php'; // Breadcrumbs class. require_once ZAKRA_PARENT_INC_DIR . '/class-breadcrumb-trail.php'; // Elementor Pro compatibility. require_once ZAKRA_PARENT_INC_DIR . '/compatibility/elementor/class-zakra-elementor-pro.php'; // Admin screen. if ( is_admin() ) { // Meta boxes. require ZAKRA_PARENT_INC_DIR . '/meta-boxes/class-zakra-meta-box-page-settings.php'; require ZAKRA_PARENT_INC_DIR . '/meta-boxes/class-zakra-meta-box.php'; // Theme options page. require ZAKRA_PARENT_INC_DIR . '/admin/class-zakra-admin.php'; require ZAKRA_PARENT_INC_DIR . '/admin/class-zakra-notice.php'; require ZAKRA_PARENT_INC_DIR . '/admin/class-zakra-welcome-notice.php'; require ZAKRA_PARENT_INC_DIR . '/admin/class-zakra-upgrade-notice.php'; require ZAKRA_PARENT_INC_DIR . '/admin/class-zakra-dashboard.php'; require ZAKRA_PARENT_INC_DIR . '/admin/class-zakra-theme-review-notice.php'; require ZAKRA_PARENT_INC_DIR . '/admin/class-zakra-demo-import-migration-notice.php'; require ZAKRA_PARENT_INC_DIR . '/admin/class-zakra-pro-minimum-version-notice.php'; } // Set default content width. if ( ! isset( $content_width ) ) { $content_width = 812; } // Calculate $content_width value according to layout options from Customizer and meta boxes. function zakra_content_width_rdr() { global $content_width; // Get layout type. $layout_type = zakra_get_layout_type(); $layouts_sidebar = array( 'tg-site-layout--left', 'tg-site-layout--right' ); /** * Calculate content width. */ // Get required values from Customizer. $container_width_arr = get_theme_mod( 'zakra_general_container_width', 1160 ); $content_width_arr = get_theme_mod( 'zakra_general_content_width', 70 ); // Calculate Padding to reduce. $container_style = get_theme_mod( 'zakra_general_container_style', 'tg-container--wide' ); $content_padding = ( 'tg-container--separate' === $container_style ) ? 120 : 60; if ( in_array( $layout_type, $layouts_sidebar, true ) ) { $content_width = ( ( (int) $container_width_arr * (int) $content_width_arr ) / 100 ) - $content_padding; } else { $content_width = (int) $container_width_arr - $content_padding; } } add_action( 'template_redirect', 'zakra_content_width_rdr' );