| 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_styling' ) ) {
function glaza_theme_options_styling() {
return array(
'id' => 'glaza_config_section_styling',
'title' => esc_html__( 'Elements Styling', 'glaza' ),
'desc' => esc_html__( 'select styles for blog listings for your website.', 'glaza' ),
'icon' => 'el el-adjust-alt',
'fields' => array(
array(
'id' => 'section_start_block_button_layout',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Meta Info Options', 'glaza' ),
'subtitle' => esc_html__( 'Options below will apply to all blocks, pages, and modules on your website.', 'glaza' ),
'indent' => true
),
array(
'id' => 'post_meta_info_manager',
'type' => 'sorter',
'title' => esc_html__( 'Entry meta info', 'glaza' ),
'subtitle' => esc_html__( 'Organize how you want the main entry meta tags to appear on block', 'glaza' ),
'desc' => esc_html__( 'The view counter feature requests the Post Views Counter plugin to work.', 'glaza' ),
'options' => array(
'enabled' => array(
'cat' => esc_html__( 'Category', 'glaza' ),
'date' => esc_html__( 'Date', 'glaza' ),
),
'disabled' => array(
'author' => esc_html__( 'Author', 'glaza' ),
'tag' => esc_html__( 'Tags', 'glaza' ),
'view' => esc_html__( 'View', 'glaza' ),
'comment' => esc_html__( 'Comment', 'glaza' )
)
),
),
array(
'id' => 'small_date',
'title' => esc_html__( 'Date on Small Layout', 'glaza' ),
'subtitle' => esc_html__( 'Enable or disable date meta on small grid and list layouts.', 'glaza' ),
'type' => 'switch',
'default' => 0
),
array(
'id' => 'readmore_text',
'title' => esc_html__( 'Read More Text', 'glaza' ),
'subtitle' => esc_html__( 'input read more text button. Leave blank if you would like to disable.', 'glaza' ),
'type' => 'text',
'default' => esc_html__( 'Read More', 'glaza' ),
),
array(
'id' => 'human_time',
'title' => esc_html__( 'Human Time (Ago)', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable the human time ("ago" time).', 'glaza' ),
'type' => 'switch',
'default' => 0
),
array(
'id' => 'post_excerpt_mobile',
'type' => 'switch',
'title' => esc_html__( 'Hide Excerpt on Mobiles & Tables', 'glaza' ),
'subtitle' => esc_html__( 'show or hide the excerpt of blog posts on mobile devices (screen width < 992px).', 'glaza' ),
'switch' => true,
'default' => 0
),
array(
'id' => 'section_end_block_button_layout',
'type' => 'section',
'class' => 'ruby-section-end',
'indent' => false
),
array(
'id' => 'section_start_share_on_post',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Share Options', 'glaza' ),
'subtitle' => esc_html__( 'Options below will apply to all blocks, pages, and modules on your website.', 'glaza' ),
'indent' => true
),
array(
'id' => 'share_facebook',
'type' => 'switch',
'title' => esc_html__( 'Share on Facebook', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable share on Facebook.', 'glaza' ),
'switch' => true,
'default' => 1
),
array(
'id' => 'share_twitter',
'type' => 'switch',
'title' => esc_html__( 'Share on Twitter', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable share on Twitter.', 'glaza' ),
'switch' => true,
'default' => 1
),
array(
'id' => 'share_googleplus',
'type' => 'switch',
'title' => esc_html__( 'Share on Google Plus', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable share on Google Plus.', 'glaza' ),
'switch' => true,
'default' => 1
),
array(
'id' => 'share_pinterest',
'type' => 'switch',
'title' => esc_html__( 'Share on Pinterest', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable share on Pinterest.', 'glaza' ),
'switch' => true,
'default' => 1
),
array(
'id' => 'share_linkedin',
'type' => 'switch',
'title' => esc_html__( 'Share on LinkedIn', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable share on LinkedIn.', 'glaza' ),
'switch' => true,
'default' => 0
),
array(
'id' => 'share_tumblr',
'type' => 'switch',
'title' => esc_html__( 'Share on Tumblr', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable share on Tumblr.', 'glaza' ),
'switch' => true,
'default' => 0
),
array(
'id' => 'share_reddit',
'type' => 'switch',
'title' => esc_html__( 'Share on Reddit', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable share on Reddit.', 'glaza' ),
'switch' => true,
'default' => 0
),
array(
'id' => 'share_vk',
'type' => 'switch',
'title' => esc_html__( 'Share on Vkontakte', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable share on Vkontakte.', 'glaza' ),
'switch' => true,
'default' => 0
),
array(
'id' => 'share_email',
'type' => 'switch',
'title' => esc_html__( 'Share on Email', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable share on Email.', 'glaza' ),
'switch' => true,
'default' => 0
),
array(
'id' => 'section_end_share_on_post',
'type' => 'section',
'class' => 'ruby-section-end',
'indent' => false
),
//post elements
array(
'id' => 'section_start_post_elements',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Post Element Options', 'glaza' ),
'subtitle' => esc_html__( 'Options below will apply to all blog, archives, categories pages (except widgets have own it settings).', 'glaza' ),
'indent' => true
),
array(
'id' => 'post_readmore',
'title' => esc_html__( 'Read More Button', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable the read more button in the listing.', 'glaza' ),
'type' => 'switch',
'default' => 1
),
array(
'id' => 'post_shop',
'title' => esc_html__( 'Shop The Post', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable shop the post (icon or products listing, depends on the layouts) in the listing.', 'glaza' ),
'type' => 'switch',
'default' => 1
),
array(
'id' => 'post_icon_video',
'title' => esc_html__( 'Post Video Icon', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable the video icon in the listing.', 'glaza' ),
'type' => 'switch',
'default' => 1
),
array(
'id' => 'post_icon_gallery',
'title' => esc_html__( 'Post Gallery Icon', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable the gallery icon in the listing.', 'glaza' ),
'type' => 'switch',
'default' => 1
),
array(
'id' => 'post_icon_audio',
'title' => esc_html__( 'Post Audio Icon', 'glaza' ),
'subtitle' => esc_html__( 'enable or disable the audio icon in the listing.', 'glaza' ),
'type' => 'switch',
'default' => 1
),
array(
'id' => 'section_end_post_post_elements',
'type' => 'section',
'class' => 'ruby-section-end',
'indent' => false
),
array(
'id' => 'section_start_post_excerpt',
'type' => 'section',
'class' => 'ruby-section-start',
'title' => esc_html__( 'Excerpt Options', 'glaza' ),
'subtitle' => esc_html__( 'This option will apply to all blog, archives, categories pages (except widgets have own it settings)', 'glaza' ),
'indent' => true
),
array(
'id' => 'blog_excerpt_length_grid',
'type' => 'text',
'class' => 'small-text',
'validate' => 'numeric',
'title' => esc_html__( 'Grid - Excerpt Length', 'glaza' ),
'subtitle' => esc_html__( 'select length of excerpts for the grid layout, leave blank or set is 0 if you want to disable it.', 'glaza' ),
'default' => 12
),
array(
'id' => 'blog_excerpt_length_list',
'type' => 'text',
'class' => 'small-text',
'validate' => 'numeric',
'title' => esc_html__( 'List - Excerpt Length', 'glaza' ),
'subtitle' => esc_html__( 'select length of excerpts for the grid layout, leave blank or set is 0 if you want to disable it.', 'glaza' ),
'default' => 12
),
array(
'id' => 'list_dark_style',
'type' => 'switch',
'title' => esc_html__( 'List - Dark Style for 1st Post', 'glaza' ),
'subtitle' => esc_html__( 'Enable or disable dark style for the 1st post in layout lists. This option will apply whole the website.', 'glaza' ),
'switch' => true,
'default' => 1
),
array(
'id' => 'blog_excerpt_summary_classic',
'title' => esc_html__( 'Classic - Summary Type', 'glaza' ),
'subtitle' => esc_html__( 'Select a summary type for the classic layout.', 'glaza' ),
'type' => 'select',
'options' => array(
'excerpt' => esc_html__( 'Use Post Excerpt', 'glaza' ),
'moretag' => esc_html__( 'Use More Tag', 'glaza' )
),
'default' => 'excerpt'
),
array(
'id' => 'blog_excerpt_length_classic',
'type' => 'text',
'required' => array( 'blog_excerpt_summary_classic', '=', 'excerpt' ),
'title' => esc_html__( 'Classic - Excerpt Length', 'glaza' ),
'subtitle' => esc_html__( 'select length of excerpts for the classic 1 layout, leave blank or set is 0 if you want to disable it.', 'glaza' ),
'class' => 'small-text',
'validate' => 'numeric',
'default' => 25
),
array(
'id' => 'section_end_post_post_excerpt',
'type' => 'section',
'class' => 'ruby-section-end no-border',
'indent' => false
)
)
);
}
}