Uncategorized

slider dot php original code

get_theme_mod(‘slider_title_1’, ‘Welcome to Sydney’),
‘slider_title_2’ => get_theme_mod(‘slider_title_2’, ‘Ready to begin your journey?’),
‘slider_title_3’ => get_theme_mod(‘slider_title_3’),
‘slider_title_4’ => get_theme_mod(‘slider_title_4’),
‘slider_title_5’ => get_theme_mod(‘slider_title_5’),
);
$subtitles = array(
‘slider_subtitle_1’ => get_theme_mod(‘slider_subtitle_1’, ‘Feel free to look around’),
‘slider_subtitle_2’ => get_theme_mod(‘slider_subtitle_2’, ‘Feel free to look around’),
‘slider_subtitle_3’ => get_theme_mod(‘slider_subtitle_3’),
‘slider_subtitle_4’ => get_theme_mod(‘slider_subtitle_4’),
‘slider_subtitle_5’ => get_theme_mod(‘slider_subtitle_5’),
);
} else {
$titles = array(
‘slider_title_1’ => pll__( get_theme_mod(‘slider_title_1’, ‘Click the pencil icon to change this text’) ),
‘slider_title_2’ => pll__( get_theme_mod(‘slider_title_2’) ),
‘slider_title_3’ => pll__( get_theme_mod(‘slider_title_3’) ),
‘slider_title_4’ => pll__( get_theme_mod(‘slider_title_4’) ),
‘slider_title_5’ => pll__( get_theme_mod(‘slider_title_5’) ),
);
$subtitles = array(
‘slider_subtitle_1’ => pll__( get_theme_mod(‘slider_subtitle_1’, ‘or go to the Customizer’) ),
‘slider_subtitle_2’ => pll__( get_theme_mod(‘slider_subtitle_2’) ),
‘slider_subtitle_3’ => pll__( get_theme_mod(‘slider_subtitle_3’) ),
‘slider_subtitle_4’ => pll__( get_theme_mod(‘slider_subtitle_4’) ),
‘slider_subtitle_5’ => pll__( get_theme_mod(‘slider_subtitle_5’) ),
);
}
$images = array(
‘slider_image_1’ => get_theme_mod(‘slider_image_1’),
‘slider_image_2’ => get_theme_mod(‘slider_image_2’),
‘slider_image_3’ => get_theme_mod(‘slider_image_3’),
‘slider_image_4’ => get_theme_mod(‘slider_image_4’),
‘slider_image_5’ => get_theme_mod(‘slider_image_5’),
);

if ( $images[‘slider_image_1’] == ” ) {
return;
}

//If the second slide is empty, stop the slider
if ( $images[‘slider_image_2’] != ” ) {
$speed = get_theme_mod(‘slider_speed’, ‘4000’);
} else {
$speed = 0;
}
?>


logo-sf