Ignore:
Timestamp:
Sep 4, 2012, 11:32:44 AM (12 years ago)
Author:
mistic100
Message:

new option to completely remove banner on photo pages

Location:
extensions/header_manager/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/header_manager/admin/config.php

    r17012 r17734  
    1515  if ($_POST['display'] == 'with_text')
    1616  {
    17     conf_update_param('page_banner', $_POST['conf_page_banner']);
    1817    $conf['page_banner'] = $_POST['conf_page_banner'];
     18    conf_update_param('page_banner', $conf['page_banner']);
    1919  }
    2020 
    21   $conf['header_manager']['image'] = $_POST['image'];
    22   $conf['header_manager']['display'] = $_POST['display'];
     21  $conf['header_manager'] = array(
     22    'width' => $conf['header_manager']['width'],
     23    'height' => $conf['header_manager']['height'],
     24    'image' => $_POST['image'],
     25    'display' => $_POST['display'],
     26    'banner_on_picture' => isset($_POST['banner_on_picture']),
     27    );
    2328  conf_update_param('header_manager', serialize($conf['header_manager']));
    2429 
     
    6570  'BANNER_IMAGE' => $conf['header_manager']['image'],
    6671  'BANNER_DISPLAY' => $conf['header_manager']['display'],
     72  'BANNER_ON_PICTURE' => $conf['header_manager']['banner_on_picture']
    6773  ));
    6874
  • extensions/header_manager/admin/template/config.tpl

    r17644 r17734  
    2929      <i>{'Put <b>%header_manager%</b> where you want to display the image.'|@translate}</i>
    3030    </div>
     31   
     32    <label><input style="margin-top:20px;" type="checkbox" name="banner_on_picture" value="true" {if $BANNER_ON_PICTURE}checked="checked"{/if}> <b>{'Display banner on photo page'|@translate}</b></label>
    3133  </fieldset>
    3234 
Note: See TracChangeset for help on using the changeset viewer.