__( 'AT Portfolio', 'aakanksha'), 'size' => 'span12', ); //create the block parent::__construct('as_Portfolio_Block', $block_options); } function form($instance) { $defaults = array( 'p_number' => '12', 'animation' => 'None', 'duration' => '300', 'delay' => '0', 'margin_top' => '10', 'margin_bottom' => '10', 'span_column' => 'span4', 'hide_filter' => '0', ); $instance = wp_parse_args($instance, $defaults); extract($instance); global $include_animation ; global $include_button_effect; ?>

 - 

false) ); if($hide_filter == true || $hide_filter == 1 ) $display_filter = ' display-none'; ?>
'; global $post; $query = new WP_Query(array( 'post_type' => 'portfolio', 'posts_per_page' => $p_number )); if($query->have_posts()){ while($query->have_posts()){ $query->the_post(); $terms = get_the_terms( $post->ID, 'portfolio_cat' ); $class = ''; if(!empty($terms)){ foreach ($terms as $term) { $class .= $term->slug.' '; } } ?>
'at-portfolio-thumbnail img-responsive') ); ?>
'; echo '
'; } function before_block($instance) { extract($instance); echo '
'; echo '
'; } function after_block($instance) { extract($instance); echo '
'; echo '
'; } } as_register_block( 'as_Portfolio_Block' ); endif;