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

Revision 5240, 2.2 KB checked in by plg, 10 years ago (diff)

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.

Line 
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">
5<link rel="stylesheet" type="text/css" href="themes/Sylvia/theme.css">
6<title>Piwigo, {'Welcome'|@translate}</title>
7{literal}
8<style type="text/css">
9body {
10margin: 0;
11padding: 0;
12background-color:#111;
13}
14
15P {text-align:center;}
16TD {color:#888;}
17
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
35.bigButton {text-align:center; margin-top:120px;}
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;
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;
74}
75</style>
76{/literal}
77
78</head>
79
80<body>
81<div id="global">
82
83{if $step == 1}
84<p id="noPhotoWelcome">{'Welcome to your Piwigo photo gallery!'|@translate}</p>
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
109</div>
110</body>
111
112</html>
113
Note: See TracBrowser for help on using the repository browser.