????JFIF??x?x????'
| Server IP : 104.21.30.238 / Your IP : 216.73.216.87 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././././home/tempvsty/dchs84reunion.com/wp-content/themes/celebration/php/ |
Upload File : |
<?php
if ( ! class_exists( 'BoldThemes_Customize_Default' ) ) {
class BoldThemes_Customize_Default {
// GENERAL SETTINGS
public static $logo = '';
public static $alt_logo = '';
public static $logo_invert = false;
public static $page_background = '';
public static $menu_type = 'hRight';
public static $boxed_menu = true;
public static $below_menu = false;
public static $top_tools_in_menu = false;
public static $hide_headline = false;
public static $sticky_header = false;
public static $hide_menu = false;
public static $template_skin = false;
public static $footer_dark_skin = false;
public static $sidebar = 'right';
public static $sidebar_use_dash = true;
public static $accent_color = '';
public static $disable_preloader = true;
public static $preloader_text = '';
public static $autoplay_interval = '';
public static $custom_css = '';
public static $custom_js_top = '';
public static $custom_js_bottom = '';
public static $custom_text = '';
public static $footer_title_text = '';
public static $footer_supertitle_text = '';
// TYPO
public static $body_font = 'no_change';
public static $menu_font = 'no_change';
public static $heading_font = 'no_change';
public static $heading_supertitle_font = 'no_change';
public static $heading_subtitle_font = 'no_change';
// BLOG
public static $blog_ghost_slider = false;
public static $blog_grid_gallery_columns = '4';
public static $blog_grid_gallery_gap = '0';
public static $blog_single_view = 'standard';
public static $blog_list_view = 'standard';
public static $blog_author = true;
public static $blog_date = true;
public static $blog_side_info = false;
public static $blog_author_info = false;
public static $blog_share_facebook = true;
public static $blog_share_twitter = true;
public static $blog_share_whatsapp = true;
public static $blog_share_linkedin = true;
public static $blog_share_vk = true;
public static $blog_use_dash = true;
public static $sticky_in_grid = false;
public static $blog_settings_page_slug = '';
// PORTFOLIO
public static $pf_ghost_slider = true;
public static $pf_grid_gallery_columns = '3';
public static $pf_grid_gallery_gap = '0';
public static $pf_single_view = 'standard';
public static $pf_share_facebook = true;
public static $pf_share_twitter = true;
public static $pf_share_whatsapp = true;
public static $pf_share_linkedin = true;
public static $pf_share_vk = true;
public static $pf_use_dash = true;
public static $pf_settings_page_slug = '';
// SHOP
public static $shop_share_facebook = true;
public static $shop_share_twitter = true;
public static $shop_share_whatsapp = true;
public static $shop_share_linkedin = true;
public static $shop_share_vk = true;
public static $shop_use_dash = true;
public static $shop_settings_page_slug = '';
}
}
if ( ! function_exists( 'boldthemes_get_option' ) ) {
function boldthemes_get_option( $opt ) {
global $boldthemes_options;
global $boldthemes_page_options;
if ( isset( BoldThemes_Customize_Default::$$opt ) ) {
if ( isset( $_GET[ $opt ] ) ) {
$ret = $_GET[ $opt ];
if ( $ret === 'true' ) {
$ret = true;
} else if ( $ret === 'false' ) {
$ret = false;
}
return $ret;
}
}
if ( $boldthemes_page_options !== null && array_key_exists( BoldThemesPFX . '_' . $opt, $boldthemes_page_options ) && $boldthemes_page_options[ BoldThemesPFX . '_' . $opt ] === 'null' ) {
return BoldThemes_Customize_Default::$$opt;
}
if ( $boldthemes_page_options !== null && array_key_exists( BoldThemesPFX . '_' . $opt, $boldthemes_page_options ) ) {
$ret = $boldthemes_page_options[ BoldThemesPFX . '_' . $opt ];
if ( $ret === 'true' ) {
$ret = true;
} else if ( $ret === 'false' ) {
$ret = false;
}
return $ret;
}
if ( $boldthemes_options !== null && $boldthemes_options !== false && array_key_exists( $opt, $boldthemes_options ) ) {
$ret = $boldthemes_options[ $opt ];
if ( $ret === 'true' ) {
$ret = true;
} else if ( $ret === 'false' ) {
$ret = false;
}
return $ret;
} else {
if ( $boldthemes_options !== null ) {
return BoldThemes_Customize_Default::$$opt;
} else {
$boldthemes_options = get_option( BoldThemesPFX . '_theme_options' );
if ( is_array( $boldthemes_options ) && array_key_exists( $opt, $boldthemes_options ) ) {
$ret = $boldthemes_options[ $opt ];
if ( $ret === 'true' ) {
$ret = true;
} else if ( $ret === 'false' ) {
$ret = false;
}
return $ret;
} else {
return BoldThemes_Customize_Default::$$opt;
}
}
}
}
}
if ( ! function_exists( 'boldthemes_custom_controls' ) ) {
function boldthemes_custom_controls() {
class BoldThemes_Customize_Textarea_Control extends WP_Customize_Control {
public function render_content() {
?>
<label>
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
<textarea rows="5" style="width:98%;" <?php $this->link(); ?>><?php echo esc_textarea( $this->value()); ?></textarea>
</label>
<?php
}
}
class BoldThemes_Reset_Control extends WP_Customize_Control {
public function render_content() {
?>
<div style="margin: 5px 0px 10px 0px">
<label><span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span></label>
<input type="submit" onclick="var c = confirm('<?php echo esc_js( esc_html__( 'Reset theme settings to default values?', 'celebration' ) ); ?>'); if (c != true) return false;var href=window.location.href;if (href.indexOf('?') > -1) {window.location.replace(href + '&boldthemes_reset=reset')} else {window.location.replace(href + '?boldthemes_reset=reset')};return false;" name="boldthemes_reset" id="boldthemes_reset" class="button" value="Reset">
</div>
<?php
}
}
}
}
add_action( 'customize_register', 'boldthemes_custom_controls' );
if ( ! function_exists( 'boldthemes_customize_register' ) ) {
function boldthemes_customize_register( $wp_customize ) {
global $wpdb;
if ( isset( $_GET['boldthemes_reset'] ) && $_GET['boldthemes_reset'] == 'reset' ) {
$wpdb->query( 'delete from ' . $wpdb->options . ' where option_name = "' . BoldThemesPFX . '_theme_options"' );
header( 'Location: ' . wp_customize_url());
}
$wp_customize->remove_section( 'colors' );
//$wp_customize->remove_section( 'title_tagline' );
$wp_customize->remove_section( 'nav' );
$wp_customize->remove_section( 'static_front_page' );
$wp_customize->add_section( BoldThemesPFX . '_general_section' , array(
'title' => esc_html__( 'General Settings', 'celebration' ),
'priority' => 10,
));
$wp_customize->add_section( BoldThemesPFX . '_header_footer_section' , array(
'title' => esc_html__( 'Header and Footer', 'celebration' ),
'priority' => 30,
));
$wp_customize->add_section( BoldThemesPFX . '_typo_section' , array(
'title' => esc_html__( 'Typography', 'celebration' ),
'priority' => 30,
));
$wp_customize->add_section( BoldThemesPFX . '_blog_section' , array(
'title' => esc_html__( 'Blog', 'celebration' ),
'priority' => 50,
));
$wp_customize->add_section( BoldThemesPFX . '_pf_section' , array(
'title' => esc_html__( 'Portfolio', 'celebration' ),
'priority' => 52,
));
$wp_customize->add_section( BoldThemesPFX . '_shop_section' , array(
'title' => esc_html__( 'Shop', 'celebration' ),
'priority' => 100,
));
/* GENERAL SETTINGS */
// LOGO
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[logo]', array(
'default' => BoldThemes_Customize_Default::$logo,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control(
new WP_Customize_Image_Control(
$wp_customize,
'logo',
array(
'label' => esc_html__( 'Logo', 'celebration' ),
'section' => BoldThemesPFX . '_general_section',
'settings' => BoldThemesPFX . '_theme_options[logo]',
'priority' => 20,
'context' => BoldThemesPFX . '_logo'
)
)
);
// ALTERNATIVE LOGO
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[alt_logo]', array(
'default' => BoldThemes_Customize_Default::$alt_logo,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control(
new WP_Customize_Image_Control(
$wp_customize,
'alt_logo',
array(
'label' => esc_html__( 'Alternative Logo', 'celebration' ),
'section' => BoldThemesPFX . '_general_section',
'settings' => BoldThemesPFX . '_theme_options[alt_logo]',
'priority' => 22,
'context' => BoldThemesPFX . '_alt_logo'
)
)
);
// INVERT LOGO
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[logo_invert]', array(
'default' => BoldThemes_Customize_Default::$logo_invert,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'logo_invert', array(
'label' => esc_html__( 'Invert Logo/Alternative Logo', 'celebration' ),
'section' => BoldThemesPFX . '_general_section',
'settings' => BoldThemesPFX . '_theme_options[logo_invert]',
'priority' => 24,
'type' => 'checkbox'
));
// ACCENT COLOR
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[accent_color]', array(
'default' => BoldThemes_Customize_Default::$accent_color,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'accent_color', array(
'label' => esc_html__( 'Accent Color', 'celebration' ),
'section' => BoldThemesPFX . '_general_section',
'settings' => BoldThemesPFX . '_theme_options[accent_color]',
'priority' => 26,
'context' => BoldThemesPFX . '_accent_color'
)));
// PAGE BACKGROUND
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[page_background]', array(
'default' => BoldThemes_Customize_Default::$page_background,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control(
new WP_Customize_Image_Control(
$wp_customize,
'page_background',
array(
'label' => esc_html__( 'Page Background', 'celebration' ),
'section' => BoldThemesPFX . '_general_section',
'settings' => BoldThemesPFX . '_theme_options[page_background]',
'priority' => 27,
'context' => BoldThemesPFX . '_page_background'
)
)
);
// HIDE HEADLINE
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[hide_headline]', array(
'default' => BoldThemes_Customize_Default::$hide_headline,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'hide_headline', array(
'label' => esc_html__( 'Hide Headline', 'celebration' ),
'section' => BoldThemesPFX . '_general_section',
'settings' => BoldThemesPFX . '_theme_options[hide_headline]',
'priority' => 64,
'type' => 'checkbox'
));
// TEMPLATE SKIN
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[template_skin]', array(
'default' => BoldThemes_Customize_Default::$template_skin,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'template_skin', array(
'label' => esc_html__( 'Use Dark Skin', 'celebration' ),
'section' => BoldThemesPFX . '_general_section',
'settings' => BoldThemesPFX . '_theme_options[template_skin]',
'priority' => 80,
'type' => 'checkbox'
));
// SIDEBAR
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[sidebar]', array(
'default' => BoldThemes_Customize_Default::$sidebar,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'sidebar', array(
'label' => esc_html__( 'Sidebar', 'celebration' ),
'section' => BoldThemesPFX . '_general_section',
'settings' => BoldThemesPFX . '_theme_options[sidebar]',
'priority' => 93,
'type' => 'select',
'choices' => array(
'no_sidebar' => esc_html__( 'No Sidebar', 'celebration' ),
'left' => esc_html__( 'Left', 'celebration' ),
'right' => esc_html__( 'Right', 'celebration' )
)
));
// USE DASH SIDEBAR
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[sidebar_use_dash]', array(
'default' => BoldThemes_Customize_Default::$sidebar_use_dash,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'sidebar_use_dash', array(
'label' => esc_html__( 'Use Dash in Widgets', 'celebration' ),
'section' => BoldThemesPFX . '_general_section',
'settings' => BoldThemesPFX . '_theme_options[sidebar_use_dash]',
'priority' => 94,
'type' => 'checkbox'
));
// DISABLE PRELOADER
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[disable_preloader]', array(
'default' => BoldThemes_Customize_Default::$disable_preloader,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'disable_preloader', array(
'label' => esc_html__( 'Disable Preloader', 'celebration' ),
'section' => BoldThemesPFX . '_general_section',
'settings' => BoldThemesPFX . '_theme_options[disable_preloader]',
'priority' => 101,
'type' => 'checkbox'
));
// PRELOADER TEXT
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[preloader_text]', array(
'default' => BoldThemes_Customize_Default::$preloader_text,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'preloader_text', array(
'label' => esc_html__( 'Preloader Text', 'celebration' ),
'section' => BoldThemesPFX . '_general_section',
'settings' => BoldThemesPFX . '_theme_options[preloader_text]',
'priority' => 102,
'type' => 'text'
));
// AUTOPLAY INTERVAL
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[autoplay_interval]', array(
'default' => BoldThemes_Customize_Default::$autoplay_interval,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'autoplay_interval', array(
'label' => esc_html__( 'Animations Autoplay Interval (ms)', 'celebration' ),
'section' => BoldThemesPFX . '_general_section',
'settings' => BoldThemesPFX . '_theme_options[autoplay_interval]',
'priority' => 103,
'type' => 'text'
));
// CUSTOM CSS
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[custom_css]', array(
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( new BoldThemes_Customize_Textarea_Control(
$wp_customize,
'custom_css', array(
'label' => esc_html__( 'Custom CSS', 'celebration' ),
'section' => BoldThemesPFX . '_general_section',
'priority' => 104,
'settings' => BoldThemesPFX . '_theme_options[custom_css]'
)
));
// MENU TYPE
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[menu_type]', array(
'default' => 'right',
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'menu_type', array(
'label' => esc_html__( 'Menu Type', 'celebration' ),
'section' => BoldThemesPFX . '_header_footer_section',
'settings' => BoldThemesPFX . '_theme_options[menu_type]',
'priority' => 60,
'type' => 'select',
'choices' => array(
'hLeft' => esc_html__( 'Horizontal Left', 'celebration' ),
'hCenter' => esc_html__( 'Horizontal Centered', 'celebration' ),
'hRight' => esc_html__( 'Horizontal Right', 'celebration' ),
'vLeft' => esc_html__( 'Vertical Left', 'celebration' ),
'vRight' => esc_html__( 'Vertical Right', 'celebration' )
)
));
// BOXED MENU
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[boxed_menu]', array(
'default' => BoldThemes_Customize_Default::$boxed_menu,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'boxed_menu', array(
'label' => esc_html__( 'Boxed Menu', 'celebration' ),
'section' => BoldThemesPFX . '_header_footer_section',
'settings' => BoldThemesPFX . '_theme_options[boxed_menu]',
'priority' => 65,
'type' => 'checkbox'
));
// BELOW MENU
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[below_menu]', array(
'default' => BoldThemes_Customize_Default::$below_menu,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'below_menu', array(
'label' => esc_html__( 'Content Below Menu', 'celebration' ),
'section' => BoldThemesPFX . '_header_footer_section',
'settings' => BoldThemesPFX . '_theme_options[below_menu]',
'priority' => 70,
'type' => 'checkbox'
));
// TOP TOOLS IN MENU AREA
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[top_tools_in_menu]', array(
'default' => BoldThemes_Customize_Default::$top_tools_in_menu,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'top_tools_in_menu', array(
'label' => esc_html__( 'Show Top Widgets in Menu Area', 'celebration' ),
'section' => BoldThemesPFX . '_header_footer_section',
'settings' => BoldThemesPFX . '_theme_options[top_tools_in_menu]',
'priority' => 70,
'type' => 'checkbox'
));
// STICKY HEADER
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[sticky_header]', array(
'default' => BoldThemes_Customize_Default::$sticky_header,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'sticky_header', array(
'label' => esc_html__( 'Sticky Header', 'celebration' ),
'section' => BoldThemesPFX . '_header_footer_section',
'settings' => BoldThemesPFX . '_theme_options[sticky_header]',
'priority' => 80,
'type' => 'checkbox'
));
// HIDE MENU
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[hide_menu]', array(
'default' => BoldThemes_Customize_Default::$hide_menu,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'hide_menu', array(
'label' => esc_html__( 'Hide Menu', 'celebration' ),
'section' => BoldThemesPFX . '_header_footer_section',
'settings' => BoldThemesPFX . '_theme_options[hide_menu]',
'priority' => 80,
'type' => 'checkbox'
));
// FOOTER DARK SKIN
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[footer_dark_skin]', array(
'default' => BoldThemes_Customize_Default::$footer_dark_skin,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'footer_dark_skin', array(
'label' => esc_html__( 'Use Dark Skin in Footer', 'celebration' ),
'section' => BoldThemesPFX . '_header_footer_section',
'settings' => BoldThemesPFX . '_theme_options[footer_dark_skin]',
'priority' => 80,
'type' => 'checkbox'
));
require_once( get_template_directory() . '/php/web_fonts.php' );
$choices = array( 'no_change' => esc_html__( 'No Change', 'celebration' ) );
foreach ( CelebrationTheme::$boldthemes_fonts as $font ) {
$choices[$font['css-name']] = $font['font-name'];
}
// BODY FONT
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[body_font]', array(
'default' => 'no_change',
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'body_font', array(
'label' => esc_html__( 'Body Font', 'celebration' ),
'section' => BoldThemesPFX . '_typo_section',
'settings' => BoldThemesPFX . '_theme_options[body_font]',
'priority' => 97,
'type' => 'select',
'choices' => $choices
));
// HEADING FONT
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[heading_font]', array(
'default' => 'no_change',
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'heading_font', array(
'label' => esc_html__( 'Heading Font', 'celebration' ),
'section' => BoldThemesPFX . '_typo_section',
'settings' => BoldThemesPFX . '_theme_options[heading_font]',
'priority' => 100,
'type' => 'select',
'choices' => $choices
));
// SUPERTITLE HEADING FONT
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[heading_supertitle_font]', array(
'default' => 'no_change',
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'heading_supertitle_font', array(
'label' => esc_html__( 'Heading Supertitle Font', 'celebration' ),
'section' => BoldThemesPFX . '_typo_section',
'settings' => BoldThemesPFX . '_theme_options[heading_supertitle_font]',
'priority' => 100,
'type' => 'select',
'choices' => $choices
));
// HEADING SUBTITLE FONT
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[heading_subtitle_font]', array(
'default' => 'no_change',
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'heading_subtitle_font', array(
'label' => esc_html__( 'Heading Subtitle Font', 'celebration' ),
'section' => BoldThemesPFX . '_typo_section',
'settings' => BoldThemesPFX . '_theme_options[heading_subtitle_font]',
'priority' => 100,
'type' => 'select',
'choices' => $choices
));
// MENU FONT
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[menu_font]', array(
'default' => 'no_change',
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'menu_font', array(
'label' => esc_html__( 'Menu Font', 'celebration' ),
'section' => BoldThemesPFX . '_typo_section',
'settings' => BoldThemesPFX . '_theme_options[menu_font]',
'priority' => 100,
'type' => 'select',
'choices' => $choices
));
// CUSTOM TEXT
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[custom_text]', array(
'default' => BoldThemes_Customize_Default::$custom_text,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'custom_text', array(
'label' => esc_html__( 'Custom Footer Text', 'celebration' ),
'section' => BoldThemesPFX . '_header_footer_section',
'settings' => BoldThemesPFX . '_theme_options[custom_text]',
'priority' => 120,
'type' => 'text'
));
// FOOTER SUPERTITLE TEXT
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[footer_supertitle_text]', array(
'default' => BoldThemes_Customize_Default::$footer_supertitle_text,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'footer_supertitle_text', array(
'label' => esc_html__( 'Footer Supertitle', 'celebration' ),
'section' => BoldThemesPFX . '_header_footer_section',
'settings' => BoldThemesPFX . '_theme_options[footer_supertitle_text]',
'priority' => 120,
'type' => 'text'
));
// FOOTER TITLE TEXT
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[footer_title_text]', array(
'default' => BoldThemes_Customize_Default::$footer_title_text,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'footer_title_text', array(
'label' => esc_html__( 'Footer Title', 'celebration' ),
'section' => BoldThemesPFX . '_header_footer_section',
'settings' => BoldThemesPFX . '_theme_options[footer_title_text]',
'priority' => 120,
'type' => 'text'
));
// RESET
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[reset]', array(
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( new BoldThemes_Reset_Control(
$wp_customize,
'reset', array(
'label' => esc_html__( 'Reset Theme Settings', 'celebration' ),
'section' => BoldThemesPFX . '_general_section',
'priority' => 130,
'settings' => BoldThemesPFX . '_theme_options[reset]'
)
));
/* BLOG */
// GHOST SLIDER
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[blog_ghost_slider]', array(
'default' => BoldThemes_Customize_Default::$blog_ghost_slider,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'blog_ghost_slider', array(
'label' => esc_html__( 'Ghost Slider', 'celebration' ),
'section' => BoldThemesPFX . '_blog_section',
'settings' => BoldThemesPFX . '_theme_options[blog_ghost_slider]',
'priority' => 1,
'type' => 'checkbox'
));
// GRID GALLERY COLUMNS
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[blog_grid_gallery_columns]', array(
'default' => BoldThemes_Customize_Default::$blog_grid_gallery_columns,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'blog_grid_gallery_columns', array(
'label' => esc_html__( 'Grid Gallery Columns', 'celebration' ),
'section' => BoldThemesPFX . '_blog_section',
'settings' => BoldThemesPFX . '_theme_options[blog_grid_gallery_columns]',
'priority' => 6,
'type' => 'select',
'choices' => array(
'3' => esc_html__( '3', 'celebration' ),
'4' => esc_html__( '4', 'celebration' ),
'5' => esc_html__( '5', 'celebration' ),
'6' => esc_html__( '6', 'celebration' )
)
));
// GRID GALLERY GAP
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[blog_grid_gallery_gap]', array(
'default' => BoldThemes_Customize_Default::$blog_grid_gallery_gap,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'blog_grid_gallery_gap', array(
'label' => esc_html__( 'Grid Gallery Gap', 'celebration' ),
'section' => BoldThemesPFX . '_blog_section',
'settings' => BoldThemesPFX . '_theme_options[blog_grid_gallery_gap]',
'priority' => 7,
'type' => 'select',
'choices' => array(
'0' => esc_html__( '0', 'celebration' ),
'1' => esc_html__( '1', 'celebration' ),
'2' => esc_html__( '2', 'celebration' ),
'3' => esc_html__( '3', 'celebration' ),
'4' => esc_html__( '4', 'celebration' ),
'5' => esc_html__( '5', 'celebration' ),
'6' => esc_html__( '6', 'celebration' ),
'7' => esc_html__( '7', 'celebration' ),
'8' => esc_html__( '8', 'celebration' ),
'9' => esc_html__( '9', 'celebration' ),
'10' => esc_html__( '10', 'celebration' ),
'15' => esc_html__( '15', 'celebration' ),
'20' => esc_html__( '20', 'celebration' )
)
));
// Blog list view
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[blog_list_view]', array(
'default' => BoldThemes_Customize_Default::$blog_list_view,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'blog_list_view', array(
'label' => esc_html__( 'Archive Layout', 'celebration' ),
'section' => BoldThemesPFX . '_blog_section',
'settings' => BoldThemesPFX . '_theme_options[blog_list_view]',
'priority' => 8,
'type' => 'select',
'choices' => array(
'standard' => esc_html__( 'Standard', 'celebration' ),
'columns' => esc_html__( 'Columns', 'celebration' ),
'simple' => esc_html__( 'Simple', 'celebration' )
)
));
// Blog single view
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[blog_single_view]', array(
'default' => BoldThemes_Customize_Default::$blog_single_view,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'blog_single_view', array(
'label' => esc_html__( 'Single Post Layout', 'celebration' ),
'section' => BoldThemesPFX . '_blog_section',
'settings' => BoldThemesPFX . '_theme_options[blog_single_view]',
'priority' => 8,
'type' => 'select',
'choices' => array(
'standard' => esc_html__( 'Standard', 'celebration' ),
'columns' => esc_html__( 'Columns', 'celebration' )
)
));
// AUTHOR
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[blog_author]', array(
'default' => BoldThemes_Customize_Default::$blog_author,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'blog_author', array(
'label' => esc_html__( 'Show Author Name', 'celebration' ),
'section' => BoldThemesPFX . '_blog_section',
'settings' => BoldThemesPFX . '_theme_options[blog_author]',
'priority' => 8,
'type' => 'checkbox'
));
// DATE
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[blog_date]', array(
'default' => BoldThemes_Customize_Default::$blog_date,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'blog_date', array(
'label' => esc_html__( 'Show Post Date', 'celebration' ),
'section' => BoldThemesPFX . '_blog_section',
'settings' => BoldThemesPFX . '_theme_options[blog_date]',
'priority' => 10,
'type' => 'checkbox'
));
// BLOG SIDE INFO
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[blog_side_info]', array(
'default' => BoldThemes_Customize_Default::$blog_side_info,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'blog_side_info', array(
'label' => esc_html__( 'Show Author Avatar in List', 'celebration' ),
'section' => BoldThemesPFX . '_blog_section',
'settings' => BoldThemesPFX . '_theme_options[blog_side_info]',
'priority' => 12,
'type' => 'checkbox'
));
// AUTHOR INFO
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[blog_author_info]', array(
'default' => BoldThemes_Customize_Default::$blog_author_info,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'blog_author_info', array(
'label' => esc_html__( 'Show Author Info in Post', 'celebration' ),
'section' => BoldThemesPFX . '_blog_section',
'settings' => BoldThemesPFX . '_theme_options[blog_author_info]',
'priority' => 15,
'type' => 'checkbox'
));
// USE DASH
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[blog_use_dash]', array(
'default' => BoldThemes_Customize_Default::$blog_use_dash,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'blog_use_dash', array(
'label' => esc_html__( 'Use Dash in Headlines', 'celebration' ),
'section' => BoldThemesPFX . '_blog_section',
'settings' => BoldThemesPFX . '_theme_options[blog_use_dash]',
'priority' => 50,
'type' => 'checkbox'
));
// STICKY POSTS IN GRID/TILES
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[sticky_in_grid]', array(
'default' => BoldThemes_Customize_Default::$sticky_in_grid,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'sticky_in_grid', array(
'label' => esc_html__( 'Sticky Posts in Grid/Tiles', 'celebration' ),
'section' => BoldThemesPFX . '_blog_section',
'settings' => BoldThemesPFX . '_theme_options[sticky_in_grid]',
'priority' => 60,
'type' => 'checkbox'
));
// SETTINGS PAGE SLUG
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[blog_settings_page_slug]', array(
'default' => BoldThemes_Customize_Default::$blog_settings_page_slug,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'blog_settings_page_slug', array(
'label' => esc_html__( 'Settings Page Slug', 'celebration' ),
'section' => BoldThemesPFX . '_blog_section',
'settings' => BoldThemesPFX . '_theme_options[blog_settings_page_slug]',
'priority' => 60,
'type' => 'text'
));
/* PORTFOLIO */
// GHOST SLIDER
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[pf_ghost_slider]', array(
'default' => BoldThemes_Customize_Default::$pf_ghost_slider,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'pf_ghost_slider', array(
'label' => esc_html__( 'Ghost Slider', 'celebration' ),
'section' => BoldThemesPFX . '_pf_section',
'settings' => BoldThemesPFX . '_theme_options[pf_ghost_slider]',
'priority' => 3,
'type' => 'checkbox'
));
// GRID GALLERY COLUMNS
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[pf_grid_gallery_columns]', array(
'default' => BoldThemes_Customize_Default::$pf_grid_gallery_columns,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'pf_grid_gallery_columns', array(
'label' => esc_html__( 'Grid Gallery Columns', 'celebration' ),
'section' => BoldThemesPFX . '_pf_section',
'settings' => BoldThemesPFX . '_theme_options[pf_grid_gallery_columns]',
'priority' => 5,
'type' => 'select',
'choices' => array(
'3' => esc_html__( '3', 'celebration' ),
'4' => esc_html__( '4', 'celebration' ),
'5' => esc_html__( '5', 'celebration' ),
'6' => esc_html__( '6', 'celebration' )
)
));
// GRID GALLERY GAP
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[pf_grid_gallery_gap]', array(
'default' => BoldThemes_Customize_Default::$pf_grid_gallery_gap,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'pf_grid_gallery_gap', array(
'label' => esc_html__( 'Grid Gallery Gap', 'celebration' ),
'section' => BoldThemesPFX . '_pf_section',
'settings' => BoldThemesPFX . '_theme_options[pf_grid_gallery_gap]',
'priority' => 8,
'type' => 'select',
'choices' => array(
'0' => esc_html__( '0', 'celebration' ),
'1' => esc_html__( '1', 'celebration' ),
'2' => esc_html__( '2', 'celebration' ),
'3' => esc_html__( '3', 'celebration' ),
'4' => esc_html__( '4', 'celebration' ),
'5' => esc_html__( '5', 'celebration' ),
'6' => esc_html__( '6', 'celebration' ),
'7' => esc_html__( '7', 'celebration' ),
'8' => esc_html__( '8', 'celebration' ),
'9' => esc_html__( '9', 'celebration' ),
'10' => esc_html__( '10', 'celebration' ),
'15' => esc_html__( '15', 'celebration' ),
'20' => esc_html__( '20', 'celebration' )
)
));
// Portfolio single view
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[pf_single_view]', array(
'default' => BoldThemes_Customize_Default::$pf_single_view,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'pf_single_view', array(
'label' => esc_html__( 'Single project view', 'celebration' ),
'section' => BoldThemesPFX . '_pf_section',
'settings' => BoldThemesPFX . '_theme_options[pf_single_view]',
'priority' => 8,
'type' => 'select',
'choices' => array(
'standard' => esc_html__( 'Standard', 'celebration' ),
'columns' => esc_html__( 'Columns', 'celebration' )
)
));
// USE DASH
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[pf_use_dash]', array(
'default' => BoldThemes_Customize_Default::$pf_use_dash,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'pf_use_dash', array(
'label' => esc_html__( 'Use Dash in Headlines', 'celebration' ),
'section' => BoldThemesPFX . '_pf_section',
'settings' => BoldThemesPFX . '_theme_options[pf_use_dash]',
'priority' => 50,
'type' => 'checkbox'
));
// SETTINGS PAGE SLUG
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[pf_settings_page_slug]', array(
'default' => BoldThemes_Customize_Default::$pf_settings_page_slug,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'pf_settings_page_slug', array(
'label' => esc_html__( 'Settings Page Slug', 'celebration' ),
'section' => BoldThemesPFX . '_pf_section',
'settings' => BoldThemesPFX . '_theme_options[pf_settings_page_slug]',
'priority' => 60,
'type' => 'text'
));
/* SHOP */
// SETTINGS PAGE SLUG
$wp_customize->add_setting( BoldThemesPFX . '_theme_options[shop_settings_page_slug]', array(
'default' => BoldThemes_Customize_Default::$shop_settings_page_slug,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control( 'shop_settings_page_slug', array(
'label' => esc_html__( 'Settings Page Slug', 'celebration' ),
'section' => BoldThemesPFX . '_shop_section',
'settings' => BoldThemesPFX . '_theme_options[shop_settings_page_slug]',
'priority' => 60,
'type' => 'text'
));
}
}
add_action( 'customize_register', 'boldthemes_customize_register' );
if ( ! function_exists( 'boldthemes_js_bottom' ) ) {
function boldthemes_js_bottom() {
$j = boldthemes_get_option( 'custom_js_bottom' );
// echo '<script>' . wp_kses_post( $j ) . '</script>';
wp_register_script( 'bt-js-bottom-script', '' );
wp_enqueue_script( 'bt-js-bottom-script' );
wp_add_inline_script( 'bt-js-bottom-script', '' . wp_kses_post( $j ) . '' );
}
}
if ( ! function_exists( 'boldthemes_customize_css_js' ) ) {
function boldthemes_customize_css_js() {
if ( boldthemes_get_option( 'custom_css' ) != '' ) {
wp_register_style( 'bt-custom-style', false );
wp_enqueue_style( 'bt-custom-style' );
wp_add_inline_style( 'bt-custom-style', boldthemes_get_option( 'custom_css' ) );
}
if ( boldthemes_get_option( 'custom_js_top' ) != '' ) {
$j = boldthemes_get_option( 'custom_js_top' );
// echo '<script>' . wp_kses_post( $j ) . '</script>';
wp_register_script( 'bt-js-top-script', '' );
wp_enqueue_script( 'bt-js-top-script' );
wp_add_inline_script( 'bt-js-top-script', '' . wp_kses_post( $j ) . '' );
}
if ( boldthemes_get_option( 'custom_js_bottom' ) != '' ) {
add_action( 'wp_footer', 'boldthemes_js_bottom' );
}
}
}
add_action( 'wp_head', 'boldthemes_customize_css_js' );
function boldthemes_custom_text( $text ) {
return $text;
}
function boldthemes_custom_js( $js ) {
return trim( $js );
}