From 7ebed797262c7f3371ae1b16ed455f7e9879caf0 Mon Sep 17 00:00:00 2001 From: grum Date: Sun, 3 Aug 2008 07:48:39 +0000 Subject: Asked by rvelices on this topic http://forum.phpwebgallery.net/viewtopic.php?pid=92097#p92097 A plugin to integrate the menu class see test_menu directory A plugin to show how to use the menu class see AMenuManager directory And common classes needed for the AMenuManager plugin see grum_plugins_classes-2 directory See topic http://forum.phpwebgallery.net/viewtopic.php?pid=92637#p92637 for more informations git-svn-id: http://piwigo.org/svn/trunk@2466 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/AMenuManager/admin/amm_admin.tpl | 13 +++ plugins/AMenuManager/admin/amm_linksconfig.tpl | 108 +++++++++++++++++++++ plugins/AMenuManager/admin/amm_linkslist.tpl | 56 +++++++++++ .../AMenuManager/admin/amm_linkslist_detail.tpl | 28 ++++++ plugins/AMenuManager/admin/amm_linkslist_edit.tpl | 97 ++++++++++++++++++ plugins/AMenuManager/admin/amm_sectionslist.tpl | 47 +++++++++ .../AMenuManager/admin/amm_sectionslist_detail.tpl | 24 +++++ plugins/AMenuManager/admin/go-down.png | Bin 0 -> 720 bytes plugins/AMenuManager/admin/go-up.png | Bin 0 -> 630 bytes plugins/AMenuManager/admin/index.php | 33 +++++++ plugins/AMenuManager/admin/plugin_admin.php | 28 ++++++ 11 files changed, 434 insertions(+) create mode 100755 plugins/AMenuManager/admin/amm_admin.tpl create mode 100644 plugins/AMenuManager/admin/amm_linksconfig.tpl create mode 100644 plugins/AMenuManager/admin/amm_linkslist.tpl create mode 100644 plugins/AMenuManager/admin/amm_linkslist_detail.tpl create mode 100644 plugins/AMenuManager/admin/amm_linkslist_edit.tpl create mode 100644 plugins/AMenuManager/admin/amm_sectionslist.tpl create mode 100644 plugins/AMenuManager/admin/amm_sectionslist_detail.tpl create mode 100644 plugins/AMenuManager/admin/go-down.png create mode 100644 plugins/AMenuManager/admin/go-up.png create mode 100755 plugins/AMenuManager/admin/index.php create mode 100755 plugins/AMenuManager/admin/plugin_admin.php (limited to 'plugins/AMenuManager/admin') diff --git a/plugins/AMenuManager/admin/amm_admin.tpl b/plugins/AMenuManager/admin/amm_admin.tpl new file mode 100755 index 000000000..313937722 --- /dev/null +++ b/plugins/AMenuManager/admin/amm_admin.tpl @@ -0,0 +1,13 @@ +
+

:: {$plugin.AMM_VERSION} ::

+

{'g002_title_page'|@translate} {$TABSHEET_TITLE}

+ + {$tabsheet} +
+ +{if isset($page_nfo)} +

{$page_nfo}

+{/if} + +{$AMM_BODY_PAGE} + diff --git a/plugins/AMenuManager/admin/amm_linksconfig.tpl b/plugins/AMenuManager/admin/amm_linksconfig.tpl new file mode 100644 index 000000000..55ee8b6a0 --- /dev/null +++ b/plugins/AMenuManager/admin/amm_linksconfig.tpl @@ -0,0 +1,108 @@ +{literal} + +{/literal} + + + +

{'g002_linkslist'|@translate} / {'g002_configlinks'|@translate} +

+ + +
+
+ {'g002_setting_link_block_menu'|@translate} + + {if isset($datas.language_list) and count($datas.language_list)} + {foreach from=$datas.language_list key=name item=language_row} + + {/foreach} + {/if} + + + + + + + + + + + + +
{'g002_setting_link_block_active'|@translate} + +
{'g002_setting_link_block_title'|@translate} + + +
+ + +
+ +
+ {'g002_setting_link_links'|@translate} + + + + + +
{'g002_setting_link_show_icon'|@translate} + +
+
+ +

+ +

+ + + +
+ + \ No newline at end of file diff --git a/plugins/AMenuManager/admin/amm_linkslist.tpl b/plugins/AMenuManager/admin/amm_linkslist.tpl new file mode 100644 index 000000000..1b197c8b4 --- /dev/null +++ b/plugins/AMenuManager/admin/amm_linkslist.tpl @@ -0,0 +1,56 @@ +{literal} + +{/literal} + + +

{'g002_linkslist'|@translate} / {'g002_configlinks'|@translate} +

