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

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

initial release

File size: 3.0 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" style="float:right;margin-top:-2em;">
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  </fieldset>
32 
33  <fieldset id="batchManagerGlobal">
34    <legend>{'Banner'|@translate}</legend>
35   
36  {if $banners}
37    <div class="banner-radio" style="display:block;">
38      <input type="radio" name="image" value="random" id="banner-random"{if $BANNER_IMAGE=='random'}checked="checked"{/if}>
39      <label for="banner-random"><b>{'Random'|@translate}</b></label>
40    </div>
41    {foreach from=$banners item=image}
42    <div class="banner-radio">
43      <span class="actions">
44        <input type="radio" name="image" value="{$image.NAME}" id="banner-{$image.NAME}" {if $BANNER_IMAGE==$image.NAME}checked="checked"{/if}><br>
45        <a href="{$CONFIG_URL}&amp;delete_banner={$image.NAME}" class="removeFilter" title="{'Delete'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"><span>[x]</span></a>
46      </span>
47      <label for="banner-{$image.NAME}"><img src="{$image.THUMB}" alt="{$image.NAME}"></label>
48    </div>
49    {/foreach}
50  {else}
51    {'No banner added yet'|@translate}
52  {/if}
53   
54    <br><br>
55    <a href="{$ADD_IMAGE_URL}">{'Add a banner'|@translate}</a>
56  </fieldset>
57
58  <p><input type="submit" name="save_config" value="{'Submit'|@translate}" class="submit"></p>
59</form>
Note: See TracBrowser for help on using the repository browser.