function presscore_get_dynamic_stylesheets_list() { static $dynamic_stylesheets = null; if (null === $dynamic_stylesheets) { $template_uri = PRESSCORE_THEME_URI; $template_directory = PRESSCORE_THEME_DIR; $theme_version = wp_get_theme()->get('Version'); $dynamic_stylesheets = array(); $dynamic_stylesheets['dt-custom-old-ie.less'] = array('path' => $template_directory . '/css/custom-old-ie.less', 'src' => $template_uri . '/css/custom-old-ie.less', 'fallback_src' => $template_uri . '/css/compiled/custom-old-ie-%preset%.css', 'deps' => array(), 'ver' => $theme_version, 'media' => 'all'); $dynamic_stylesheets['dt-custom.less'] = array('path' => $template_directory . '/css/custom.less', 'src' => $template_uri . '/css/custom.less', 'fallback_src' => $template_uri . '/css/compiled/custom-%preset%.css', 'deps' => array(), 'ver' => $theme_version, 'media' => 'all'); if (dt_is_woocommerce_enabled()) { $dynamic_stylesheets['wc-dt-custom.less'] = array('path' => $template_directory . '/css/compatibility/wc-dt-custom.less', 'src' => $template_uri . '/css/compatibility/wc-dt-custom.less', 'fallback_src' => $template_uri . '/css/compiled/compatibility/wc-dt-custom-%preset%.css', 'deps' => array(), 'ver' => $theme_version, 'media' => 'all'); } if (presscore_responsive()) { $dynamic_stylesheets['dt-media.less'] = array('path' => $template_directory . '/css/media.less', 'src' => $template_uri . '/css/media.less', 'fallback_src' => $template_uri . '/css/compiled/media-%preset%.css', 'deps' => array(), 'ver' => $theme_version, 'media' => 'all'); } } return apply_filters('presscore_get_dynamic_stylesheets_list', $dynamic_stylesheets); }
<?php // File Security Check if (!defined('ABSPATH')) { exit; } //////////////////////// // Woocommerce cart // //////////////////////// if (dt_is_woocommerce_enabled() && of_get_option('general-woocommerce_show_mini_cart_in_top_bar', true)) { get_template_part('inc/mod-woocommerce/mod-woocommerce', 'mini-cart'); } //////////////////// // Social icons // //////////////////// $topbar_soc_icons = presscore_get_topbar_social_icons(); if ($topbar_soc_icons) { echo $topbar_soc_icons; }
function presscore_get_dynamic_stylesheets_list() { static $dynamic_stylesheets = null; if ( null === $dynamic_stylesheets ) { $template_uri = get_template_directory_uri(); $template_directory = get_template_directory(); $theme_version = wp_get_theme()->get( 'Version' ); $dynamic_stylesheets = array( 'dt-custom.less' => array( 'path' => $template_directory . '/css/custom.less', 'src' => $template_uri . '/css/custom.less', 'fallback_src' => $template_uri . '/css/compiled/custom-%preset%.css', 'deps' => array(), 'ver' => $theme_version, 'media' => 'all' ) ); if ( dt_is_woocommerce_enabled() ) { $dynamic_stylesheets['wc-dt-custom.less'] = array( 'path' => $template_directory . '/css/wc-dt-custom.less', 'src' => $template_uri . '/css/wc-dt-custom.less', 'fallback_src' => '', 'deps' => array(), 'ver' => $theme_version, 'media' => 'all' ); } } return $dynamic_stylesheets; }