From df29ffbde72e88635f454d5d6d84c5a7209460f3 Mon Sep 17 00:00:00 2001 From: vdigital Date: Mon, 14 Jul 2008 21:42:40 +0000 Subject: Feature template-extension based on 2006 chrisaga's idea. chrisaga wrote: "If you want to make some template customization without building a brand new template, you should use ..." git-svn-id: http://piwigo.org/svn/trunk@2434 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/template/yoga/admin.tpl | 1 + admin/template/yoga/admin/extend_for_templates.tpl | 34 ++++++++++++++++++++++ admin/template/yoga/theme/admin/themeconf.inc.php | 1 + 3 files changed, 36 insertions(+) create mode 100644 admin/template/yoga/admin/extend_for_templates.tpl (limited to 'admin/template') diff --git a/admin/template/yoga/admin.tpl b/admin/template/yoga/admin.tpl index 1c5c13035..e0d44a17e 100644 --- a/admin/template/yoga/admin.tpl +++ b/admin/template/yoga/admin.tpl @@ -23,6 +23,7 @@ diff --git a/admin/template/yoga/admin/extend_for_templates.tpl b/admin/template/yoga/admin/extend_for_templates.tpl new file mode 100644 index 000000000..fdac49b7d --- /dev/null +++ b/admin/template/yoga/admin/extend_for_templates.tpl @@ -0,0 +1,34 @@ +{* $Id$ *} +

{'extend_for_templates'|@translate}

+
+{if isset($extents)} +

{'Replacement of original templates'|@translate}

+
+ + + + + + + {foreach from=$extents item=tpl name=extent_loop} + + + + + + {/foreach} +
{'Replacers'|@translate}{'Original templates'|@translate}{'Optional URL keyword'|@translate}
+ + {$tpl.replacer} + + {html_options name=original[] output=$tpl.original_tpl values=$tpl.original_tpl selected=$tpl.selected_tpl} + + {html_options name=url[] output=$tpl.url_parameter values=$tpl.url_parameter selected=$tpl.selected_url} +
+ {if !is_adviser()} +

+ +

+ {/if} +
+{/if} \ No newline at end of file diff --git a/admin/template/yoga/theme/admin/themeconf.inc.php b/admin/template/yoga/theme/admin/themeconf.inc.php index 9629b274f..e3b6fc63e 100644 --- a/admin/template/yoga/theme/admin/themeconf.inc.php +++ b/admin/template/yoga/theme/admin/themeconf.inc.php @@ -8,6 +8,7 @@ function selected_admin_menu() { switch ($_GET['page']) { case 'configuration': + case 'extend_for_templates': return 1; case 'site_manager': case 'site_update': -- cgit v1.2.3