Changeset 24010
- Timestamp:
- Jul 21, 2013, 2:13:42 PM (11 years ago)
- Location:
- extensions/header_manager
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/header_manager/admin/add.php
r22857 r24010 40 40 pwg_set_session_var('added_banner', $_POST['picture_file']); 41 41 42 redirect(HEADER_MANAGER_ADMIN); 42 if (!empty($_GET['redirect'])) 43 { 44 redirect($_GET['redirect']); 45 } 46 else 47 { 48 redirect(HEADER_MANAGER_ADMIN); 49 } 43 50 } 44 51 … … 142 149 } 143 150 151 $template->assign('F_ACTION', HEADER_MANAGER_ADMIN . '-add' .(!empty($_GET['redirect']) ? '&redirect='.urlencode($_GET['redirect']) : '')); 152 144 153 $template->set_filename('header_manager', dirname(__FILE__).'/template/add.tpl'); 145 154 -
extensions/header_manager/admin/album.php
r22857 r24010 30 30 check_status(ACCESS_ADMINISTRATOR); 31 31 32 check_input_parameter('cat_id', $_GET, false, PATTERN_ID );32 check_input_parameter('cat_id', $_GET, false, PATTERN_ID, true); 33 33 34 34 $admin_album_base_url = get_root_url().'admin.php?page=album-'.$_GET['cat_id']; -
extensions/header_manager/admin/template/add.tpl
r18711 r24010 38 38 {/footer_script} 39 39 40 <form method="post" action=" ">40 <form method="post" action="{$F_ACTION}"> 41 41 <fieldset> 42 42 <legend>{'Crop banner image'|@translate}</legend> … … 81 81 {/literal}{/footer_script} 82 82 83 <form method="post" action=" " ENCTYPE="multipart/form-data">83 <form method="post" action="{$F_ACTION}" ENCTYPE="multipart/form-data"> 84 84 <fieldset> 85 85 <legend>{'Default banner size'|@translate}</legend> … … 87 87 <label> 88 88 {'Width'|@translate}: 89 <input type="text" name="width" size="4" value="{$BANNER_WIDTH}"> px89 <input type="text" name="width" size="4" value="{$BANNER_WIDTH}"> px 90 90 </label> 91 91 <br> … … 93 93 <label> 94 94 {'Height'|@translate}: 95 <input type="text" name="height" size="4" value="{$BANNER_HEIGHT}"> px95 <input type="text" name="height" size="4" value="{$BANNER_HEIGHT}"> px 96 96 </label> 97 97 <br> … … 115 115 <b>{'or choose a picture from the gallery'|@translate}</b> 116 116 <blockquote> 117 {'Picture id.'|@translate} <a class=" showInfo" title="{'The numeric identifier can be found on the picture edition page, near the thumbnail.'|@translate}">i</a>117 {'Picture id.'|@translate} <a class="icon-info-circled-1 showInfo" title="{'The numeric identifier can be found on the picture edition page, near the thumbnail.'|@translate}"></a> 118 118 <input type="text" name="picture_id" size="5"> 119 119 <input type="submit" name="upload_gallery_image" value="{'Use'|@translate}" class="submit"> -
extensions/header_manager/admin/template/album.tpl
r20169 r24010 23 23 {/foreach} 24 24 {else} 25 <p style="text-align:left;"> 26 {'No banner added yet'|@translate}<br> 27 <a href="{$ADD_IMAGE_URL}">{'Add a banner'|@translate}</a> 28 </p> 25 <p style="text-align:left;">{'No banner added yet'|@translate}</p> 29 26 {/if} 27 28 <p style="text-align:left;"> 29 <a href="{$ADD_IMAGE_URL}&redirect={$F_ACTION|urlencode}">{'Add a banner'|@translate}</a> 30 </p> 30 31 31 32 {if $banners} -
extensions/header_manager/admin/template/style.css
r20169 r24010 52 52 } 53 53 54 .showInfo {55 position:static;56 display:inline-block;57 padding:1px 6px;58 width:auto;59 font-size:0.8em;60 }61 62 54 #album_banners { 63 55 list-style:disc; -
extensions/header_manager/main.inc.php
r19841 r24010 4 4 Version: auto 5 5 Description: Header Manager allows to simply manage gallery banners. You can upload a picture from your computer or use a picture already in the gallery. 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=6086 Plugin URI: auto 7 7 Author: Mistic 8 8 Author URI: http://www.strangeplanet.fr
Note: See TracChangeset
for help on using the changeset viewer.