$81 GRAYBYTE WORDPRESS FILE MANAGER $89

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/home/bravrvjk/cepurhuye.rw/wp-content/plugins/bopea-function/widget/

HOME
Current File : /home/bravrvjk/cepurhuye.rw/wp-content/plugins/bopea-function/widget//author.php
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
add_action('widgets_init','bopea_author_widget_init');
function bopea_author_widget_init(){
		register_widget("bopea_author_widget");
}

class bopea_author_widget extends WP_widget{

/*-----------------------------------------------------------------------------------*/
/*	Widget Setup
/*-----------------------------------------------------------------------------------*/

	public function __construct() {
		$widget_ops = array( 'classname' => 'jellywp_author_widget', 'description' => esc_html__( 'List all authors' , 'bopea-function') );
		parent::__construct('bopea_author_widget', esc_html__('&nbsp;Authors list', 'bopea-function'), $widget_ops);
        $this->defaults = array('authors' => array() );
	}

/*-----------------------------------------------------------------------------------*/
/*	Display Widget
/*-----------------------------------------------------------------------------------*/
	function widget($args,$instance){
    extract($args);
    $title = isset($instance['title']) ? $instance['title'] : "";
    $params = array_merge( $this->defaults, $instance );		      
    ?>
<?php print $before_widget;?>
<div class="widget_jl_wrapper jl_author_widget_content">
    <?php if($title) { print $before_title.esc_attr($title).$after_title; }?>
    <div class="jl_author_main">
    <?php if ( $params['authors'] ) {
            foreach ( $params['authors'] as $id ) {?>
                <div class="jl_m_right jl_lisep">
                    <div class="jl_m_right_img jl_radus_e">
                        <a href="<?php echo get_author_posts_url( $id ); ?>">
                        <?php echo get_avatar( $id, '140', '', '', array( 'class' => 'lazyload' )); ?>
                        </a>
                    </div>
                    <div class="jl_m_right_content">
                        <h2 class="jl_fe_title"><a href="<?php echo get_author_posts_url( $id ); ?>"><?php the_author_meta( 'display_name', $id ); ?></a></h2>
                        <p><?php echo wp_trim_words( get_the_author_meta( 'description', $id ), 9, '...' );?> </p>                        
                        <?php if(function_exists('bopea_author_share_link')){bopea_author_list_share($id);}?>
                    </div>
                </div>
                <?php
            }}?>
    </div>
    <?php
	print $after_widget;
	print "</div>";
	}

/*-----------------------------------------------------------------------------------*/
/*	Update Widget
/*-----------------------------------------------------------------------------------*/
	
	function update( $new_instance, $old_instance ) {
        $instance = $new_instance;
        $instance['title'] = $new_instance['title'];        
        return $instance;
    }

	function form($instance){
        $title = isset($instance['title']) ? esc_attr($instance['title']) : '';
        $params = array_merge( $this->defaults, $instance );
	?>
    <p>
    <span class="widefat">
            <?php esc_html_e( 'Title:', 'bopea-function'); ?></span>
        <input class="widefat" name="<?php echo esc_attr($this->get_field_name('title')); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></p>
    </p>
    <p>
    <span class="widefat"><?php esc_html_e( 'Authors', 'bopea-function' ); ?></span>
        <select name="<?php echo esc_attr( $this->get_field_name( 'authors' ) ); ?>[]" class="widefat" style="height: auto !important;" multiple="multiple" size="8">
                    <?php
                        $authors = get_users(
                            array(
                                'role__not_in' => array( '1', '2' ),
                                'number'       => 100,
                            )
                        );
                    if ( $authors ) {
                        foreach ( $authors as $author ) {
                            ?>
                    <option value="<?php echo esc_attr( $author->ID ); ?>" <?php selected( true, in_array( $author->ID, $params['authors'] ) ); ?>><?php echo esc_html( $author->data->display_name ); ?></option>
                    <?php
                        }
                    }
                    ?>
                </select>
            </p>
    <?php
	}
}
?>


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0755
about-us.php
38.562 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
author.php
4.242 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
contact-form-7.php
3.638 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
layout.php
3.193 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
recent-large.php
6.06 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644
recent-small.php
6.77 KB
25 Nov 2025 10.53 AM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF