aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-03-15 13:35:35 +0000
committerplegall <plg@piwigo.org>2010-03-15 13:35:35 +0000
commit395b09de3d1dfc40411df71c8752dcc368ab4ea9 (patch)
tree1d79d8dafd27fcae30c180a6b8c23dc22f3a3c93 /admin/themes/default
parent279196b283674335f1f46a3f508d0d8fb17ff2fc (diff)
feature 1507: ability to install themes directly from piwigo.org/ext.
The theme manager backend for installation is the plugin manager backend, because they are very close. thanks to feature:1502, installing a theme and installing a plugin are very similare operations. The only differences are the installation directory and the main file to find in the archive. This is only the very first step, the "add new theme" screen needs many improvements, to begin with display style. git-svn-id: http://piwigo.org/svn/trunk@5143 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default')
-rw-r--r--admin/themes/default/template/admin.tpl1
-rw-r--r--admin/themes/default/template/themes_new.tpl13
2 files changed, 14 insertions, 0 deletions
diff --git a/admin/themes/default/template/admin.tpl b/admin/themes/default/template/admin.tpl
index 8de4f69ea..8cd35122a 100644
--- a/admin/themes/default/template/admin.tpl
+++ b/admin/themes/default/template/admin.tpl
@@ -22,6 +22,7 @@ jQuery().ready(function(){ldelim}
<li><a href="{$U_CONFIG_DISPLAY}">{'Default display'|@translate}</a></li>
<li><a href="{$U_CONFIG_MENUBAR}">{'Menu'|@translate}</a></li>
<li><a href="{$U_CONFIG_EXTENTS}">{'Templates'|@translate}</a></li>
+ <li><a href="{$U_CONFIG_THEMES}">{'Themes'|@translate}</a></li>
</ul>
</dd>
</dl>
diff --git a/admin/themes/default/template/themes_new.tpl b/admin/themes/default/template/themes_new.tpl
new file mode 100644
index 000000000..7317b7df5
--- /dev/null
+++ b/admin/themes/default/template/themes_new.tpl
@@ -0,0 +1,13 @@
+<div class="titrePage">
+ <h2>{'Install New Theme'|@translate}</h2>
+</div>
+
+{if isset($themes)}
+<ul>
+{foreach from=$new_themes item=theme name=themes_loop}
+ <li>
+ <img src="{$theme.src}"> {$theme.name} <a href="{$theme.install_url}">Install</a>
+ </li>
+{/foreach}
+</ul>
+{/if} \ No newline at end of file