Advertisement
DubStepMad

Untitled

Jul 27th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 8.11 KB | None | 0 0
  1. {{$idField = $comment::$databaseColumnId;}}
  2. {{$itemClassSafe = str_replace( '\\', '_', mb_substr( $comment::$itemClass, 4 ) );}}
  3. {{if $comment->isIgnored()}}
  4.     <div class='ipsComment ipsComment_ignored ipsType_light' id='elIgnoreComment_{$comment->$idField}' data-ignoreCommentID='elComment_{$comment->$idField}' data-ignoreUserID='{$comment->author()->member_id}'>
  5.         {lang="ignoring_content" sprintf="$comment->author()->name"} <a href='#elIgnoreComment_{$comment->$idField}_menu' data-ipsMenu data-ipsMenu-menuID='elIgnoreComment_{$comment->$idField}_menu' data-ipsMenu-appendTo='#elIgnoreComment_{$comment->$idField}' data-action="ignoreOptions" title='{lang="see_post_ignore_options"}' class='ipsType_blendLinks'>{lang="options"} <i class='fa fa-caret-down'></i></a>
  6.         <ul class='ipsMenu ipsHide' id='elIgnoreComment_{$comment->$idField}_menu'>
  7.             <li class='ipsMenu_item ipsJS_show' data-ipsMenuValue='showPost'><a href='#'>{lang="show_this_post"}</a></li>
  8.             <li class='ipsMenu_sep ipsJS_show'><hr></li>
  9.             <li class='ipsMenu_item' data-ipsMenuValue='stopIgnoring'><a href='{url="app=core&module=system&controller=ignore&do=remove&id={$comment->author()->member_id}" seoTemplate="ignore"}'>{lang="stop_ignoring_posts_by" sprintf="$comment->author()->name"}</a></li>
  10.             <li class='ipsMenu_item'><a href='{url="app=core&module=system&controller=ignore" seoTemplate="ignore"}'>{lang="change_ignore_preferences"}</a></li>
  11.         </ul>
  12.     </div>
  13. {{endif}}
  14.  
  15. <a id='comment-{$comment->$idField}'></a>
  16. <article {{if $comment->author()->hasHighlightedReplies()}}data-memberGroup="{$comment->author()->member_group_id}" {{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if ( settings.reputation_enabled and settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight ) OR $comment->isFeatured()}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->author()->hasHighlightedReplies()}}ipsComment_highlighted{{endif}}{{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden() OR $item->hidden() === -2}}ipsModerated{{endif}}'>
  17.     {{if $item->isQuestion() and !$comment->new_topic}}
  18.         {template="postRating" group="topics" app="forums" params="$item, $comment, $votes"}
  19.     {{endif}}
  20.  
  21.     <div class='cAuthorPane cAuthorPane_mobile ipsResponsive_showPhone ipsResponsive_block'>
  22.         <h3 class='ipsType_sectionHead cAuthorPane_author ipsResponsive_showPhone ipsResponsive_inlineBlock ipsType_break ipsType_blendLinks ipsTruncate ipsTruncate_line'>
  23.             {template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), $comment->author()->group['g_id']"}
  24.             <span class='ipsResponsive_showPhone ipsResponsive_inline'>&nbsp;&nbsp;{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span>
  25.         </h3>
  26.         <div class='cAuthorPane_photo'>
  27.             {template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
  28.         </div>
  29.     </div>
  30.     <aside class='ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone'>
  31.         <h3 class='ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break'><strong>{$comment->author()->link( $comment->warningRef() )|raw}</strong> <span class='ipsResponsive_showPhone ipsResponsive_inline'>&nbsp;&nbsp;{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span></h3>
  32.         {{if theme.veilon_topic_panel_type == 'standart'}}
  33.         <ul class='cAuthorPane_info ipsList_reset'>
  34.             {{if $comment->author()->member_title && $comment->author()->member_id}}
  35.                 <li class='ipsType_break'>{$comment->author()->member_title}</li>
  36.             {{elseif $comment->author()->rank['title'] && $comment->author()->member_id}}
  37.                 <li class='ipsType_break'>{$comment->author()->rank['title']}</li>
  38.             {{endif}}
  39.             {{if $comment->author()->rank['image'] && $comment->author()->member_id}}
  40.                 <li>{$comment->author()->rank['image']|raw}</li>
  41.             {{endif}}
  42.  
  43.             <li class='cAuthorPane_photo'>
  44.                 {template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
  45.             </li>
  46.             <li>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</li>
  47.             {{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }}
  48.                 <li><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li>
  49.             {{endif}}
  50.             {{if $comment->author()->member_id}}
  51.                 <li>{template="reputationBadge" group="global" app="core" params="$comment->author()"}</li>
  52.                 <li class='ipsType_light'>{lang="member_post_count" pluralize="$comment->author()->member_posts"}</li>
  53.                 {{if $comment->author()->reputationImage()}}
  54.                     <li class='ipsPad_half'>
  55.                         <img src='{file="$comment->author()->reputationImage()" extension="core_Theme"}' title='{{if $comment->author()->reputation()}}{$comment->author()->reputation()}{{endif}}' alt=''>
  56.                     </li>
  57.                 {{endif}}
  58.                 {template="customFieldsDisplay" group="global" app="core" params="$comment->author()"}
  59.             {{endif}}
  60.         </ul>
  61.         {{else}}
  62.         <ul class='cAuthorPane_info ipsList_reset veilon--custom_field'>
  63.             {{if $comment->author()->member_title && $comment->author()->member_id}}
  64.                 <li class='ipsType_break'>{$comment->author()->member_title}</li>
  65.             {{elseif $comment->author()->rank['title'] && $comment->author()->member_id}}
  66.                 <li class='ipsType_break'>{$comment->author()->rank['title']}</li>
  67.             {{endif}}
  68.             {{if $comment->author()->rank['image'] && $comment->author()->member_id}}
  69.                 <li>{$comment->author()->rank['image']|raw}</li>
  70.             {{endif}}
  71.  
  72.             <li class='cAuthorPane_photo'>
  73.                 {template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
  74.             </li>
  75.             <li class="ipsButton ipsButton_verySmall ipsButton_veryLight ipsTruncate ipsTruncate_line ipsSpacer_bottom ipsSpacer_half"><strong>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</strong></li>
  76.             {{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }}
  77.                 <li><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li>
  78.             {{endif}}
  79.             {{if $comment->author()->member_id}}
  80.                 <li class="ipsType_light">
  81.                   <span class="left">{lang="mf_reputation"}:</span>
  82.                   <span class="right">{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span>
  83.           </li>
  84.                 <li class="ipsType_light">
  85.                   <span class="left">{lang="archive_topic_post"}:</span>
  86.                   <span class="right">{number="$comment->author()->member_posts"}</span>
  87.           </li>
  88.                 {{if $comment->author()->reputationImage()}}
  89.                     <li class='ipsPad_half'>
  90.                         <img src='{file="$comment->author()->reputationImage()" extension="core_Theme"}' title='{{if $comment->author()->reputation()}}{$comment->author()->reputation()}{{endif}}' alt=''>
  91.                     </li>
  92.                 {{endif}}
  93.                 {template="customFieldsDisplay" group="global" app="core" params="$comment->author()"}
  94.             {{endif}}
  95.             {{if $method = \IPS\Login\Handler::findMethod( 'IPS\Login\Handler\ExternalDatabase' )}}
  96.     {{try{ $identifier = \IPS\Db::i()->select( 'token_identifier', 'core_login_links', array( 'token_login_method=? AND token_member=?', $method->id, $comment->author()->member_id ) )->first();}catch( \UnderflowException $e ){ $identifier = NULL; } }}
  97.     {{if $identifier}}
  98.         <a target="_blank" href='https://infinitetruckers.com/user/{$identifier}' class="ipsButton ipsButton_light ipsButton_small ipsButton_fullWidth" title="View IFMP Profile"><i class="fa fa-truck"></i> <span class="ipsResponsive_showDesktop ipsResponsive_inline">&nbsp;IFMP Profile</span></a>
  99.     {{endif}}
  100. {{endif}}
  101.         </ul>
  102.         {{endif}}
  103.     </aside>
  104.     <div class='ipsColumn ipsColumn_fluid'>
  105.         {template="post" group="topics" app="forums" params="$item, $comment, $item::$formLangPrefix . 'comment', $item::$application, $item::$module, $itemClassSafe"}
  106.     </div>
  107. </article>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement