get_template_directory_uri() . '/assets/img/slider1.jpg', 'title' => esc_html__( 'Lorem Ipsum', 'hestia' ), 'subtitle' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'hestia' ), 'text' => esc_html__( 'Button', 'hestia' ), 'link' => '#', 'id' => 'customizer_repeater_56d7ea7f40a56', 'color' => '#e91e63', ), array( 'image_url' => get_template_directory_uri() . '/assets/img/slider2.jpg', 'title' => esc_html__( 'Lorem Ipsum', 'hestia' ), 'subtitle' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'hestia' ), 'text' => esc_html__( 'Button', 'hestia' ), 'link' => '#', 'id' => 'customizer_repeater_56d7ea7f40a57', 'color' => '#e91e63', ), array( 'image_url' => get_template_directory_uri() . '/assets/img/slider3.jpg', 'title' => esc_html__( 'Lorem Ipsum', 'hestia' ), 'subtitle' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'hestia' ), 'text' => esc_html__( 'Button', 'hestia' ), 'link' => '#', 'id' => 'customizer_repeater_56d7ea7f40a58', 'color' => '#e91e63', ), ); $lite_content = get_option( 'theme_mods_hestia' ); if ( $lite_content ) { $hestia_big_title_title = ''; $hestia_big_title_text = ''; $hestia_big_title_button_text = ''; $hestia_big_title_button_link = ''; $hestia_big_title_background = ''; if ( array_key_exists( 'hestia_big_title_title', $lite_content ) ) { $hestia_big_title_title = $lite_content['hestia_big_title_title']; } if ( array_key_exists( 'hestia_big_title_text', $lite_content ) ) { $hestia_big_title_text = $lite_content['hestia_big_title_text']; } if ( array_key_exists( 'hestia_big_title_button_text', $lite_content ) ) { $hestia_big_title_button_text = $lite_content['hestia_big_title_button_text']; } if ( array_key_exists( 'hestia_big_title_button_link', $lite_content ) ) { $hestia_big_title_button_link = $lite_content['hestia_big_title_button_link']; } if ( array_key_exists( 'hestia_big_title_background', $lite_content ) ) { $hestia_big_title_background = $lite_content['hestia_big_title_background']; } if ( ! empty( $hestia_big_title_title ) || ! empty( $hestia_big_title_text ) || ! empty( $hestia_big_title_button_text ) || ! empty( $hestia_big_title_button_link ) || ! empty( $hestia_big_title_background ) ) { array_unshift( $default, array( 'id' => 'customizer_repeater_56d7ea7f40a56', 'title' => $hestia_big_title_title, 'subtitle' => $hestia_big_title_text, 'text' => $hestia_big_title_button_text, 'link' => $hestia_big_title_button_link, 'image_url' => $hestia_big_title_background, ) ); } } return $default; } /** * Function to style slider button colors. * * @param string $color1 string first color. * @param string $color2 string second color. * @param string $item_number slide number. * * @return string */ function hestia_set_button_style( $color1, $color2, $item_number ) { $colors = array( $color1 => '.btn-left', $color2 => '.btn-right', ); $style = ''; if ( ! empty( $colors ) ) { if ( ! empty( $item_number ) ) { $style .= ''; } } return $style; }