PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/seoshop.live/wp-content/themes/seo_reseller_v1/widgets/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/seoshop.live/wp-content/themes/seo_reseller_v1/widgets/seomall-blog.php |
<?php /* * Plugin Name: SeoMall Reseller Blog Widget * Description: The widget that displays Recent Posts from Blog * Version: 0.1 * Author: Mariya Chepurko * Author URI: http://masinizator.com/ */ class blog_widget extends WP_Widget { /** constructor -- name this the same as the class above */ function blog_widget() { parent::WP_Widget(false, $name = 'Recent Posts from Blog', array( 'description' => __( 'The widget that displays Recent Posts from Blog'))); } /** @see WP_Widget::widget -- do not rename this */ function widget($args, $instance) { extract( $args ); ?> <?php echo $before_widget; ?> <div class="blog_widget"> <div class="blog_widget_bg"> <div class="blog_widget_tx widget_title"> Blog </div> </div> <div class="blog_widget_content"> <?php $wp_query = new WP_Query (array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 3) ); while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <div class="blog_w_date"> <?php the_time('F j, Y');?><?php echo " in ";?><?php echo get_the_term_list( get_the_ID(), 'category' ) ?> </div> <div class="blog_w_title"> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php echo the_title();?></a> </div> <div class="blog_w_entry"> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php echo limit_words(get_the_excerpt(), '18'); ?> </div> </div> <div class="blog_w_read"> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">Read more</a> </div> <?php endwhile; ?> </div> </div> <?php echo $after_widget; ?> <?php } /** @see WP_Widget::update -- do not rename this */ function update($new_instance, $old_instance) { $instance = $old_instance; return $instance; } /** @see WP_Widget::form -- do not rename this */ function form($instance) { ?> <p> This widget has no settings. </p> <?php } } // end class blog_widget add_action('widgets_init', create_function('', 'return register_widget("blog_widget");')); ?>