$value) { ${"$key"} = $value; }
ob_start();
echo '\n";
$mantra_presentation_page_styling = ob_get_contents();
ob_end_clean();
return $mantra_presentation_page_styling;
} // mantra_frontpage_css()
endif;
if ( ! function_exists( 'mantra_frontpage_generator' ) ) :
// Front page generator
function mantra_frontpage_generator() {
$mantra_options= mantra_get_theme_options();
foreach ($mantra_options as $key => $value) {
${"$key"} = $value ;
}
?>
query('showposts='.$mantra_slideNumber.'&ignore_sticky_posts=1');
break;
case 'Random Posts' :
$custom_query->query('showposts='.$mantra_slideNumber.'&orderby=rand&ignore_sticky_posts=1');
break;
case 'Latest Posts from Category' :
$custom_query->query('showposts='.$mantra_slideNumber.'&category_name='.$mantra_slideCateg.'&ignore_sticky_posts=1');
break;
case 'Random Posts from Category' :
$custom_query->query('showposts='.$mantra_slideNumber.'&category_name='.$mantra_slideCateg.'&orderby=rand&ignore_sticky_posts=1');
break;
case 'Sticky Posts' :
$custom_query->query(array('post__in' => get_option( 'sticky_posts' ), 'showposts' =>$mantra_slideNumber,'ignore_sticky_posts' => 1));
break;
case 'Specific Posts' :
// Transofm string separated by commas into array
$pieces_array = explode(",", $mantra_slideSpecific);
$custom_query->query(array( 'post_type' => 'any', 'showposts' => -1, 'post__in' => $pieces_array, 'ignore_sticky_posts' => 1, 'orderby' => 'post__in' ));
break;
}
// Variables i and j for matching slider number with caption number
$i=0; $j=0;?>
slider-navhover">
have_posts() ) while ( $custom_query->have_posts()) : $custom_query->the_post();
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ),'slider');
$i++; ?>
have_posts() ) while ( $custom_query->have_posts() ) : $custom_query->the_post();
$j++; ?>
","");the_excerpt(); ?>
'.${"mantra_slidertitle$i"}.''.${"mantra_slidertext$i"} ?>