All pastes #2923883 Raw Edit

Cosmin

public unlisted text v1 · immutable
#2923883 ·published 2015-02-10 20:20 UTC
rendered paste body
<div itemscope itemtype="http://schema.org/Person" class='user_details'>
	<span class='hide' itemprop="name">{$author['members_display_name']}</span>
	<ul class='basic_info'>
		<if test="avatar:|:$author['member_id']">
			<li class='avatar'>
				<if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
				<a itemprop="url" href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$author['members_display_name']}" class='ipsUserPhotoLink'>
				</if>
				<if test="hasVariable:|:$this->settings['member_topic_avatar_max']">
					<img itemprop="image" src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' />
				<else />
					<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
				</if>
				<if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
				</a>
				</if>
			</li>
		<else />
			<li class='avatar'>
				<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
			</li>
		</if>
		<li class='group_title'>
			<if test="$author['g_id']== 7">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #ff0000;">
                                        <div class="Rleft" style="background: #ff0000;"></div>
                                        <div class="Rright" style="background: #ff0000;"></div>
                                   <span style="color: #D92393;"><span style="color:#fff;">{$author['g_title']}</span></span>
                                </li>
 </ul>
 </if>
<if test="$author['g_id']== 4">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #0099FF;">
                                        <div class="Rleft" style="background: #0099FF;"></div>
                                        <div class="Rright" style="background: #0099FF;"></div>
                                 <span style="color:#fff;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>
<if test="$author['g_id']== 6">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #00FF33;">
                                        <div class="Rleft" style="background: #00FF33;"></div>
                                        <div class="Rright" style="background: #00FF33;"></div>
                                   <span style="color:#fff;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>
 <if test="$author['g_id']== 9">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #00AA00;">
                                        <div class="Rleft" style="background: #00AA00;"></div>
                                        <div class="Rright" style="background: #00AA00;"></div>
                                   <span style="color:#fff;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>
  <if test="$author['g_id']== 11">
<ul class="ribbon">
                                <li class="ribbon2" style="background: gold;">
                                        <div class="Rleft" style="background: gold;"></div>
                                        <div class="Rright" style="background: gold;"></div>
                                   <span style="color:#fff;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>
   <if test="$author['g_id']== 12">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #b66123;">
                                        <div class="Rleft" style="background: #b66123;"></div>
                                        <div class="Rright" style="background: #b66123;"></div>
                                   <span style="color:#fff;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>
    <if test="$author['g_id']== 10">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #990099;">
                                        <div class="Rleft" style="background: #990099;"></div>
                                        <div class="Rright" style="background: #990099;"></div>
                                   <span style="color:#fff;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>    
 <if test="$author['g_id']== 3">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #666;">
                                        <div class="Rleft" style="background: #666;"></div>
                                        <div class="Rright" style="background: #666;"></div>
                                   <span style="color:#fff;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>

 <if test="$author['g_id']== 21">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #666;">
                                        <div class="Rleft" style="background: #666;"></div>
                                        <div class="Rright" style="background: #666;"></div>
                                   <span style="color:#fff;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>

 <if test="$author['g_id']== 18">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #666;">
                                        <div class="Rleft" style="background: #666;"></div>
                                        <div class="Rright" style="background: #666;"></div>
                                   <span style="color:#fff;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>

 <if test="$author['g_id']== 13">
<ul class="ribbon">
                                <li class="ribbon2" style="background: orange;">
                                        <div class="Rleft" style="background: orange;"></div>
                                        <div class="Rright" style="background: orange;"></div>
                                   <span style="color:#fff;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>
 <if test="$author['g_id']== 15">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #4C7D7E;">
                                        <div class="Rleft" style="background: #4C7D7E;"></div>
                                        <div class="Rright" style="background: #4C7D7E;"></div>
                                   <span style="color:#fff;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>
<if test="$author['g_id']== 16">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #5F8222;">
                                        <div class="Rleft" style="background: #5F8222;"></div>
                                        <div class="Rright" style="background: #5F8222;"></div>
                                   <span style="color:#fff;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>

