diff options
Diffstat (limited to '')
-rw-r--r-- | plugins/test_menu/menu_templates/menubar.tpl | 165 | ||||
-rw-r--r-- | plugins/test_menu/menu_templates/menubar_categories.tpl | 24 | ||||
-rw-r--r-- | plugins/test_menu/menu_templates/menubar_generic.tpl | 10 | ||||
-rw-r--r-- | plugins/test_menu/menu_templates/menubar_identification.tpl | 67 | ||||
-rw-r--r-- | plugins/test_menu/menu_templates/menubar_links.tpl | 17 | ||||
-rw-r--r-- | plugins/test_menu/menu_templates/menubar_main.tpl | 15 | ||||
-rw-r--r-- | plugins/test_menu/menu_templates/menubar_menu.tpl | 17 | ||||
-rw-r--r-- | plugins/test_menu/menu_templates/menubar_special.tpl | 10 | ||||
-rw-r--r-- | plugins/test_menu/menu_templates/menubar_tags.tpl | 19 |
9 files changed, 344 insertions, 0 deletions
diff --git a/plugins/test_menu/menu_templates/menubar.tpl b/plugins/test_menu/menu_templates/menubar.tpl new file mode 100644 index 000000000..0bc538e87 --- /dev/null +++ b/plugins/test_menu/menu_templates/menubar.tpl @@ -0,0 +1,165 @@ +{* $Id: menubar.tpl 2409 2008-07-01 02:09:21Z rvelices $ *} + +<div id="menubar"> +{if not empty($links)} +<dl id="mbLinks"> + <dt>{'Links'|@translate}</dt> + <dd> + <ul> + {foreach from=$links item=link} + <li> + <a href="{$link.URL}" + {if isset($link.new_window) }onclick="window.open(this.href, '{$link.new_window.NAME|@escape:'javascript'}','{$link.new_window.FEATURES|@escape:'javascript'}'); return false;"{/if} + > + {$link.LABEL} + </a> + </li> + {/foreach}{*links*} + </ul> + </dd> +</dl> +{/if}{*links*} + + {if isset($U_START_FILTER)} + <a href="{$U_START_FILTER}" title="{'start_filter_hint'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_filter.png" class="button" alt="start filter"></a> + {/if} + {if isset($U_STOP_FILTER)} + <a href="{$U_STOP_FILTER}" title="{'stop_filter_hint'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_filter.png" class="button" alt="stop filter"></a> + {/if} + +<dl id="mbCategories"> + <dt><a href="{$U_CATEGORIES}">{'Categories'|@translate}</a></dt> + <dd> + {$MENU_CATEGORIES_CONTENT} + {if isset($U_UPLOAD)} + <ul><li> + <a href="{$U_UPLOAD}">{'upload_picture'|@translate}</a> + </li></ul> + {/if} + <p class="totalImages">{$pwg->l10n_dec('%d element', '%d elements', $NB_PICTURE)}</p> + </dd> +</dl> + + +{if not empty($related_tags)} +<dl id="mbTags"> + <dt>{'Related tags'|@translate}</dt> + <dd> + <ul id="menuTagCloud"> + {foreach from=$related_tags item=tag} + <li> + {if !empty($tag.U_ADD) } + <a href="{$tag.U_ADD}" + title="{$pwg->l10n_dec('%d element are also linked to current tags', '%d elements are also linked to current tags', $tag.counter)}" + rel="nofollow"> + <img src="{$ROOT_URL}{$themeconf.icon_dir}/add_tag.png" alt="+" /> + </a> + {/if} + <a href="{$tag.URL}" class="tagLevel{$tag.level}" title="{'See elements linked to this tag only'|@translate}">{$tag.name}</a> + </li> + {/foreach} + </ul> + </dd> +</dl> +{/if} + + +<dl id="mbSpecial"> + <dt>{'special_categories'|@translate}</dt> + <dd> + <ul> + {foreach from=$special_categories item=cat} + <li><a href="{$cat.URL}" title="{$cat.TITLE}" {if isset($cat.REL)}{$cat.REL}{/if}>{$cat.NAME}</a></li> + {/foreach} + </ul> + </dd> +</dl> + + +<dl id="mbMenu"> + <dt>{'title_menu'|@translate}</dt> + <dd> + <form action="{$ROOT_URL}qsearch.php" method="get" id="quicksearch"> + <p> + <input type="text" name="q" id="qsearchInput" onfocus="if (value==qsearch_prompt) value='';" onblur="if (value=='') value=qsearch_prompt;" /> + </p> + </form> + <script type="text/javascript">var qsearch_prompt="{'qsearch'|@translate|@escape:'javascript'}"; document.getElementById('qsearchInput').value=qsearch_prompt;</script> + + <ul> + {foreach from=$summaries item=sum} + <li><a href="{$sum.U_SUMMARY}" title="{$sum.TITLE}" {if isset($sum.REL)}{$sum.REL}{/if}>{$sum.NAME}</a></li> + {/foreach} + </ul> + </dd> +</dl> + + +<dl id="mbIdentification"> + <dt>{'identification'|@translate}</dt> + <dd> + {if isset($USERNAME)} + <p>{'hello'|@translate} {$USERNAME} !</p> + {/if} + + <ul> + {if isset($U_REGISTER)} + <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow">{'Register'|@translate}</a></li> + {/if} + + {if isset($U_IDENTIFY)} + <li><a href="{$U_IDENTIFY}" rel="nofollow">{'Connection'|@translate}</a></li> + {/if} + + {if isset($U_LOGOUT)} + <li><a href="{$U_LOGOUT}">{'logout'|@translate}</a></li> + {/if} + + {if isset($U_PROFILE)} + <li><a href="{$U_PROFILE}" title="{'hint_customize'|@translate}">{'customize'|@translate}</a></li> + {/if} + + {if isset($U_ADMIN)} + <li><a href="{$U_ADMIN}" title="{'hint_admin'|@translate}">{'admin'|@translate}</a></li> + {/if} + </ul> + + {if isset($U_IDENTIFY)} + <form method="post" action="{$U_IDENTIFY}" class="filter" id="quickconnect"> + <fieldset> + <legend>{'Quick connect'|@translate}</legend> + + <label> + {'Username'|@translate} + <input type="text" name="username" size="15" value=""> + </label> + + <label> + {'Password'|@translate} + <input type="password" name="password" size="15"> + </label> + + {if $AUTHORIZE_REMEMBERING} + <label> + {'remember_me'|@translate} + <input type="checkbox" name="remember_me" value="1"> + </label> + {/if} + <p> + <input class="submit" type="submit" name="login" value="{'Submit'|@translate}"> + </p> + + <ul class="actions"> + <li><a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/lost_password.png" class="button" alt="{'Forgot your password?'|@translate}"></a></li> + {if isset($U_REGISTER)} + <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/register.png" class="button" alt="{'Register'|@translate}"/></a></li> + {/if} + </ul> + + </fieldset> + </form> + {/if} + + </dd> +</dl> +</div> <!-- menubar --> diff --git a/plugins/test_menu/menu_templates/menubar_categories.tpl b/plugins/test_menu/menu_templates/menubar_categories.tpl new file mode 100644 index 000000000..050f503c3 --- /dev/null +++ b/plugins/test_menu/menu_templates/menubar_categories.tpl @@ -0,0 +1,24 @@ + +<!-- categories menu bar --> + +<dt> + {if isset($section.ITEMS.U_START_FILTER)} + <a href="{$section.ITEMS.U_START_FILTER}" title="{'start_filter_hint'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_filter.png" class="button" alt="start filter"></a> + {/if} + {if isset($section.ITEMS.U_STOP_FILTER)} + <a href="{$section.ITEMS.U_STOP_FILTER}" title="{'stop_filter_hint'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_filter.png" class="button" alt="stop filter"></a> + {/if} + + <a href="{$section.ITEMS.U_CATEGORIES}">{$section.NAME|@translate}</a> +</dt> +<dd> + {$section.ITEMS.MENU_CATEGORIES_CONTENT} + {if isset($section.ITEMS.U_UPLOAD)} + <ul> + <li> + <a href="{$section.ITEMS.U_UPLOAD}">{'upload_picture'|@translate}</a> + </li> + </ul> + {/if} + <p class="totalImages">{$pwg->l10n_dec('%d element', '%d elements', $section.ITEMS.NB_PICTURE)}</p> +</dd> diff --git a/plugins/test_menu/menu_templates/menubar_generic.tpl b/plugins/test_menu/menu_templates/menubar_generic.tpl new file mode 100644 index 000000000..e9991c280 --- /dev/null +++ b/plugins/test_menu/menu_templates/menubar_generic.tpl @@ -0,0 +1,10 @@ + +<!-- generic menu bar --> +<dt>{$section.NAME|@translate}</dt> +<dd> + <ul> + {foreach from=$section.ITEMS item=item} + <li><a href="{$item.URL}" title="{$item.TITLE}">{$item.NAME}</a></li> + {/foreach} + </ul> +</dd> diff --git a/plugins/test_menu/menu_templates/menubar_identification.tpl b/plugins/test_menu/menu_templates/menubar_identification.tpl new file mode 100644 index 000000000..a09f12425 --- /dev/null +++ b/plugins/test_menu/menu_templates/menubar_identification.tpl @@ -0,0 +1,67 @@ + +<!-- identification menu bar --> +<dt>{$section.NAME|@translate}</dt> +<dd> + {if isset($section.ITEMS.USERNAME)} + <p>{'hello'|@translate} {$section.ITEMS.USERNAME} !</p> + {/if} + +<ul> + {if isset($section.ITEMS.U_REGISTER)} + <li><a href="{$section.ITEMS.U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow">{'Register'|@translate}</a></li> + {/if} + + {if isset($section.ITEMS.U_IDENTIFY)} + <li><a href="{$section.ITEMS.U_IDENTIFY}" rel="nofollow">{'Connection'|@translate}</a></li> + {/if} + + {if isset($section.ITEMS.U_LOGOUT)} + <li><a href="{$section.ITEMS.U_LOGOUT}">{'logout'|@translate}</a></li> + {/if} + + {if isset($section.ITEMS.U_PROFILE)} + <li><a href="{$section.ITEMS.U_PROFILE}" title="{'hint_customize'|@translate}">{'customize'|@translate}</a></li> + {/if} + + {if isset($section.ITEMS.U_ADMIN)} + <li><a href="{$section.ITEMS.U_ADMIN}" title="{'hint_admin'|@translate}">{'admin'|@translate}</a></li> + {/if} +</ul> + +{if isset($section.ITEMS.U_IDENTIFY)} +<form method="post" action="{$section.ITEMS.U_IDENTIFY}" class="filter" id="quickconnect"> +<fieldset> + <legend>{'Quick connect'|@translate}</legend> + + <label> + {'Username'|@translate} + <input type="text" name="username" size="15" value=""> + </label> + + <label> + {'Password'|@translate} + <input type="password" name="password" size="15"> + </label> + + {if $section.ITEMS.AUTHORIZE_REMEMBERING} + <label> + {'remember_me'|@translate} + <input type="checkbox" name="remember_me" value="1"> + </label> + {/if} + <p> + <input class="submit" type="submit" name="login" value="{'Submit'|@translate}"> + </p> + + <ul class="actions"> + <li><a href="{$section.ITEMS.U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/lost_password.png" class="button" alt="{'Forgot your password?'|@translate}"></a></li> + {if isset($section.ITEMS.U_REGISTER)} + <li><a href="{$section.ITEMS.U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/register.png" class="button" alt="{'Register'|@translate}"/></a></li> + {/if} + </ul> + +</fieldset> +</form> + {/if} + +</dd> diff --git a/plugins/test_menu/menu_templates/menubar_links.tpl b/plugins/test_menu/menu_templates/menubar_links.tpl new file mode 100644 index 000000000..87862f1d6 --- /dev/null +++ b/plugins/test_menu/menu_templates/menubar_links.tpl @@ -0,0 +1,17 @@ + +<!-- links menu bar --> + +<dt>{$section.NAME|@translate}</dt> +<dd> + <ul> + {foreach from=$section.ITEMS item=link} + <li> + <a href="{$link.URL}" + {if isset($link.new_window) }onclick="window.open(this.href, '{$link.new_window.NAME|@escape:'javascript'}','{$link.new_window.FEATURES|@escape:'javascript'}'); return false;"{/if} + > + {$link.LABEL} + </a> + </li> + {/foreach} + </ul> +</dd>
\ No newline at end of file diff --git a/plugins/test_menu/menu_templates/menubar_main.tpl b/plugins/test_menu/menu_templates/menubar_main.tpl new file mode 100644 index 000000000..82d7cb208 --- /dev/null +++ b/plugins/test_menu/menu_templates/menubar_main.tpl @@ -0,0 +1,15 @@ + +<!-- main menu bar --> + +{if isset($sections) and count($sections)} + <div id="menubar"> + {foreach from=$sections key=name item=section} + {if not(empty($section.ITEMS))} + <dl id="{$section.ID}"> + + {include file=$section.TEMPLATE section=$section} + </dl> + {/if} + {/foreach} + </div> +{/if}
\ No newline at end of file diff --git a/plugins/test_menu/menu_templates/menubar_menu.tpl b/plugins/test_menu/menu_templates/menubar_menu.tpl new file mode 100644 index 000000000..9d42eeea5 --- /dev/null +++ b/plugins/test_menu/menu_templates/menubar_menu.tpl @@ -0,0 +1,17 @@ + +<!-- menu menu bar --> +<dt>{$section.NAME|@translate}</dt> +<dd> + <form action="{$ROOT_URL}qsearch.php" method="get" id="quicksearch"> + <p> + <input type="text" name="q" id="qsearchInput" onfocus="if (value==qsearch_prompt) value='';" onblur="if (value=='') value=qsearch_prompt;" /> + </p> + </form> + <script type="text/javascript">var qsearch_prompt="{'qsearch'|@translate|@escape:'javascript'}"; document.getElementById('qsearchInput').value=qsearch_prompt;</script> + + <ul> + {foreach from=$section.ITEMS item=sum} + <li><a href="{$sum.U_SUMMARY}" title="{$sum.TITLE}" {if isset($sum.REL)}{$sum.REL}{/if}>{$sum.NAME}</a></li> + {/foreach} + </ul> +</dd> diff --git a/plugins/test_menu/menu_templates/menubar_special.tpl b/plugins/test_menu/menu_templates/menubar_special.tpl new file mode 100644 index 000000000..0bc9588ee --- /dev/null +++ b/plugins/test_menu/menu_templates/menubar_special.tpl @@ -0,0 +1,10 @@ + +<!-- special menu bar --> +<dt>{$section.NAME|@translate}</dt> +<dd> + <ul> + {foreach from=$section.ITEMS item=cat} + <li><a href="{$cat.URL}" title="{$cat.TITLE}" {if isset($cat.REL)}{$cat.REL}{/if}>{$cat.NAME}</a></li> + {/foreach} + </ul> +</dd> diff --git a/plugins/test_menu/menu_templates/menubar_tags.tpl b/plugins/test_menu/menu_templates/menubar_tags.tpl new file mode 100644 index 000000000..b0fd9cf04 --- /dev/null +++ b/plugins/test_menu/menu_templates/menubar_tags.tpl @@ -0,0 +1,19 @@ + +<!-- tags menu bar --> +<dt>{$section.NAME|@translate}</dt> +<dd> + <ul id="menuTagCloud"> + {foreach from=$section.ITEMS item=tag} + <li> + {if !empty($tag.U_ADD) } + <a href="{$tag.U_ADD}" + title="{$pwg->l10n_dec('%d element are also linked to current tags', '%d elements are also linked to current tags', $tag.counter)}" + rel="nofollow"> + <img src="{$ROOT_URL}{$themeconf.icon_dir}/add_tag.png" alt="+" /> + </a> + {/if} + <a href="{$tag.URL}" class="tagLevel{$tag.level}" title="{'See elements linked to this tag only'|@translate}">{$tag.name}</a> + </li> + {/foreach} + </ul> +</dd> |