Dotclear


Ignore:
Timestamp:
09/22/13 02:31:51 (12 years ago)
Author:
Lepeltier kévin <kevin@…>
Branch:
Ticket #1548
Message:

Ticket #1548

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/posts.php

    r1912 r2128  
    235235/* DISPLAY 
    236236-------------------------------------------------------- */ 
    237 $starting_script = dcPage::jsLoad('js/_posts_list.js'); 
    238 if (!$show_filters) { 
    239      $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 
    240 } 
    241  
    242 dcPage::open(__('Entries'),$starting_script, 
     237 
     238dcPage::open(__('Entries'), 
     239     dcPage::jsLoad('js/_posts_list.js'). 
     240     dcPage::jsLoad('js/filter-controls.js'). 
     241     '<script type="text/javascript">'."\n". 
     242     "//<![CDATA["."\n". 
     243     dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 
     244     dcPage::jsVar('dotclear.msg.filter_posts_list',__('Filter posts list'))."\n". 
     245     dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 
     246     "//]]>". 
     247     "</script>", 
    243248     dcPage::breadcrumb( 
    244249          array( 
     
    255260{ 
    256261     echo 
    257      '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'; 
    258       
    259      if (!$show_filters) { 
    260           echo '<p><a id="filter-control" class="form-control" href="#">'. 
    261           __('Filter posts list').'</a></p>'; 
    262      } 
    263       
    264      echo 
     262     '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'. 
    265263     '<form action="posts.php" method="get" id="filters-form">'. 
    266      '<h3 class="hidden">'.__('Filter posts list').'</h3>'. 
    267  
     264     '<h3 class="out-of-screen-if-js">'.__('Filters and display options').'</h3>'. 
     265      
    268266     '<div class="table">'. 
    269267     '<div class="cell">'. 
     
    326324     $core->formNonce(). 
    327325     '</div>'. 
    328      '</form>' 
     326     '</form>', 
     327     $show_filters 
    329328     ); 
    330329} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map