2011-02-07 13:09:51 +00:00
|
|
|
{lang code='channel' assign='object_type'}
|
2009-11-30 19:46:45 +00:00
|
|
|
{include file="$style_dir/global_header.html"}
|
|
|
|
<body>
|
2010-03-03 13:58:09 +00:00
|
|
|
{include file="$style_dir/blocks/view_channel/channel_global.html" }
|
2011-02-10 08:34:36 +00:00
|
|
|
<div id="container" class="container clearfix">
|
2011-01-27 12:42:54 +00:00
|
|
|
{include file="$style_dir/header.html"}
|
|
|
|
<div style="height:10px;"></div>
|
2009-11-30 19:46:45 +00:00
|
|
|
{include file="$style_dir/message.html"}
|
2011-01-27 12:42:54 +00:00
|
|
|
<div class="channel_inner_box" id="result_cont" style="display:none; background:#eee;"></div>
|
2011-02-09 16:03:20 +00:00
|
|
|
|
2011-02-10 11:18:04 +00:00
|
|
|
<div class="moveL clearfix channelBox" style="width:270px;">
|
2011-01-27 12:42:54 +00:00
|
|
|
{include file="$style_dir/blocks/view_channel/channel_left.html"}
|
|
|
|
</div> <!-- this is left side -->
|
2011-02-10 11:18:04 +00:00
|
|
|
<div class="moveL clearfix channelBox" style="width:700px;">
|
2011-01-27 12:42:54 +00:00
|
|
|
{if isSectionEnabled('photos') || isSectionEnabled('videos')}
|
2011-02-09 16:03:20 +00:00
|
|
|
|
|
|
|
{if $p.show_my_photos !='no'}
|
|
|
|
{get_photos assign=latestP order=" date_added DESC" limit=10 user=$u.userid}
|
|
|
|
{/if}
|
|
|
|
|
2011-01-27 12:42:54 +00:00
|
|
|
{get_videos assign=latestV order=" date_added DESC" limit=10 user=$u.userid status="Successful" broadcast="public"}
|
|
|
|
{if $latestP || $latestV}
|
|
|
|
<div class="channelFeatureBox clearfix">
|
2011-02-09 16:03:20 +00:00
|
|
|
{if $p.show_my_photos !='no'}
|
2011-01-27 12:42:54 +00:00
|
|
|
<div class="itemListing moveL">
|
2011-02-09 16:03:20 +00:00
|
|
|
<button id="PprevItem" class="carouselButton"><img src="{$imageurl}/up.png"></button>
|
2011-01-27 12:42:54 +00:00
|
|
|
<div id="photoListing">
|
|
|
|
<ul style="list-style:none; margin:0px; padding:0px;">
|
|
|
|
{if $latestP}
|
|
|
|
{section name=plist loop=$latestP}
|
2011-02-06 19:51:59 +00:00
|
|
|
{if $smarty.section.plist.iteration==1}
|
|
|
|
{if !$profile_item}
|
|
|
|
{assign var='profile_item' value=$latestP[plist]}
|
|
|
|
{/if}
|
|
|
|
{/if}
|
2011-01-27 12:42:54 +00:00
|
|
|
{include file="$style_dir/blocks/photo.html" photo=$latestP[plist] display_type='channel_page'}
|
|
|
|
{/section}
|
|
|
|
{else}
|
2011-02-06 20:27:01 +00:00
|
|
|
<div style="min-height:200px; text-align:center; line-height:200px;"><em>{lang code='found_no_photos'}</em></div>
|
2011-01-27 12:42:54 +00:00
|
|
|
{/if}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2011-02-09 16:03:20 +00:00
|
|
|
<button id="PnextItem" class="carouselButton"><img src="{$imageurl}/down.png"></button>
|
2011-01-27 12:42:54 +00:00
|
|
|
</div> <!-- itemListing end -->
|
2011-02-09 16:03:20 +00:00
|
|
|
{/if}
|
|
|
|
|
|
|
|
{if $p.show_my_photos !='no' || $p.show_my_videos !='no'}
|
2011-01-27 12:42:54 +00:00
|
|
|
<div class="viewItemBox">
|
|
|
|
<div id="viewingArea" class="viewingArea">
|
2011-02-06 19:51:59 +00:00
|
|
|
|
2011-01-27 12:42:54 +00:00
|
|
|
</div> <!-- viewingArea end -->
|
|
|
|
</div> <!-- viewItemBox end -->
|
2011-02-09 16:03:20 +00:00
|
|
|
{/if}
|
2011-02-06 19:51:59 +00:00
|
|
|
|
|
|
|
|
2011-02-09 16:03:20 +00:00
|
|
|
{if $p.show_my_videos !='no'}
|
2011-01-27 12:42:54 +00:00
|
|
|
<div class="itemListing moveR">
|
|
|
|
|
2011-02-09 16:03:20 +00:00
|
|
|
<button id="VprevItem" class="carouselButton"><img src="{$imageurl}/up.png"></button>
|
2011-01-27 12:42:54 +00:00
|
|
|
<div id="videoListing">
|
|
|
|
<ul style="list-style:none; margin:0px; padding:0px;">
|
|
|
|
{if $latestV}
|
|
|
|
{section name=vlist loop=$latestV}
|
2011-02-06 19:51:59 +00:00
|
|
|
{if !$profile_item}
|
|
|
|
{assign var='profile_item' value=$latestV[vlist]}
|
|
|
|
{/if}
|
2011-01-27 12:42:54 +00:00
|
|
|
{include file="$style_dir/blocks/video.html" video=$latestV[vlist] display_type='channel_page'}
|
|
|
|
{/section}
|
|
|
|
{else}
|
2011-02-06 20:27:01 +00:00
|
|
|
<div style="min-height:200px; text-align:center; line-height:200px;"><em>{lang code='found_no_videos'}</em></div>
|
2011-01-27 12:42:54 +00:00
|
|
|
{/if}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2011-02-09 16:03:20 +00:00
|
|
|
<button id="VnextItem" class="carouselButton"><img src="{$imageurl}/down.png"></button>
|
2011-01-27 12:42:54 +00:00
|
|
|
</div> <!-- itemListing end -->
|
2011-02-09 16:03:20 +00:00
|
|
|
{/if}
|
2011-01-27 12:42:54 +00:00
|
|
|
</div> <!-- channelFeatureBox end -->
|
2009-11-30 19:46:45 +00:00
|
|
|
{/if}
|
2011-01-03 11:02:54 +00:00
|
|
|
{/if}
|
2011-02-06 19:51:59 +00:00
|
|
|
|
|
|
|
{* 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}
|
|
|
|
|
2011-01-27 12:42:54 +00:00
|
|
|
<div class="clearfix channelBox" style="border:1px solid #ccc; padding:0px;">
|
|
|
|
<ul class="channelBar clearfix">
|
2011-02-28 10:35:18 +00:00
|
|
|
{if isSectionEnabled('feeds')}
|
2011-02-27 21:08:53 +00:00
|
|
|
<li><a href="#" rel="userFeeds" id="userFeedTab" onClick="channelObjects(this,'#channelDetailsBox','feeds','{$u.userid}'); return false;">{lang code='activity'}</a></li>
|
2011-02-28 10:35:18 +00:00
|
|
|
{/if}
|
2011-02-27 21:08:53 +00:00
|
|
|
<li><a href="#" rel="infoDIV" id="infoTab" onClick="channelObjects(this,'#channelDetailsBox','info','{$u.userid}'); return false;">{lang code='info'}</a></li>
|
2011-01-27 12:42:54 +00:00
|
|
|
{if isSectionEnabled('videos')}
|
2011-02-09 16:03:20 +00:00
|
|
|
<li><a href="#" onClick="channelObjects(this,'#channelDetailsBox','videos','{$u.userid}'); return false;">{lang code='videos'}</a></li>{/if}
|
2011-01-27 12:42:54 +00:00
|
|
|
{if isSectionEnabled('groups')}
|
2011-02-09 16:03:20 +00:00
|
|
|
<li><a href="#" onClick="channelObjects(this,'#channelDetailsBox','groups','{$u.userid}'); return false;">{lang code='groups'}</a></li>{/if}
|
2011-01-27 12:42:54 +00:00
|
|
|
{if isSectionEnabled('photos')}
|
2011-02-09 16:03:20 +00:00
|
|
|
<li><a href="#" onClick="channelObjects(this,'#channelDetailsBox','photos','{$u.userid}'); return false;">{lang code='photos'}</a></li>{/if}
|
2011-01-27 12:42:54 +00:00
|
|
|
</ul>
|
|
|
|
<div id="channelDetailsBox">
|
2011-02-27 21:08:53 +00:00
|
|
|
<div id="infoDIV" class="channelInnerPadding clearfix" style="display:none">
|
2011-02-09 13:32:08 +00:00
|
|
|
|
2011-02-09 16:03:20 +00:00
|
|
|
<fieldset class="channelFieldset">
|
|
|
|
<div style="width:500px; float:left; margin-right:10px; padding-right:10px;border-right:1px solid #999">
|
|
|
|
{if $$p.profile_title}
|
|
|
|
<div class="channel_title">{$p.profile_title}</div>
|
|
|
|
{/if}
|
|
|
|
{if $$p.profile_desc}
|
|
|
|
{$p.profile_desc|nl2br}
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
<div class="channelLegend" style="margin-top:5px">{lang code='user_activity'}</div>
|
|
|
|
<div class="channelRow">
|
|
|
|
<div class="channelLabel">{lang code='joined'}</div>
|
|
|
|
<div class="channelDetail">{$u.doj|niceTime}</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="channelRow">
|
|
|
|
<div class="channelLabel">{lang code='user_last_login'}</div>
|
|
|
|
<div class="channelDetail">{$u.last_logged|niceTime}</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="channelRow">
|
|
|
|
<div class="channelLabel">{lang code='online_status'}</div>
|
|
|
|
<div class="channelDetail">
|
|
|
|
{if $userquery->isOnline($u.last_active,$p.online_status)}
|
|
|
|
<span style="color:#060">{lang code='online'}</span>
|
|
|
|
{else}
|
|
|
|
<span style="color:#ed0000">{lang code='offline'}</span>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="width:160px;float:left; ">
|
|
|
|
{if $p.allow_ratings !='no' && $p.allow_ratings!='No'}
|
|
|
|
<div class="rating_container" style="height:auto; padding-right:0px; margin:0px auto 10px auto; border:0px">
|
|
|
|
{show_video_rating rating=$p.rating ratings=$p.rated_by total='10' id=$p.userid type=user}
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
<div class="channelCounts">{lang code='views'}<br>
|
|
|
|
{$u.profile_hits|number_format} </div>
|
|
|
|
<div class="channelCounts" >{lang code='subscribers'}<br>
|
2011-02-10 08:13:50 +00:00
|
|
|
{$u.subscribers|number_format}</div>
|
2011-02-09 16:03:20 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
|
|
|
|
|
|
|
</fieldset>
|
2011-02-09 13:32:08 +00:00
|
|
|
{assign var='channel_profile_fields' value=$userquery->load_user_fields($p,'profile')}
|
|
|
|
{foreach from=$channel_profile_fields item=field_group name=profile_groups}
|
|
|
|
{if $smarty.foreach.profile_groups.iteration==2}
|
|
|
|
<div id="moreDetailsDIV" style="display:none">
|
|
|
|
{/if}
|
|
|
|
{if $field_group.channel_view !='no'}
|
|
|
|
<fieldset class="channelFieldset">
|
|
|
|
<legend class="channelLegend">{$field_group.group_name}</legend>
|
2011-02-09 16:03:20 +00:00
|
|
|
|
|
|
|
{if $field_group.group_id=='profile_location'}
|
|
|
|
<div class="channelRow">
|
|
|
|
<div class="channelLabel">{lang code='country'}</div>
|
|
|
|
<div class="channelDetail">{$u.country|country}</div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-02-09 13:32:08 +00:00
|
|
|
{foreach from=$field_group.fields 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>
|
2011-02-09 16:03:20 +00:00
|
|
|
{/if}
|
|
|
|
{if $field_group.group_id=='profile_basic_info'
|
|
|
|
&& $field.name=='relation_status'
|
|
|
|
&& $p.show_dob!='no'}
|
|
|
|
<div class="channelRow">
|
|
|
|
<div class="channelLabel">{lang code='user_date_of_birth'}</div>
|
|
|
|
<div class="channelDetail">{$u.dob}</div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
2011-02-09 13:32:08 +00:00
|
|
|
{/foreach}
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
{/if}
|
|
|
|
{if $smarty.foreach.profile_groups.last}
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
{/foreach}
|
2011-01-27 12:42:54 +00:00
|
|
|
|
|
|
|
<fieldset id="moreDetails" class="channelFieldset">
|
2011-02-09 16:03:20 +00:00
|
|
|
<legend class="channelLegend" style=" margin-bottom:0px;" onClick="$('#moreDetails').hide(); $('#moreDetailsDIV').show();">{lang code='more'}</legend>
|
2011-01-27 12:42:54 +00:00
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
</div>
|
2011-02-27 21:08:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
{if isSectionEnabled('feeds')}
|
|
|
|
<div id="userFeeds" class="channelInnerPadding clearfix" style="display:none">
|
|
|
|
{assign var=userFeeds value=$cbfeeds->getUserFeeds($u)}
|
|
|
|
|
|
|
|
{if $userFeeds}
|
|
|
|
{foreach from=$userFeeds item=userFeed}
|
|
|
|
{include file="$style_dir/blocks/feed.html" feed=$userFeed}
|
|
|
|
{/foreach}
|
|
|
|
{else}
|
|
|
|
<div align="center" class="no_comments">
|
|
|
|
{lang code='no_activity' assign=no_activity} {$no_activity|sprintf:$u.username}
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
{/if}
|
2011-01-27 12:42:54 +00:00
|
|
|
</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>
|
2011-02-07 13:09:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
<div id="comments"></div>
|
|
|
|
<script>
|
2011-02-27 21:08:53 +00:00
|
|
|
$(document).ready(function()
|
2011-02-09 16:03:20 +00:00
|
|
|
{ldelim}
|
2011-02-27 21:08:53 +00:00
|
|
|
{if isSectionEnabled('feeds')}
|
|
|
|
channelObjects('#userFeedTab','#channelDetailsBox','feeds','{$u.userid}');
|
|
|
|
{else}
|
|
|
|
channelObjects('#infoTab','#channelDetailsBox','info','{$u.userid}');
|
|
|
|
{/if}
|
2011-02-09 16:03:20 +00:00
|
|
|
|
2011-02-19 10:20:26 +00:00
|
|
|
{if $p.show_my_photo=='no' || $p.show_my_photos!='yes' }
|
2011-02-09 16:03:20 +00:00
|
|
|
var viewingAreaParent = $('#viewingArea').parent().parent().width();
|
|
|
|
$('#viewingArea') .width(viewingAreaParent-180)
|
|
|
|
{/if}
|
2011-02-07 13:09:51 +00:00
|
|
|
comments_voting = 'no';
|
|
|
|
getComments('c','{$u.userid}','{$u.last_commented}',1,'{$u.comments_count}','{$object_type}')
|
|
|
|
{rdelim}
|
|
|
|
);
|
|
|
|
</script>
|
|
|
|
<hr width="100%" size="1" noshade>
|
2010-02-28 13:26:17 +00:00
|
|
|
|
|
|
|
{if $myquery->is_commentable($p,'u')}
|
2009-12-01 11:51:31 +00:00
|
|
|
{include file="$style_dir/blocks/comments/add_comment.html" id=$u.userid type=c}
|
2010-02-28 13:26:17 +00:00
|
|
|
{else}
|
|
|
|
<div class="disable_msg" align="center">{lang code='coments_disabled_profile'}</div>
|
2011-01-27 12:42:54 +00:00
|
|
|
{/if}
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
2009-11-30 19:46:45 +00:00
|
|
|
</div>
|
2011-01-27 12:42:54 +00:00
|
|
|
</div> <!-- this is right side -->
|
|
|
|
</div> <!-- container end -->
|
2009-11-30 19:46:45 +00:00
|
|
|
|
2011-01-27 12:42:54 +00:00
|
|
|
<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"}
|
2009-11-30 19:46:45 +00:00
|
|
|
</div>
|
2011-01-27 12:42:54 +00:00
|
|
|
</div>
|
2011-02-06 19:51:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>var funcToBCalled = '';
|
|
|
|
$(document).ready(function(){ldelim}
|
|
|
|
var firstChild = $('.itemBox:first-child');
|
|
|
|
funcToBCalled = firstChild.attr('onclick');
|
|
|
|
;
|
|
|
|
{rdelim}
|
|
|
|
).bind(funcToBCalled);
|
|
|
|
</script>
|
2009-11-30 19:46:45 +00:00
|
|
|
</body>
|
|
|
|
</html>
|