$options['anima_lpslidertitle'],
'content' => $options['anima_lpslidertext'],
'lpslidercta1text' => $options['anima_lpslidercta1text'],
'lpslidercta1link' => $options['anima_lpslidercta1link'],
'lpslidercta2text' => $options['anima_lpslidercta2text'],
'lpslidercta2link' => $options['anima_lpslidercta2link'],
) );
if ( $options['anima_lpslider'] )
switch ( $options['anima_lpslider'] ):
case 1:
if ( is_string( $options['anima_lpsliderimage'] ) ) {
$image = $options['anima_lpsliderimage'];
}
else {
list( $image, ) = wp_get_attachment_image_src( $options['anima_lpsliderimage'], 'full' );
}
anima_lpslider_output( array(
'image' => $image,
'title' => $options['anima_lpslidertitle'],
'content' => $options['anima_lpslidertext'],
) );
break;
case 2:
?>
$pageid ) {
$pageid = cryout_localize_id( $pageid );
if ( intval( $pageid ) > 0 ) {
$page = get_post( $pageid );
switch ( $blockscontent ) {
case '0': $text = ''; break;
case '2': $text = apply_filters( 'the_content', get_post_field( 'post_content', $pageid ) ); break;
case '1': default: if (has_excerpt( $pageid )) $text = get_the_excerpt( $pageid ); else $text = anima_custom_excerpt( apply_filters( 'the_content', get_post_field( 'post_content', $pageid ) ) ); break;
};
$iconid = preg_replace('/(\d)$/','icon$1', $key);
$data[$count] = array(
'title' => apply_filters('anima_block_title', get_the_title( $pageid ), $pageid ),
'text' => $text,
'icon' => ( ( $icon[$iconid] != 'no-icon' ) ? $icon[$iconid] : '' ),
'link' => apply_filters( 'anima_block_url', get_permalink( $pageid ), $pageid ),
'target' => apply_filters( 'anima_block_target', '', $pageid ),
'click' => $blocksclick,
'id' => $count,
'readmore' => $blocksreadmore,
);
anima_lpblock_output( $data[$count] );
$count++;
}
} ?>
have_posts() ) :
$custom_query->the_post();
if ( cryout_has_manual_excerpt( $custom_query->post ) ) {
$excerpt = get_the_excerpt();
} elseif ( has_excerpt() ) {
$excerpt = anima_custom_excerpt( get_the_excerpt(), $options['anima_lpboxlength' . $sid] );
} else {
$excerpt = anima_custom_excerpt( get_the_content(), $options['anima_lpboxlength' . $sid] );
};
$box = array();
$box['colno'] = $box_counter++;
$box['counter'] = $options['anima_lpboxcount' . $sid];
$box['title'] = apply_filters('anima_box_title', get_the_title(), get_the_ID() );
$box['content'] = $excerpt;
list( $box['image'], ) = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'anima-lpbox-' . $sid );
$box['link'] = apply_filters( 'anima_box_url', get_permalink(), get_the_ID() );
$box['readmore'] = do_shortcode( wp_kses_post( $options['anima_lpboxreadmore' . $sid] ) );
$box['target'] = apply_filters( 'anima_box_target', '', get_the_ID() );
$box['image'] = apply_filters('anima_preview_img_src', $box['image']);
anima_lpbox_output( $box );
endwhile; ?>
> have_posts() ) : $custom_query->the_post();
get_template_part( 'content/content', get_post_format() );
endwhile; ?>