215 lines
No EOL
11 KiB
HTML
215 lines
No EOL
11 KiB
HTML
{lang code='channel' assign='object_type'}
|
|
{include file="$style_dir/global_header.html"}
|
|
<body>
|
|
{include file="$style_dir/blocks/view_channel/channel_global.html" }
|
|
<div id="container" class="container clearfix" style="background-color:none">
|
|
{include file="$style_dir/header.html"}
|
|
<div style="height:10px;"></div>
|
|
{include file="$style_dir/message.html"}
|
|
<div class="channel_inner_box" id="result_cont" style="display:none; background:#eee;"></div>
|
|
{show_flag_form id=$u.userid type=User}
|
|
<div class="moveL clearfix" style="width:270px; padding:0px 5px;">
|
|
{include file="$style_dir/blocks/view_channel/channel_left.html"}
|
|
</div> <!-- this is left side -->
|
|
<div class="moveL clearfix" style="width:700px; padding:0px 5px; ">
|
|
{if isSectionEnabled('photos') || isSectionEnabled('videos')}
|
|
{get_photos assign=latestP order=" date_added DESC" limit=10 user=$u.userid}
|
|
{get_videos assign=latestV order=" date_added DESC" limit=10 user=$u.userid status="Successful" broadcast="public"}
|
|
{if $latestP || $latestV}
|
|
<div class="channelFeatureBox clearfix">
|
|
<div class="itemListing moveL">
|
|
<button id="PprevItem" class="carouselButton">↑</button>
|
|
<div id="photoListing">
|
|
<ul style="list-style:none; margin:0px; padding:0px;">
|
|
{if $latestP}
|
|
{section name=plist loop=$latestP}
|
|
{if $smarty.section.plist.iteration==1}
|
|
{if !$profile_item}
|
|
{assign var='profile_item' value=$latestP[plist]}
|
|
{/if}
|
|
{/if}
|
|
{include file="$style_dir/blocks/photo.html" photo=$latestP[plist] display_type='channel_page'}
|
|
{/section}
|
|
{else}
|
|
<div style="min-height:200px; text-align:center; line-height:200px;"><em>{lang code='found_no_photos'}</em></div>
|
|
{/if}
|
|
</ul>
|
|
</div>
|
|
<button id="PnextItem" class="carouselButton">↓</button>
|
|
</div> <!-- itemListing end -->
|
|
<div class="viewItemBox">
|
|
<div id="viewingArea" class="viewingArea">
|
|
|
|
</div> <!-- viewingArea end -->
|
|
</div> <!-- viewItemBox end -->
|
|
|
|
|
|
<div class="itemListing moveR">
|
|
|
|
<button id="VprevItem" class="carouselButton">↑</button>
|
|
<div id="videoListing">
|
|
<ul style="list-style:none; margin:0px; padding:0px;">
|
|
{if $latestV}
|
|
{section name=vlist loop=$latestV}
|
|
{if !$profile_item}
|
|
{assign var='profile_item' value=$latestV[vlist]}
|
|
{/if}
|
|
{include file="$style_dir/blocks/video.html" video=$latestV[vlist] display_type='channel_page'}
|
|
{/section}
|
|
{else}
|
|
<div style="min-height:200px; text-align:center; line-height:200px;"><em>{lang code='found_no_videos'}</em></div>
|
|
{/if}
|
|
</ul>
|
|
</div>
|
|
<button id="VnextItem" class="carouselButton">↓</button>
|
|
</div> <!-- itemListing end -->
|
|
</div> <!-- channelFeatureBox end -->
|
|
{/if}
|
|
{/if}
|
|
|
|
{* Fetching Profile item File*}
|
|
|
|
{if $profile_item}
|
|
<div id="profileItemScrap" style="display:none">
|
|
{include file="$style_dir/blocks/view_channel/channel_item.html" object = $profile_item }</div>
|
|
<script>
|
|
$(document).ready
|
|
(
|
|
function()
|
|
{ldelim}
|
|
$('#viewingArea').html($('#profileItemScrap').html());
|
|
{rdelim}
|
|
);
|
|
</script>
|
|
{/if}
|
|
|
|
<div class="clearfix channelBox" style="border:1px solid #ccc; padding:0px;">
|
|
<ul class="channelBar clearfix">
|
|
<li><a href="#" class="selected" rel="infoDIV" onClick="channelObjects(this,'#channelDetailsBox','info','{$u.userid}'); return false;">Info</a></li>
|
|
{if isSectionEnabled('videos')}
|
|
<li><a href="#" onClick="channelObjects(this,'#channelDetailsBox','videos','{$u.userid}'); return false;">Videos</a></li>{/if}
|
|
{if isSectionEnabled('groups')}
|
|
<li><a href="#" onClick="channelObjects(this,'#channelDetailsBox','groups','{$u.userid}'); return false;">Groups</a></li>{/if}
|
|
{if isSectionEnabled('photos')}
|
|
<li><a href="#" onClick="channelObjects(this,'#channelDetailsBox','photos','{$u.userid}'); return false;">Photos</a></li>{/if}
|
|
</ul>
|
|
<div id="channelDetailsBox">
|
|
<div id="infoDIV" class="channelInnerPadding clearfix">
|
|
<fieldset class="channelFieldset">
|
|
<legend class="channelLegend">Basic Info</legend>
|
|
{assign var="personal_details" value=$userquery->load_personal_details($p)}
|
|
{foreach from=$personal_details item=field}
|
|
{if $field.auto_view=='yes' && $field.value}
|
|
<div class="channelRow">
|
|
{if $field.type !='textarea' && $field.type !='text' && $field.type !='textfield'}
|
|
<div class="channelLabel">{$field.title}</div>
|
|
<div class="channelDetail">{input_value input=$field}</div>
|
|
{elseif $field.type =='textarea'}
|
|
<div class="channelLabel">{$field.title}</div>
|
|
<div class="channelDetail">{$field.value|nl2br}</div>
|
|
{else}
|
|
<div class="channelLabel">{$field.title}</div>
|
|
<div class="channelDetail">{input_value input=$field}</div>
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
{/foreach}
|
|
</fieldset>
|
|
|
|
<fieldset id="moreDetails" class="channelFieldset">
|
|
<legend class="channelLegend" style=" margin-bottom:0px;" onClick="$('#moreDetails').hide(); $('#moreDetailsDIV').show();">MORE</legend>
|
|
</fieldset>
|
|
|
|
<div style="display:none; margin:0px; padding:0px;" id="moreDetailsDIV">
|
|
<fieldset class="channelFieldset">
|
|
<legend class="channelLegend">Location</legend>
|
|
{assign var="location_details" value=$userquery->load_location_fields($p)}
|
|
{foreach from=$location_details item=field}
|
|
{if $field.auto_view=='yes'}
|
|
<div class="channelRow">
|
|
{if $field.type !='textarea' && $field.type !='text' && $field.type !='textfield'}
|
|
<div class="channelLabel">{$field.title}</div>
|
|
<div class="channelDetail">{input_value input=$field}</div>
|
|
{elseif $field.type =='textarea'}
|
|
<div class="channelLabel">{$field.title}</div>
|
|
<div class="channelDetail">{$field.value|nl2br}</div>
|
|
{else}
|
|
<div class="channelLabel">{$field.title}</div>
|
|
<div class="channelDetail">{input_value input=$field}</div>
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
{/foreach}
|
|
</fieldset>
|
|
|
|
<fieldset class="channelFieldset">
|
|
<legend class="channelLegend">Education, Hobbies, etc</legend>
|
|
{assign var="other_details" value=$userquery->load_other_fields($p)}
|
|
{foreach from=$other_details item=field}
|
|
{if $field.auto_view=='yes'}
|
|
<div class="channelRow">
|
|
{if $field.type !='textarea' && $field.type !='text' && $field.type !='textfield'}
|
|
<div class="channelLabel">{$field.title}</div>
|
|
<div class="channelDetail">{input_value input=$field}</div>
|
|
{elseif $field.type =='textarea'}
|
|
<div class="channelLabel">{$field.title}</div>
|
|
<div class="channelDetail">{$field.value|nl2br}</div>
|
|
{else}
|
|
<div class="channelLabel">{$field.title}</div>
|
|
<div class="channelDetail">{input_value input=$field}</div>
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
{/foreach}
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="borderLine clearfix" style=" border-width:1px; margin:0px 0px 15px;"></div>
|
|
|
|
<div class="channelInnerPadding" id="commentsDIV">
|
|
<fieldset class="channelFieldset">
|
|
<legend class="channelLegend">{lang code="comments"}</legend>
|
|
|
|
|
|
<div id="comments"></div>
|
|
<script>
|
|
$(document).ready(function()
|
|
{ldelim}
|
|
comments_voting = 'no';
|
|
getComments('c','{$u.userid}','{$u.last_commented}',1,'{$u.comments_count}','{$object_type}')
|
|
{rdelim}
|
|
);
|
|
</script>
|
|
<hr width="100%" size="1" noshade>
|
|
|
|
{if $myquery->is_commentable($p,'u')}
|
|
{include file="$style_dir/blocks/comments/add_comment.html" id=$u.userid type=c}
|
|
{else}
|
|
<div class="disable_msg" align="center">{lang code='coments_disabled_profile'}</div>
|
|
{/if}
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
</div> <!-- this is right side -->
|
|
</div> <!-- container end -->
|
|
|
|
<div class="clearfix" style="height:10px"></div>
|
|
<div id="footer" class="clearfix" style="margin-top:0px;">
|
|
<div class="footer">
|
|
© {$title} {$smarty.now|date_format:"%Y"}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<script>var funcToBCalled = '';
|
|
$(document).ready(function(){ldelim}
|
|
var firstChild = $('.itemBox:first-child');
|
|
funcToBCalled = firstChild.attr('onclick');
|
|
;
|
|
{rdelim}
|
|
).bind(funcToBCalled);
|
|
</script>
|
|
</body>
|
|
</html> |