{foreach from=$Cbucket->JSArray key=file item=type} {if $curActive == $type || $type=='global' } {/if} {/foreach} {foreach from=$Cbucket->header_files key=file item=type} {if $curActive == $type || $type=='global' } {include file="$file"} {/if} {/foreach} {if $page == 'upload_video'} {/if} {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} {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}