2009-11-16 11:55:31 +00:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<!-- ClipBucket v2 -->
|
|
|
|
<meta name="copyright" content="ClipBucket - PHPBucket ClipBucket 2007 - {$smarty.now|date_format:"%Y"}" />
|
2009-12-31 08:59:12 +00:00
|
|
|
<meta name="author" content="Arslan Hassan - http://clip-bucket.com/arslan-hassan" />
|
2009-12-21 21:11:54 +00:00
|
|
|
<link rel="shortcut icon" href="{$baseurl}/favicon.ico">
|
2009-12-31 08:59:12 +00:00
|
|
|
<link rel="icon" type="image/ico" href="{$baseurl}/favicon.ico" />
|
2010-01-19 06:45:35 +00:00
|
|
|
|
|
|
|
<!-- RSS FEEDS -->
|
|
|
|
{rss_feeds link_tag=true}
|
|
|
|
|
2010-01-16 08:02:43 +00:00
|
|
|
<meta name="keywords" content="{$Cbucket->configs.keywords}" />
|
|
|
|
<meta name="description" content="{$Cbucket->configs.description}" />
|
2009-11-16 11:55:31 +00:00
|
|
|
<meta name="distribution" content="global" />
|
|
|
|
|
|
|
|
|
2009-12-31 08:59:12 +00:00
|
|
|
<title>{cbtitle}</title>
|
2009-11-16 11:55:31 +00:00
|
|
|
|
|
|
|
<link href="{$theme}/main.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
2009-12-21 21:11:54 +00:00
|
|
|
<!-- Setting Template Variables -->
|
|
|
|
{php}
|
|
|
|
if(!$_COOKIE['current_style'])
|
2010-01-14 13:15:23 +00:00
|
|
|
$_COOKIE['current_style'] = 'grid_view';
|
2009-12-21 21:11:54 +00:00
|
|
|
{/php}
|
|
|
|
<!-- Setting Template Variables -->
|
2009-11-16 11:55:31 +00:00
|
|
|
|
|
|
|
|
2009-12-31 08:59:12 +00:00
|
|
|
<script type="text/javascript">
|
2009-11-16 11:55:31 +00:00
|
|
|
var baseurl = '{$baseurl}';
|
|
|
|
var imageurl = '{$imageurl}';
|
|
|
|
{if $upload_form_name !=''}
|
|
|
|
var upload_form_name = '{$upload_form_name}';
|
|
|
|
function submit_upload_form()
|
|
|
|
{literal}
|
|
|
|
{
|
|
|
|
{/literal}
|
|
|
|
document.{$upload_form_name}.submit();
|
|
|
|
{literal}
|
|
|
|
}
|
|
|
|
{/literal}
|
|
|
|
{/if}
|
|
|
|
</script>
|
2009-12-29 18:15:35 +00:00
|
|
|
|
2009-11-16 11:55:31 +00:00
|
|
|
<!-- Including JS Files-->
|
2010-01-25 13:18:18 +00:00
|
|
|
{foreach from=$Cbucket->JSArray item=type}
|
|
|
|
{foreach from=$type item=scope key=file}
|
|
|
|
{include_js type=$scope file=$file}
|
|
|
|
{/foreach}
|
2009-11-16 11:55:31 +00:00
|
|
|
{/foreach}
|
|
|
|
<!-- Including JS Files-->
|
|
|
|
|
2010-12-14 13:53:51 +00:00
|
|
|
{include_header file='global_header'}
|
2011-01-13 13:58:58 +00:00
|
|
|
|
2009-11-16 11:55:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- Including Plugin Headers -->
|
2010-11-13 12:12:56 +00:00
|
|
|
{foreach key=file item=type from=$Cbucket->header_files}
|
|
|
|
{include_header file=$file type=$type}
|
2009-11-30 19:46:45 +00:00
|
|
|
{/foreach}
|
2010-12-23 11:29:55 +00:00
|
|
|
<!-- Ending Plugin Headers -->
|
2009-11-16 11:55:31 +00:00
|
|
|
|
|
|
|
{if $smarty.const.THIS_PAGE =='private_message' && $smarty.get.mid}
|
|
|
|
<script type="text/javascript">
|
|
|
|
var mid = {$smarty.get.mid};
|
|
|
|
{literal}
|
|
|
|
window.onload = function() {
|
2010-01-25 13:18:18 +00:00
|
|
|
$('#messages_container').scrollTo( '#message-'+mid, 800 );
|
2009-11-16 11:55:31 +00:00
|
|
|
}
|
|
|
|
{/literal}
|
|
|
|
</script>
|
|
|
|
{/if}
|
|
|
|
|
2010-11-13 12:12:56 +00:00
|
|
|
<!-- Including Common Js -->
|
2010-12-14 13:53:51 +00:00
|
|
|
|
2010-11-13 12:12:56 +00:00
|
|
|
<!-- End Including Common Js -->
|
|
|
|
|
2009-11-16 11:55:31 +00:00
|
|
|
{literal}
|
|
|
|
<script type="text/javascript">
|
2010-06-25 11:02:15 +00:00
|
|
|
|
2011-01-06 11:19:01 +00:00
|
|
|
$(document).ready(function() {
|
|
|
|
{/literal}
|
|
|
|
{if $smarty.get.query == ""}
|
|
|
|
{literal}
|
2011-01-13 13:58:58 +00:00
|
|
|
$("#searchSelectWrapper ul li a").filter('#videos').parent().addClass('selected');
|
|
|
|
$('#selectedText').text($("#searchSelectWrapper ul li a").filter('#videos').text());
|
|
|
|
$('#searchType').val($("#searchSelectWrapper ul li a").filter('#videos').attr('id'));
|
2011-01-06 11:19:01 +00:00
|
|
|
{/literal}
|
|
|
|
{else}
|
|
|
|
{literal}
|
|
|
|
|
|
|
|
{/literal}
|
|
|
|
{/if}
|
|
|
|
{literal}
|
2009-11-16 11:55:31 +00:00
|
|
|
$('.user_login').hide();
|
|
|
|
|
|
|
|
$('#user_login').toggle(
|
|
|
|
function() {
|
|
|
|
$('.user_login').slideDown('normal');
|
|
|
|
},
|
|
|
|
function() {
|
|
|
|
$('.user_login').slideUp('normal');
|
|
|
|
}
|
|
|
|
|
|
|
|
);
|
2011-01-06 11:19:01 +00:00
|
|
|
$("#searchSelectWrapper ul li a").bind({
|
|
|
|
click : function(event) {
|
|
|
|
event.preventDefault();
|
|
|
|
$("#searchType").val($(this).attr('id'));
|
|
|
|
$('#selectedText').text($(this).text());
|
|
|
|
$(this).parent().parent().children().removeClass('selected');
|
|
|
|
$(this).parent().addClass('selected')
|
|
|
|
$('#searchSelectWrapper').hide();
|
2011-01-07 15:29:03 +00:00
|
|
|
}
|
2011-01-07 12:28:08 +00:00
|
|
|
});
|
2011-01-27 12:42:54 +00:00
|
|
|
/*$('.tabs li').click(
|
2009-11-30 19:46:45 +00:00
|
|
|
function() {
|
|
|
|
$('.tabs li').removeClass('selected')
|
|
|
|
$(this).addClass('selected');
|
|
|
|
}
|
2011-01-27 12:42:54 +00:00
|
|
|
);*/
|
|
|
|
|
|
|
|
$('.tabs li').each(function(index, value){
|
|
|
|
$(value).click(function(){
|
|
|
|
{
|
|
|
|
$(this).parent().children().filter('.selected').removeClass('selected');
|
|
|
|
$(this).addClass('selected');
|
|
|
|
}
|
|
|
|
})
|
|
|
|
});
|
2010-01-25 07:41:17 +00:00
|
|
|
$('#lang_selector').click(function(){
|
2010-11-13 12:12:56 +00:00
|
|
|
//do redirection
|
2010-01-25 07:41:17 +00:00
|
|
|
});
|
2009-12-04 21:03:27 +00:00
|
|
|
|
2010-11-13 12:12:56 +00:00
|
|
|
$('#lang_selector').change(function(){
|
|
|
|
var optionSelectedValue = $('#lang_selector option:selected').val();
|
|
|
|
if(optionSelectedValue)
|
|
|
|
window.location = "?set_site_lang="+optionSelectedValue;
|
|
|
|
});
|
2011-01-03 11:02:54 +00:00
|
|
|
{/literal}
|
2011-01-08 11:11:20 +00:00
|
|
|
{if isSectionEnabled('videos') && $smarty.const.THIS_PAGE=='index'}
|
2011-01-27 12:42:54 +00:00
|
|
|
get_video('recent_viewed_vids','#index_vid_container');
|
|
|
|
{/if}
|
|
|
|
{if isSectionEnabled('photos') && $smarty.const.THIS_PAGE=='index'}
|
|
|
|
getAjaxPhoto('last_viewed','#index_pho_container');
|
2011-01-03 11:02:54 +00:00
|
|
|
{/if}
|
2011-01-27 12:42:54 +00:00
|
|
|
{if $smarty.const.THIS_PAGE == 'view_channel'}
|
2011-01-03 11:02:54 +00:00
|
|
|
{literal}
|
2011-01-27 12:42:54 +00:00
|
|
|
$('#photoListing').jCarouselLite({
|
|
|
|
vertical : true,
|
|
|
|
btnNext : "#PnextItem",
|
|
|
|
btnPrev : "#PprevItem",
|
|
|
|
circular : false,
|
|
|
|
speed : 500,
|
|
|
|
visible : 5
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#videoListing').jCarouselLite({
|
|
|
|
vertical : true,
|
|
|
|
btnNext : "#VnextItem",
|
|
|
|
btnPrev : "#VprevItem",
|
|
|
|
circular : false,
|
|
|
|
speed : 500,
|
|
|
|
visible : 5
|
|
|
|
});
|
|
|
|
{/literal}
|
|
|
|
{/if}
|
|
|
|
{literal}
|
2010-11-13 12:12:56 +00:00
|
|
|
});
|
2011-01-06 11:19:01 +00:00
|
|
|
|
2010-11-13 12:12:56 +00:00
|
|
|
function ToggleView(obj) {
|
|
|
|
var obj = $(obj),
|
|
|
|
obj_id = obj.attr('id'),
|
|
|
|
parent = obj.parent().attr('id'),
|
|
|
|
target = $("#"+parent).next().attr('id');
|
|
|
|
//alert('#'+parent+' #'+target+' .grid_view');
|
|
|
|
if(obj_id == "grid") {
|
|
|
|
$('#'+parent+' + #'+target+' .grid_view').removeClass('list_view');
|
|
|
|
$.cookie("current_style","grid_view")
|
2011-01-18 18:53:15 +00:00
|
|
|
$('.vid_sp').hide();
|
|
|
|
$('.truncatedtitle').hide();
|
|
|
|
$('.fulltitle').show();
|
2010-11-13 12:12:56 +00:00
|
|
|
} else {
|
|
|
|
$('#'+parent+' + #'+target+' .grid_view').addClass('list_view');
|
|
|
|
$.cookie("current_style","list_view")
|
2011-01-18 18:53:15 +00:00
|
|
|
$('.vid_sp').show();
|
|
|
|
$('.truncatedtitle').show();
|
|
|
|
$('.fulltitle').hide();
|
2010-11-13 12:12:56 +00:00
|
|
|
}
|
|
|
|
}
|
2010-01-14 13:15:23 +00:00
|
|
|
|
2009-11-16 11:55:31 +00:00
|
|
|
</script>
|
|
|
|
{/literal}
|
2010-04-26 15:17:37 +00:00
|
|
|
{literal}
|
|
|
|
<!--[if lte IE 6]>
|
|
|
|
<style type="text/css">
|
|
|
|
.clearfix { height: 1%; }
|
|
|
|
</style>
|
|
|
|
<![endif]-->
|
|
|
|
{/literal}
|
2010-04-26 14:54:40 +00:00
|
|
|
<!--[if IE 7]>
|
|
|
|
<link href="{$theme}/ie7.css" rel="stylesheet" type="text/css" />
|
|
|
|
<![endif]-->
|
2010-12-14 13:53:51 +00:00
|
|
|
{literal}
|
|
|
|
<script type="text/javascript">
|
2010-12-23 16:56:33 +00:00
|
|
|
function bookmarkSite(title, url) {
|
|
|
|
if (window.sidebar) { // firefox
|
|
|
|
window.sidebar.addPanel(title, url,"");
|
|
|
|
return false;
|
|
|
|
} else if( document.all ) { //MSIE
|
|
|
|
window.external.AddFavorite( url, title);
|
|
|
|
return false;
|
|
|
|
} else if(window.opera && window.print) {
|
|
|
|
alert("Your using Opera. Press Shift+Ctrl+D to add '"+title+"' in bookmarks");
|
|
|
|
return false;
|
|
|
|
} else if(navigator.userAgent.toLowerCase().indexOf('webkit') > -1) {
|
|
|
|
alert("Your using either Chrome or Safari. Press Ctrl+D to add '"+title+"' in bookmarks.")
|
|
|
|
} else {
|
|
|
|
alert("Sorry, your browser doesn't support this");
|
|
|
|
}
|
2010-12-14 13:53:51 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
{/literal}
|
2011-01-03 12:46:44 +00:00
|
|
|
|
2009-11-16 11:55:31 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<!-- Global Header Ends Here -->
|