clipbucket/upload/styles/cbv2new/layout/global_header.html
2010-11-13 12:12:56 +00:00

154 lines
No EOL
3.9 KiB
HTML

<!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" />
<!-- RSS FEEDS -->
{rss_feeds link_tag=true}
<meta name="keywords" content="{$Cbucket->configs.keywords}" />
<meta name="description" content="{$Cbucket->configs.description}" />
<meta name="distribution" content="global" />
<title>{cbtitle}</title>
<link href="{$theme}/main.css" rel="stylesheet" type="text/css" />
<!-- Setting Template Variables -->
{php}
if(!$_COOKIE['current_style'])
$_COOKIE['current_style'] = 'grid_view';
{/php}
<!-- Setting Template Variables -->
<script type="text/javascript">
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>
<!-- Including JS Files-->
{foreach from=$Cbucket->JSArray item=type}
{foreach from=$type item=scope key=file}
{include_js type=$scope file=$file}
{/foreach}
{/foreach}
<!-- Including JS Files-->
<!-- Including Headers -->
{foreach from=$Cbucket->header_files key=file item=type}
{if $curActive == $type || $type=='global' }
{include file="$file"}
{/if}
{/foreach}
<!-- Ending Headers -->
<!-- Including Plugin Headers -->
{foreach key=file item=type from=$Cbucket->header_files}
{include_header file=$file type=$type}
{/foreach}
<!-- Including Plugin Headers -->
{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 );
}
{/literal}
</script>
{/if}
<!-- Including Common Js -->
{include_header file='global_header'}
<!-- End Including Common Js -->
{literal}
<script type="text/javascript">
$(document).ready(function() {
$('.user_login').hide();
$('#user_login').toggle(
function() {
$('.user_login').slideDown('normal');
},
function() {
$('.user_login').slideUp('normal');
}
);
$('.tabs li').click(
function() {
$('.tabs li').removeClass('selected')
$(this).addClass('selected');
}
);
$('#lang_selector').click(function(){
//do redirection
});
$('#lang_selector').change(function(){
var optionSelectedValue = $('#lang_selector option:selected').val();
if(optionSelectedValue)
window.location = "?set_site_lang="+optionSelectedValue;
});
get_video('recent_viewed_vids','#index_vid_container');
});
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();
}
}
</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]-->
</head>
<!-- Global Header Ends Here -->