aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-01-12 13:41:55 +0000
committerplegall <plg@piwigo.org>2011-01-12 13:41:55 +0000
commit0ef332fc0f78e36e168d51c9cf17df65ef0ab186 (patch)
treeb6e500c817d81b58ce73aa939fef422b18cd11a4 /admin
parent66458980f3dd92d13df6bcb454ab99f39c15183c (diff)
feature 2103 added: week may start on sunday/monday in the monthly calendar
git-svn-id: http://piwigo.org/svn/trunk@8626 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/configuration.php5
-rw-r--r--admin/themes/default/template/configuration.tpl9
2 files changed, 14 insertions, 0 deletions
diff --git a/admin/configuration.php b/admin/configuration.php
index 36a2901ae..0f2e8bd34 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -246,6 +246,11 @@ switch ($page['section'])
'CONF_GALLERY_TITLE' => htmlspecialchars($conf['gallery_title']),
'CONF_PAGE_BANNER' => htmlspecialchars($conf['page_banner']),
'CONF_GALLERY_URL' => $conf['gallery_url'],
+ 'week_starts_on_options' => array(
+ 'sunday' => $lang['day'][0],
+ 'monday' => $lang['day'][1],
+ ),
+ 'week_starts_on_options_selected' => $conf['week_starts_on'],
));
foreach ($main_checkboxes as $checkbox)
diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl
index 7a6583779..903255baf 100644
--- a/admin/themes/default/template/configuration.tpl
+++ b/admin/themes/default/template/configuration.tpl
@@ -87,6 +87,15 @@
<input type="checkbox" name="email_admin_on_new_user" {if ($main.email_admin_on_new_user)}checked="checked"{/if}>
</label>
</li>
+
+ <li>
+ <label>
+ <span class="property">
+ {'Week starts on'|@translate}
+ {html_options name="week_starts_on" options=$main.week_starts_on_options selected=$main.week_starts_on_options_selected}
+ </span>
+ </label>
+ </li>
</ul>
</fieldset>
{/if}