Changeset 2488 for trunk/template/yoga/menubar.tpl
- Timestamp:
- Aug 28, 2008, 2:32:39 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/template/yoga/menubar.tpl
r2480 r2488 1 {* $Id$ *} 2 1 {if !empty($blocks) } 3 2 <div id="menubar"> 4 {if not empty($links)} 5 <dl id="mbLinks"> 6 <dt>{'Links'|@translate}</dt> 7 <dd> 8 <ul> 9 {foreach from=$links item=link} 10 <li> 11 <a href="{$link.URL}" 12 {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} 13 > 14 {$link.LABEL} 15 </a> 16 </li> 17 {/foreach}{*links*} 18 </ul> 19 </dd> 20 </dl> 21 {/if}{*links*} 22 23 {if isset($U_START_FILTER)} 24 <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> 25 {/if} 26 {if isset($U_STOP_FILTER)} 27 <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> 28 {/if} 29 30 <dl id="mbCategories"> 31 <dt><a href="{$U_CATEGORIES}">{'Categories'|@translate}</a></dt> 32 <dd> 33 {$MENU_CATEGORIES_CONTENT} 34 {if isset($U_UPLOAD)} 35 <ul><li> 36 <a href="{$U_UPLOAD}">{'upload_picture'|@translate}</a> 37 </li></ul> 38 {/if} 39 <p class="totalImages">{$pwg->l10n_dec('%d element', '%d elements', $NB_PICTURE)}</p> 40 </dd> 41 </dl> 42 43 44 {if not empty($related_tags)} 45 <dl id="mbTags"> 46 <dt>{'Related tags'|@translate}</dt> 47 <dd> 48 <ul id="menuTagCloud"> 49 {foreach from=$related_tags item=tag} 50 <li> 51 {if !empty($tag.U_ADD) } 52 <a href="{$tag.U_ADD}" 53 title="{$pwg->l10n_dec('%d element are also linked to current tags', '%d elements are also linked to current tags', $tag.counter)}" 54 rel="nofollow"> 55 <img src="{$ROOT_URL}{$themeconf.icon_dir}/add_tag.png" alt="+" /> 56 </a> 57 {/if} 58 <a href="{$tag.URL}" class="tagLevel{$tag.level}" title="{'See elements linked to this tag only'|@translate}">{$tag.name}</a> 59 </li> 60 {/foreach} 61 </ul> 62 </dd> 63 </dl> 3 {foreach from=$blocks key=id item=block} 4 {if ( not empty($block->template) or not empty($block->raw_content) )} 5 <dl id="{$id}"> 6 {if not empty($block->template)} 7 {include file=$block->template } 8 {else} 9 {$block->raw_content|@default} 10 {/if} 11 </dl> 12 {/if} 13 {/foreach} 14 </div> 64 15 {/if} 65 66 67 <dl id="mbSpecial">68 <dt>{'special_categories'|@translate}</dt>69 <dd>70 <ul>71 {foreach from=$special_categories item=cat}72 <li><a href="{$cat.URL}" title="{$cat.TITLE}" {if isset($cat.REL)}{$cat.REL}{/if}>{$cat.NAME}</a></li>73 {/foreach}74 </ul>75 </dd>76 </dl>77 78 79 <dl id="mbMenu">80 <dt>{'title_menu'|@translate}</dt>81 <dd>82 <form action="{$ROOT_URL}qsearch.php" method="get" id="quicksearch">83 <p style="margin:0;padding:0"> {*this <p> is for html validation only - does not affect positioning*}84 <input type="text" name="q" id="qsearchInput" onfocus="if (value==qsearch_prompt) value='';" onblur="if (value=='') value=qsearch_prompt;" style="width:90%"/>85 </p>86 </form>87 <script type="text/javascript">var qsearch_prompt="{'qsearch'|@translate|@escape:'javascript'}"; document.getElementById('qsearchInput').value=qsearch_prompt;</script>88 89 <ul>90 {foreach from=$summaries item=sum}91 <li><a href="{$sum.U_SUMMARY}" title="{$sum.TITLE}" {if isset($sum.REL)}{$sum.REL}{/if}>{$sum.NAME}</a></li>92 {/foreach}93 </ul>94 </dd>95 </dl>96 97 98 <dl id="mbIdentification">99 <dt>{'identification'|@translate}</dt>100 <dd>101 {if isset($USERNAME)}102 <p>{'hello'|@translate} {$USERNAME} !</p>103 {/if}104 105 <ul>106 {if isset($U_REGISTER)}107 <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow">{'Register'|@translate}</a></li>108 {/if}109 110 {if isset($U_IDENTIFY)}111 <li><a href="{$U_IDENTIFY}" rel="nofollow">{'Connection'|@translate}</a></li>112 {/if}113 114 {if isset($U_LOGOUT)}115 <li><a href="{$U_LOGOUT}">{'logout'|@translate}</a></li>116 {/if}117 118 {if isset($U_PROFILE)}119 <li><a href="{$U_PROFILE}" title="{'hint_customize'|@translate}">{'customize'|@translate}</a></li>120 {/if}121 122 {if isset($U_ADMIN)}123 <li><a href="{$U_ADMIN}" title="{'hint_admin'|@translate}">{'admin'|@translate}</a></li>124 {/if}125 </ul>126 127 {if isset($U_IDENTIFY)}128 <form method="post" action="{$U_IDENTIFY}" id="quickconnect">129 <fieldset>130 <legend>{'Quick connect'|@translate}</legend>131 <div>132 <label for="username">{'Username'|@translate}</label><br/>133 <input type="text" name="username" id="username" value="" style="width:99%">134 </div>135 136 <div><label for="password">{'Password'|@translate}</label>137 <br/>138 <input type="password" name="password" id="password" style="width:99%">139 </div>140 141 {if $AUTHORIZE_REMEMBERING}142 <div><label>143 {'remember_me'|@translate}144 <input type="checkbox" name="remember_me" value="1">145 </label></div>146 {/if}147 148 <div>149 <ul class="actions">150 <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>151 {if isset($U_REGISTER)}152 <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>153 {/if}154 </ul>155 <input class="submit" type="submit" name="login" value="{'Submit'|@translate}">156 </div>157 158 </fieldset>159 </form>160 {/if}161 162 </dd>163 </dl>164 </div> <!-- menubar -->
Note: See TracChangeset
for help on using the changeset viewer.