| Server IP : 14.225.204.176 / Your IP : 216.73.216.169 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/php/langngon.com/wp-content/themes/langngon/lib/ |
Upload File : |
<?php
/**
* Enable theme features
*/
add_theme_support('soil-clean-up'); // Enable clean up from Soil
//add_theme_support('soil-relative-urls'); // Enable relative URLs from Soil
//add_theme_support('soil-nice-search'); // Enable /?s= to /search/ redirect from Soil
add_theme_support('bootstrap-gallery'); // Enable Bootstrap's thumbnails component on [gallery]
add_theme_support('jquery-cdn'); // Enable to load jQuery from the Google CDN
/**
* Configuration values
*/
define('GOOGLE_ANALYTICS_ID', ''); // UA-XXXXX-Y (Note: Universal Analytics only, not Classic Analytics)
if (!defined('WP_ENV')) {
define('WP_ENV', 'production'); // scripts.php checks for values 'production' or 'development'
}
/**
* Add body class if sidebar is active
*/
function roots_sidebar_body_class($classes) {
if (roots_display_sidebar()) {
if ( class_exists( 'WooCommerce' ) ) {
if(is_page("dang-ky")){
$classes[] = '';
} else {
$classes[] = 'sidebar-primary';
}
} else {
if ( is_category() || is_single() ) {
} else {
$classes[] = 'home';
}
}
}
return $classes;
}
// add_filter('body_class', 'roots_sidebar_body_class');
/**
* Define which pages shouldn't have the sidebar
*
* See lib/sidebar.php for more details
*/
function roots_display_sidebar() {
$sidebar_config = new Roots_Sidebar(
/**
* Conditional tag checks (http://codex.wordpress.org/Conditional_Tags)
* Any of these conditional tags that return true won't show the sidebar
*
* To use a function that accepts arguments, use the following format:
*
* array('function_name', array('arg1', 'arg2'))
*
* The second element must be an array even if there's only 1 argument.
*/
array(
'is_404',
'is_home',
'is_product',
'is_cart',
'is_checkout',
'is_account_page',
array('is_page', 'contact' ),
array('is_page_template', 'page-contact.php' ),
array('is_page_template', 'page-no-sidebar.php' ),
array('is_singular', 'store'),
),
/**
* Page template checks (via is_page_template())
* Any of these page templates that return true won't show the sidebar
*/
array(
'template-custom.php',
)
);
return apply_filters('roots/display_sidebar', $sidebar_config->display);
}
/**
* $content_width is a global variable used by WordPress for max image upload sizes
* and media embeds (in pixels).
*
* Example: If the content area is 640px wide, set $content_width = 620; so images and videos will not overflow.
* Default: 1140px is the default Bootstrap container width.
*/
if (!isset($content_width)) { $content_width = 1140; }