clipbucket/upload/styles/cbv2new/layout/global_header.html

217 lines
6.5 KiB
HTML
Raw Normal View History

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"}" />
<meta name="author" content="Arslan Hassan - http://clip-bucket.com/arslan-hassan" />
<link rel="shortcut icon" href="{$baseurl}/favicon.ico">
<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}
<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" />
<title>{cbtitle}</title>
2009-11-16 11:55:31 +00:00
<link href="{$theme}/main.css" rel="stylesheet" type="text/css" />
<!-- Setting Template Variables -->
{php}
if(!$_COOKIE['current_style'])
2010-01-14 13:15:23 +00:00
$_COOKIE['current_style'] = 'grid_view';
{/php}
<!-- Setting Template Variables -->
2009-11-16 11:55:31 +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-11-16 11:55:31 +00:00
<!-- Including JS Files-->
{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-->
{include_header file='global_header'}
{include_header file="admin_bar"}
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}
{/foreach}
<!-- 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() {
$('#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-11-13 12:12:56 +00:00
<!-- End Including Common Js -->
2009-11-16 11:55:31 +00:00
{literal}
<script type="text/javascript">
$(document).ready(function() {
{/literal}
{if $smarty.get.query == ""}
{literal}
$("#searchSelectWrapper ul li:first-child").addClass('selected');
$('#selectedText').text($("#searchSelectWrapper ul li:first-child a").text());
$('#searchType').val($("#searchSelectWrapper ul li:first-child a").attr('id'));
{/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');
}
);
$("#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();
}
});
$('.tabs li').click(
function() {
$('.tabs li').removeClass('selected')
$(this).addClass('selected');
}
);
$('#lang_selector').click(function(){
2010-11-13 12:12:56 +00:00
//do redirection
});
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;
});
{/literal}
{if isSectionEnabled('videos')}
2010-11-13 12:12:56 +00:00
get_video('recent_viewed_vids','#index_vid_container');
{/if}
{literal}
2010-11-13 12:12:56 +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")
$('.vid_sp').hide();
} else {
$('#'+parent+' + #'+target+' .grid_view').addClass('list_view');
$.cookie("current_style","list_view")
$('.vid_sp').show();
}
}
2010-01-14 13:15:23 +00:00
2009-11-16 11:55:31 +00:00
</script>
{/literal}
{literal}
<!--[if lte IE 6]>
<style type="text/css">
.clearfix { height: 1%; }
</style>
<![endif]-->
{/literal}
<!--[if IE 7]>
<link href="{$theme}/ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->
{literal}
<script type="text/javascript">
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");
}
}
</script>
{/literal}
{if $smarty.const.THIS_PAGE=='watch_video'}
<meta property="og:image" content="{getThumb vdetails=$video}">
<meta property="og:title" content="{$video.title}" />
<meta property="og:description" content="{$video.description}" />
<meta property="og:type" content="video" />
<meta property="og:url" content="{videoLink vdetails=$video}" />
<meta property="og:site_name" content="{cbtitle}" />
<meta name="embed_video_url" content="http://embed.break.com/1976758">
<meta name="embed_video_thumb_url" content="{getThumb vdetails=$video}">
<meta name="embed_video_title" id="vid_title" content="{$video.title}">
<meta name="embed_video_description" id="vid_desc" content="{$video.description}">
<meta name="embed_video_width" content="{$smarty.const.EMBED_VDO_WIDTH}">
<meta name="embed_video_height" content="{$smarty.const.EMBED_VDO_HEIGHT}">
<meta name="medium" content="video">
<meta name="video_height" content="{$smarty.const.EMBED_VDO_HEIGHT}">
<meta name="video_width" content="{$smarty.const.EMBED_VDO_WIDTH}">
<meta name="video_type" content="application/x-shockwave-flash">
<link rel="video_src" href="{$embedFinalCode}">
<link rel="videothumbnail" href="{getThumb vdetails=$video}" type="image/jpeg">
<link rel="canonical" href="{videoLink vdetails=$video}">
<link rel="image_src" href="{getThumb vdetails=$video}">
{/if}
2009-11-16 11:55:31 +00:00
</head>
<!-- Global Header Ends Here -->