Advertisement
Guest User

twetwe

a guest
Jul 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.61 KB | None | 0 0
  1. {{if !empty( $topics ) }}
  2.     <h3 class='ipsWidget_title ipsType_reset'>{$title}</h3>
  3.  
  4.     {{if $orientation == 'vertical'}}
  5.         <div class='ipsPad_half ipsWidget_inner'>
  6.             <ul class='ipsDataList ipsDataList_reducedSpacing'>
  7.                 {{foreach $topics as $topic}}
  8.                     <li class='ipsDataItem{{if $topic->unread()}} ipsDataItem_unread{{endif}}{{if $topic->hidden()}} ipsModerated{{endif}}'>
  9.                         <div class='ipsDataItem_icon ipsPos_top'>
  10.                             {template="userPhoto" group="global" app="core" params="$topic->author(), 'tiny'"}
  11.                         </div>
  12.                         <div class='ipsDataItem_main cWidgetComments'>
  13.                             <div class="ipsCommentCount ipsPos_right {{if ( $topic->posts - 1 ) === 0}}ipsFaded{{endif}}" data-ipsTooltip title='{lang="replies_number" pluralize="$topic->posts - 1"}'>{expression="\IPS\Member::loggedIn()->language()->formatNumber( $topic->posts - 1 )"}</div>
  14.                            
  15.                             <div class='ipsType_break ipsContained'>
  16.                                 {{if $topic->mapped('featured') || $topic->hidden() === -1 || $topic->hidden() === 1}}
  17.                                     {{if $topic->hidden() === -1}}
  18.                                         <span style="margin-right:4px;"><span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_warning" data-ipsTooltip title='{$topic->hiddenBlurb()}'><i class='fa fa-eye-slash'></i></span></span>
  19.                                     {{elseif $topic->hidden() === 1}}
  20.                                         <span style="margin-right:4px;"><span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_warning" data-ipsTooltip title='{lang="pending_approval"}'><i class='fa fa-warning'></i></span></span>
  21.                                     {{endif}}
  22.                                     {{if $topic->mapped('featured')}}
  23.                                         <span style="margin-right:4px;"><span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_positive" data-ipsTooltip title='{lang="featured"}'><i class='fa fa-star'></i></span></span>
  24.                                     {{endif}}
  25.                                 {{endif}}                          
  26.                                 <a href="{$topic->url()->setQueryString( 'do', 'getNewComment' )}" title='{lang="view_this_topic" sprintf="$topic->title"}' class='ipsDataItem_title'>{$topic->title}</a>
  27.                             </div>
  28.                             <p class='ipsType_reset ipsType_medium ipsType_blendLinks ipsContained'>
  29.                                 <span>{lang="byline_nodate" htmlsprintf="$topic->author()->link()"}</span><br>
  30.                                 <span class='ipsType_light'>{lang="topic_started_date" htmlsprintf="\IPS\DateTime::ts( $topic->mapped('date') )->html()"}</span>
  31.                             </p>
  32.                         </div>
  33.                     </li>
  34.                 {{endforeach}}
  35.             </ul>
  36.         </div>
  37.     {{else}}
  38.         <div class='ipsWidget_inner'>
  39.             <ul class='ipsDataList'>
  40.                 {{foreach $topics as $topic}}
  41.                     {template="row" group="global" app="forums" location="front" params="NULL, NULL, $topic, FALSE"}
  42.                 {{endforeach}}
  43.             </ul>
  44.         </div>
  45.     {{endif}}
  46. {{endif}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement