Dotclear


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/posts.php

    r2136 r2072  
    212212/* DISPLAY 
    213213-------------------------------------------------------- */ 
    214  
    215 $form_filter_title = __('Filter users list and display options'); 
    216 $starting_script  = dcPage::jsLoad('js/_posts_list.js'); 
    217 $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 
    218 $starting_script .= 
    219      '<script type="text/javascript">'."\n". 
    220      "//<![CDATA["."\n". 
    221      dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 
    222      dcPage::jsVar('dotclear.msg.filter_posts_list',$form_filter_title)."\n". 
    223      dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 
    224      "//]]>". 
    225      "</script>"; 
     214$starting_script = dcPage::jsLoad('js/_posts_list.js'); 
     215if (!$show_filters) { 
     216     $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 
     217} 
    226218 
    227219dcPage::open(__('Entries'),$starting_script, 
     
    240232{ 
    241233     echo 
    242      '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'. 
     234     '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'; 
     235      
     236     if (!$show_filters) { 
     237          echo '<p><a id="filter-control" class="form-control" href="#">'. 
     238          __('Filter posts list').'</a></p>'; 
     239     } 
     240      
     241     echo 
    243242     '<form action="posts.php" method="get" id="filters-form">'. 
    244      '<h3 class="out-of-screen-if-js">'.$form_filter_title.'</h3>'. 
     243     '<h3 class="hidden">'.__('Filter posts list').'</h3>'. 
    245244 
    246245     '<div class="table">'. 
     
    304303     $core->formNonce(). 
    305304     '</div>'. 
    306      '</form>', 
    307      $show_filters 
     305     '</form>' 
    308306     ); 
    309307} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map