Changeset 30377 for extensions


Ignore:
Timestamp:
Nov 6, 2014, 1:43:23 PM (10 years ago)
Author:
plg
Message:

option to display/hide page banner (compatible with plugin Header Manager)

Location:
extensions/modus
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/modus/admin/admin.inc.php

    r28453 r30377  
    1919
    2020$text_values = array('skin', 'album_thumb_size', 'index_photo_deriv','index_photo_deriv_hdpi');
    21 $bool_values = array();
     21$bool_values = array('display_page_banner');
    2222
    2323// *************** POST management ********************
     
    4545
    4646// *************** template init ********************
    47 
    4847
    4948foreach ($text_values as $k )
  • extensions/modus/admin/modus_admin.tpl

    r28453 r30377  
    9292</fieldset>
    9393
     94<fieldset><legend>{'Page banner'|translate}</legend>
     95  <label>
     96    <span class="graphicalCheckbox icon-check{if not $DISPLAY_PAGE_BANNER}-empty{/if}"></span>
     97    <input type="checkbox" name="display_page_banner"{if $DISPLAY_PAGE_BANNER} checked="checked"{/if}>
     98    <b>{'Display page banner'|translate}</b>
     99  </label>
     100</fieldset>
     101
     102
    94103{*
    95104<fieldset><legend>Full row thumbnail layout</legend>
  • extensions/modus/functions.inc.php

    r30053 r30377  
    2121  'index_photo_deriv'=>'2small',
    2222  'index_photo_deriv_hdpi'=>'xsmall',
     23  'display_page_banner' => false,
    2324);
    2425}
  • extensions/modus/language/en_UK/theme.lang.php

    r28453 r30377  
    1414$lang['Default size for thumbnails'] = 'Default size for thumbnails';
    1515$lang['Default size for thumbnails on high density display (retina)'] = 'Default size for thumbnails on high density display (retina)';
     16$lang['Display page banner'] = 'Display page banner';
    1617?>
  • extensions/modus/language/fr_FR/theme.lang.php

    r28453 r30377  
    1414$lang['Default size for thumbnails'] = 'Taille par défaut pour les miniatures';
    1515$lang['Default size for thumbnails on high density display (retina)'] = 'Taille par défaut pour les miniatures sur écran haute densité (retina)';
     16$lang['Display page banner'] = 'Afficher la bannière des pages';
    1617?>
  • extensions/modus/template/header.tpl

    r29569 r30377  
    4141</div>
    4242{/if}
    43 {if !empty($PAGE_BANNER)}<div id="theHeader">{$PAGE_BANNER}</div>{/if}
     43{if !empty($PAGE_BANNER) && $MODUS_DISPLAY_PAGE_BANNER}<div id="theHeader">{$PAGE_BANNER}</div>{/if}
  • extensions/modus/themeconf.inc.php

    r30248 r30377  
    3131                $conf['index_posted_date_icon'],
    3232        ))));
     33
     34$this->assign('MODUS_DISPLAY_PAGE_BANNER', @$conf['modus_theme']['display_page_banner']);
    3335
    3436if (isset($_COOKIE['caps']))
Note: See TracChangeset for help on using the changeset viewer.