© Company Name

ID, 'featuredarea_backgroundimage', true ) ) ? get_post_meta( $post->ID, 'featuredarea_backgroundimage', true ) : ''; ?> selective_refresh->add_partial( 'blogname', array( 'selector' => '.site-title', ) ); $wp_customize->selective_refresh->add_partial( 'blogdescription', array( 'selector' => '.site-description', ) ); $wp_customize->selective_refresh->add_partial( 'cyberchimps_options[bl_featuredarea_title]', array( 'selector' => '.featured-title' ) ); $wp_customize->selective_refresh->add_partial( 'cyberchimps_options[bl_featuredarea_text]', array( 'selector' => '.featured-text' ) ); $wp_customize->selective_refresh->add_partial( 'cyberchimps_options[bl_featuredarea_button1_text]', array( 'selector' => '.featured-button1' ) ); $wp_customize->selective_refresh->add_partial( 'cyberchimps_options[bl_featuredarea_button2_text]', array( 'selector' => '.featured-button2' ) ); $wp_customize->selective_refresh->add_partial( 'cyberchimps_options[bl_featuredarea_backgroundimage]', array( 'selector' => '#featuredarea_container' ) ); $wp_customize->selective_refresh->add_partial( 'cyberchimps_options[searchbar]', array( 'selector' => '#navigation #searchform' ) ); $wp_customize->selective_refresh->add_partial( 'cyberchimps_options[custom_logo]', array( 'selector' => '#logo' ) ); $wp_customize->selective_refresh->add_partial( 'nav_menu_locations[primary]', array( 'selector' => '#navigation' ) ); $wp_customize->selective_refresh->add_partial( 'cyberchimps_options[theme_backgrounds]', array( 'selector' => '#social' ) ); $wp_customize->selective_refresh->add_partial( 'cyberchimps_options[footer_show_toggle]', array( 'selector' => '#footer-widget-container' ) ); } add_action( 'customize_register', 'editparallax_customize_register' ); add_theme_support( 'customize-selective-refresh-widgets' ); if ( !function_exists( 'cyberchimps_comment' ) ) : // Template for comments and pingbacks. // Used as a callback by wp_list_comments() for displaying the comments. function cyberchimps_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case 'pingback' : case 'trackback' : ?>
  • id="li-comment-">
    ' . __( 'says:', 'parallax' ) . '', sprintf( '%s', get_comment_author_link() ) ); ?>
    comment_approved == '0' ) : ?>
    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    $imagepath . 'default.png' ); return $options; } add_filter( 'cyberchimps_skin_color', 'cyberchimps_skin_color_options' ); // theme specific background images function cyberchimps_background_image( $options ) { $imagepath = get_template_directory_uri() . '/cyberchimps/lib/images/'; $options = array( 'none' => $imagepath . 'backgrounds/thumbs/none.png', 'noise' => $imagepath . 'backgrounds/thumbs/noise.png', 'blue' => $imagepath . 'backgrounds/thumbs/blue.png', 'dark' => $imagepath . 'backgrounds/thumbs/dark.png', 'space' => $imagepath . 'backgrounds/thumbs/space.png' ); return $options; } add_filter( 'cyberchimps_background_image', 'cyberchimps_background_image' ); // theme specific typography options function cyberchimps_typography_sizes( $sizes ) { $sizes = array( '8', '9', '10', '12', '14', '16', '20' ); return $sizes; } function cyberchimps_typography_faces( $faces ) { $faces = array( 'Arial, Helvetica, sans-serif' => 'Arial', 'Arial Black, Gadget, sans-serif' => 'Arial Black', 'Comic Sans MS, cursive' => 'Comic Sans MS', 'Courier New, monospace' => 'Courier New', 'Georgia, serif' => 'Georgia', 'Impact, Charcoal, sans-serif' => 'Impact', 'Lucida Console, Monaco, monospace' => 'Lucida Console', 'Lucida Sans Unicode, Lucida Grande, sans-serif' => 'Lucida Sans Unicode', 'Palatino Linotype, Book Antiqua, Palatino, serif' => 'Palatino Linotype', 'Tahoma, Geneva, sans-serif' => 'Tahoma', 'Times New Roman, Times, serif' => 'Times New Roman', 'Trebuchet MS, sans-serif' => 'Trebuchet MS', 'Verdana, Geneva, sans-serif' => 'Verdana', 'Symbol' => 'Symbol', 'Webdings' => 'Webdings', 'Wingdings, Zapf Dingbats' => 'Wingdings', 'MS Sans Serif, Geneva, sans-serif' => 'MS Sans Serif', 'MS Serif, New York, serif' => 'MS Serif', 'Arimo, Arial, sans-serif' => 'Arimo', 'Spinnaker, sans-serif' => 'Spinnaker', ); return $faces; } function cyberchimps_typography_styles( $styles ) { $styles = array( 'normal' => 'Normal', 'bold' => 'Bold' ); return $styles; } function cyberchimps_typography_defaults() { $default = array( 'size' => '14px', 'face' => 'Arimo, Arial, sans-serif', 'style' => 'normal', 'color' => '#555555' ); return $default; } function cyberchimps_typography_heading_defaults() { $default = array( 'face' => 'Spinnaker, sans-serif', ); return $default; } add_filter( 'cyberchimps_typography_sizes', 'cyberchimps_typography_sizes' ); add_filter( 'cyberchimps_typography_faces', 'cyberchimps_typography_faces' ); add_filter( 'cyberchimps_typography_styles', 'cyberchimps_typography_styles' ); add_filter( 'cyberchimps_typography_defaults', 'cyberchimps_typography_defaults' ); add_filter( 'cyberchimps_typography_heading_defaults', 'cyberchimps_typography_heading_defaults' ); function parallax_customize_register( $wp_customize ) { $wp_customize->add_section( 'cyberchimps_featured_lite_section', array( 'priority' => 15, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __( 'Featured Lite', 'cyberchimps_core' ), 'description' => '', 'panel' => 'blog_id', ) ); $wp_customize->add_setting( 'cyberchimps_options[bl_featuredarea_title]', array( 'type' => 'option', 'sanitize_callback' => 'cyberchimps_text_sanitization' ) ); $wp_customize->add_control( 'bl_featuredarea_title', array( 'label' => __( 'Featured Area Title', 'cyberchimps_core' ), 'section' => 'cyberchimps_featured_lite_section', 'default' => __( 'This is Featured Area Title', 'cyberchimps_core' ), 'settings' => 'cyberchimps_options[bl_featuredarea_title]', 'type' => 'text' ) ); $wp_customize->add_setting( 'cyberchimps_options[bl_featuredarea_text]', array( 'type' => 'option', 'sanitize_callback' => 'cyberchimps_text_sanitization' ) ); $wp_customize->add_control( 'bl_featuredarea_text', array( 'label' => __( 'Featured Area Text', 'cyberchimps_core' ), 'section' => 'cyberchimps_featured_lite_section', 'default' => __( 'Here you can place Featured Area Text', 'cyberchimps_core' ), 'settings' => 'cyberchimps_options[bl_featuredarea_text]', 'type' => 'textarea' ) ); $wp_customize->add_setting( 'cyberchimps_options[bl_featuredarea_button1_text]', array( 'type' => 'option', 'sanitize_callback' => 'cyberchimps_text_sanitization' ) ); $wp_customize->add_control( 'bl_featuredarea_button1_text', array( 'label' => __( 'Featured Area Button1 Text', 'cyberchimps_core' ), 'section' => 'cyberchimps_featured_lite_section', 'default' => __( 'Free Responsive Themes', 'cyberchimps_core' ), 'settings' => 'cyberchimps_options[bl_featuredarea_button1_text]', 'type' => 'text' ) ); $wp_customize->add_setting( 'cyberchimps_options[bl_featuredarea_button1_url]', array( 'type' => 'option', 'sanitize_callback' => 'cyberchimps_text_sanitization' ) ); $wp_customize->add_control( 'bl_featuredarea_button1_url', array( 'label' => __( 'Featured Area Button1 URL', 'cyberchimps_core' ), 'section' => 'cyberchimps_featured_lite_section', 'default' => '', 'settings' => 'cyberchimps_options[bl_featuredarea_button1_url]', 'type' => 'text' ) ); $wp_customize->add_setting( 'cyberchimps_options[bl_featuredarea_button2_text]', array( 'type' => 'option', 'sanitize_callback' => 'cyberchimps_text_sanitization' ) ); $wp_customize->add_control( 'bl_featuredarea_button2_text', array( 'label' => __( 'Featured Area Button2 Text', 'cyberchimps_core' ), 'section' => 'cyberchimps_featured_lite_section', 'default' => __( 'Explore Pro Themes', 'cyberchimps_core' ), 'settings' => 'cyberchimps_options[bl_featuredarea_button2_text]', 'type' => 'text' ) ); $wp_customize->add_setting( 'cyberchimps_options[bl_featuredarea_button2_url]', array( 'type' => 'option', 'sanitize_callback' => 'cyberchimps_text_sanitization' ) ); $wp_customize->add_control( 'bl_featuredarea_button2_url', array( 'label' => __( 'Featured Area Button2 URL', 'cyberchimps_core' ), 'section' => 'cyberchimps_featured_lite_section', 'default' => '', 'settings' => 'cyberchimps_options[bl_featuredarea_button2_url]', 'type' => 'text' ) ); $wp_customize->add_setting( 'cyberchimps_options[bl_featuredarea_backgroundimage]', array( 'default' => '', 'type' => 'option', 'sanitize_callback' => 'cyberchimps_sanitize_upload' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'bl_featuredarea_backgroundimage', array( 'label' => __( 'Featured Area Background Image', 'cyberchimps_core' ), 'section' => 'cyberchimps_featured_lite_section', 'settings' => 'cyberchimps_options[bl_featuredarea_backgroundimage]', 'type' => 'image', ) ) ); } add_action( 'customize_register', 'parallax_customize_register' ); function cyberchimps_blog_draganddrop_defaults() { $options = array( 'slider_lite' => __( 'Slider Lite', 'cyberchimps_core' ), 'boxes_lite' => __( 'Boxes', 'cyberchimps_core' ), 'portfolio_lite' => __( 'Portfolio Lite', 'cyberchimps_core' ), 'blog_post_page' => __( 'Post Page', 'cyberchimps_core' ), 'featured_lite' => __( 'Featured lite', 'cyberchimps_core' ), ); return $options; } add_filter( 'cyberchimps_elements_draganddrop_defaults', 'cyberchimps_blog_draganddrop_defaults' ); // Customize social icons. function cyberchimps_social_icon_options( $options ) { $options['default'] = get_template_directory_uri() . '/images/social/icons-default.png'; return $options; } add_filter( 'cyberchimps_social_icon_options', 'cyberchimps_social_icon_options' ); // Default for twitter bar handle function cyberchimps_twitter_handle_filter() { return 'WordPress'; } add_filter( 'cyberchimps_twitter_handle_filter', 'cyberchimps_twitter_handle_filter' ); // Set blog layout option default function cyberchimps_blog_layout_options_default() { return 'full_width'; } add_filter( 'cyberchimps_blog_layout_options_default', 'cyberchimps_blog_layout_options_default' ); // Remove header drag and drop as it is not suitable to the design in this theme. function cyberchimps_remove_header_drag_drop( $sections_list ) { return cyberchimps_remove_options( $sections_list, array( 'cyberchimps_header_drag_drop_section' ) ); } add_filter( 'cyberchimps_sections_filter', 'cyberchimps_remove_header_drag_drop' ); function cyberchimps_parallax_upgrade_bar(){ $upgrade_link = apply_filters( 'cyberchimps_upgrade_link', 'http://cyberchimps.com' ); $pro_title = apply_filters( 'cyberchimps_upgrade_pro_title', 'CyberChimps Pro' ); ?>

    CyberChimps PARALLAX30', 'cyberchimps_core' ), '' . $pro_title . ' ' ); ?>

    ' . $utm_text . ' '); ?>

    __( 'Gray', 'parallax' ), 'slug' => 'gray', 'color' => '#777', ), array( 'name' => __( 'Light Gray', 'parallax' ), 'slug' => 'light-gray', 'color' => '#f5f5f5', ), array( 'name' => __( 'Black', 'parallax' ), 'slug' => 'black', 'color' => '#000000', ), array( 'name' => __( 'Blue', 'parallax' ), 'slug' => 'blue', 'color' => '#0286cf', ), array( 'name' => __( 'Legacy', 'parallax' ), 'slug' => 'legacy', 'color' => '#b6b6b6', ), array( 'name' => __( 'Red', 'parallax' ), 'slug' => 'red', 'color' => '#c80a00', ), ) ); } add_action( 'after_setup_theme', 'parallax_title_setup' ); //add new add on - WPForms function parallax_new_addon_sections( $sections_list ) { $sections_list[] = array( 'id' => 'cyberchimps_wpforms_lite_options', 'label' => __( 'WPForms Lite', 'parallax' ), 'heading' => 'cyberchimps_addons_heading' ); $sections_list[] = array( 'id' => 'cyberchimps_featured_lite_options', 'label' => __( 'Featured lite', 'parallax' ), 'heading' => 'cyberchimps_blog_heading' ); return $sections_list; } add_filter( 'cyberchimps_section_list', 'parallax_new_addon_sections', 20, 1 ); // Addon Fields function parallax_new_addon_fields( $fields_list ) { $fields_list[] = array( 'name' => __( 'WPForms Lite', 'cyberchimps_core' ), 'id' => 'wpforms_lite', 'type' => 'info', 'callback' => 'cyberchimps_custom_wpforms_lite_callback', 'section' => 'cyberchimps_wpforms_lite_options', 'heading' => 'cyberchimps_addons_heading' ); $fields_list[] = array( 'name' => __( 'Featured Area Title', 'parallax' ), 'id' => 'bl_featuredarea_title', 'std' => __( 'The Future Has Arrived', 'parallax' ), 'type' => 'text', 'section' => 'cyberchimps_featured_lite_options', 'heading' => 'cyberchimps_blog_heading' ); $fields_list[] = array( 'name' => __( 'Featured Area Text', 'parallax' ), 'id' => 'bl_featuredarea_text', 'std' => __( 'Mobile first responsive websites that look incredible on all devices.', 'parallax' ), 'type' => 'editor', 'section' => 'cyberchimps_featured_lite_options', 'heading' => 'cyberchimps_blog_heading' ); $fields_list[] = array( 'name' => __( 'Featured Area Button1 Text', 'parallax' ), 'id' => 'bl_featuredarea_button1_text', 'class' => 'featuredarea_button1_toggle', 'std' => __( 'Free Responsive Themes', 'parallax' ), 'type' => 'text', 'section' => 'cyberchimps_featured_lite_options', 'heading' => 'cyberchimps_blog_heading' ); $fields_list[] = array( 'name' => __( 'Featured Area Button1 URL', 'parallax' ), 'id' => 'bl_featuredarea_button1_url', 'class' => 'featuredarea_button1_toggle', 'std' => '', 'type' => 'text', 'section' => 'cyberchimps_featured_lite_options', 'heading' => 'cyberchimps_blog_heading' ); $fields_list[] = array( 'name' => __( 'Featured Area Button2 Text', 'parallax' ), 'id' => 'bl_featuredarea_button2_text', 'class' => 'featuredarea_button2_toggle', 'std' => __( 'Explore Pro Themes', 'parallax' ), 'type' => 'text', 'section' => 'cyberchimps_featured_lite_options', 'heading' => 'cyberchimps_blog_heading' ); $fields_list[] = array( 'name' => __( 'Featured Area Button2 URL', 'parallax' ), 'id' => 'bl_featuredarea_button2_url', 'class' => 'featuredarea_button2_toggle', 'std' => '', 'type' => 'text', 'section' => 'cyberchimps_featured_lite_options', 'heading' => 'cyberchimps_blog_heading' ); $fields_list[] = array( 'name' => __( 'Featured Area Background Image', 'parallax' ), 'id' => 'bl_featuredarea_backgroundimage', 'class' => 'custom_featuredbg_options_toggle', 'std' => '', 'type' => 'upload', 'section' => 'cyberchimps_featured_lite_options', 'heading' => 'cyberchimps_blog_heading' ); return $fields_list; } add_action( 'admin_notices', 'parallax_admin_notices' ); function parallax_admin_notices() { $admin_check_screen = get_admin_page_title(); if( !class_exists('SlideDeckPlugin') ) { $plugin='slidedeck/slidedeck.php'; $slug = 'slidedeck'; $installed_plugins = get_plugins(); if ( $admin_check_screen == 'Manage Themes' || $admin_check_screen == 'Theme Options Page' ) { ?>

    Activate the SlideDeck Lite plugin Install the SlideDeck Lite plugin

    Activate the WPForms Lite plugin Install the WP Forms Lite plugin

    Liked this theme? Leave us a ***** rating. Thank you!

    ' . __( 'by %s', 'cyberchimps_core' ), ' ' . get_avatar( get_the_author_meta( 'ID' ), 20) . ' ' ); if( $show_author ) { return $posted_by; } return; } /** * Enqueue block styles in editor */ function parallax_block_styles() { wp_enqueue_style( 'google-font', 'https://fonts.googleapis.com/css?family=Spinnaker' ); wp_enqueue_style( 'parallax-gutenberg-blocks', get_stylesheet_directory_uri() . '/inc/css/gutenberg-blocks.css', array(), '1.0' ); } add_action( 'enqueue_block_editor_assets', 'parallax_block_styles' ); /** * [parallax_set_defaults description] */ function parallax_set_defaults() { remove_action('testimonial', array( CyberChimpsTestimonial::instance(), 'render_display' )); add_action('testimonial', 'parallax_testimonial_render_display'); } add_action( 'init', 'parallax_set_defaults' );