<div id="selWidgetRecentBlogs" class="clsSideBarSections">
  <!--<h3>{$displayRecentBlogs_arr.common_recent_blog_title}
  		{if $displayRecentBlogs_arr.close}
			 <div class="clsMaxButton">
			  <a href="{$displayRecentBlogs_arr.cur_url}" onClick="size_max_mini('recent_blogs', 'size_recent_blogs');return false"><span id="size_recent_blogs"><img src="{$CFG.site.url}/design/templates/{$CFG.html.template.default}/images/minimize.jpg" alt="{$LANG.minimize}"  /></span></a>
			   <a href="{$displayRecentBlogs_arr.cur_url}" onClick="closewidget('item_6');return false;"><img src="{$CFG.site.url}/design/templates/{$CFG.html.template.default}/images/close.jpg" alt="{$LANG.close}" /></a>
			</div>
		{/if}
  </h3>-->
   <div class="clsSideBarContents" id ="recent_blogs" style="display:block;">
   	{if $displayRecentBlogs_arr.recent_blogs}
		{foreach key=inc item=value from=$displayRecentBlogs_arr.row}
			 <div>
			  <div class="{$value.clsOddOrEvenQuestion} clsUserThumbDetails">

				<div class="clsUserDetails">
			  		<p class="clsQuestionLink">{$value.blogDetails.blog_link}</p>

			  		<div class="clsClearfix clsUserSubLinks">
						{if $myobj->showVideoAudio}
							<div class="clsUserUploaded clsNoLeftBgPadngMrgn">
								{if chkVideoModuleAllowed('blog') and $value.blogDetails.video_id}
									<a id="{$value.blogDetails.ans_view_video.on_click}" href="{$value.blogDetails.ans_view_video.url}" onClick="{$myobj->getBrowser($value.blogDetails.ans_view_video.on_click)}">
									<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusvideo.gif" /></a>
								{/if}
								{if chkAudioModuleAllowed('blog') and $value.blogDetails.audio_id}
									<a id="{$value.blogDetails.ans_view_audio.on_click}" href="{$value.blogDetails.ans_view_audio.url}" onClick="{$myobj->getBrowser($value.blogDetails.ans_view_audio.on_click)}">
									<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusaudio.gif" /></a>
								{/if}
								{if chkExternalVideoModuleAllowed('blog') and $value.blogDetails.external_video_id}
									<a id="{$value.blogDetails.ext_ans_view_video.on_click}" href="{$value.blogDetails.ext_ans_view_video.url}" onClick="{$myobj->getBrowser($value.blogDetails.ext_ans_view_video.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalvideo.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
								{/if}
								{if chkExternalAudioModuleAllowed('blog') and $value.blogDetails.external_audio_id}
									<a id="{$value.blogDetails.ext_ans_view_audio.on_click}" href="{$value.blogDetails.ext_ans_view_audio.url}" onClick="{$myobj->getBrowser($value.blogDetails.ext_ans_view_audio.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalaudio.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
								{/if}
							</div>
						{/if}
						<div class="clsUserLinkBy {$value.blogDetails.separator_class} clsNoBold">{$LANG.common_in}&nbsp;</div>
							<div class="clsUserCategoryBlog clsNoLeftBgPadngMrgn">
                            	{$value.blogDetails.blogcategoryname}
                            </div>
						<div class="clsUserLinkBy">{$LANG.common_forum_started_by}</div>
						<div class="clsUserLinkImage">
						{if isUserImageAllowed()}
							{$myobj->displayProfileImage($value.blogDetails, 'tiny')}
						{/if}
						</div>
						<div class="clsUserLinkName clsNoLeftBgPadngMrgn">{$value.blogDetails.blog_user_name}</div>
						<div class="clsUserLinkViews">{$value.blogDetails.total_views} {$value.view_plural}</div>
						<div class="clsUserLinkDate">{$myobj->getTimeDiffernceFormat($value.blogDetails.date_added)}</div>
					</div>
				</div>
			  <div class="clsAnswerCount"><p><span>{$value.blogDetails.total_comments}</span> {$value.comment_plural}</p></div>
			</div>
			</div>
		{/foreach}
	{/if}
	{if $displayRecentBlogs_arr.have_blogs}
			{if $displayRecentBlogs_arr.is_user }
	   			 <p class="clsMoreLink"><a href="{$displayRecentBlogs_arr.blogs_url}">{$LANG.common_more}</a></p>
 			{else}
			    <p class="clsMoreLink"><a href="{$displayRecentBlogs_arr.blogs_url}">{$LANG.common_more}</a></p>
			{/if}
	{/if}
	{if !$displayRecentBlogs_arr.have_blogs}
		  <div class="clsNoRecords">
			<p>{$LANG.common_no_blogs}</p>
		  </div>
	{/if}
   </div>
</div>
