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

201 lines
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" />
<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" />
<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 $page == 'upload_video'}
<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: "{$baseurl}/images/icons/XPButton.png",
post_params:
{literal}
{
{/literal}
"file_name" : file_name,
{literal}
}
{/literal},
file_size_limit : "{$Clipbucket->configs.max_upload_size} MB",
{literal}
file_types : "*.*",
file_types_description : "All Files",
file_upload_limit : 2,
file_queue_limit : 0,
custom_settings : {
progressTarget : "fsUploadProgress",
cancelButtonId : "btnCancel"
},
debug: false,
// Button settings
button_placeholder_id: "spanButtonPlaceHolder",
button_width: 61,
button_height: 22,
// 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);
};
{/literal}
</script>
{/if}
<!-- Including Plugin Headers -->
{php}
global $plugin_list;
if(!empty($plugin_list) && is_array($plugin_list))
{
foreach($plugin_list as $plugin)
{
if(!empty($plugin['plugin_header_file']))
{
if( !empty($plugin['plugin_folder']) &&
file_exists(PLUG_DIR.'/'.$plugin['plugin_folder'].'/'.$plugin['plugin_header_file'])
)
{
template(PLUG_DIR.'/'.$plugin['plugin_folder'].'/'.$plugin['plugin_header_file'],false);
}else{
if(file_exists(PLUG_DIR.'/'.$plugin['plugin_header_file']))
template(PLUG_DIR.'/'.$plugin['plugin_header_file'],false);
}}
}
}
{/php}
<!-- Including Plugin Headers -->
<!-- Including Module Headers -->
{php}
global $Cbucket;
$modlist = $Cbucket->moduleList;
if(!empty($modlist) && is_array($modlist))
{
foreach($modlist as $mod)
{
if(!empty($mod['module_include_file']) &&
file_exists(MODULEDIR.'/'.$mod['module_include_file']))
template(MODULEDIR.'/'.$mod['module_include_file'],false);
}
}
{/php}
<!-- Including Module 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');
$('.vid_sp').hide();
}
);
$('#list').click(
function() {
$('.vertical').removeClass('vertical').addClass('horizantal');
$('.vid_sp').show();
}
);
});
</script>
{/literal}
</head>
<!-- Global Header Ends Here -->