+ +[{$datas.nburl}]
+{'g002_addlink'|@translate} + +
+ +
+ + + \ No newline at end of file diff --git a/plugins/AMenuManager/admin/amm_linkslist_detail.tpl b/plugins/AMenuManager/admin/amm_linkslist_detail.tpl new file mode 100644 index 000000000..e97c0ff07 --- /dev/null +++ b/plugins/AMenuManager/admin/amm_linkslist_detail.tpl @@ -0,0 +1,28 @@ + +{if isset($datas.urls) and count($datas.urls)} + + + + + + + + + + + {foreach from=$datas.urls key=name item=url} + + + + + + + + + + + + {/foreach} + +
 {'g002_label'|@translate}{'g002_url'|@translate}{'g002_mode'|@translate}{'g002_visible'|@translate} 
{if $url.img!=""}{else} {/if}{$url.label}{$url.url}{$url.mode}{$url.visible}{if $url.up}{else} {/if}{if $url.down}{else} {/if}
+{/if} diff --git a/plugins/AMenuManager/admin/amm_linkslist_edit.tpl b/plugins/AMenuManager/admin/amm_linkslist_edit.tpl new file mode 100644 index 000000000..0cf874dc2 --- /dev/null +++ b/plugins/AMenuManager/admin/amm_linkslist_edit.tpl @@ -0,0 +1,97 @@ +{literal} + +{/literal} + + +{if isset($datas.modeedit)} + +

+ {if $datas.modeedit=='create'} + {'g002_createoflink'|@translate} + {else} + {'g002_editoflink'|@translate} + {/if} + / {'g002_linkslist'|@translate}

+ + +
+
+ + + + + + + + + + + + + + + + + + + + + +
{'g002_label'|@translate} +
{'g002_url'|@translate} +
{'g002_icon'|@translate} + + +
{'g002_mode'|@translate} + + +
{'g002_visible'|@translate} + + +
+
+ + + {if $datas.modeedit=='create'} +

+ +

+ {/if} + + {if $datas.modeedit=='modify'} +

+ +

+ {/if} + + + + +
+ +{/if} \ No newline at end of file diff --git a/plugins/AMenuManager/admin/amm_sectionslist.tpl b/plugins/AMenuManager/admin/amm_sectionslist.tpl new file mode 100644 index 000000000..b9b49b074 --- /dev/null +++ b/plugins/AMenuManager/admin/amm_sectionslist.tpl @@ -0,0 +1,47 @@ +{literal} + +{/literal} + + +

{'g002_sectionslist'|@translate}

+ +
+ + + \ No newline at end of file diff --git a/plugins/AMenuManager/admin/amm_sectionslist_detail.tpl b/plugins/AMenuManager/admin/amm_sectionslist_detail.tpl new file mode 100644 index 000000000..b94258119 --- /dev/null +++ b/plugins/AMenuManager/admin/amm_sectionslist_detail.tpl @@ -0,0 +1,24 @@ + +{if isset($datas.sections) and count($datas.sections)} + + + + + + + + + + {foreach from=$datas.sections key=name item=section} + + + + + + + + + {/foreach} + +
{'g002_owner'|@translate}{'g002_sectionid'|@translate}{'g002_name'|@translate}{'g002_visible'|@translate} 
{$section.OWNER}{$section.ID}{$section.NAME}{$section.VISIBLE}{if $section.up}{else} {/if}{if $section.down}{else} {/if}
+{/if} diff --git a/plugins/AMenuManager/admin/go-down.png b/plugins/AMenuManager/admin/go-down.png new file mode 100644 index 000000000..7eeb16d2e Binary files /dev/null and b/plugins/AMenuManager/admin/go-down.png differ diff --git a/plugins/AMenuManager/admin/go-up.png b/plugins/AMenuManager/admin/go-up.png new file mode 100644 index 000000000..bd84e76ad Binary files /dev/null and b/plugins/AMenuManager/admin/go-up.png differ diff --git a/plugins/AMenuManager/admin/index.php b/plugins/AMenuManager/admin/index.php new file mode 100755 index 000000000..db1eae0d9 --- /dev/null +++ b/plugins/AMenuManager/admin/index.php @@ -0,0 +1,33 @@ + diff --git a/plugins/AMenuManager/admin/plugin_admin.php b/plugins/AMenuManager/admin/plugin_admin.php new file mode 100755 index 000000000..4669ac5b2 --- /dev/null +++ b/plugins/AMenuManager/admin/plugin_admin.php @@ -0,0 +1,28 @@ +> + ------------------------------------------------------------------------------ + See main.inc.php for release information + + --------------------------------------------------------------------------- */ + +if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); } + +include(AMM_PATH."amm_aip.class.inc.php"); + +global $prefixeTable; + +load_language('plugin.lang', AMM_PATH); + +$main_plugin_object = get_plugin_data($plugin_id); + +$plugin_ai = new AMM_AIP($prefixeTable, $main_plugin_object->get_filelocation()); +$plugin_ai->manage(); + +?> \ No newline at end of file -- cgit v1.2.3