$thinkup_homepage_sliderpage1, 'slide_image_url' => $slide1_image_url, 'slide_title' => $slide1_title, 'slide_description' => $slide1_description, 'slide_url' => $slide1_url ), array( 'slide_id' => $thinkup_homepage_sliderpage2, 'slide_image_url' => $slide2_image_url, 'slide_title' => $slide2_title, 'slide_description' => $slide2_description, 'slide_url' => $slide2_url ), array( 'slide_id' => $thinkup_homepage_sliderpage3, 'slide_image_url' => $slide3_image_url, 'slide_title' => $slide3_title, 'slide_description' => $slide3_description, 'slide_url' => $slide3_url ), ); foreach ($thinkup_homepage_sliderpage as $slide) { if ( is_numeric( $slide['slide_id'] ) ) { // Get url of background image or set video overlay image $slide_image = 'background: url(' . esc_url( $slide['slide_image_url'] ) . ') no-repeat center; background-size: cover;'; // Used for slider image alt text if ( ! empty( $slide['slide_title'] ) ) { $slide_alt = esc_html( $slide['slide_title'] ); } else { $slide_alt = esc_html__( 'Slider Image', 'bolder' ); } echo '
  • ', '' . esc_attr( $slide_alt ) . '', '
    ', '
    ', '
    ', '', '
    ', '
    ', '
    ', '
  • '; } } } // Add Slider - Homepage function bolder_thinkup_input_sliderhome() { // Get theme options values. $thinkup_homepage_sliderswitch = bolder_thinkup_var ( 'thinkup_homepage_sliderswitch' ); $thinkup_homepage_sliderpage1 = bolder_thinkup_var ( 'thinkup_homepage_sliderpage1' ); $thinkup_homepage_sliderpage2 = bolder_thinkup_var ( 'thinkup_homepage_sliderpage2' ); $thinkup_homepage_sliderpage3 = bolder_thinkup_var ( 'thinkup_homepage_sliderpage3' ); $thinkup_class_fullwidth = NULL; $slide_image = NULL; $slider_default = NULL; if ( is_front_page() ) { // Set default slider $slider_default .= '
  • ' . esc_attr__( 'Demo Image', 'bolder' ) . '
  • '; $slider_default .= '
  • ' . esc_attr__( 'Demo Image', 'bolder' ) . '
  • '; $slider_default .= '
  • ' . esc_attr__( 'Demo Image', 'bolder' ) . '
  • '; if ( ( current_user_can( 'edit_theme_options' ) and empty( $thinkup_homepage_sliderswitch ) ) or $thinkup_homepage_sliderswitch == 'option1' ) { echo '
    '; echo '
      '; echo $slider_default; echo '
    '; echo '
    '; } else if ( $thinkup_homepage_sliderswitch == 'option4' ) { // Check if page slider has been set if( !is_numeric( $thinkup_homepage_sliderpage1 ) and !is_numeric( $thinkup_homepage_sliderpage2 ) and !is_numeric( $thinkup_homepage_sliderpage3 ) ) { echo '
    '; echo '
      '; echo $slider_default; echo '
    '; echo '
    '; } else { echo '
    '; echo '
      '; bolder_thinkup_input_sliderhomepage(); echo '
    '; echo '
    '; } } } } // Add ThinkUpSlider Height - Homepage function bolder_thinkup_input_sliderhomeheight() { // Get theme options values. $thinkup_homepage_sliderpresetheight = bolder_thinkup_var ( 'thinkup_homepage_sliderpresetheight' ); if ( empty( $thinkup_homepage_sliderpresetheight ) ) $thinkup_homepage_sliderpresetheight = '500'; if ( is_front_page() ) { if ( empty( $thinkup_homepage_sliderswitch ) or $thinkup_homepage_sliderswitch == 'option1' or $thinkup_homepage_sliderswitch == 'option4' ) { echo "\n" .'' . "\n"; } } } add_action( 'wp_head','bolder_thinkup_input_sliderhomeheight', '13' ); //---------------------------------------------------------------------------------- // ENABLE HOMEPAGE CONTENT //---------------------------------------------------------------------------------- function bolder_thinkup_input_homepagesection() { // Get theme options values. $thinkup_homepage_sectionswitch = bolder_thinkup_var ( 'thinkup_homepage_sectionswitch' ); $thinkup_homepage_section1_icon = bolder_thinkup_var ( 'thinkup_homepage_section1_icon' ); $thinkup_homepage_section1_title = bolder_thinkup_var ( 'thinkup_homepage_section1_title' ); $thinkup_homepage_section1_desc = bolder_thinkup_var ( 'thinkup_homepage_section1_desc' ); $thinkup_homepage_section1_link = bolder_thinkup_var ( 'thinkup_homepage_section1_link' ); $thinkup_homepage_section2_icon = bolder_thinkup_var ( 'thinkup_homepage_section2_icon' ); $thinkup_homepage_section2_title = bolder_thinkup_var ( 'thinkup_homepage_section2_title' ); $thinkup_homepage_section2_desc = bolder_thinkup_var ( 'thinkup_homepage_section2_desc' ); $thinkup_homepage_section2_link = bolder_thinkup_var ( 'thinkup_homepage_section2_link' ); $thinkup_homepage_section3_icon = bolder_thinkup_var ( 'thinkup_homepage_section3_icon' ); $thinkup_homepage_section3_title = bolder_thinkup_var ( 'thinkup_homepage_section3_title' ); $thinkup_homepage_section3_desc = bolder_thinkup_var ( 'thinkup_homepage_section3_desc' ); $thinkup_homepage_section3_link = bolder_thinkup_var ( 'thinkup_homepage_section3_link' ); // Set default values for icons if ( empty( $thinkup_homepage_section1_icon ) ) $thinkup_homepage_section1_icon = __( 'fa fa-thumbs-up', 'bolder' ); if ( empty( $thinkup_homepage_section2_icon ) ) $thinkup_homepage_section2_icon = __( 'fa fa-desktop', 'bolder' ); if ( empty( $thinkup_homepage_section3_icon ) ) $thinkup_homepage_section3_icon = __( 'fa fa-gears', 'bolder' ); // Set default values for titles if ( empty( $thinkup_homepage_section1_title ) ) $thinkup_homepage_section1_title = __( 'Perfect For All', 'bolder' ); if ( empty( $thinkup_homepage_section2_title ) ) $thinkup_homepage_section2_title = __( '100% Responsive', 'bolder' ); if ( empty( $thinkup_homepage_section3_title ) ) $thinkup_homepage_section3_title = __( 'Powerful Framework', 'bolder' ); // Set default values for descriptions if ( empty( $thinkup_homepage_section1_desc ) ) $thinkup_homepage_section1_desc = __( 'Bolder is the perfect choice for any website. Easy to use, stunning design and packed with awesome features. Create something amazing!', 'bolder' ); if ( empty( $thinkup_homepage_section2_desc ) ) $thinkup_homepage_section2_desc = __( 'Bolder is 100% mobile responsive. It looks great on all devices, from mobiles to desktops, and everything in between!', 'bolder' ); if ( empty( $thinkup_homepage_section3_desc ) ) $thinkup_homepage_section3_desc = __( 'Get a taste the awesome ThinkUpThemes Framework. Make changes without ever touching any code! Beautiful and powerful!', 'bolder' ); // Get page names for links if ( ! empty( $thinkup_homepage_section1_link ) ) { $thinkup_homepage_section1_link = get_permalink( $thinkup_homepage_section1_link ); } if ( ! empty( $thinkup_homepage_section2_link ) ) { $thinkup_homepage_section2_link = get_permalink( $thinkup_homepage_section2_link ); } if ( ! empty( $thinkup_homepage_section3_link ) ) { $thinkup_homepage_section3_link = get_permalink( $thinkup_homepage_section3_link ); } // Output featured content areas if ( is_front_page() ) { if ( ( current_user_can( 'edit_theme_options' ) and empty( $thinkup_homepage_sectionswitch ) ) or $thinkup_homepage_sectionswitch == '1' ) { echo '
    '; echo '
    ', '
    ', '
    '; if ( ! empty( $thinkup_homepage_section1_link ) ) { echo ''; } else { echo ''; } echo '
    ', '
    ', '

    ' . esc_html( $thinkup_homepage_section1_title ) . '

    ' . wpautop( esc_html( do_shortcode ( $thinkup_homepage_section1_desc ) ) ); if ( ! empty( $thinkup_homepage_section1_link ) ) { echo '

    ' . esc_html__( 'Read More', 'bolder' ) . '

    '; } echo '
    ', '
    ', '
    '; echo '
    ', '
    ', '
    '; if ( ! empty( $thinkup_homepage_section2_link ) ) { echo ''; } else { echo ''; } echo '
    ', '
    ', '

    ' . esc_html( $thinkup_homepage_section2_title ) . '

    ' . wpautop( esc_html( do_shortcode ( $thinkup_homepage_section2_desc ) ) ); if ( ! empty( $thinkup_homepage_section2_link ) ) { echo '

    ' . esc_html__( 'Read More', 'bolder' ) . '

    '; } echo '
    ', '
    ', '
    '; echo '
    ', '
    ', '
    '; if ( ! empty( $thinkup_homepage_section3_link ) ) { echo ''; } else { echo ''; } echo '
    ', '
    ', '

    ' . esc_html( $thinkup_homepage_section3_title ) . '

    ' . wpautop( esc_html( do_shortcode ( $thinkup_homepage_section3_desc ) ) ); if ( ! empty( $thinkup_homepage_section3_link ) ) { echo '

    ' . esc_html__( 'Read More', 'bolder' ) . '

    '; } echo '
    ', '
    ', '
    '; echo '
    '; } } } /* ---------------------------------------------------------------------------------- CALL TO ACTION - INTRO ---------------------------------------------------------------------------------- */ function bolder_thinkup_input_ctaintro() { // Get theme options values. $thinkup_homepage_introswitch = bolder_thinkup_var ( 'thinkup_homepage_introswitch' ); $thinkup_homepage_introaction = bolder_thinkup_var ( 'thinkup_homepage_introaction' ); $thinkup_homepage_introactionteaser = bolder_thinkup_var ( 'thinkup_homepage_introactionteaser' ); $thinkup_homepage_introactiontext1 = bolder_thinkup_var ( 'thinkup_homepage_introactiontext1' ); $thinkup_homepage_introactionlink1 = bolder_thinkup_var ( 'thinkup_homepage_introactionlink1' ); $thinkup_homepage_introactionpage1 = bolder_thinkup_var ( 'thinkup_homepage_introactionpage1' ); $thinkup_homepage_introactioncustom1 = bolder_thinkup_var ( 'thinkup_homepage_introactioncustom1' ); if ( $thinkup_homepage_introswitch == '1' and is_front_page() and ! empty( $thinkup_homepage_introaction ) ) { echo '
    '; echo '
    '; echo '
    ', '

    ' . esc_html( $thinkup_homepage_introaction ) . '

    ', '
    '; echo '
    ', wpautop( esc_html( $thinkup_homepage_introactionteaser ) ), '
    '; echo '
    '; if ( ( !empty( $thinkup_homepage_introactionlink1) and $thinkup_homepage_introactionlink1 !== 'option3' ) ) { // Set default value of buttons to "Read more" if( empty( $thinkup_homepage_introactiontext1 ) ) { $thinkup_homepage_introactiontext1 = __( 'Read More', 'bolder' ); } echo ''; } echo '
    '; } } ?>