<if test="$author['g_id']== 19">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #F2EA83;">
                                        <div class="Rleft" style="background: #F2EA83;"></div>
                                        <div class="Rright" style="background: #F2EA83;"></div>
                                   <span style="color:#fff;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>

			<if test="$author['g_id']== 17">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #8040ff;">
                                        <div class="Rleft" style="background: #8040ff;"></div>
                                        <div class="Rright" style="background: #8040ff;"></div>
                                   <span style="color: #D92393;"><span style="color:#fff;">{$author['g_title']}</span></span>
                                </li>
 </ul>
 </if>

<if test="$author['g_id']== 14">
<ul class="ribbon">
                                <li class="ribbon2" style="background: #F10B80;">
                                        <div class="Rleft" style="background: #F10B80;"></div>
                                        <div class="Rright" style="background: #F10B80;"></div>
                                   <span style="color:#fff;">{$author['g_title']}</span>
                                </li>
 </ul>
 </if>
		</li>
<if test="membertitle:|:$author['member_title']">
<ul class="ribbon" style='margin-top:-5px;'>
                                <li class="ribbon2" style="background: #323232;">
                                        <div class="Rleft" style="background: #323232;"></div>
                                        <div class="Rright" style="background: #323232;"></div>
                                    <span style="color:#fff;<if test="$author['member_id']==4">color:red;font-weight:bold;</if><if test="$author['member_id']==37 ">color:#2B8AF1;font-weight:bold;</if>">{$author['member_title']}</span>
                                </li>
</ul>
</if>
		<!-- <if test="rankimage:|:$author['member_rank_img']">
			<li class='group_icon'>
			<if test="rankimageimage:|:$author['member_rank_img_i'] == 'img'">
				<img src='{$author['member_rank_img']}' alt='' />
			<else />
				{$author['member_rank_img']}
			</if>
			</li>
		</if> -->
		<if test="postCount:|:$author['member_id']">
		<div class="extraUserInfo">	
<if test="postCount:|:$author['member_id']">	
<dl class="pairsJustified">
<dt>Mesaje:</dt>              
<dd>{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}</dd>                
</dl>
<dl class="pairsJustified">
<dt>Subiecte:</dt>              
<dd><php>$topics=ipsRegistry::DB()->buildAndFetch(array('select'=>'count(*) as topics','from'=>'topics','where'=>"starter_id=".$author['member_id']));</php>{$topics['topics']}</dd>                
</dl>
</if>
<dl class="pairsJustified">
  <li class='post_count desc lighter'>
<dt>Reputaţie:</dt>
   <dd>
   {$author['pp_reputation_points']}</dd>
  </li>
        </dl>
<dl class="pairsJustified">
<dt>ID membru:</dt>              
<dd>{$author['member_id']}</dd>                
</dl>

<dl class="pairsJustified">
  <li class='post_count desc lighter'>
<dt>Puncte Warn:</dt>
   <dd>

<if test="authorwarn:|:$author['show_warn']">
            <li>
                <if test="$options['wl_id']">
                    <img src='{$this->settings['img_url']}/warn.png' class='clickable' onclick='warningPopup( this, {$options['wl_id']} )' title='{$this->lang->words['warnings_issued']}' />
                </if>
                <a class='desc lighter blend_links' href='{parse url="app=members&amp;module=profile&amp;section=warnings&amp;member={$author['member_id']}&amp;from_app={$this->request['app']}&amp;from_id1={$contentid}&amp;from_id2={$options['id2']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}'>{parse expression="sprintf( $this->lang->words['warn_status'], $author['warn_level'] )"}</a>
            </li>
		</if>
</dl>

	
	<if test="authorcfields:|:$author['custom_fields'] != """>
		<ul class='custom_fields' style='margin-top:-2px;'>
			<foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">
				<foreach loop="customFields:$author['custom_fields'][ $group ] as $field">
					<if test="$field != ''">
						<li>
							{$field}
						</li>
					</if>
				</foreach>
			</foreach>
		</ul>
	</if>
<if test="authorwarn:|:$author['show_warn']">
</if>
</div>
</if>
	
</div>