Changeset 5240
- Timestamp:
- Mar 22, 2010, 1:21:25 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/common.inc.php
r5238 r5240 181 181 { 182 182 $template->set_filenames(array('no_photo_yet'=>'no_photo_yet.tpl')); 183 184 $url = $conf['no_photo_yet_url']; 185 if (substr($url, 0, 4) != 'http') 183 184 if (is_admin()) 186 185 { 187 $url = get_root_url().$url; 186 if (isset($_GET['no_photo_yet'])) 187 { 188 conf_update_param('no_photo_yet', 'false'); 189 redirect(make_index_url()); 190 exit(); 191 } 192 193 $url = $conf['no_photo_yet_url']; 194 if (substr($url, 0, 4) != 'http') 195 { 196 $url = get_root_url().$url; 197 } 198 199 $template->assign( 200 array( 201 'step' => 2, 202 'intro' => sprintf( 203 l10n('Hello %s, your Piwigo photo gallery is empty!'), 204 $user['username'] 205 ), 206 'next_step_url' => $url, 207 'deactivate_url' => get_root_url().'?no_photo_yet=deactivate', 208 ) 209 ); 210 } 211 else 212 { 213 214 $template->assign( 215 array( 216 'step' => 1, 217 'U_LOGIN' => 'identification.php', 218 ) 219 ); 188 220 } 189 221 190 $template->assign(array('next_step_url' => $url));191 222 $template->pparse('no_photo_yet'); 192 223 exit(); -
trunk/themes/default/template/no_photo_yet.tpl
r5138 r5240 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/Sylvia/theme.css"> 5 6 <title>Piwigo, {'Welcome'|@translate}</title> 6 7 {literal} … … 11 12 background-color:#111; 12 13 } 14 15 P {text-align:center;} 16 TD {color:#888;} 13 17 14 18 #global { … … 29 33 .bigButton {} 30 34 31 .bigButton {text-align:center; margin-top:1 30px;}35 .bigButton {text-align:center; margin-top:120px;} 32 36 33 37 .bigButton a { … … 48 52 outline:none; 49 53 color:#ff3333; 54 border:none; 55 } 56 57 #connectionBox { 58 margin:0 auto; 59 margin-top:70px; 60 } 61 62 #deactivate { 63 position:absolute; 64 bottom:10px; 65 text-align:center; 66 width:100%; 67 68 font-style:normal; 69 } 70 71 #deactivate A { 72 text-decoration:none; 73 border:none; 50 74 } 51 75 </style> … … 56 80 <body> 57 81 <div id="global"> 82 83 {if $step == 1} 58 84 <p id="noPhotoWelcome">{'Welcome to your Piwigo photo gallery!'|@translate}</p> 59 <div class="bigButton"><a href="{$next_step_url}">{'Add Photos'|@translate}</a></div> 85 86 <form method="post" action="{$U_LOGIN}" id="quickconnect"> 87 <table id="connectionBox"> 88 <tr> 89 <td>{'Username'|@translate}</td> 90 <td><input type="text" name="username"></td> 91 </tr> 92 <tr> 93 <td>{'Password'|@translate}</td> 94 <td><input type="text" name="password"></td> 95 </tr> 96 </table> 97 98 <p><input class="submit" type="submit" name="login" value="{'Login'|@translate}"></p> 99 </form> 100 101 102 {else} 103 <p id="noPhotoWelcome">{$intro}</p> 104 <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> 106 {/if} 107 108 60 109 </div> 61 110 </body>
Note: See TracChangeset
for help on using the changeset viewer.