source: trunk/themes/default/template/no_photo_yet.tpl @ 5240

Last change on this file since 5240 was 5240, checked in by plg, 14 years ago

feature 1505: improvement, when there is no photo yet in the gallery, first
shows a connection box (and only this), then if the user is an admin shows the
"Hello %s, your gallery is empty...".

I've also added the ability to deactivate this message. Only an admin can
deactivate it.

File size: 2.2 KB
RevLine 
[5138]1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
[5240]5<link rel="stylesheet" type="text/css" href="themes/Sylvia/theme.css">
[5138]6<title>Piwigo, {'Welcome'|@translate}</title>
7{literal}
8<style type="text/css">
9body {
10margin: 0;
11padding: 0;
12background-color:#111;
13}
14
[5240]15P {text-align:center;}
16TD {color:#888;}
17
[5138]18#global {
19position:absolute;
20left: 50%;
21top: 50%;
22width: 700px;
23height: 400px;
24margin-top: -200px; /* height half */
25margin-left: -350px; /* width half */
26
27background-color: #eee;
28background: #222222;
29border:2px solid #FF3363;
30}
31
32#noPhotoWelcome {font-size:25px; color:#888;text-align:center; letter-spacing:1px; margin-top:30px;}
33.bigButton {}
34
[5240]35.bigButton {text-align:center; margin-top:120px;}
[5138]36
37.bigButton a {
38    background-color:#333;
39    padding:10px;
40    text-decoration:none;
41    margin:0px 5px 0px 5px;
42    -moz-border-radius:6px;
43    -webkit-border-radius:6px;
44    color:#ff7700;
45    font-size:25px;
46    letter-spacing:2px;
47    padding:20px;
48}
49
50.bigButton a:hover {
51    background-color:#444;
52    outline:none;
53    color:#ff3333;
[5240]54    border:none;
[5138]55}
[5240]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;
74}
[5138]75</style>
76{/literal}
77
78</head>
79
80<body>
81<div id="global">
[5240]82
83{if $step == 1}
[5138]84<p id="noPhotoWelcome">{'Welcome to your Piwigo photo gallery!'|@translate}</p>
[5240]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
[5138]109</div>
110</body>
111
112</html>
113
Note: See TracBrowser for help on using the repository browser.