Changeset 17492


Ignore:
Timestamp:
Aug 9, 2012, 4:17:49 PM (8 years ago)
Author:
mistic100
Message:

better integration in simple and stripped

Location:
extensions/BatchDownloader
Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/include/download.inc.php

    r17177 r17492  
    128128}
    129129
    130 $template->assign('BATCH_DOWNLOAD_PATH', BATCH_DOWNLOAD_PATH);
     130$template->assign(array(
     131  'BATCH_DOWNLOAD_PATH' => BATCH_DOWNLOAD_PATH,
     132  'BATCH_DOWNLOAD_ABS_PATH' => realpath(BATCH_DOWNLOAD_PATH).'/',
     133  ));
    131134
    132135
  • extensions/BatchDownloader/template/init_zip.tpl

    r16626 r17492  
    77{/if}
    88
    9 {if $themeconf.name != "stripped" and $themeconf.parent != "stripped" and $themeconf.name != "simple-grey" and $themeconf.parent != "simple"}
    10   {$MENUBAR}
     9{* <!-- Menubar & titrePage --> *}
     10{if $themeconf.name == "stripped" or $themeconf.parent == "stripped"}
     11  {include file=$BATCH_DOWNLOAD_ABS_PATH|@cat:'template/themes/stripped.tpl'}
     12  {assign var="clear" value="true"}
     13{elseif $themeconf.name == "simple-grey" or $themeconf.parent == "simple"}
     14  {include file=$BATCH_DOWNLOAD_ABS_PATH|@cat:'template/themes/simple.tpl'}
     15  {assign var="clear" value="true"}
    1116{else}
    12   {assign var="intern_menu" value="true"}
     17  {include file=$BATCH_DOWNLOAD_ABS_PATH|@cat:'template/themes/default.tpl'}
    1318{/if}
    14 <div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
    15 {if $intern_menu}{$MENUBAR}{/if}
    16 
    17 <div class="titrePage">
    18   <ul class="categoryActions"></ul>
    19   <h2>{$TITLE}</h2>
    20 </div>{* <!-- titrePage --> *}
    2119
    2220{if isset($errors) or not empty($infos)}
     
    5250{/if}
    5351
     52{if $clear}<div style="clear: both;"></div>{/if}
    5453</div>{* <!-- content --> *}
  • extensions/BatchDownloader/template/view.tpl

    r16689 r17492  
    1 {if $themeconf.name != "stripped" and $themeconf.parent != "stripped" and $themeconf.name != "simple-grey" and $themeconf.parent != "simple"}
    2   {$MENUBAR}
     1{* <!-- Menubar & titrePage --> *}
     2{if $themeconf.name == "stripped" or $themeconf.parent == "stripped"}
     3  {include file=$BATCH_DOWNLOAD_ABS_PATH|@cat:'template/themes/stripped.tpl'}
     4  {assign var="clear" value="true"}
     5{elseif $themeconf.name == "simple-grey" or $themeconf.parent == "simple"}
     6  {include file=$BATCH_DOWNLOAD_ABS_PATH|@cat:'template/themes/simple.tpl'}
     7  {assign var="clear" value="true"}
    38{else}
    4   {assign var="intern_menu" value="true"}
     9  {include file=$BATCH_DOWNLOAD_ABS_PATH|@cat:'template/themes/default.tpl'}
    510{/if}
    6 <div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
    7 {if $intern_menu}{$MENUBAR}{/if}
    8 
    9 <div class="titrePage">
    10   <ul class="categoryActions"></ul>
    11   <h2>{$TITLE}</h2>
    12 </div>{* <!-- titrePage --> *}
    1311
    1412{if isset($errors) or not empty($infos)}
     
    3836{/if}
    3937
     38{if $clear}<div style="clear: both;"></div>{/if}
    4039</div>{* <!-- content --> *}
Note: See TracChangeset for help on using the changeset viewer.