Show
Ignore:
Timestamp:
03/05/08 17:58:30 (9 months ago)
Author:
llaumgui
Message:

Mise à jour

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ez_publish/lightmin/trunk/design/lightmin/templates/pagelayout.tpl

    r119 r123  
    22    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    33<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$site.http_equiv.Content-language|wash}" lang="{$site.http_equiv.Content-language|wash}"> 
    4  
    54<head> 
    65{include uri='design:page_head.tpl'} 
    76 
    87{set-block variable=$admin_right_menu} 
    9 {tool_bar name='admin_right' view=full} 
    10 {tool_bar name='admin_developer' view=full} 
     8        {tool_bar name='admin_right' view=full} 
     9        {tool_bar name='admin_developer' view=full} 
    1110{/set-block} 
    1211 
    13  
    14 {def $hide_right_menu = true() 
    15      $admin_left_width = ezpreference( 'admin_left_menu_width' )} 
    16  
    17 {* cache-block keys=array($navigation_part.identifier, $current_user.role_id_list|implode( ',' ), $current_user.limited_assignment_value_list|implode( ',' ), $ui_context, $hide_right_menu, $admin_left_width) *} 
    18 {* Cache header for each navigation part *} 
     12{def $hide_right_menu   = true() 
     13     $admin_left_width  = "medium" 
     14} 
    1915 
    2016{section name=JavaScript loop=ezini( 'JavaScriptSettings', 'JavaScriptList', 'design.ini' ) } 
     
    9692<script type="text/javascript" src={'javascript/tools/eziepngfix.js'|ezdesign}></script> 
    9793<![endif]--> 
    98  
    9994</head> 
    10095 
    10196<body> 
    102  
    10397<div id="allcontent"> 
    104 <div id="header"> 
    105 <div id="header-design"> 
    106  
    107 <div id="logo"> 
    108 <img src={'ezpublish-logo-200x40.gif'|ezimage} width="200" height="40" alt="eZ Publish" border="0" /> 
    109 {*<p>version {fetch( setup, version )}</p>*} 
    110 </div> 
    111  
    112 {* --- Search ---*} 
    113 <div id="search"> 
    114 <form action={'/content/search/'|ezurl} method="get"> 
    115  
    116 {section show=eq( $ui_context, 'edit' )} 
    117     <input id="searchtext" name="SearchText" type="text" size="20" value="{section show=is_set( $search_text )}{$search_text|wash}{/section}" disabled="disabled" /> 
    118     <input id="searchbutton" class="button-disabled" name="SearchButton" type="submit" value="{'Search'|i18n( 'design/admin/pagelayout' )}" disabled="disabled" /> 
    119 {section-else} 
    120     <input id="searchtext" name="SearchText" type="text" size="20" value="{section show=is_set( $search_text )}{$search_text|wash}{/section}" /> 
    121     <input id="searchbutton" class="button" name="SearchButton" type="submit" value="{'Search'|i18n( 'design/admin/pagelayout' )}" /> 
    122     {section show=eq( $ui_context, 'browse' ) } 
    123         <input name="Mode" type="hidden" value="browse" /> 
    124     {/section} 
    125 {/section} 
    126     <p class="select"> 
    127     {let disabled=false() 
    128          nd=1 
    129          left_checked=true() 
    130          current_loc=true()} 
    131     {section show=eq( $ui_context, 'edit' )} 
    132         {set disabled=true()} 
    133     {section-else} 
    134         {section show=is_set($module_result.node_id)} 
    135             {set nd=$module_result.node_id} 
    136         {section-else} 
    137             {section show=is_set($search_subtree_array)} 
    138                 {section show=count($search_subtree_array)|eq(1)} 
    139                     {section show=$search_subtree_array.0|ne(1)} 
    140                         {set nd=$search_subtree_array.0} 
    141                         {set left_checked=false()} 
    142                     {section-else} 
    143                         {set disabled=true()} 
    144                     {/section} 
    145                     {set current_loc=false()} 
    146                 {section-else} 
    147                     {set disabled=true()} 
    148                 {/section} 
    149             {section-else} 
    150                 {set disabled=true()} 
    151             {/section} 
    152         {/section} 
    153     {/section} 
    154     <label{section show=$disabled} class="disabled"{/section}><input type="radio" name="SubTreeArray" value="1" checked="checked"{section show=$disabled} disabled="disabled"{section-else} title="{'Search all content.'|i18n( 'design/admin/pagelayout' )}"{/section} />{'All content'|i18n( 'design/admin/pagelayout' )}</label> 
    155     <label{section show=$disabled} class="disabled"{/section}><input type="radio" name="SubTreeArray" value="{$nd}"{section show=$disabled} disabled="disabled"{section-else} title="{'Search only from the current location.'|i18n( 'design/admin/pagelayout' )}"{/section} />{section show=$current_loc}{'Current location'|i18n( 'design/admin/pagelayout' )}{section-else}{'The same location'|i18n( 'design/admin/pagelayout' )}{/section}</label> 
    156     {/let} 
    157     </p> 
    158     <p class="advanced"> 
    159     {section show=or( eq( $ui_context, 'edit' ), eq( $ui_context, 'browse' ) )} 
    160     <span class="disabled">{'Advanced'|i18n( 'design/admin/pagelayout' )}</span> 
    161     {section-else} 
    162         <a href={'/content/advancedsearch'|ezurl} title="{'Advanced search.'|i18n( 'design/admin/pagelayout' )}">{'Advanced'|i18n( 'design/admin/pagelayout' )}</a> 
    163     {/section} 
    164     </p> 
    165 </form> 
    166 </div> 
    167  
    168 <div class="break"></div> 
    169  
    170 </div> 
    171 </div> 
    172  
    173 <hr class="hide" /> 
    174  
    175 <div id="topmenu"> 
    176 <div id="topmenu-design"> 
    177  
    178 <h3 class="hide">Top menu</h3> 
    179 <ul> 
    180 {section var=Menu loop=topmenu($ui_context)} 
    181  
    182     {include uri='design:page_topmenuitem.tpl' menu_item=$Menu navigationpart_identifier=$navigation_part.identifier} 
    183  
    184 {/section} 
    185  
    186 </ul> 
    187 <div class="break"></div> 
    188 </div> 
    189 </div> 
    190  
    191 {* /cache-block *} 
    192  
    193 <hr class="hide" /> 
    194  
    195  
    196 <div id="path"> 
    197 <div id="path-design"> 
    198  
    199 {include uri='design:page_toppath.tpl'} 
    200  
    201 </div> 
    202 </div> 
    203  
    204  
    205 <hr class="hide" /> 
    206  
    207 <div id="columns"> 
    208  
    209 {section show=and( eq( $ui_context, 'edit' ), eq( $ui_component, 'content' ) )} 
    210 {section-else} 
    211 <div id="leftmenu"> 
    212 <div id="leftmenu-design"> 
    213  
    214 {switch match=$navigation_part.identifier} 
    215         {case match='ezcontentnavigationpart'} 
    216             {include uri='design:parts/content/menu.tpl'} 
    217         {/case} 
    218         {case match='ezmedianavigationpart'} 
     98        <div id="topmenu"> 
     99                <div id="topmenu-design"> 
     100                        <div id="search"> 
     101                            {include uri='design:block/search.tpl'} 
     102                        </div> 
     103                        <h3 class="hide">Top menu</h3> 
     104                        <ul> 
     105                        {section var=Menu loop=topmenu($ui_context)} 
     106                            {include uri='design:page_topmenuitem.tpl' menu_item=$Menu navigationpart_identifier=$navigation_part.identifier} 
     107                        {/section} 
     108                        </ul> 
     109                        <div class="break"></div> 
     110                </div> 
     111        </div> 
     112 
     113        <hr class="hide" /> 
     114 
     115        <div id="path"> 
     116                <div id="path-design"> 
     117                        {include uri='design:page_toppath.tpl'} 
     118                </div> 
     119        </div> 
     120 
     121        <hr class="hide" /> 
     122 
     123        <div id="columns"> 
     124 
     125        {section show=and( eq( $ui_context, 'edit' ), eq( $ui_component, 'content' ) )} 
     126        {section-else} 
     127                <div id="leftmenu"> 
     128                        <div id="leftmenu-design"> 
     129 
     130                {switch match=$navigation_part.identifier} 
     131                        {case match='ezcontentnavigationpart'} 
     132                        {include uri='design:parts/content/menu.tpl'} 
     133                                {/case} 
     134                        {case match='ezmedianavigationpart'} 
    219135            {include uri='design:parts/media/menu.tpl'} 
    220136        {/case}