__( 'AT Blog', 'aakanksha'), 'size' => 'span12', ); //create the block parent::__construct('as_Blog_Block', $block_options); } function form($instance) { $defaults = array( 'quantity' => '2', 'margin_top' => 10, 'margin_bottom' => 10, 'animation' => 'none', 'animation' => 'None', 'duration' => '900', 'delay' => '0', 'show' => '1', 'link' => '#' ); $instance = wp_parse_args($instance, $defaults); extract($instance); global $include_animation ; ?>

 -   - 

   -  

'post', 'posts_per_page' => $quantity )); $i = 0; global $post; if($query->have_posts()){ while($query->have_posts()){ $query->the_post(); $animation_effect =''; $duration_effect =''; if($animation) $animation_effect = 'animated '.$animation.''; if($duration != '' && $animation != '') $duration_effect = 'style="-webkit-animation-duration: '.$duration.'ms; -moz-animation-duration: '.$duration.'ms; -o-animation-duration: '.$duration.'ms;animation-duration: '.$duration.'ms; animation-delay:'.$delay * $i.'ms; -webkit-animation-delay:'.$delay * $i.'ms; -moz-animation-delay:'.$delay * $i.'ms;-o-animation-delay:'.$delay * $i.'ms;"'; ?>
>
'at-post-thumbnail img-responsive') ); ?>
ID, 'at_like_count', true) ? get_post_meta($post->ID, 'at_like_count', true) : 0; ?>
'; } } wp_reset_query(); } function before_block($instance) { extract($instance); echo '
'; //echo '
'; } function after_block($instance) { extract($instance); $show_btn=''; if($show == 1 || $show == 'true') $show_btn = ''; echo '
'; echo $show_btn; //echo '
'; echo '
'; } } as_register_block( 'as_Blog_Block' ); endif;