| 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
if ( ! function_exists( 'glaza_theme_options_category' ) ) {
function glaza_theme_options_category() {
return array(
'id' => 'glaza_config_section_category',
'title' => esc_html__( 'Category Options', 'glaza' ),
'desc' => esc_html__( 'Global category options (category.php), options below will apply to all category pages on your website.', 'glaza' ),
'icon' => 'el el-folder-open',
'fields' => array(
array(
'id' => 'section_start_cat_layout',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Layout Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'cat_layout',
'type' => 'image_select',
'title' => esc_html__( 'Category Layout', 'glaza' ),
'subtitle' => esc_html__( 'select a layout for the category pages.', 'glaza' ),
'options' => glaza_config_blog_layout(),
'default' => 'classic'
),
array(
'id' => 'cat_posts_per_page',
'title' => esc_html__( 'Number of Posts', 'glaza' ),
'subtitle' => esc_html__( 'select number of posts for category pages, this option will override default settings in "Settings > Reading > Blog pages show at most. Leave blank or set 0 if you want to set as the default.', 'glaza' ),
'type' => 'text',
'class' => 'small-text',
'validate' => 'numeric'
),
array(
'id' => 'section_end_cat_layout',
'type' => 'section',
'class' => 'ruby-section-end',
'indent' => false
),
array(
'id' => 'section_start_cat_pagination',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Pagination Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'cat_pagination',
'title' => esc_html__( 'Category pagination', 'glaza' ),
'subtitle' => esc_html__( 'select a pagination style for category pages (category.php)', 'glaza' ),
'type' => 'select',
'options' => glaza_config_blog_pagination(),
'default' => 'number'
),
array(
'id' => 'section_end_cat_pagination',
'type' => 'section',
'class' => 'ruby-section-end',
'indent' => false
),
array(
'id' => 'section_start_category_sidebar',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Sidebar Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'cat_sidebar_name',
'type' => 'select',
'title' => esc_html__( 'Sidebar Name', 'glaza' ),
'subtitle' => esc_html__( 'Select a sidebar for the category pages.', 'glaza' ),
'options' => glaza_config_sidebar_name(),
'default' => 'glaza_sidebar_default'
),
array(
'id' => 'cat_sidebar_position',
'type' => 'image_select',
'title' => esc_html__( 'Sidebar Position', 'glaza' ),
'subtitle' => esc_html__( 'Select sidebar position for the category pages.', 'glaza' ),
'options' => glaza_config_sidebar_position(),
'default' => 'default'
),
array(
'id' => 'section_end_category_sidebar',
'type' => 'section',
'class' => 'ruby-section-end no-border',
'indent' => false
)
)
);
}
}
//search page
if ( ! function_exists( 'glaza_theme_options_search' ) ) {
function glaza_theme_options_search() {
return array(
'id' => 'glaza_config_section_search',
'title' => esc_html__( 'Search Options', 'glaza' ),
'desc' => esc_html__( 'search page options (search.php), options below will apply the search page.', 'glaza' ),
'icon' => 'el el-search',
'fields' => array(
array(
'id' => 'section_start_search_layout',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Layout Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'search_header_form',
'title' => esc_html__( 'Header Search Form', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable the search form at the top of the search page.', 'glaza' ),
'type' => 'switch',
'default' => 1
),
array(
'id' => 'search_layout',
'type' => 'image_select',
'title' => esc_html__( 'Search Layout', 'glaza' ),
'subtitle' => esc_html__( 'select a layout for the search page.', 'glaza' ),
'options' => glaza_config_blog_layout(),
'default' => 'grid-1'
),
array(
'id' => 'search_posts_per_page',
'title' => esc_html__( 'Number of Posts', 'glaza' ),
'subtitle' => esc_html__( 'select number of posts for search page, this option will override default settings in "Settings > Reading > Blog pages show at most. Leave blank or set 0 if you want to set as the default.', 'glaza' ),
'type' => 'text',
'class' => 'small-text',
'validate' => 'numeric',
'default' => 6
),
array(
'id' => 'section_end_search_layout',
'type' => 'section',
'class' => 'ruby-section-end',
'indent' => false
),
array(
'id' => 'section_start_search_pagination',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Pagination Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'search_pagination',
'title' => esc_html__( 'Search pagination', 'glaza' ),
'subtitle' => esc_html__( 'select a pagination style for search page (search.php)', 'glaza' ),
'type' => 'select',
'options' => glaza_config_blog_pagination( false ),
'default' => 'number'
),
array(
'id' => 'search_page',
'type' => 'switch',
'title' => esc_html__( 'Disable Search Page', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable pages in search results.', 'glaza' ),
'default' => 1
),
array(
'id' => 'section_end_search_pagination',
'type' => 'section',
'class' => 'ruby-section-end',
'indent' => false
),
array(
'id' => 'section_start_search_sidebar',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Sidebar Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'search_sidebar_name',
'type' => 'select',
'title' => esc_html__( 'Sidebar Name', 'glaza' ),
'subtitle' => esc_html__( 'Select a sidebar for the search page.', 'glaza' ),
'options' => glaza_config_sidebar_name(),
'default' => 'glaza_sidebar_default'
),
array(
'id' => 'search_sidebar_position',
'type' => 'image_select',
'title' => esc_html__( 'Sidebar Position', 'glaza' ),
'subtitle' => esc_html__( 'Select sidebar position for the search page.', 'glaza' ),
'options' => glaza_config_sidebar_position(),
'default' => 'none'
),
array(
'id' => 'section_end_search_sidebar',
'type' => 'section',
'class' => 'ruby-section-end no-border',
'indent' => false
)
)
);
}
}
//author page
if ( ! function_exists( 'glaza_theme_options_author' ) ) {
function glaza_theme_options_author() {
return array(
'id' => 'glaza_config_section_author',
'title' => esc_html__( 'Author Options', 'glaza' ),
'desc' => esc_html__( 'author page options (author.php), options below will apply authors pages.', 'glaza' ),
'icon' => 'el el-user',
'fields' => array(
array(
'id' => 'section_start_author_layout',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Layout Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'author_header_box',
'title' => esc_html__( 'Show Author Card', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable the author card box at the top of author pages.', 'glaza' ),
'type' => 'switch',
'default' => 1
),
array(
'id' => 'author_layout',
'type' => 'image_select',
'title' => esc_html__( 'Search Layout', 'glaza' ),
'subtitle' => esc_html__( 'select a layout for the author pages.', 'glaza' ),
'options' => glaza_config_blog_layout(),
'default' => 'classic'
),
array(
'id' => 'author_posts_per_page',
'title' => esc_html__( 'Number of Posts', 'glaza' ),
'subtitle' => esc_html__( 'select number of posts for author pages, this option will override default settings in "Settings > Reading > Blog pages show at most. Leave blank or set 0 if you want to set as the default.', 'glaza' ),
'type' => 'text',
'class' => 'small-text',
'validate' => 'numeric'
),
array(
'id' => 'section_end_author_layout',
'type' => 'section',
'class' => 'ruby-section-end',
'indent' => false
),
array(
'id' => 'section_start_author_pagination',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Pagination Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'author_pagination',
'title' => esc_html__( 'Search pagination', 'glaza' ),
'subtitle' => esc_html__( 'select a pagination style for author pages (author.php)', 'glaza' ),
'type' => 'select',
'options' => glaza_config_blog_pagination( false ),
'default' => 'number'
),
array(
'id' => 'section_end_author_pagination',
'type' => 'section',
'class' => 'ruby-section-end',
'indent' => false
),
array(
'id' => 'section_start_author_sidebar',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Sidebar Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'author_sidebar_name',
'type' => 'select',
'title' => esc_html__( 'Sidebar Name', 'glaza' ),
'subtitle' => esc_html__( 'Select a sidebar for the author pages.', 'glaza' ),
'options' => glaza_config_sidebar_name(),
'default' => 'glaza_sidebar_default'
),
array(
'id' => 'author_sidebar_position',
'type' => 'image_select',
'title' => esc_html__( 'Sidebar Position', 'glaza' ),
'subtitle' => esc_html__( 'Select sidebar position for the author pages.', 'glaza' ),
'options' => glaza_config_sidebar_position(),
'default' => 'default'
),
array(
'id' => 'section_end_author_sidebar',
'type' => 'section',
'class' => 'ruby-section-end no-border',
'indent' => false
)
)
);
}
}
//archive
if ( ! function_exists( 'glaza_theme_options_archive' ) ) {
function glaza_theme_options_archive() {
return array(
'id' => 'glaza_config_section_archive',
'title' => esc_html__( 'Archive Options', 'glaza' ),
'desc' => esc_html__( 'archive page options (archive.php), options below will apply archive pages, WordPress will automatically generate daily, monthly and yearly archives.', 'glaza' ),
'icon' => 'el el-folder-close',
'fields' => array(
array(
'id' => 'section_start_archive_layout',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Layout Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'archive_layout',
'type' => 'image_select',
'title' => esc_html__( 'Archive Layout', 'glaza' ),
'subtitle' => esc_html__( 'select a layout for the archive pages.', 'glaza' ),
'options' => glaza_config_blog_layout(),
'default' => 'classic'
),
array(
'id' => 'archive_posts_per_page',
'title' => esc_html__( 'Number of Posts', 'glaza' ),
'subtitle' => esc_html__( 'select number of posts for archive pages, this option will override default settings in "Settings > Reading > Blog pages show at most. Leave blank or set 0 if you want to set as the default.', 'glaza' ),
'type' => 'text',
'class' => 'small-text',
'validate' => 'numeric'
),
array(
'id' => 'section_end_archive_layout',
'type' => 'section',
'class' => 'ruby-section-end',
'indent' => false
),
array(
'id' => 'section_start_archive_pagination',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Pagination Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'archive_pagination',
'title' => esc_html__( 'Archive pagination', 'glaza' ),
'subtitle' => esc_html__( 'select a pagination style for archive pages (archive.php)', 'glaza' ),
'type' => 'select',
'options' => glaza_config_blog_pagination( false ),
'default' => 'number'
),
array(
'id' => 'section_end_archive_pagination',
'type' => 'section',
'class' => 'ruby-section-end',
'indent' => false
),
array(
'id' => 'section_start_archive_sidebar',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Sidebar Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'archive_sidebar_name',
'type' => 'select',
'title' => esc_html__( 'Sidebar Name', 'glaza' ),
'subtitle' => esc_html__( 'Select a sidebar for the archive pages.', 'glaza' ),
'options' => glaza_config_sidebar_name(),
'default' => 'glaza_sidebar_default'
),
array(
'id' => 'archive_sidebar_position',
'type' => 'image_select',
'title' => esc_html__( 'Sidebar Position', 'glaza' ),
'subtitle' => esc_html__( 'Select sidebar position for the archive pages.', 'glaza' ),
'options' => glaza_config_sidebar_position(),
'default' => 'default'
),
array(
'id' => 'section_end_archive_sidebar',
'type' => 'section',
'class' => 'ruby-section-end no-border',
'indent' => false
)
)
);
}
}
//blog index
if ( ! function_exists( 'glaza_theme_options_index' ) ) {
function glaza_theme_options_index() {
return array(
'id' => 'glaza_config_section_index',
'title' => esc_html__( 'Blog Options', 'glaza' ),
'desc' => esc_html__( 'blog page options (index.php), options below will apply to the blog page.', 'glaza' ),
'icon' => 'el el-folder-close',
'fields' => array(
array(
'id' => 'section_start_index_layout',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Layout Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'index_layout',
'type' => 'image_select',
'title' => esc_html__( 'Blog Layout', 'glaza' ),
'subtitle' => esc_html__( 'select a layout for the blog page.', 'glaza' ),
'options' => glaza_config_blog_layout(),
'default' => 'classic'
),
array(
'id' => 'index_posts_per_page',
'title' => esc_html__( 'Number of Posts', 'glaza' ),
'subtitle' => esc_html__( 'select number of posts for archive pages, this option will override default settings in "Settings > Reading > Blog pages show at most. Leave blank or set 0 if you want to set as the default.', 'glaza' ),
'type' => 'text',
'class' => 'small-text',
'validate' => 'numeric'
),
array(
'id' => 'blog_breadcrumb',
'type' => 'switch',
'title' => esc_html__( 'Breadcrumb on Blog Page', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable the breadcrumb bar in the blog page.', 'glaza' ),
'switch' => true,
'default' => 1
),
array(
'id' => 'section_end_index_layout',
'type' => 'section',
'class' => 'ruby-section-end',
'indent' => false
),
array(
'id' => 'section_start_index_pagination',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Pagination Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'index_pagination',
'title' => esc_html__( 'Blog pagination', 'glaza' ),
'subtitle' => esc_html__( 'select a pagination style for archive pages (archive.php)', 'glaza' ),
'type' => 'select',
'options' => glaza_config_blog_pagination( false ),
'default' => 'number'
),
array(
'id' => 'section_end_index_pagination',
'type' => 'section',
'class' => 'ruby-section-end',
'indent' => false
),
array(
'id' => 'section_start_index_sidebar',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Sidebar Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'index_sidebar_name',
'type' => 'select',
'title' => esc_html__( 'Sidebar Name', 'glaza' ),
'subtitle' => esc_html__( 'Select a sidebar for the archive pages.', 'glaza' ),
'options' => glaza_config_sidebar_name(),
'default' => 'glaza_sidebar_default'
),
array(
'id' => 'index_sidebar_position',
'type' => 'image_select',
'title' => esc_html__( 'Sidebar Position', 'glaza' ),
'subtitle' => esc_html__( 'Select sidebar position for the archive pages.', 'glaza' ),
'options' => glaza_config_sidebar_position(),
'default' => 'default'
),
array(
'id' => 'section_end_index_sidebar',
'type' => 'section',
'class' => 'ruby-section-end no-border',
'indent' => false
)
)
);
}
}
//default page
if ( ! function_exists( 'glaza_theme_options_page' ) ) {
function glaza_theme_options_page() {
return array(
'id' => 'glaza_config_section_page',
'title' => esc_html__( 'Page Options', 'glaza' ),
'desc' => esc_html__( 'select options for single pages (page.php), options below will apply to all pages has been set to "Default Template".', 'glaza' ),
'icon' => 'el el-list-alt',
'fields' => array(
array(
'id' => 'section_start_single_page_option',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Single Page Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'page_title',
'type' => 'switch',
'title' => esc_html__( 'Page Title', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable the page title, this options will apply to all single pages.', 'glaza' ),
'switch' => true,
'default' => 1
),
array(
'id' => 'section_end_single_page_option',
'type' => 'section',
'class' => 'ruby-section-end',
'indent' => false
),
array(
'id' => 'section_start_single_page_sidebar',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Sidebar Options', 'glaza' ),
'indent' => true
),
array(
'id' => 'page_sidebar_name',
'type' => 'select',
'title' => esc_html__( 'Single Sidebar name', 'glaza' ),
'subtitle' => esc_html__( 'select default sidebar name the single page page, this option will apply to all single pages page. You can set an individual sidebar for each page in the page editor.', 'glaza' ),
'options' => glaza_config_sidebar_name(),
'default' => 'glaza_sidebar_default'
),
array(
'id' => 'page_sidebar_position',
'type' => 'image_select',
'title' => esc_html__( 'Sidebar Position', 'glaza' ),
'subtitle' => esc_html__( 'select sidebar position for single pages, this option will override default sidebar position. You can set an individual sidebar position for each page in the page editor.', 'glaza' ),
'options' => glaza_config_sidebar_position(),
'default' => 'default'
),
array(
'id' => 'section_end_single_page_sidebar',
'type' => 'section',
'class' => 'ruby-section-end no-border',
'indent' => false
)
)
);
}
}