Dotclear


Ignore:
Timestamp:
11/17/13 20:25:53 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2567:6c11245cbf04, 2568:61c67a7d17fa
Message:

Add some people in CREDITS, remove trailing spaces and tabs.

Location:
plugins/pages
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • plugins/pages/_admin.php

    r2246 r2566  
    7777 
    7878require dirname(__FILE__).'/_widgets.php'; 
    79 ?> 
  • plugins/pages/_install.php

    r2307 r2566  
    5252$core->setVersion('pages',$version); 
    5353return true; 
    54 ?> 
  • plugins/pages/_public.php

    r1674 r2566  
    3030               $_ctx =& $GLOBALS['_ctx']; 
    3131               $core =& $GLOBALS['core']; 
    32                 
     32 
    3333               $core->blog->withoutPassword(false); 
    34                 
     34 
    3535               $params = new ArrayObject(array( 
    3636                    'post_type' => 'page', 
    3737                    'post_url' => $args)); 
    38                 
     38 
    3939               $core->callBehavior('publicPagesBeforeGetPosts',$params,$args); 
    40                 
     40 
    4141               $_ctx->posts = $core->blog->getPosts($params); 
    42                 
     42 
    4343               $_ctx->comment_preview = new ArrayObject(); 
    4444               $_ctx->comment_preview['content'] = ''; 
     
    4949               $_ctx->comment_preview['preview'] = false; 
    5050               $_ctx->comment_preview['remember'] = false; 
    51                 
     51 
    5252               $core->blog->withoutPassword(true); 
    53                 
    54                 
     53 
     54 
    5555               if ($_ctx->posts->isEmpty()) 
    5656               { 
     
    6262                    $post_id = $_ctx->posts->post_id; 
    6363                    $post_password = $_ctx->posts->post_password; 
    64                      
     64 
    6565                    # Password protected entry 
    6666                    if ($post_password != '' && !$_ctx->preview) 
     
    7272                              $pwd_cookie = array(); 
    7373                         } 
    74                           
     74 
    7575                         # Check for match 
    7676                         if ((!empty($_POST['password']) && $_POST['password'] == $post_password) 
     
    8686                         } 
    8787                    } 
    88                      
     88 
    8989                    $post_comment = 
    9090                         isset($_POST['c_name']) && isset($_POST['c_mail']) && 
    9191                         isset($_POST['c_site']) && isset($_POST['c_content']) && 
    9292                         $_ctx->posts->commentsActive(); 
    93                      
     93 
    9494                    # Posting a comment 
    9595                    if ($post_comment) 
     
    103103                              exit; 
    104104                         } 
    105                           
     105 
    106106                         $name = $_POST['c_name']; 
    107107                         $mail = $_POST['c_mail']; 
     
    109109                         $content = $_POST['c_content']; 
    110110                         $preview = !empty($_POST['preview']); 
    111                           
     111 
    112112                         if ($content != '') 
    113113                         { 
     
    120120                              $content = $core->HTMLfilter($content); 
    121121                         } 
    122                           
     122 
    123123                         $_ctx->comment_preview['content'] = $content; 
    124124                         $_ctx->comment_preview['rawcontent'] = $_POST['c_content']; 
     
    126126                         $_ctx->comment_preview['mail'] = $mail; 
    127127                         $_ctx->comment_preview['site'] = $site; 
    128                           
     128 
    129129                         if ($preview) 
    130130                         { 
    131131                              # --BEHAVIOR-- publicBeforeCommentPreview 
    132132                              $core->callBehavior('publicBeforeCommentPreview',$_ctx->comment_preview); 
    133                                
     133 
    134134                              $_ctx->comment_preview['preview'] = true; 
    135135                         } 
     
    145145                              $cur->comment_status = $core->blog->settings->system->comments_pub ? 1 : -1; 
    146146                              $cur->comment_ip = http::realIP(); 
    147                                
     147 
    148148                              $redir = $_ctx->posts->getURL(); 
    149149                              $redir .= $core->blog->settings->system->url_scan == 'query_string' ? '&' : '?'; 
    150                                
     150 
    151151                              try 
    152152                              { 
     
    154154                                        throw new Exception(__('You must provide a valid email address.')); 
    155155                                   } 
    156                                     
     156 
    157157                                   # --BEHAVIOR-- publicBeforeCommentCreate 
    158158                                   $core->callBehavior('publicBeforeCommentCreate',$cur); 
    159                                    if ($cur->post_id) {                          
     159                                   if ($cur->post_id) { 
    160160                                        $comment_id = $core->blog->addComment($cur); 
    161                                     
     161 
    162162                                        # --BEHAVIOR-- publicAfterCommentCreate 
    163163                                        $core->callBehavior('publicAfterCommentCreate',$cur,$comment_id); 
    164164                                   } 
    165                                     
     165 
    166166                                   if ($cur->comment_status == 1) { 
    167167                                        $redir_arg = 'pub=1'; 
     
    169169                                        $redir_arg = 'pub=0'; 
    170170                                   } 
    171                                     
     171 
    172172                                   header('Location: '.$redir.$redir_arg); 
    173173                              } 
     
    179179                         } 
    180180                    } 
    181                      
     181 
    182182                    # The entry 
    183183                    if ($_ctx->posts->trackbacksActive()) { 
     
    189189          } 
    190190     } 
    191       
     191 
    192192     public static function pagespreview($args) 
    193193     { 
    194194          $core = $GLOBALS['core']; 
    195195          $_ctx = $GLOBALS['_ctx']; 
    196            
     196 
    197197          if (!preg_match('#^(.+?)/([0-9a-z]{40})/(.+?)$#',$args,$m)) { 
    198198               # The specified Preview URL is malformed. 
     
    223223     { 
    224224          global $core, $_ctx; 
    225            
     225 
    226226          if (($w->homeonly == 1 && $core->url->type != 'default') || 
    227227               ($w->homeonly == 2 && $core->url->type == 'default')) { 
    228228               return; 
    229229          } 
    230            
     230 
    231231          $params['post_type'] = 'page'; 
    232232          $params['limit'] = abs((integer) $w->limit); 
    233233          $params['no_content'] = true; 
    234234          $params['post_selected'] = false; 
    235            
     235 
    236236          $sort = $w->sortby; 
    237237          if (!in_array($sort,array('post_title','post_position','post_dt'))) { 
    238238               $sort = 'post_title'; 
    239239          } 
    240            
     240 
    241241          $order = $w->orderby; 
    242242          if ($order != 'asc') { 
     
    244244          } 
    245245          $params['order'] = $sort.' '.$order; 
    246            
     246 
    247247          $rs = $core->blog->getPosts($params); 
    248            
     248 
    249249          if ($rs->isEmpty()) { 
    250250               return; 
    251251          } 
    252            
     252 
    253253          $res = 
    254254          ($w->content_only ? '' : '<div class="pages'.($w->class ? ' '.html::escapeHTML($w->class) : '').'">'). 
    255255          ($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''). 
    256256          '<ul>'; 
    257            
     257 
    258258          while ($rs->fetch()) { 
    259259               $class = ''; 
     
    264264               html::escapeHTML($rs->post_title).'</a></li>'; 
    265265          } 
    266            
     266 
    267267          $res .= '</ul>'.($w->content_only ? '' : '</div>'); 
    268            
     268 
    269269          return $res; 
    270270     } 
    271271} 
    272 ?> 
  • plugins/pages/_users_actions.js

    r1802 r2566  
    11jQuery.fn.updatePagesPermissionsForm = function() { 
    22     return this.each(function() { 
    3            
     3 
    44          var perms = {}; 
    55          var re = /^perm\[(.+?)\]\[(.+?)\]$/; 
    66          var e,prop; 
    7            
     7 
    88          // Building a nice object of form elements 
    99          for (var i=0; i<this.elements.length; i++) { 
    1010               e = this.elements[i]; 
    11                 
     11 
    1212               if (e.name == undefined) { 
    1313                    continue; 
     
    2222               } 
    2323               perms[prop[1]][prop[2]] = e; 
    24                 
     24 
    2525               // select related permissions for admin 
    2626               if (prop[2] == 'admin') { 
     
    3333               } 
    3434          } 
    35            
     35 
    3636          function admin(E,perms,re) { 
    3737                         P = E.name.match(re); 
    38                           
     38 
    3939                         perms[P[1]]['pages'].checked = E.checked; 
    4040                         perms[P[1]]['pages'].disabled = E.checked; 
  • plugins/pages/_widgets.php

    r2412 r2566  
    4141          $w->pages->setting('class',__('CSS class:'),''); 
    4242     } 
    43       
     43 
    4444     public static function initDefaultWidgets($w,$d) 
    4545     { 
     
    4747     } 
    4848} 
    49 ?> 
  • plugins/pages/class.actionpage.php

    r2256 r2566  
    3030          ); 
    3131          $this->endPage(); 
    32      }     
     32     } 
    3333     public function beginPage($breadcrumb='',$head='') { 
    3434          echo '<html><head><title>'.__('Pages').'</title>'. 
     
    4040 
    4141     } 
    42       
     42 
    4343     public function endPage() { 
    4444          echo '</body></html>'; 
     
    5858          return parent::process(); 
    5959     } 
    60       
     60 
    6161     public static function doReorderPages($core, dcPostsActionsPage $ap, $post) { 
    6262          foreach($post['order'] as $post_id => $value) { 
    6363               if (!$core->auth->check('publish,contentadmin',$core->blog->id)) 
    6464                    throw new Exception(__('You are not allowed to change this entry status')); 
    65                 
     65 
    6666               $strReq = "WHERE blog_id = '".$core->con->escape($core->blog->id)."' ". 
    6767                         "AND post_id ".$core->con->in($post_id); 
    68                 
     68 
    6969               #If user can only publish, we need to check the post's owner 
    7070               if (!$core->auth->check('contentadmin',$core->blog->id)) 
    7171                    $strReq .= "AND user_id = '".$core->con->escape($core->auth->userID())."' "; 
    72                 
     72 
    7373               $cur = $core->con->openCursor($core->prefix.'post'); 
    74                 
     74 
    7575               $cur->post_position = (integer) $value-1; 
    7676               $cur->post_upddt = date('Y-m-d H:i:s'); 
    77                 
     77 
    7878               $cur->update($strReq); 
    7979               $core->blog->triggerBlog(); 
    80                 
     80 
    8181          } 
    82            
     82 
    8383          dcPage::addSuccessNotice(__('Selected pages have been successfully reordered.')); 
    8484          $ap->redirect(false); 
    85      }     
     85     } 
    8686} 
    8787 
    88 class DefaultPagesActions  
     88class DefaultPagesActions 
    8989{ 
    9090     public static function adminPagesActionsPage($core, $ap) { 
  • plugins/pages/class.listpage.php

    r2232 r2566  
    2929                         $entries[(integer)$v]=true; 
    3030                    } 
    31                }               
     31               } 
    3232               $html_block = 
    3333               '<div class="table-outer">'. 
     
    4040               '<th scope="col">'.__('Status').'</th>'. 
    4141               '</tr></thead><tbody id="pageslist">%s</tbody></table></div>'; 
    42                 
     42 
    4343               if ($enclose_block) { 
    4444                    $html_block = sprintf($enclose_block,$html_block); 
    4545               } 
    46                 
     46 
    4747               echo $pager->getLinks(); 
    48                 
     48 
    4949               $blocks = explode('%s',$html_block); 
    50                 
     50 
    5151               echo $blocks[0]; 
    52                 
     52 
    5353               $count = 0; 
    5454               while ($this->rs->fetch()) 
     
    5757                    $count ++; 
    5858               } 
    59                 
     59 
    6060               echo $blocks[1]; 
    61                 
     61 
    6262               echo $pager->getLinks(); 
    6363          } 
    6464     } 
    65       
     65 
    6666     private function postLine($count,$checked) 
    6767     { 
     
    8181                    break; 
    8282          } 
    83            
     83 
    8484          $protected = ''; 
    8585          if ($this->rs->post_password) { 
    8686               $protected = sprintf($img,__('Protected'),'locker.png'); 
    8787          } 
    88            
     88 
    8989          $selected = ''; 
    9090          if ($this->rs->post_selected) { 
    9191               $selected = sprintf($img,__('Hidden'),'hidden.png'); 
    9292          } 
    93            
     93 
    9494          $attach = ''; 
    9595          $nb_media = $this->rs->countMedia(); 
     
    9898               $attach = sprintf($img,sprintf($attach_str,$nb_media),'attach.png'); 
    9999          } 
    100            
     100 
    101101          $res = '<tr class="line'.($this->rs->post_status != 1 ? ' offline' : '').'"'. 
    102102          ' id="p'.$this->rs->post_id.'">'; 
    103            
     103 
    104104          $res .= 
    105105          '<td class="nowrap handle minimal">'.form::field(array('order['.$this->rs->post_id.']'),2,3,$count+1,'position','',false,'title="'.sprintf(__('position of %s'),html::escapeHTML($this->rs->post_title)).'"').'</td>'. 
     
    108108          '<td class="maximal" scope="row"><a href="'.$this->core->getPostAdminURL($this->rs->post_type,$this->rs->post_id).'">'. 
    109109          html::escapeHTML($this->rs->post_title).'</a></td>'. 
    110           '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->post_dt).'</td>'.         
     110          '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->post_dt).'</td>'. 
    111111          '<td class="nowrap">'.$this->rs->user_id.'</td>'. 
    112112          '<td class="nowrap count">'.$this->rs->nb_comment.'</td>'. 
     
    114114          '<td class="nowrap status">'.$img_status.' '.$selected.' '.$protected.' '.$attach.'</td>'. 
    115115          '</tr>'; 
    116            
     116 
    117117          return $res; 
    118118     } 
  • plugins/pages/default-templates/page.html

    r1674 r2566  
    55  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
    66  <meta name="ROBOTS" content="{{tpl:BlogMetaRobots}}" /> 
    7    
     7 
    88  <title>{{tpl:EntryTitle encode_html="1"}} - {{tpl:BlogName encode_html="1"}}</title> 
    99  <meta name="description" lang="{{tpl:EntryLang}}" content="{{tpl:EntryContent full="1" encode_html="1" remove_html="1" cut_string="180"}}" /> 
     
    1111  <meta name="author" content="{{tpl:EntryAuthorCommonName encode_html="1"}}" /> 
    1212  <meta name="date" scheme="W3CDTF" content="{{tpl:EntryDate iso8601="1"}}" /> 
    13    
     13 
    1414  <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" /> 
    1515  <meta name="dc.title" content="{{tpl:EntryTitle encode_html="1"}}" /> 
     
    2222  <meta name="dc.type" content="text" /> 
    2323  <meta name="dc.format" content="text/html" /> 
    24    
     24 
    2525  <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" /> 
    2626  <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" /> 
    2727  <tpl:EntryIf pings_active="1"><link rel="pingback" href="{{tpl:BlogXMLRPCURL}}" /></tpl:EntryIf> 
    28    
     28 
    2929  <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" /> 
    30    
     30 
    3131  {{tpl:include src="_head.html"}} 
    32    
     32 
    3333  <script type="text/javascript" src="{{tpl:BlogThemeURL}}/../default/js/post.js"></script> 
    3434  <script type="text/javascript"> 
     
    4949<div id="main"> 
    5050  <div id="content"> 
    51    
     51 
    5252  <div id="p{{tpl:EntryID}}" class="post"> 
    5353    <h2 class="post-title">{{tpl:EntryTitle encode_html="1"}}</h2> 
    54      
     54 
    5555    <!-- # --BEHAVIOR-- publicEntryBeforeContent --> 
    5656    {{tpl:SysBehavior behavior="publicEntryBeforeContent"}} 
    57      
     57 
    5858    <tpl:EntryIf extended="1"> 
    5959      <div class="post-excerpt">{{tpl:EntryExcerpt}}</div> 
    6060    </tpl:EntryIf> 
    6161    <div class="post-content">{{tpl:EntryContent}}</div> 
    62      
     62 
    6363    <p class="page-info">{{tpl:lang Published on}} {{tpl:EntryDate}} 
    6464    {{tpl:lang by}} {{tpl:EntryAuthorLink}}</p> 
    65      
     65 
    6666    <!-- # --BEHAVIOR-- publicEntryAfterContent --> 
    6767    {{tpl:SysBehavior behavior="publicEntryAfterContent"}} 
    6868  </div> 
    69    
     69 
    7070  <!-- # Attachments --> 
    7171  <tpl:Attachments> 
     
    7777      <li class="{{tpl:AttachmentType}}"> 
    7878        <tpl:AttachmentIf is_mp3="1"> 
    79           {{tpl:include src="_mp3_player.html"/}} -  
     79          {{tpl:include src="_mp3_player.html"/}} - 
    8080        </tpl:AttachmentIf> 
    8181        <tpl:AttachmentIf is_flv="1"> 
     
    9292    </tpl:AttachmentsFooter> 
    9393  </tpl:Attachments> 
    94   
     94 
    9595  <!-- # Comments --> 
    9696  <tpl:EntryIf show_comments="1"> 
     
    105105      {{tpl:lang On}} {{tpl:CommentDate}}, {{tpl:CommentTime}} 
    106106      {{tpl:lang by}} {{tpl:CommentAuthorLink}}</dt> 
    107        
     107 
    108108      <dd class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}"> 
    109109      <!-- # --BEHAVIOR-- publicCommentBeforeContent --> 
    110110      {{tpl:SysBehavior behavior="publicCommentBeforeContent"}} 
    111        
     111 
    112112      {{tpl:CommentContent}} 
    113        
     113 
    114114      <!-- # --BEHAVIOR-- publicCommentAfterContent --> 
    115115      {{tpl:SysBehavior behavior="publicCommentAfterContent"}} 
     
    121121    </tpl:Comments> 
    122122  </tpl:EntryIf> 
    123    
    124   <tpl:EntryIf comments_active="1">     
     123 
     124  <tpl:EntryIf comments_active="1"> 
    125125    <tpl:SysIfFormError> 
    126126      <p class="error" id="pr">{{tpl:SysFormError}}</p> 
    127127    </tpl:SysIfFormError> 
    128      
     128 
    129129    <tpl:SysIfCommentPublished> 
    130130      <p class="message" id="pr">{{tpl:lang Your comment has been published.}}</p> 
    131131    </tpl:SysIfCommentPublished> 
    132      
     132 
    133133    <tpl:SysIfCommentPending> 
    134134      <p class="message" id="pr">{{tpl:lang Your comment has been submitted and 
    135135      will be reviewed for publication.}}</p> 
    136136    </tpl:SysIfCommentPending> 
    137      
     137 
    138138    <!-- # Comment form --> 
    139139    <form action="{{tpl:EntryURL}}#pr" method="post" id="comment-form"> 
     
    147147        </div> 
    148148      </tpl:IfCommentPreview> 
    149        
     149 
    150150      <h3>{{tpl:lang Add a comment}}</h3> 
    151151      <fieldset> 
    152152        <!-- # --BEHAVIOR-- publicCommentFormBeforeContent --> 
    153153        {{tpl:SysBehavior behavior="publicCommentFormBeforeContent"}} 
    154          
     154 
    155155        <p class="field"><label for="c_name">{{tpl:lang Name or nickname}}&nbsp;:</label> 
    156156        <input name="c_name" id="c_name" type="text" size="30" maxlength="255" 
    157157        value="{{tpl:CommentPreviewName encode_html="1"}}" /> 
    158158        </p> 
    159          
     159 
    160160        <p class="field"><label for="c_mail">{{tpl:lang Email address}}&nbsp;:</label> 
    161161        <input name="c_mail" id="c_mail" type="text" size="30" maxlength="255" 
    162162        value="{{tpl:CommentPreviewEmail encode_html="1"}}" /> 
    163163        </p> 
    164          
     164 
    165165        <p class="field"><label for="c_site">{{tpl:lang Website}} ({{tpl:lang optional}})&nbsp;:</label> 
    166166        <input name="c_site" id="c_site" type="text" size="30" maxlength="255" 
    167167        value="{{tpl:CommentPreviewSite encode_html="1"}}" /> 
    168168        </p> 
    169          
     169 
    170170        <p style="display:none"><input name="f_mail" type="text" size="30" 
    171171        maxlength="255" value="" /></p> 
    172          
     172 
    173173        <p class="field"><label for="c_content">{{tpl:lang Comment}}&nbsp;:</label> 
    174174        <textarea name="c_content" id="c_content" cols="35" 
    175175        rows="7">{{tpl:CommentPreviewContent raw="1" encode_html="1"}}</textarea> 
    176176        </p> 
    177          
     177 
    178178        <p class="form-help">{{tpl:CommentHelp}}</p> 
    179          
     179 
    180180        <!-- # --BEHAVIOR-- publicCommentFormAfterContent --> 
    181181        {{tpl:SysBehavior behavior="publicCommentFormAfterContent"}} 
    182182      </fieldset> 
    183        
     183 
    184184      <fieldset> 
    185185        <p class="buttons"><input type="submit" class="preview" name="preview" value="{{tpl:lang preview}}" /> 
     
    188188    </form> 
    189189  </tpl:EntryIf> 
    190    
     190 
    191191  <!-- # Trackbacks --> 
    192192  <tpl:EntryIf show_pings="1"> 
     
    201201        {{tpl:lang On}} {{tpl:PingDate}}, {{tpl:PingTime}} 
    202202        {{tpl:lang by}} {{tpl:PingBlogName encode_html="1"}}</dt> 
    203          
     203 
    204204        <dd class="{{tpl:PingIfOdd}} {{tpl:PingIfFirst}}"> 
    205205        <!-- # --BEHAVIOR-- publicPingBeforeContent --> 
    206206        {{tpl:SysBehavior behavior="publicPingBeforeContent"}} 
    207          
     207 
    208208        <p><a href="{{tpl:PingAuthorURL}}" 
    209209        {{tpl:PingNoFollow}}>{{tpl:PingTitle encode_html="1"}}</a></p> 
    210210        {{tpl:PingContent}} 
    211          
     211 
    212212        <!-- # --BEHAVIOR-- publicPingAfterContent --> 
    213213        {{tpl:SysBehavior behavior="publicPingAfterContent"}} 
     
    219219    </div> 
    220220  </tpl:EntryIf> 
    221    
     221 
    222222  <tpl:EntryIf pings_active="1"> 
    223223    <p id="ping-url">{{tpl:lang Trackback URL}}&nbsp;: {{tpl:EntryPingLink}}</p> 
    224224  </tpl:EntryIf> 
    225    
     225 
    226226  <tpl:EntryIf operator="or" comments_active="1" pings_active="1"> 
    227227  <p id="comments-feed"><a class="feed" href="{{tpl:BlogFeedURL type="atom"}}/comments/{{tpl:EntryID}}" 
     
    235235    {{tpl:Widgets type="nav"}} 
    236236  </div> <!-- End #blognav --> 
    237    
     237 
    238238  <div id="blogextra"> 
    239239    {{tpl:Widgets type="extra"}} 
  • plugins/pages/list.js

    r2531 r2566  
    33     var postId = $(line).attr('id').substr(1); 
    44     var tr = document.getElementById('pe'+postId); 
    5       
     5 
    66     if ( !tr && ( action == 'toggle' || action == 'open' ) ) { 
    77          tr = document.createElement('tr'); 
     
    1111          td.className = 'expand'; 
    1212          tr.appendChild(td); 
    13            
     13 
    1414          // Get post content 
    1515          $.get('services.php',{f:'getPostById', id: postId, post_type: ''},function(data) { 
    1616               var rsp = $(data).children('rsp')[0]; 
    17                 
     17 
    1818               if (rsp.attributes[0].value == 'ok') { 
    1919                    var post = $(rsp).find('post_display_content').text(); 
    2020                    var post_excerpt = $(rsp).find('post_display_excerpt').text(); 
    2121                    var res = ''; 
    22                      
     22 
    2323                    if (post) { 
    2424                         if (post_excerpt) { 
     
    3232               } 
    3333          }); 
    34            
     34 
    3535          $(line).addClass('expand'); 
    3636          line.parentNode.insertBefore(tr,line.nextSibling); 
     
    6262     }); 
    6363     $('#pageslist td input[type=checkbox]').enableShiftClick(); 
    64       
     64 
    6565     $("#pageslist tr.line td:not(.expander)").mousedown(function(){ 
    6666          $('#pageslist tr.line').each(function() { 
     
    7070          $('#pageslist tr:not(.line)').remove(); 
    7171     }); 
    72       
     72 
    7373     $("#pageslist").sortable({ 
    7474          cursor:'move', 
     
    8686     $("#pageslist tr td input.position").hide(); 
    8787     $("#pageslist tr td.handle").addClass('handler'); 
    88       
     88 
    8989     $("form input[type=submit]").click(function() { 
    9090          $("input[type=submit]", $(this).parents("form")).removeAttr("clicked"); 
    9191          $(this).attr("clicked", "true"); 
    9292     }) 
    93       
     93 
    9494     $('#form-entries').submit(function() { 
    9595          var action = $(this).find('select[name="action"]').val(); 
  • plugins/pages/list.php

    r2442 r2566  
    8989     $post_list->display($page,$nb_per_page, 
    9090     '<form action="plugin.php" method="post" id="form-entries">'. 
    91       
     91 
    9292     '%s'. 
    93       
     93 
    9494     '<div class="two-cols">'. 
    9595     '<p class="col checkboxes-helpers"></p>'. 
    96       
     96 
    9797     '<p class="col right"><label for="action" class="classic">'.__('Selected pages action:').'</label> '. 
    9898     form::combo('action',$pages_actions_page->getCombo()). 
Note: See TracChangeset for help on using the changeset viewer.

Sites map