| Server IP : 213.186.33.4 / Your IP : 216.73.216.222 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/themes/glaza/theme_options/ |
Upload File : |
<?php
//Sidebar & Widget
if ( ! function_exists( 'glaza_theme_options_sidebar' ) ) {
function glaza_theme_options_sidebar() {
return array(
'id' => 'glaza_theme_ops_section_section_sidebar',
'title' => esc_html__( 'Sidebar Options', 'glaza' ),
'desc' => esc_html__( 'select options for sidebars, options below will apply to whole the website.', 'glaza' ),
'icon' => 'el el-th',
'fields' => array(
array(
'id' => 'section_start_sidebar_general',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Sidebar General Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'glaza_multi_sidebar',
'type' => 'multi_text',
'class' => 'medium-text',
'title' => esc_html__( 'Create Sidebar', 'glaza' ),
'subtitle' => esc_html__( 'create or delete an existing sidebar, don\'t forget input name for your sidebar.', 'glaza' ),
'desc' => esc_html__( 'click on the "Create Sidebar" button, then input a name/ID (without special charsets and spacing) into this field to create a new sidebar.', 'glaza' ),
'add_text' => esc_html__( 'Create Sidebar', 'glaza' ),
'default' => array()
),
array(
'id' => 'sidebar_sticky',
'type' => 'switch',
'title' => esc_html__( 'Sticky Sidebar', 'glaza' ),
'subtitle' => esc_html__( 'making sidebar permanently visible when scrolling up and down. Useful when a sidebar is too tall or too short compared to the rest of the content. This features will not apply to mobile devices.', 'glaza' ),
'desc' => esc_html__( 'This option will not apply to the section built with the SiteOrigin builder because It has own settings. Please refer to the theme documentation.', 'glaza' ),
'default' => 0
),
array(
'id' => 'default_sidebar_position',
'type' => 'image_select',
'title' => esc_html__( 'Sidebar Position', 'glaza' ),
'subtitle' => esc_html__( 'Select sidebar position for your website, This is global options and will be overridden by other "Sidebar Position" settings.', 'glaza' ),
'options' => glaza_config_sidebar_position( false ),
'default' => 'right'
),
array(
'id' => 'section_end_sidebar_general',
'type' => 'section',
'class' => 'ruby-section-end no-border',
'indent' => false
),
)
);
}
}