| Server IP : 146.59.209.152 / Your IP : 216.73.216.46 Web Server : Apache System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : infrafs ( 43850) PHP Version : 8.2.29 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/infrafs/www/wp-content/themes/trackstore/trackstore/framework/modules/sidebar/ |
Upload File : |
<?php
if ( ! function_exists( 'trackstore_elated_register_sidebars' ) ) {
/**
* Function that registers theme's sidebars
*/
function trackstore_elated_register_sidebars() {
register_sidebar(
array(
'id' => 'sidebar',
'name' => esc_html__( 'Sidebar', 'trackstore' ),
'description' => esc_html__( 'Default Sidebar', 'trackstore' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<div class="eltd-widget-title-holder"><h4 class="eltd-widget-title">',
'after_title' => '</h4></div>'
)
);
}
add_action( 'widgets_init', 'trackstore_elated_register_sidebars', 1 );
}
if ( ! function_exists( 'trackstore_elated_add_support_custom_sidebar' ) ) {
/**
* Function that adds theme support for custom sidebars. It also creates TrackStoreElatedSidebar object
*/
function trackstore_elated_add_support_custom_sidebar() {
add_theme_support( 'TrackStoreElatedSidebar' );
if ( get_theme_support( 'TrackStoreElatedSidebar' ) ) {
new TrackStoreElatedSidebar();
}
}
add_action( 'after_setup_theme', 'trackstore_elated_add_support_custom_sidebar' );
}