* @link http://infinity.presscrew.com/
* @copyright Copyright (C) 2010-2011 Bowe Frankema
* @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
* @package Infinity
* @since 1.0
*/
?>
Featured Slide.', 'cbox-theme' );
}
// post category
if ( $slider_type == 2 ) {
$cat_id = infinity_option_get( 'cbox_flex_slider_category' );
$cat = get_category( $cat_id );
$query_args['cat'] = $cat_id;
$no_slider_text = sprintf( __( 'Did you know you can easily add introduction slides to your homepage? Simply visit your admin panel and add a new post in the %s category.', 'cbox-theme' ), $cat->name );
}
// setup the slider query
$slider_query = new WP_Query( $query_args );
?>
have_posts() ) :
while( $slider_query->have_posts() ) :
$slider_query->the_post();
// slide URL
$slide_url = get_post_meta( $post->ID, '_cbox_custom_url', true );
if ( empty( $slide_url ) ) {
$slide_url = get_permalink();
} else {
$slide_url = esc_url( $slide_url );
}
// caption
$hide_caption = get_post_meta( $post->ID, '_cbox_hide_caption', true );
if ( ! $hide_caption ) { $hide_caption = "no"; }
$slider_excerpt = wpautop( get_post_meta( get_the_ID(), '_cbox_slider_excerpt', true ) );
if ( empty( $slider_excerpt ) ) {
$slider_excerpt = apply_filters( 'the_content', cbox_create_excerpt( get_the_content() ) );
}
// video
$video_value = get_post_meta( $post->ID, '_cbox_enable_custom_video', true);
if ( ! $video_value ) { $video_value = "no"; }
?>
-
$sliderwidth, 'height' => $sliderheight, 'crop' => true ) ) ?>
-
-
-