$pageid ) {
if ( !empty( $pageid ) ) {
$page = get_post( $pageid );
switch ( $blockscontent ) {
case '0': $text = ''; break;
case '1': default: if (has_excerpt( $pageid )) $text = get_the_excerpt( $pageid ); else $text = anima_custom_excerpt( $page->post_content ); break;
case '2': $text = apply_filters( 'the_content', get_post_field( 'post_content', $pageid ) );
};
$data[$count] = array(
'title' => get_the_title( $pageid ),
'text' => $text,
'icon' => ( ( $icon[$key . 'icon'] != 'no-icon' ) ? $icon[$key . 'icon'] : '' ),
'link' => get_permalink( $pageid ),
'click' => $blocksclick,
'id' => $count,
);
anima_lpblock_output( $data[$count] );
$count++;
}
} ?>
$value ) { ${"$key"} = $value; } ?>
> have_posts() ) : $custom_query->the_post();
get_template_part( 'content/content', get_post_format() );
endwhile; ?>