1 | {combine_css path=$HEADER_MANAGER_PATH|cat:'admin/template/style.css'} |
---|
2 | |
---|
3 | {footer_script require="jquery"} |
---|
4 | jQuery("input[name='display']").change(function() { |
---|
5 | jQuery(".display-help:not(#"+ jQuery(this).val() +")").slideUp(); |
---|
6 | jQuery("#"+ jQuery(this).val()).slideDown(); |
---|
7 | }); |
---|
8 | jQuery(".showImage").tipTip({ |
---|
9 | delay: 0, |
---|
10 | fadeIn: 200, |
---|
11 | fadeOut: 200, |
---|
12 | maxWidth: '300px', |
---|
13 | defaultPosition: 'top' |
---|
14 | }); |
---|
15 | {/footer_script} |
---|
16 | |
---|
17 | <div class="titrePage"> |
---|
18 | <h2>Header Manager</h2> |
---|
19 | </div> |
---|
20 | |
---|
21 | <form method="post" action="{$CONFIG_URL}" class="properties"> |
---|
22 | <fieldset> |
---|
23 | <legend>{'Display'|translate}</legend> |
---|
24 | |
---|
25 | <label><input type="radio" name="display" value="image_only" {if $BANNER_DISPLAY=='image_only'}checked="checked"{/if}> {'Image only'|translate}</label><br> |
---|
26 | |
---|
27 | <label><input type="radio" name="display" value="with_title" {if $BANNER_DISPLAY=='with_title'}checked="checked"{/if}> {'Gallery title above image'|translate}</label><br> |
---|
28 | <div class="display-help" id="with_title" {if $BANNER_DISPLAY!='with_title'}style="display:none;"{/if}> |
---|
29 | <i>{'You can customize the display by adding CSS rules to'|translate}</i> |
---|
30 | <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> |
---|
31 | </div> |
---|
32 | |
---|
33 | <label><input type="radio" name="display" value="with_text" {if $BANNER_DISPLAY=='with_text'}checked="checked"{/if}> {'With text'|translate}</label><br> |
---|
34 | <div class="display-help" id="with_text" {if $BANNER_DISPLAY!='with_text'}style="display:none;"{/if}> |
---|
35 | <textarea rows="5" cols="50" class="description" name="conf_page_banner">{$CONF_PAGE_BANNER}</textarea> |
---|
36 | {if isset($EXTDESC_BUTTON)}{$EXTDESC_BUTTON}{/if}<br> |
---|
37 | <i>{'Put <b>%header_manager%</b> where you want to display the image.'|translate}</i> |
---|
38 | </div> |
---|
39 | |
---|
40 | <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> |
---|
41 | </fieldset> |
---|
42 | |
---|
43 | <fieldset id="batchManagerGlobal"> |
---|
44 | <legend>{'Banner'|translate}</legend> |
---|
45 | |
---|
46 | {if $banners} |
---|
47 | <div class="banner-radio" style="display:block;"> |
---|
48 | <input type="radio" name="image" value="random" id="banner-random" {if $BANNER_IMAGE=='random'}checked="checked"{/if}> |
---|
49 | <label for="banner-random"><b>{'Random'|translate}</b></label> |
---|
50 | </div> |
---|
51 | {foreach from=$banners item=image key=name} |
---|
52 | <div class="banner-radio"> |
---|
53 | <span class="actions"> |
---|
54 | <input type="radio" name="image" value="{$image.NAME}" id="banner-{$image.NAME}" {if $BANNER_IMAGE==$image.NAME}checked="checked"{/if}><br> |
---|
55 | </span> |
---|
56 | <span class="banner-wrapper"> |
---|
57 | <a href="{$CONFIG_URL}&delete_banner={$image.NAME}" title="{'Delete'|translate}" onclick="return confirm('{'Are you sure?'|translate|@escape:javascript}');" class="delete-banner">×</a> |
---|
58 | <span class="banner-size">{$image.SIZE[0]} × {$image.SIZE[1]} px</span> |
---|
59 | <label for="banner-{$image.NAME}" title="{$name}"><img src="{$image.THUMB}" alt="{$image.NAME}"></label> |
---|
60 | </span> |
---|
61 | </div> |
---|
62 | {/foreach} |
---|
63 | {else} |
---|
64 | {'No banner added yet'|translate} |
---|
65 | {/if} |
---|
66 | |
---|
67 | <br><br> |
---|
68 | <a href="{$ADD_IMAGE_URL}">{'Add a banner'|translate}</a> |
---|
69 | </fieldset> |
---|
70 | |
---|
71 | <p class="formButtons"><input type="submit" name="save_config" value="{'Submit'|translate}" class="submit"></p> |
---|
72 | |
---|
73 | <fieldset> |
---|
74 | <legend>{'Album specific banners'|translate}</legend> |
---|
75 | <i>{'In order to add a specific banner, go to the admin page of the desired album.'|translate}</i> |
---|
76 | |
---|
77 | {if $categories} |
---|
78 | <ul id="album_banners"> |
---|
79 | {foreach from=$categories item=cat} |
---|
80 | <li> |
---|
81 | {$cat.NAME} |
---|
82 | <a class="showImage" title="<img src='{$banners[$cat.IMAGE].THUMB}'>"><img src="{$HEADER_MANAGER_PATH}admin/template/image_{$cat.DEEP}.png"></a> |
---|
83 | <a href="{$cat.U_DELETE}" title="{'Restore default banner'|translate}" onclick="return confirm('{'Are you sure?'|translate|@escape:javascript}');"><img src="{$themeconf.admin_icon_dir}/delete.png"></a> |
---|
84 | </li> |
---|
85 | {/foreach} |
---|
86 | </ul> |
---|
87 | |
---|
88 | <p> |
---|
89 | <img src="{$HEADER_MANAGER_PATH}admin/template/image_0.png"> : {'Non recursive'|translate} • |
---|
90 | <img src="{$HEADER_MANAGER_PATH}admin/template/image_1.png"> : {'Recursive'|translate} |
---|
91 | </p> |
---|
92 | {/if} |
---|
93 | </fieldset> |
---|
94 | </form> |
---|