Changeset 28561 for extensions


Ignore:
Timestamp:
May 29, 2014, 7:28:39 AM (10 years ago)
Author:
rvelices
Message:

modus removed unused template code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/modus/template/menubar.tpl

    r27333 r28561  
    5757</dd>
    5858
    59                 {elseif $id=="mbMenu"}
    60 {* ============ mbMenu ========== *}
    61 <dt>{'Menu'|@translate}</dt>
    62 <dd>
    63         <ul>{strip}
    64         {foreach from=$block->data item=link}
    65                 {if is_array($link)}
    66                         <li><a href="{$link.URL}" title="{$link.TITLE}"{if isset($link.REL)} {$link.REL}{/if}>{$link.NAME}</a>{if isset($link.COUNTER)} ({$link.COUNTER}){/if}</li>
    67                 {/if}
    68         {/foreach}
    69         {/strip}</ul>
    70 </dd>
    71 
    72                 {elseif $id=="mbIdentification"}
    73 {* ============ mbIdentification ========== *}
    74 <dt>{'Identification'|@translate}</dt>
    75 <dd>
    76 {strip}
    77         {if isset($USERNAME)}
    78         <p>{'Hello'|@translate} {$USERNAME} !</p>
    79         {/if}
    80         <ul>
    81         {if isset($U_REGISTER)}
    82         <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel=nofollow>{'Register'|@translate}</a></li>
    83         {/if}
    84         {if isset($U_LOGIN)}
    85         <li><a href="{$U_LOGIN}" rel=nofollow>{'Login'|@translate}</a></li>
    86         {/if}
    87         {if isset($U_LOGOUT)}
    88         <li><a href="{$U_LOGOUT}">{'Logout'|@translate}</a></li>
    89         {/if}
    90         {if isset($U_PROFILE)}
    91         <li><a href="{$U_PROFILE}" title="{'customize the appareance of the gallery'|@translate}">{'Customize'|@translate}</a></li>
    92         {/if}
    93         {if isset($U_ADMIN)}
    94         <li><a href="{$U_ADMIN}" title="{'available for administrators only'|@translate}">{'Administration'|@translate}</a></li>
    95         {/if}
    96         </ul>
    97 {/strip}
    98         {if isset($U_LOGIN)}
    99 {strip}
    100         <form method=post action="{$U_LOGIN}" id=quickconnect>
    101         <fieldset>
    102         <legend>{'Quick connect'|@translate}</legend>
    103         <div>
    104         <label for=username>{'Username'|@translate}</label><br>
    105         <input type=text name=username id=username value="" style="width:99%">
    106         </div>
    107 
    108         <div><label for=password>{'Password'|@translate}</label><br>
    109         <input type=password name=password id=password style="width:99%">
    110         </div>
    111 
    112         {if $AUTHORIZE_REMEMBERING}
    113         <div><label for=remember_me>
    114         {'Auto login'|@translate}&nbsp;<input type=checkbox name=remember_me id=remember_me value=1>
    115         </label></div>
    116         {/if}
    117 
    118         <div>
    119         <input type=hidden name=redirect value="{$smarty.server.REQUEST_URI|@urlencode}">
    120         <input type=submit name=login value="{'Submit'|@translate}">
    121         <span class=categoryActions>
    122 {if isset($U_REGISTER)}
    123                 <a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" class="pwg-state-default pwg-button" rel=nofollow>
    124                         <span class="pwg-icon pwg-icon-register"> </span>
    125                 </a>
    126 {/if}
    127                 <a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" class="pwg-state-default pwg-button">
    128                         <span class="pwg-icon pwg-icon-lost-password"> </span>
    129                 </a>
    130         </span>
    131         </div>
    132 
    133         </fieldset>
    134         </form>
    135 {/strip}
    136         {/if}
    137 </dd>
    138 
    13959                {else}
    14060                {if not empty($block->template)}
     
    15878<dl style="float:none">
    15979        <form style="margin:0;display:inline" action="{$ROOT_URL}qsearch.php" method=get id=quicksearch onsubmit="return this.q.value!='' && this.q.value!=qsearch_prompt;">
    160                         <input type="text" name=q id=qsearchInput onfocus="if(value==qsearch_prompt)value='';" onblur="if(value=='')value=qsearch_prompt;">
     80                        <input type="text" name=q id=qsearchInput onfocus="if(value==qsearch_prompt)value='';" onblur="if(value=='')value=qsearch_prompt;"{if !empty($QUERY_SEARCH)} value="{$QUERY_SEARCH}"{/if}>
    16181        </form>
    162         <script type="text/javascript">var qsearch_prompt="{'Search'|@translate|@escape:'javascript'}...";document.getElementById('qsearchInput').value=qsearch_prompt;</script>
     82        <script type="text/javascript">var qsearch_prompt="{'Search'|@translate|@escape:'javascript'}...";{if empty($QUERY_SEARCH)}document.getElementById('qsearchInput').value=qsearch_prompt;{/if}</script>
    16383</dl>
    16484{if isset($U_LOGIN)}
Note: See TracChangeset for help on using the changeset viewer.