public/wordpress/wp-content/themes/puro/functions.php
/**
 * Render the home page slider.
 */
Render the home page slider.
Render the home page slider .
function puro_render_slider() {
	if( is_front_page() && $GLOBALS['wp_query']->get('paged') == 0 ) {
		if(substr(siteorigin_setting('home_slider'), 0, 5) == 'meta:' && class_exists('MetaSliderPlugin')){
			$slider_id = intval(substr(siteorigin_setting('home_slider'), 5));
			echo do_shortcode("[metaslider id='".$slider_id."']");
		}
	}
}
function puro_render_slider ( ) { if ( is_front_page ( ) && $ GLOBALS [ 'wp_query' ] -> get ( 'paged' ) == 0 ) { if ( substr ( siteorigin_setting ( 'home_slider' ) , 0 , 5 ) == 'meta:' && class_exists ( 'MetaSliderPlugin' ) ) { $ slider_id = intval ( substr ( siteorigin_setting ( 'home_slider' ) , 5 ) ) ; echo do_shortcode ( " [metaslider id=' " . $ slider_id . " '] " ) ; } } }
Render the home page slider.
Render the home page slider .