public function __construct() { parent::__construct(); if (!self::$instanceId) { self::$instanceId = 1; } else { self::$instanceId++; } }
function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); $authors = $this->get_clients(); echo $before_widget; ?> <div class="fancy-headers"><h3 class="widget-title staff-title"><?php echo $instance['title']; ?> </h3></div> <p><?php echo $instance['text']; ?> </p> <div class="staff-members-container"> <ul class="staff-members clearfix"> <?php foreach ($authors as $author) { ?> <li> <p class="bubble"><?php echo $author->display_name; ?> </p> <figure> <a href="<?php echo $author->user_url; ?> " data-toggle="popover" data-content="<?php echo get_the_author_meta('user_description', $author->ID); ?> " title="<?php echo $author->display_name; ?> "> <?php echo YoPressUserProfileExtender::getUserImage($author->ID); ?> </a> </figure> </li> <?php } ?> </ul> </div> <?php echo $after_widget; }