'olam_downloads_author_widget', 'description' => esc_html__('Displays the author download items. Used in Single Download Sidebar','bmci')); $control_ops = array('id_base' => 'olam_downloads_author_widget'); parent::__construct('olam_downloads_author_widget', esc_html__('Olam Author Downloads','bmci'), $widget_ops, $control_ops); } function widget($args, $instance) { extract($args); $title = $instance['title']; $subtitle = $instance['sub_title']; $enableVendorContactForm = isset($instance['enable_vendor_contact_form'])?$instance['enable_vendor_contact_form']:null; $sendMessageText = isset($instance['send_message_text'])?$instance['send_message_text']:null; echo $before_widget; global $post; $author = $post->post_author; ?>
0) ){ $avatarUrl=$avatarCustom; } else if(isset($avatarFES) && (strlen($avatarFES)>0) ){ $avatarUrl=$avatarFES; } else if(isset($author->user_email)&&olam_validate_gravatar($author->user_email)){ $avatarUrl=get_avatar_url($author); } if( isset($avatarUrl) && (strlen($avatarUrl)>0) ) { ?>
<?php the_author(); ?>
<?php the_author(); ?>
ID; } else if(is_singular('download')){ global $post; $author_id=$post->post_author; } else{ return; } ?>
esc_html__('Author','bmci'), 'sub_title' => esc_html__('COPYRIGHT 2015','bmci'),'enable_vendor_contact_form'=>esc_html__('on','bmci'),'send_message_text'=>esc_html__('Send Message','bmci')); $instance = wp_parse_args((array) $instance, $defaults); ?>

id="get_field_id('enable_vendor_contact_form')); ?>" class="widefat" name="get_field_name('enable_vendor_contact_form')); ?>" />