Changeset 5241
- Timestamp:
- Mar 22, 2010, 1:39:04 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/common.inc.php
r5240 r5241 170 170 and !(defined('IN_ADMIN') and IN_ADMIN) // no message inside administration 171 171 and script_basename() != 'identification' // keep the ability to login 172 and !isset($_SESSION['no_photo_yet']) // temporary hide 172 173 ) 173 174 { … … 180 181 if (0 == $nb_photos) 181 182 { 182 $template->set_filenames(array('no_photo_yet'=>'no_photo_yet.tpl')); 183 184 if (is_admin()) 183 if (isset($_GET['no_photo_yet'])) 185 184 { 186 if (isset($_GET['no_photo_yet'])) 185 if ('browse' == $_GET['no_photo_yet']) 186 { 187 $_SESSION['no_photo_yet'] = 'browse'; 188 redirect(make_index_url()); 189 exit(); 190 } 191 192 if ('deactivate' == $_GET['no_photo_yet']) 187 193 { 188 194 conf_update_param('no_photo_yet', 'false'); … … 190 196 exit(); 191 197 } 192 198 } 199 200 $template->set_filenames(array('no_photo_yet'=>'no_photo_yet.tpl')); 201 202 if (is_admin()) 203 { 193 204 $url = $conf['no_photo_yet_url']; 194 205 if (substr($url, 0, 4) != 'http') … … 216 227 'step' => 1, 217 228 'U_LOGIN' => 'identification.php', 229 'deactivate_url' => get_root_url().'?no_photo_yet=browse', 218 230 ) 219 231 ); -
trunk/themes/default/template/no_photo_yet.tpl
r5240 r5241 3 3 <head> 4 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 5 <link rel="stylesheet" type="text/css" href="themes/default/theme.css"> 5 6 <link rel="stylesheet" type="text/css" href="themes/Sylvia/theme.css"> 6 7 <title>Piwigo, {'Welcome'|@translate}</title> … … 14 15 15 16 P {text-align:center;} 16 TD {color:#888; }17 TD {color:#888; letter-spacing:1px;} 17 18 18 19 #global { … … 67 68 68 69 font-style:normal; 70 font-size:1.0em; 69 71 } 72 73 .submit {font-size:1.0em; letter-spacing:2px; font-weight:normal;} 70 74 71 75 #deactivate A { … … 97 101 98 102 <p><input class="submit" type="submit" name="login" value="{'Login'|@translate}"></p> 103 104 <div id="deactivate"><a href="{$deactivate_url}">{'... or browse your empty gallery'|@translate}</a></div> 99 105 </form> 100 106 … … 103 109 <p id="noPhotoWelcome">{$intro}</p> 104 110 <div class="bigButton"><a href="{$next_step_url}">{'I want to add photos'|@translate}</a></div> 105 <div id="deactivate"><a href="{$deactivate_url}">{' I will find my way by myself, please deactivate this message'|@translate}</a></div>111 <div id="deactivate"><a href="{$deactivate_url}">{'... or please deactivate this message, I will find my way by myself'|@translate}</a></div> 106 112 {/if} 107 113
Note: See TracChangeset
for help on using the changeset viewer.