clipbucket/upload/styles/cbv2new/layout/global_header.html
Arslan Hassan c1884a67a7 ADDED : Comment Validate Functions
ADDED : More Listing Options
ADDED : Allowed Video Types
FIXED : Max Upload Limit
2009-12-29 18:15:35 +00:00

211 lines
No EOL
5.3 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">
<meta name="keywords" content="{$meta_keywords}" />
<meta name="description" content="{$meta_description}" />
<meta name="distribution" content="global" />
<title>{$title}</title>
<link href="{$theme}/main.css" rel="stylesheet" type="text/css" />
<!-- Setting Template Variables -->
{php}
if(!$_COOKIE['current_style'])
$_COOKIE['current_style'] = 'vertical';
{/php}
<!-- Setting Template Variables -->
<script language="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 key=file item=type}
{if $curActive == $type || $type=='global' }
<script src="{$js}/{$file}"></script>
{/if}
{/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 -->
{if $smarty.const.THIS_PAGE == 'upload'}
<script src="{$js}/swfupload/swfupload.js"></script>
<script src="{$js}/swfupload/plugins/all_in_one.js"></script>
<script type="text/javascript">
var swfu;
var file_name = '{$file_name}';
{literal}
window.onload = function() {
var settings = {
{/literal}
flash_url : "{$js}/swfupload/swfupload.swf",
upload_url: "{$baseurl}/actions/file_uploader.php",
button_image_url: "{$imageurl}/cb_button.png",
post_params:
{literal}
{
{/literal}
"file_name" : file_name,
{literal}
}
{/literal},
file_size_limit : "{$Cbucket->configs.max_upload_size} MB",
file_types : "{$Cbucket->list_extensions()}",
file_types_description : "Video Files",
file_upload_limit : 1,
file_queue_limit : 0,
{literal}
custom_settings : {
progressTarget : "fsUploadProgress",
cancelButtonId : "btnCancel"
},
debug: false,
// Button settings
button_placeholder_id: "spanButtonPlaceHolder",
button_width: 77,
button_height: 22,
button_text_style: ".cb_button_font { font-weight:bold; font-family:Arial, Helvetica, sans-serif;font-size:12;color:#333}",
button_text_left_padding: 18,
button_text_top_padding: 2,
button_text: '<span class="cb_button_font">Upload</span>',
// The event handler functions are defined in handlers.js
file_queued_handler : fileQueued,
file_queue_error_handler : fileQueueError,
file_dialog_complete_handler : fileDialogComplete,
upload_start_handler : uploadStart,
upload_progress_handler : uploadProgress,
upload_error_handler : uploadError,
upload_success_handler : uploadSuccess,
upload_complete_handler : uploadComplete,
queue_complete_handler : queueComplete // Queue plugin event
}
swfu = new SWFUpload(settings);
load_quicklist_box();
ini_cookies();
};
{/literal}
</script>
{/if}
{if $smarty.const.THIS_PAGE != 'upload'}
<script type="text/javascript">
{literal}
window.onload = function() {
load_quicklist_box();
ini_cookies();
}
{/literal}
</script>
{/if}
<!-- Including Plugin Headers -->
{foreach key=file item=pages from=$Cbucket->header_files}
{if is_includeable($pages)}
{include file=$file}
{/if}
{/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}
{literal}
<script type="text/javascript">
$(document).ready(function() {
$('.user_login').hide();
$('#user_login').toggle(
function() {
$('.user_login').slideDown('normal');
},
function() {
$('.user_login').slideUp('normal');
}
);
$('#grid').click(
function() {
$('.horizantal').removeClass('horizantal').addClass('vertical');
$.cookie("current_style","vertical")
$('.vid_sp').hide();
}
);
$('#list').click(
function() {
$('.vertical').removeClass('vertical').addClass('horizantal');
$.cookie("current_style","horizantal")
$('.vid_sp').show();
}
);
$('.tabs li').click(
function() {
$('.tabs li').removeClass('selected')
$(this).addClass('selected');
}
);
get_video('recently_added','#index_vid_container');
});
</script>
{/literal}
</head>
<!-- Global Header Ends Here -->