source: extensions/header_manager/admin/template/config.tpl @ 17734

Last change on this file since 17734 was 17734, checked in by mistic100, 12 years ago

new option to completely remove banner on photo pages

File size: 3.2 KB
Line 
1{combine_css path=$HEADER_MANAGER_PATH|@cat:"admin/template/style.css"}
2
3{footer_script require="jquery"}{literal}
4jQuery("input[name='display']").change(function() {
5  jQuery(".display-help:not(#"+ jQuery(this).val() +")").slideUp();
6  jQuery("#"+ jQuery(this).val()).slideDown();
7});
8{/literal}{/footer_script}
9
10<div class="titrePage">
11        <h2>Header Manager</h2>
12</div>
13
14<form method="post" action="{$CONFIG_URL}" class="properties">
15  <fieldset>
16    <legend>{'Display'|@translate}</legend>
17   
18    <label><input type="radio" name="display" value="image_only" {if $BANNER_DISPLAY=='image_only'}checked="checked"{/if}> {'Image only'|@translate}</label><br>
19   
20    <label><input type="radio" name="display" value="with_title" {if $BANNER_DISPLAY=='with_title'}checked="checked"{/if}> {'Gallery title above image'|@translate}</label><br>
21    <div class="display-help" id="with_title" {if $BANNER_DISPLAY!='with_title'}style="display:none;"{/if}>
22      <i>{'You can customize the display by adding CSS rules to'|@translate}</i>
23      <span style="font-family:monospace;font-size:14px;color:#000;background:#eee;padding:0 2px;">#<span style="color:#09f;font-weight:bold;">theHeader</span> <span style="color:#00f;">div</span>.<span style="color:#f00;">banner</span></span>
24    </div>
25   
26    <label><input type="radio" name="display" value="with_text" {if $BANNER_DISPLAY=='with_text'}checked="checked"{/if}> {'With text'|@translate}</label><br>
27    <div class="display-help" id="with_text" {if $BANNER_DISPLAY!='with_text'}style="display:none;"{/if}>
28      <textarea rows="5" cols="50" class="description" name="conf_page_banner">{$CONF_PAGE_BANNER}</textarea><br>
29      <i>{'Put <b>%header_manager%</b> where you want to display the image.'|@translate}</i>
30    </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>
33  </fieldset>
34 
35  <fieldset id="batchManagerGlobal">
36    <legend>{'Banner'|@translate}</legend>
37   
38  {if $banners}
39    <div class="banner-radio" style="display:block;">
40      <input type="radio" name="image" value="random" id="banner-random" {if $BANNER_IMAGE=='random'}checked="checked"{/if}>
41      <label for="banner-random"><b>{'Random'|@translate}</b></label>
42    </div>
43    {foreach from=$banners item=image}
44    <div class="banner-radio">
45      <span class="actions">
46        <input type="radio" name="image" value="{$image.NAME}" id="banner-{$image.NAME}" {if $BANNER_IMAGE==$image.NAME}checked="checked"{/if}><br>
47      </span>
48      <span class="banner-wrapper">
49        <a href="{$CONFIG_URL}&amp;delete_banner={$image.NAME}" title="{'Delete'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');" class="delete-banner">&times;</a>
50        <label for="banner-{$image.NAME}"><img src="{$image.THUMB}" alt="{$image.NAME}"></label>
51      </span>
52    </div>
53    {/foreach}
54  {else}
55    {'No banner added yet'|@translate}
56  {/if}
57   
58    <br><br>
59    <a href="{$ADD_IMAGE_URL}">{'Add a banner'|@translate}</a>
60  </fieldset>
61
62  <p><input type="submit" name="save_config" value="{'Submit'|@translate}" class="submit"></p>
63</form>
Note: See TracBrowser for help on using the repository browser.