first commit without licensingg
This commit is contained in:
1160
inc/theme-mods/archive-settings.php
Normal file
1160
inc/theme-mods/archive-settings.php
Normal file
File diff suppressed because it is too large
Load Diff
1181
inc/theme-mods/colors-settings.php
Normal file
1181
inc/theme-mods/colors-settings.php
Normal file
File diff suppressed because it is too large
Load Diff
38
inc/theme-mods/footer-settings.php
Normal file
38
inc/theme-mods/footer-settings.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* Footer Settings
|
||||
*
|
||||
* @package Revision
|
||||
*/
|
||||
|
||||
CSCO_Customizer::add_section(
|
||||
'footer',
|
||||
array(
|
||||
'title' => esc_html__( 'Footer Settings', 'revision' ),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'textarea',
|
||||
'settings' => 'footer_text',
|
||||
'label' => esc_html__( 'Footer Text', 'revision' ),
|
||||
'section' => 'footer',
|
||||
'sanitize_callback' => function ( $val ) {
|
||||
return wp_kses( $val, 'content' );
|
||||
},
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'textarea',
|
||||
'settings' => 'footer_copyright',
|
||||
'label' => esc_html__( 'Footer Copyright', 'revision' ),
|
||||
'section' => 'footer',
|
||||
'default' => esc_html__( '© 2024 — Revision. All Rights Reserved.', 'revision' ),
|
||||
'sanitize_callback' => function ( $val ) {
|
||||
return wp_kses( $val, 'content' );
|
||||
},
|
||||
)
|
||||
);
|
||||
308
inc/theme-mods/header-settings.php
Normal file
308
inc/theme-mods/header-settings.php
Normal file
@@ -0,0 +1,308 @@
|
||||
<?php
|
||||
/**
|
||||
* Header Settings
|
||||
*
|
||||
* @package Revision
|
||||
*/
|
||||
|
||||
CSCO_Customizer::add_section(
|
||||
'header',
|
||||
array(
|
||||
'title' => esc_html__( 'Header Settings', 'revision' ),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'collapsible',
|
||||
'settings' => 'header_collapsible_common',
|
||||
'section' => 'header',
|
||||
'label' => esc_html__( 'Common', 'revision' ),
|
||||
'input_attrs' => array(
|
||||
'collapsed' => true,
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'dimension',
|
||||
'settings' => 'header_initial_height',
|
||||
'label' => esc_html__( 'Header Initial Height', 'revision' ),
|
||||
'section' => 'header',
|
||||
'default' => '88px',
|
||||
'output' => array(
|
||||
array(
|
||||
'element' => ':root',
|
||||
'property' => '--cs-header-initial-height',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'dimension',
|
||||
'settings' => 'header_height',
|
||||
'label' => esc_html__( 'Header Height', 'revision' ),
|
||||
'section' => 'header',
|
||||
'default' => '88px',
|
||||
'output' => array(
|
||||
array(
|
||||
'element' => ':root',
|
||||
'property' => '--cs-header-height',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'dimension',
|
||||
'settings' => 'header_border_width',
|
||||
'label' => esc_html__( 'Header Border Width', 'revision' ),
|
||||
'section' => 'header',
|
||||
'default' => '0px',
|
||||
'output' => array(
|
||||
array(
|
||||
'element' => ':root',
|
||||
'property' => '--cs-header-border-width',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'navbar_sticky',
|
||||
'label' => esc_html__( 'Make navigation bar sticky', 'revision' ),
|
||||
'description' => esc_html__( 'Enabling this option will make navigation bar visible when scrolling.', 'revision' ),
|
||||
'section' => 'header',
|
||||
'default' => true,
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'navbar_smart_sticky',
|
||||
'label' => esc_html__( 'Enable the smart sticky feature', 'revision' ),
|
||||
'description' => esc_html__( 'Enabling this option will reveal navigation bar when scrolling up and hide it when scrolling down.', 'revision' ),
|
||||
'section' => 'header',
|
||||
'default' => true,
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'navbar_sticky',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'header_offcanvas',
|
||||
'label' => esc_html__( 'Display offcanvas toggle button', 'revision' ),
|
||||
'section' => 'header',
|
||||
'default' => false,
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'header_navigation_menu',
|
||||
'label' => esc_html__( 'Display navigation menu', 'revision' ),
|
||||
'section' => 'header',
|
||||
'default' => true,
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'collapsible',
|
||||
'settings' => 'header_collapsible_search',
|
||||
'section' => 'header',
|
||||
'label' => esc_html__( 'Search', 'revision' ),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'header_search_button',
|
||||
'label' => esc_html__( 'Display search button', 'revision' ),
|
||||
'section' => 'header',
|
||||
'default' => true,
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'header_search_show_categories',
|
||||
'label' => esc_html__( 'Display categories', 'revision' ),
|
||||
'section' => 'header',
|
||||
'default' => true,
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'header_search_button',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'text',
|
||||
'settings' => 'header_search_heading',
|
||||
'label' => esc_html__( 'Heading', 'revision' ),
|
||||
'section' => 'header',
|
||||
'default' => esc_html__( 'What are You Looking For?', 'revision' ),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'header_search_button',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'text',
|
||||
'settings' => 'header_search_filter_categories',
|
||||
'label' => esc_html__( 'Categories', 'revision' ),
|
||||
'description' => esc_html__( 'Add comma-separated list of category slugs. For example: «travel, lifestyle, food». Leave empty for all categories.', 'revision' ),
|
||||
'section' => 'header',
|
||||
'default' => '',
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'header_search_button',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
array(
|
||||
'setting' => 'header_search_show_categories',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'number',
|
||||
'settings' => 'header_search_categories_limit',
|
||||
'label' => esc_html__( 'Limit', 'revision' ),
|
||||
'section' => 'header',
|
||||
'default' => 4,
|
||||
'input_attrs' => array(
|
||||
'min' => 1,
|
||||
'max' => 99,
|
||||
'step' => 1,
|
||||
),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'header_search_button',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
array(
|
||||
'setting' => 'header_search_show_categories',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
array(
|
||||
'setting' => 'header_search_filter_categories',
|
||||
'operator' => '==',
|
||||
'value' => '',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'collapsible',
|
||||
'settings' => 'header_collapsible_custom_button',
|
||||
'section' => 'header',
|
||||
'label' => esc_html__( 'Custom Button', 'revision' ),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'header_custom_button',
|
||||
'label' => esc_html__( 'Display custom button', 'revision' ),
|
||||
'section' => 'header',
|
||||
'default' => false,
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'text',
|
||||
'settings' => 'header_custom_button_label',
|
||||
'label' => esc_html__( 'Button Label', 'revision' ),
|
||||
'section' => 'header',
|
||||
'default' => '',
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'header_custom_button',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'text',
|
||||
'settings' => 'header_custom_button_link',
|
||||
'label' => esc_html__( 'Button Link', 'revision' ),
|
||||
'section' => 'header',
|
||||
'default' => '',
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'header_custom_button',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'select',
|
||||
'settings' => 'header_custom_button_target',
|
||||
'section' => 'header',
|
||||
'label' => esc_html__( 'Target', 'revision' ),
|
||||
'default' => '_self',
|
||||
'choices' => array(
|
||||
'_self' => esc_html__( 'In the active tab', 'revision' ),
|
||||
'_blank' => esc_html__( 'In a new tab', 'revision' ),
|
||||
),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
array(
|
||||
'setting' => 'header_custom_button',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
1600
inc/theme-mods/homepage-settings.php
Normal file
1600
inc/theme-mods/homepage-settings.php
Normal file
File diff suppressed because it is too large
Load Diff
1261
inc/theme-mods/miscellaneous-settings.php
Normal file
1261
inc/theme-mods/miscellaneous-settings.php
Normal file
File diff suppressed because it is too large
Load Diff
68
inc/theme-mods/page-settings.php
Normal file
68
inc/theme-mods/page-settings.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
/**
|
||||
* Page Settings
|
||||
*
|
||||
* @package Revision
|
||||
*/
|
||||
|
||||
CSCO_Customizer::add_section(
|
||||
'page_settings',
|
||||
array(
|
||||
'title' => esc_html__( 'Page Settings', 'revision' ),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'radio',
|
||||
'settings' => 'page_sidebar',
|
||||
'label' => esc_html__( 'Default Sidebar', 'revision' ),
|
||||
'section' => 'page_settings',
|
||||
'default' => 'disabled',
|
||||
'choices' => array(
|
||||
'right' => esc_html__( 'Right Sidebar', 'revision' ),
|
||||
'left' => esc_html__( 'Left Sidebar', 'revision' ),
|
||||
'disabled' => esc_html__( 'No Sidebar', 'revision' ),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'radio',
|
||||
'settings' => 'page_header_type',
|
||||
'label' => esc_html__( 'Page Header Type', 'revision' ),
|
||||
'section' => 'page_settings',
|
||||
'default' => 'standard',
|
||||
'choices' => array(
|
||||
'standard' => esc_html__( 'Standard', 'revision' ),
|
||||
'split' => esc_html__( 'Split', 'revision' ),
|
||||
'overlay' => esc_html__( 'Overlay', 'revision' ),
|
||||
'title' => esc_html__( 'Page Title Only', 'revision' ),
|
||||
'none' => esc_html__( 'None', 'revision' ),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'radio',
|
||||
'settings' => 'page_media_preview',
|
||||
'label' => esc_html__( 'Standard Page Header Preview', 'revision' ),
|
||||
'section' => 'page_settings',
|
||||
'default' => 'cropped',
|
||||
'choices' => array(
|
||||
'cropped' => esc_html__( 'Display Cropped Image', 'revision' ),
|
||||
'uncropped' => esc_html__( 'Display Preview in Original Ratio', 'revision' ),
|
||||
),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
array(
|
||||
'setting' => 'page_header_type',
|
||||
'operator' => '==',
|
||||
'value' => 'standard',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
387
inc/theme-mods/post-settings.php
Normal file
387
inc/theme-mods/post-settings.php
Normal file
@@ -0,0 +1,387 @@
|
||||
<?php
|
||||
/**
|
||||
* Post Settings
|
||||
*
|
||||
* @package Revision
|
||||
*/
|
||||
|
||||
CSCO_Customizer::add_section(
|
||||
'post_settings',
|
||||
array(
|
||||
'title' => esc_html__( 'Post Settings', 'revision' ),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'collapsible',
|
||||
'settings' => 'post_collapsible_common',
|
||||
'section' => 'post_settings',
|
||||
'label' => esc_html__( 'Common', 'revision' ),
|
||||
'input_attrs' => array(
|
||||
'collapsed' => true,
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'radio',
|
||||
'settings' => 'post_sidebar',
|
||||
'label' => esc_html__( 'Default Sidebar', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => 'right',
|
||||
'choices' => array(
|
||||
'right' => esc_html__( 'Right Sidebar', 'revision' ),
|
||||
'left' => esc_html__( 'Left Sidebar', 'revision' ),
|
||||
'disabled' => esc_html__( 'No Sidebar', 'revision' ),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'radio',
|
||||
'settings' => 'post_header_type',
|
||||
'label' => esc_html__( 'Default Page Header Type', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => 'standard',
|
||||
'choices' => array(
|
||||
'standard' => esc_html__( 'Standard', 'revision' ),
|
||||
'split' => esc_html__( 'Split', 'revision' ),
|
||||
'overlay' => esc_html__( 'Overlay', 'revision' ),
|
||||
'title' => esc_html__( 'Page Title Only', 'revision' ),
|
||||
'none' => esc_html__( 'None', 'revision' ),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'radio',
|
||||
'settings' => 'post_media_preview',
|
||||
'label' => esc_html__( 'Standard Page Header Preview', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => 'cropped',
|
||||
'choices' => array(
|
||||
'cropped' => esc_html__( 'Display Cropped Image', 'revision' ),
|
||||
'uncropped' => esc_html__( 'Display Preview in Original Ratio', 'revision' ),
|
||||
),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
array(
|
||||
'setting' => 'post_header_type',
|
||||
'operator' => '==',
|
||||
'value' => 'standard',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'multicheck',
|
||||
'settings' => 'post_meta',
|
||||
'label' => esc_html__( 'Post Meta', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => array( 'category', 'date', 'author' ),
|
||||
/**
|
||||
* Post meta choices.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
'choices' => apply_filters(
|
||||
'csco_post_meta_choices',
|
||||
array(
|
||||
'category' => esc_html__( 'Category', 'revision' ),
|
||||
'date' => esc_html__( 'Date', 'revision' ),
|
||||
'author' => esc_html__( 'Author', 'revision' ),
|
||||
'comments' => esc_html__( 'Comments', 'revision' ),
|
||||
'views' => esc_html__( 'Views', 'revision' ),
|
||||
)
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'post_metabar',
|
||||
'label' => esc_html__( 'Display metabar section', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => true,
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'post_reading_time',
|
||||
'label' => esc_html__( 'Display reading time', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => true,
|
||||
'active_callback' => array(
|
||||
array(
|
||||
array(
|
||||
'setting' => 'post_metabar',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'post_subtitle',
|
||||
'label' => esc_html__( 'Display excerpt as post subtitle', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => true,
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'post_tags',
|
||||
'label' => esc_html__( 'Display tags', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => true,
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'post_footer',
|
||||
'label' => esc_html__( 'Display post footer', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => true,
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'post_prev_next',
|
||||
'label' => esc_html__( 'Enable prev/next section', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => true,
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'collapsible',
|
||||
'settings' => 'post_collapsible_read_next',
|
||||
'section' => 'post_settings',
|
||||
'label' => esc_html__( 'Read Next Links', 'revision' ),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'post_read_next',
|
||||
'label' => esc_html__( 'Display read next links', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => true,
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'select',
|
||||
'settings' => 'post_read_next_posts',
|
||||
'label' => esc_html__( 'Display posts', 'revision' ),
|
||||
'description' => esc_html__( 'The section will display posts from the current category, published after the current post\'s date, before it, or the newest posts. In case fewer than tree or four posts meet the requirements, the section will display other posts from the current category. In case there are fewer than three or four posts in the current category, the section will display posts from other categories.', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => 'after',
|
||||
'choices' => apply_filters(
|
||||
'csco_header_layouts',
|
||||
array(
|
||||
'after' => esc_html__( 'After current post date', 'revision' ),
|
||||
'before' => esc_html__( 'Before current post date', 'revision' ),
|
||||
'new' => esc_html__( 'Newest posts', 'revision' ),
|
||||
)
|
||||
),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'post_read_next',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'select',
|
||||
'settings' => 'post_read_next_image_orientation',
|
||||
'label' => esc_html__( 'Image Orientation', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => 'landscape-16-9',
|
||||
'choices' => array(
|
||||
'original' => esc_html__( 'Original', 'revision' ),
|
||||
'landscape' => esc_html__( 'Landscape 4:3', 'revision' ),
|
||||
'landscape-3-2' => esc_html__( 'Landscape 3:2', 'revision' ),
|
||||
'landscape-16-9' => esc_html__( 'Landscape 16:9', 'revision' ),
|
||||
'landscape-21-9' => esc_html__( 'Landscape 21:9', 'revision' ),
|
||||
'portrait' => esc_html__( 'Portrait 3:4', 'revision' ),
|
||||
'portrait-2-3' => esc_html__( 'Portrait 2:3', 'revision' ),
|
||||
'square' => esc_html__( 'Square', 'revision' ),
|
||||
),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'post_read_next',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'select',
|
||||
'settings' => 'post_read_next_image_size',
|
||||
'label' => esc_html__( 'Image Size', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => 'csco-thumbnail',
|
||||
'choices' => csco_get_list_available_image_sizes(),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'post_read_next',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'read_next_excerpt',
|
||||
'label' => esc_html__( 'Display excerpt', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => true,
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'post_read_next',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'read_next_discover_more',
|
||||
'label' => esc_html__( 'Display discover more', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => false,
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'post_read_next',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'multicheck',
|
||||
'settings' => 'post_read_next_meta',
|
||||
'label' => esc_html__( 'Post Meta', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => array( 'category', 'date', 'author', 'reading_time' ),
|
||||
/**
|
||||
* Post meta choices.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
'choices' => apply_filters(
|
||||
'csco_post_meta_choices',
|
||||
array(
|
||||
'category' => esc_html__( 'Category', 'revision' ),
|
||||
'reading_time' => esc_html__( 'Reading time', 'revision' ),
|
||||
'date' => esc_html__( 'Date', 'revision' ),
|
||||
'author' => esc_html__( 'Author', 'revision' ),
|
||||
'comments' => esc_html__( 'Comments', 'revision' ),
|
||||
'views' => esc_html__( 'Views', 'revision' ),
|
||||
)
|
||||
),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'post_read_next',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
// Auto Load next post.
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'collapsible',
|
||||
'settings' => 'post_collapsible_load_nextpost',
|
||||
'section' => 'post_settings',
|
||||
'label' => esc_html__( 'Auto Load Next Post', 'revision' ),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'post_load_nextpost',
|
||||
'label' => esc_html__( 'Enable the auto load next post feature', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => false,
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'post_load_nextpost_same_category',
|
||||
'label' => esc_html__( 'Auto load posts from the same category only', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => false,
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'post_load_nextpost',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'post_load_nextpost_reverse',
|
||||
'label' => esc_html__( 'Auto load previous posts instead of next ones', 'revision' ),
|
||||
'section' => 'post_settings',
|
||||
'default' => false,
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'post_load_nextpost',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
72
inc/theme-mods/site-identity.php
Normal file
72
inc/theme-mods/site-identity.php
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
/**
|
||||
* Site Identity
|
||||
*
|
||||
* @package Revision
|
||||
*/
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'title_tag',
|
||||
'label' => esc_html__( 'Use H1 tag for Logo on Homepage', 'revision' ),
|
||||
'section' => 'title_tagline',
|
||||
'default' => true,
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'image',
|
||||
'settings' => 'logo',
|
||||
'label' => esc_html__( 'Main Logo', 'revision' ),
|
||||
'description' => esc_html__( 'The main logo is used in the navigation bar and mobile view of your website. Logo image will be displayed in its original image dimensions. Please upload the 2x version of your logo via Media Library with ', 'revision' ) . '<code>@2x</code>' . esc_html__( ' suffix for supporting Retina screens. For example ', 'revision' ) . '<code>logo@2x.png</code>' . esc_html__( '. Recommended maximum height is 40px (80px for Retina version).', 'revision' ),
|
||||
'section' => 'title_tagline',
|
||||
'default' => '',
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'image',
|
||||
'settings' => 'logo_dark',
|
||||
'label' => esc_html__( 'Main Logo for Dark Mode', 'revision' ),
|
||||
'section' => 'title_tagline',
|
||||
'default' => '',
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'logo',
|
||||
'operator' => '!=',
|
||||
'value' => '',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'image',
|
||||
'settings' => 'footer_logo',
|
||||
'label' => esc_html__( 'Footer Logo', 'revision' ),
|
||||
'description' => esc_html__( 'The footer logo is used in the site footer in desktop and mobile view. Similar to the main logo, upload the 2x version of your logo via Media Library with ', 'revision' ) . '<code>@2x</code>' . esc_html__( ' suffix for supporting Retina screens. For example ', 'revision' ) . '<code>logo-footer@2x.png</code>' . esc_html__( '. Recommended maximum height is 80px (160px for Retina version).', 'revision' ),
|
||||
'section' => 'title_tagline',
|
||||
'default' => '',
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'image',
|
||||
'settings' => 'footer_logo_dark',
|
||||
'label' => esc_html__( 'Footer Logo for Dark Mode', 'revision' ),
|
||||
'section' => 'title_tagline',
|
||||
'default' => '',
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'footer_logo',
|
||||
'operator' => '!=',
|
||||
'value' => '',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
708
inc/theme-mods/typography-settings.php
Normal file
708
inc/theme-mods/typography-settings.php
Normal file
@@ -0,0 +1,708 @@
|
||||
<?php
|
||||
/**
|
||||
* Typography
|
||||
*
|
||||
* @package Revision
|
||||
*/
|
||||
|
||||
CSCO_Customizer::add_panel(
|
||||
'typography',
|
||||
array(
|
||||
'title' => esc_html__( 'Typography', 'revision' ),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_section(
|
||||
'typography_general',
|
||||
array(
|
||||
'title' => esc_html__( 'General', 'revision' ),
|
||||
'panel' => 'typography',
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_base',
|
||||
'label' => esc_html__( 'Base Font', 'revision' ),
|
||||
'section' => 'typography_general',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'variant' => '400',
|
||||
'subsets' => array( 'latin' ),
|
||||
'font-size' => '1rem',
|
||||
'letter-spacing' => 'normal',
|
||||
'line-height' => '1.55',
|
||||
),
|
||||
'choices' => array(
|
||||
'variant' => array(
|
||||
'regular',
|
||||
'italic',
|
||||
'500italic',
|
||||
'500',
|
||||
'700',
|
||||
'700italic',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_primary',
|
||||
'label' => esc_html__( 'Primary Font', 'revision' ),
|
||||
'description' => esc_html__( 'Used for buttons, and tags and other actionable elements.', 'revision' ),
|
||||
'section' => 'typography_general',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'variant' => '800',
|
||||
'subsets' => array( 'latin' ),
|
||||
'font-size' => '1rem',
|
||||
'letter-spacing' => '-0.03em',
|
||||
'text-transform' => 'none',
|
||||
'line-height' => '1.2',
|
||||
),
|
||||
'choices' => array(
|
||||
'variant' => array(
|
||||
'regular',
|
||||
'italic',
|
||||
'500',
|
||||
'500italic',
|
||||
'700',
|
||||
'700italic',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_secondary',
|
||||
'label' => esc_html__( 'Secondary Font', 'revision' ),
|
||||
'description' => esc_html__( 'Used for breadcrumbs and other secondary elements.', 'revision' ),
|
||||
'section' => 'typography_general',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'variant' => '400',
|
||||
'subsets' => array( 'latin' ),
|
||||
'font-size' => '0.875rem',
|
||||
'letter-spacing' => 'normal',
|
||||
'text-transform' => 'none',
|
||||
'line-height' => '1.55',
|
||||
),
|
||||
'choices' => array(
|
||||
'variant' => array(
|
||||
'regular',
|
||||
'italic',
|
||||
'500',
|
||||
'500italic',
|
||||
'700',
|
||||
'700italic',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'checkbox',
|
||||
'settings' => 'typography_advanced_settings',
|
||||
'label' => esc_html__( 'Display advanced typography settings', 'revision' ),
|
||||
'section' => 'typography_general',
|
||||
'default' => false,
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_section_headings',
|
||||
'label' => esc_html__( 'Section Headings Font', 'revision' ),
|
||||
'section' => 'typography_general',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'variant' => '800',
|
||||
'subsets' => array( 'latin' ),
|
||||
'font-size' => '0.75rem',
|
||||
'letter-spacing' => '0.1em',
|
||||
'text-transform' => 'uppercase',
|
||||
'line-height' => '1.2',
|
||||
),
|
||||
'choices' => array(
|
||||
'variant' => array(
|
||||
'regular',
|
||||
'italic',
|
||||
'700',
|
||||
'700italic',
|
||||
),
|
||||
),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'typography_advanced_settings',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_post_title',
|
||||
'label' => esc_html__( 'Post Title Font', 'revision' ),
|
||||
'section' => 'typography_general',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'variant' => '700',
|
||||
'subsets' => array( 'latin' ),
|
||||
'font-size' => '3.25rem',
|
||||
'letter-spacing' => '-0.05em',
|
||||
'line-height' => '1.2',
|
||||
),
|
||||
'choices' => array(
|
||||
'variant' => array(
|
||||
'regular',
|
||||
'italic',
|
||||
'500',
|
||||
'500italic',
|
||||
'700',
|
||||
'700italic',
|
||||
),
|
||||
),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'typography_advanced_settings',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_post_subtitle',
|
||||
'label' => esc_html__( 'Post Subtitle Font', 'revision' ),
|
||||
'section' => 'typography_general',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'variant' => '400',
|
||||
'subsets' => array( 'latin' ),
|
||||
'font-size' => '1.125rem',
|
||||
'letter-spacing' => 'normal',
|
||||
'line-height' => '1.55',
|
||||
),
|
||||
'choices' => array(
|
||||
'variant' => array(
|
||||
'regular',
|
||||
'italic',
|
||||
'500italic',
|
||||
'500',
|
||||
'700',
|
||||
'700italic',
|
||||
),
|
||||
),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'typography_advanced_settings',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_category',
|
||||
'label' => esc_html__( 'Post Category Font', 'revision' ),
|
||||
'section' => 'typography_general',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'variant' => '800',
|
||||
'subsets' => array( 'latin' ),
|
||||
'font-size' => '0.6875rem',
|
||||
'letter-spacing' => '0.1em',
|
||||
'text-transform' => 'uppercase',
|
||||
'line-height' => '1.2',
|
||||
),
|
||||
'choices' => array(),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'typography_advanced_settings',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_post_meta',
|
||||
'label' => esc_html__( 'Post Meta Font', 'revision' ),
|
||||
'section' => 'typography_general',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'variant' => '600',
|
||||
'subsets' => array( 'latin' ),
|
||||
'font-size' => '0.9375rem',
|
||||
'letter-spacing' => '-0.02em',
|
||||
'text-transform' => 'none',
|
||||
'line-height' => '1.2',
|
||||
),
|
||||
'choices' => array(
|
||||
'variant' => array(
|
||||
'regular',
|
||||
'italic',
|
||||
'500',
|
||||
'500italic',
|
||||
'700',
|
||||
'700italic',
|
||||
),
|
||||
),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'typography_advanced_settings',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_post_content',
|
||||
'label' => esc_html__( 'Post Content Font', 'revision' ),
|
||||
'section' => 'typography_general',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'variant' => '400',
|
||||
'subsets' => array( 'latin' ),
|
||||
'font-size' => '1.125rem',
|
||||
'letter-spacing' => 'normal',
|
||||
'line-height' => '1.55',
|
||||
),
|
||||
'choices' => array(
|
||||
'variant' => array(
|
||||
'regular',
|
||||
'italic',
|
||||
'500',
|
||||
'500italic',
|
||||
'700',
|
||||
'700italic',
|
||||
),
|
||||
),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'typography_advanced_settings',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_input',
|
||||
'label' => esc_html__( 'Input Font', 'revision' ),
|
||||
'section' => 'typography_general',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'variant' => '400',
|
||||
'subsets' => array( 'latin' ),
|
||||
'font-size' => '0.875rem',
|
||||
'line-height' => '1.55rem',
|
||||
'letter-spacing' => 'normal',
|
||||
'text-transform' => 'none',
|
||||
),
|
||||
'choices' => array(),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'typography_advanced_settings',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_entry_title',
|
||||
'label' => esc_html__( 'Entry Title Font', 'revision' ),
|
||||
'section' => 'typography_general',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'variant' => '700',
|
||||
'subsets' => array( 'latin' ),
|
||||
'letter-spacing' => '-0.04em',
|
||||
'line-height' => '1.2',
|
||||
),
|
||||
'choices' => array(
|
||||
'variant' => array(
|
||||
'regular',
|
||||
'italic',
|
||||
'500',
|
||||
'500italic',
|
||||
'700',
|
||||
'700italic',
|
||||
),
|
||||
),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'typography_advanced_settings',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_excerpt',
|
||||
'label' => esc_html__( 'Entry Excerpt Font', 'revision' ),
|
||||
'section' => 'typography_general',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'variant' => '400',
|
||||
'subsets' => array( 'latin' ),
|
||||
'font-size' => '1rem',
|
||||
'letter-spacing' => 'normal',
|
||||
'line-height' => '1.55',
|
||||
),
|
||||
'choices' => array(
|
||||
'variant' => array(
|
||||
'regular',
|
||||
'italic',
|
||||
'500',
|
||||
'500italic',
|
||||
'600',
|
||||
'700',
|
||||
'700italic',
|
||||
),
|
||||
),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'typography_advanced_settings',
|
||||
'operator' => '==',
|
||||
'value' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_section(
|
||||
'typography_logos',
|
||||
array(
|
||||
'title' => esc_html__( 'Logos', 'revision' ),
|
||||
'panel' => 'typography',
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_main_logo',
|
||||
'label' => esc_html__( 'Main Logo', 'revision' ),
|
||||
'description' => esc_html__( 'The main logo is used in the navigation bar and mobile view of your website.', 'revision' ),
|
||||
'section' => 'typography_logos',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'font-size' => '1.375rem',
|
||||
'variant' => '700',
|
||||
'subsets' => array( 'latin' ),
|
||||
'letter-spacing' => '-0.04em',
|
||||
'text-transform' => 'none',
|
||||
),
|
||||
'choices' => array(),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'logo',
|
||||
'operator' => '==',
|
||||
'value' => '',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_footer_logo',
|
||||
'label' => esc_html__( 'Footer Logo', 'revision' ),
|
||||
'description' => esc_html__( 'The footer logo is used in the site footer in desktop and mobile view.', 'revision' ),
|
||||
'section' => 'typography_logos',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'font-size' => '1.375rem',
|
||||
'variant' => '700',
|
||||
'subsets' => array( 'latin' ),
|
||||
'letter-spacing' => '-0.04em',
|
||||
'text-transform' => 'none',
|
||||
),
|
||||
'choices' => array(),
|
||||
'active_callback' => array(
|
||||
array(
|
||||
'setting' => 'footer_logo',
|
||||
'operator' => '==',
|
||||
'value' => '',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_section(
|
||||
'typography_headings',
|
||||
array(
|
||||
'title' => esc_html__( 'Headings', 'revision' ),
|
||||
'panel' => 'typography',
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_headings',
|
||||
'label' => esc_html__( 'Headings', 'revision' ),
|
||||
'section' => 'typography_headings',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'variant' => '700',
|
||||
'subsets' => array( 'latin' ),
|
||||
'letter-spacing' => '-0.04em',
|
||||
'text-transform' => 'none',
|
||||
'line-height' => '1.2',
|
||||
),
|
||||
'choices' => array(
|
||||
'variant' => array(
|
||||
'regular',
|
||||
'italic',
|
||||
'500',
|
||||
'500italic',
|
||||
'700',
|
||||
'700italic',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'collapsible',
|
||||
'settings' => 'typography_headings_collapsible',
|
||||
'section' => 'typography_headings',
|
||||
'label' => esc_html__( 'Headings Font Size', 'revision' ),
|
||||
'input_attrs' => array(
|
||||
'collapsed' => false,
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'dimension',
|
||||
'settings' => 'font_h1_size',
|
||||
'label' => esc_html__( 'Heading 1', 'revision' ),
|
||||
'section' => 'typography_headings',
|
||||
'default' => '3.25rem',
|
||||
'sanitize_callback' => 'esc_html',
|
||||
'output' => array(
|
||||
array(
|
||||
'element' => ':root',
|
||||
'property' => '--cs-heading-1-font-size',
|
||||
'context' => array( 'editor', 'front' ),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'dimension',
|
||||
'settings' => 'font_h2_size',
|
||||
'label' => esc_html__( 'Heading 2', 'revision' ),
|
||||
'section' => 'typography_headings',
|
||||
'default' => '2.625rem',
|
||||
'sanitize_callback' => 'esc_html',
|
||||
'output' => array(
|
||||
array(
|
||||
'element' => ':root',
|
||||
'property' => '--cs-heading-2-font-size',
|
||||
'context' => array( 'editor', 'front' ),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'dimension',
|
||||
'settings' => 'font_h3_size',
|
||||
'label' => esc_html__( 'Heading 3', 'revision' ),
|
||||
'section' => 'typography_headings',
|
||||
'default' => '2.0625rem',
|
||||
'sanitize_callback' => 'esc_html',
|
||||
'output' => array(
|
||||
array(
|
||||
'element' => ':root',
|
||||
'property' => '--cs-heading-3-font-size',
|
||||
'context' => array( 'editor', 'front' ),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'dimension',
|
||||
'settings' => 'font_h4_size',
|
||||
'label' => esc_html__( 'Heading 4', 'revision' ),
|
||||
'section' => 'typography_headings',
|
||||
'default' => '1.5rem',
|
||||
'sanitize_callback' => 'esc_html',
|
||||
'output' => array(
|
||||
array(
|
||||
'element' => ':root',
|
||||
'property' => '--cs-heading-4-font-size',
|
||||
'context' => array( 'editor', 'front' ),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'dimension',
|
||||
'settings' => 'font_h5_size',
|
||||
'label' => esc_html__( 'Heading 5', 'revision' ),
|
||||
'section' => 'typography_headings',
|
||||
'default' => '1.3125rem',
|
||||
'sanitize_callback' => 'esc_html',
|
||||
'output' => array(
|
||||
array(
|
||||
'element' => ':root',
|
||||
'property' => '--cs-heading-5-font-size',
|
||||
'context' => array( 'editor', 'front' ),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'dimension',
|
||||
'settings' => 'font_h6_size',
|
||||
'label' => esc_html__( 'Heading 6', 'revision' ),
|
||||
'section' => 'typography_headings',
|
||||
'default' => '1.125rem',
|
||||
'sanitize_callback' => 'esc_html',
|
||||
'output' => array(
|
||||
array(
|
||||
'element' => ':root',
|
||||
'property' => '--cs-heading-6-font-size',
|
||||
'context' => array( 'editor', 'front' ),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_section(
|
||||
'typography_navigation',
|
||||
array(
|
||||
'title' => esc_html__( 'Navigation', 'revision' ),
|
||||
'panel' => 'typography',
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_menu',
|
||||
'label' => esc_html__( 'Menu Font', 'revision' ),
|
||||
'description' => esc_html__( 'Used for main top level menu elements.', 'revision' ),
|
||||
'section' => 'typography_navigation',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'variant' => '600',
|
||||
'subsets' => array( 'latin' ),
|
||||
'font-size' => '1rem',
|
||||
'letter-spacing' => '-0.03em',
|
||||
'text-transform' => 'none',
|
||||
'line-height' => '1.2',
|
||||
),
|
||||
'choices' => array(),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_submenu',
|
||||
'label' => esc_html__( 'Submenu Font', 'revision' ),
|
||||
'description' => esc_html__( 'Used for submenu elements.', 'revision' ),
|
||||
'section' => 'typography_navigation',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'subsets' => array( 'latin' ),
|
||||
'variant' => '600',
|
||||
'font-size' => '1rem',
|
||||
'letter-spacing' => '-0.03em',
|
||||
'text-transform' => 'none',
|
||||
'line-height' => '1.2',
|
||||
),
|
||||
'choices' => array(),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_footer_menu',
|
||||
'label' => esc_html__( 'Footer Menu Font', 'revision' ),
|
||||
'section' => 'typography_navigation',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'variant' => '800',
|
||||
'subsets' => array( 'latin' ),
|
||||
'font-size' => '0.75rem',
|
||||
'letter-spacing' => '0.1em',
|
||||
'text-transform' => 'uppercase',
|
||||
'line-height' => '1.2',
|
||||
),
|
||||
'choices' => array(),
|
||||
)
|
||||
);
|
||||
|
||||
CSCO_Customizer::add_field(
|
||||
array(
|
||||
'type' => 'typography',
|
||||
'settings' => 'font_footer_submenu',
|
||||
'label' => esc_html__( 'Footer Submenu Font', 'revision' ),
|
||||
'section' => 'typography_navigation',
|
||||
'default' => array(
|
||||
'font-family' => 'DM Sans',
|
||||
'subsets' => array( 'latin' ),
|
||||
'variant' => '600',
|
||||
'font-size' => '1rem',
|
||||
'letter-spacing' => '-0.03em',
|
||||
'text-transform' => 'none',
|
||||
'line-height' => '1.2',
|
||||
),
|
||||
'choices' => array(),
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user