Dotclear

source: plugins/pages/page.php @ 458:5a1dcd30fe14

Revision 458:5a1dcd30fe14, 18.9 KB checked in by Franck <carnet.franck.paul@…>, 14 years ago (diff)

Accessibilité - ordre de tabulation - Step 2 :

  • Remise dans l'ordre des éléments contenu / sidebar sur l'édition des billets et des pages
  • Ajout des styles idoines pour retrouver un affichage correct
Line 
1<?php
2# -- BEGIN LICENSE BLOCK ---------------------------------------
3#
4# This file is part of Dotclear 2.
5#
6# Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear
7# Licensed under the GPL version 2.0 license.
8# See LICENSE file or
9# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10#
11# -- END LICENSE BLOCK -----------------------------------------
12if (!defined('DC_CONTEXT_ADMIN')) { return; }
13dcPage::check('pages,contentadmin');
14
15$redir_url = $p_url.'&act=page';
16
17$post_id = '';
18$post_dt = '';
19$post_format = $core->auth->getOption('post_format');
20$post_password = '';
21$post_url = '';
22$post_lang = $core->auth->getInfo('user_lang');
23$post_title = '';
24$post_excerpt = '';
25$post_excerpt_xhtml = '';
26$post_content = '';
27$post_content_xhtml = '';
28$post_notes = '';
29$post_status = $core->auth->getInfo('user_post_status');
30$post_position = 0;
31$post_open_comment = false;
32$post_open_tb = false;
33
34$post_media = array();
35
36$page_title = __('New page');
37
38$can_view_page = true;
39$can_edit_page = $core->auth->check('pages,usage',$core->blog->id);
40$can_publish = $core->auth->check('pages,publish,contentadmin',$core->blog->id);
41$can_delete = false;
42
43$post_headlink = '<link rel="%s" title="%s" href="'.html::escapeURL($redir_url).'&amp;id=%s" />';
44$post_link = '<a href="'.html::escapeURL($redir_url).'&amp;id=%s" title="%s">%s</a>';
45
46$next_link = $prev_link = $next_headlink = $prev_headlink = null;
47
48# If user can't publish
49if (!$can_publish) {
50     $post_status = -2;
51}
52
53# Status combo
54foreach ($core->blog->getAllPostStatus() as $k => $v) {
55     $status_combo[$v] = (string) $k;
56}
57
58# Formaters combo
59foreach ($core->getFormaters() as $v) {
60     $formaters_combo[$v] = $v;
61}
62
63# Languages combo
64$rs = $core->blog->getLangs(array('order'=>'asc'));
65$all_langs = l10n::getISOcodes(0,1);
66$lang_combo = array('' => '', __('Most used') => array(), __('Available') => l10n::getISOcodes(1,1));
67while ($rs->fetch()) {
68     if (isset($all_langs[$rs->post_lang])) {
69          $lang_combo[__('Most used')][$all_langs[$rs->post_lang]] = $rs->post_lang;
70          unset($lang_combo[__('Available')][$all_langs[$rs->post_lang]]);
71     } else {
72          $lang_combo[__('Most used')][$rs->post_lang] = $rs->post_lang;
73     }
74}
75unset($all_langs);
76unset($rs);
77
78
79# Get page informations
80if (!empty($_REQUEST['id']))
81{
82     $params['post_type'] = 'page';
83     $params['post_id'] = $_REQUEST['id'];
84     
85     $post = $core->blog->getPosts($params);
86     
87     if ($post->isEmpty())
88     {
89          $core->error->add(__('This page does not exist.'));
90          $can_view_page = false;
91     }
92     else
93     {
94          $post_id = $post->post_id;
95          $post_dt = date('Y-m-d H:i',strtotime($post->post_dt));
96          $post_format = $post->post_format;
97          $post_password = $post->post_password;
98          $post_url = $post->post_url;
99          $post_lang = $post->post_lang;
100          $post_title = $post->post_title;
101          $post_excerpt = $post->post_excerpt;
102          $post_excerpt_xhtml = $post->post_excerpt_xhtml;
103          $post_content = $post->post_content;
104          $post_content_xhtml = $post->post_content_xhtml;
105          $post_notes = $post->post_notes;
106          $post_status = $post->post_status;
107          $post_position = (integer) $post->post_position;
108          $post_open_comment = (boolean) $post->post_open_comment;
109          $post_open_tb = (boolean) $post->post_open_tb;
110         
111          $page_title = __('Edit page');
112         
113          $can_edit_page = $post->isEditable();
114          $can_delete= $post->isDeletable();
115         
116          $next_rs = $core->blog->getNextPost($post,1);
117          $prev_rs = $core->blog->getNextPost($post,-1);
118         
119          if ($next_rs !== null) {
120               $next_link = sprintf($post_link,$next_rs->post_id,
121                    html::escapeHTML($next_rs->post_title),__('next page').'&nbsp;&#187;');
122               $next_headlink = sprintf($post_headlink,'next',
123                    html::escapeHTML($next_rs->post_title),$next_rs->post_id);
124          }
125         
126          if ($prev_rs !== null) {
127               $prev_link = sprintf($post_link,$prev_rs->post_id,
128                    html::escapeHTML($prev_rs->post_title),'&#171;&nbsp;'.__('previous page'));
129               $prev_headlink = sprintf($post_headlink,'previous',
130                    html::escapeHTML($prev_rs->post_title),$prev_rs->post_id);
131          }
132         
133          try {
134               $core->media = new dcMedia($core);
135               $post_media = $core->media->getPostMedia($post_id);
136          } catch (Exception $e) {}
137     }
138}
139
140# Format content
141if (!empty($_POST) && $can_edit_page)
142{
143     $post_format = $_POST['post_format'];
144     $post_excerpt = $_POST['post_excerpt'];
145     $post_content = $_POST['post_content'];
146     
147     $post_title = $_POST['post_title'];
148     
149     if (isset($_POST['post_status'])) {
150          $post_status = (integer) $_POST['post_status'];
151     }
152     
153     if (empty($_POST['post_dt'])) {
154          $post_dt = '';
155     } else {
156          $post_dt = strtotime($_POST['post_dt']);
157          $post_dt = date('Y-m-d H:i',$post_dt);
158     }
159     
160     $post_open_comment = !empty($_POST['post_open_comment']);
161     $post_open_tb = !empty($_POST['post_open_tb']);
162     $post_lang = $_POST['post_lang'];
163     $post_password = !empty($_POST['post_password']) ? $_POST['post_password'] : null;
164     $post_position = (integer) $_POST['post_position'];
165     
166     $post_notes = $_POST['post_notes'];
167
168     if (isset($_POST['post_url'])) {
169          $post_url = $_POST['post_url'];
170     }
171     
172     $core->blog->setPostContent(
173          $post_id,$post_format,$post_lang,
174          $post_excerpt,$post_excerpt_xhtml,$post_content,$post_content_xhtml
175     );
176}
177
178# Create or update post
179if (!empty($_POST) && !empty($_POST['save']) && $can_edit_page)
180{
181     $cur = $core->con->openCursor($core->prefix.'post');
182     
183     # Magic tweak :)
184     $core->blog->settings->system->post_url_format = $page_url_format;
185     
186     $cur->post_type = 'page';
187     $cur->post_title = $post_title;
188     $cur->post_dt = $post_dt ? date('Y-m-d H:i:00',strtotime($post_dt)) : '';
189     $cur->post_format = $post_format;
190     $cur->post_password = $post_password;
191     $cur->post_lang = $post_lang;
192     $cur->post_title = $post_title;
193     $cur->post_excerpt = $post_excerpt;
194     $cur->post_excerpt_xhtml = $post_excerpt_xhtml;
195     $cur->post_content = $post_content;
196     $cur->post_content_xhtml = $post_content_xhtml;
197     $cur->post_notes = $post_notes;
198     $cur->post_status = $post_status;
199     $cur->post_position = $post_position;
200     $cur->post_open_comment = (integer) $post_open_comment;
201     $cur->post_open_tb = (integer) $post_open_tb;
202     
203     if (isset($_POST['post_url'])) {
204          $cur->post_url = $post_url;
205     }
206     
207     # Update post
208     if ($post_id)
209     {
210          try
211          {
212               # --BEHAVIOR-- adminBeforePageUpdate
213               $core->callBehavior('adminBeforePageUpdate',$cur,$post_id);
214               
215               $core->blog->updPost($post_id,$cur);
216               
217               # --BEHAVIOR-- adminAfterPageUpdate
218               $core->callBehavior('adminAfterPageUpdate',$cur,$post_id);
219               
220               http::redirect($redir_url.'&id='.$post_id.'&upd=1');
221          }
222          catch (Exception $e)
223          {
224               $core->error->add($e->getMessage());
225          }
226     }
227     else
228     {
229          $cur->user_id = $core->auth->userID();
230         
231          try
232          {
233               # --BEHAVIOR-- adminBeforePageCreate
234               $core->callBehavior('adminBeforePageCreate',$cur);
235               
236               $return_id = $core->blog->addPost($cur);
237               
238               # --BEHAVIOR-- adminAfterPageCreate
239               $core->callBehavior('adminAfterPageCreate',$cur,$return_id);
240               
241               http::redirect($redir_url.'&id='.$return_id.'&crea=1');
242          }
243          catch (Exception $e)
244          {
245               $core->error->add($e->getMessage());
246          }
247     }
248}
249
250if (!empty($_POST['delete']) && $can_delete)
251{
252     try {
253          # --BEHAVIOR-- adminBeforePageDelete
254          $core->callBehavior('adminBeforePageDelete',$post_id);
255          $core->blog->delPost($post_id);
256          http::redirect($p_url);
257     } catch (Exception $e) {
258          $core->error->add($e->getMessage());
259     }
260}
261
262/* DISPLAY
263-------------------------------------------------------- */
264$default_tab = 'edit-entry';
265if (!$can_edit_page) {
266     $default_tab = '';
267}
268if (!empty($_GET['co'])) {
269     $default_tab = 'comments';
270}
271
272?>
273<html>
274<head>
275  <title><?php echo $page_title.' - '.__('Pages'); ?></title>
276  <script type="text/javascript">
277  //<![CDATA[
278  <?php echo dcPage::jsVar('dotclear.msg.confirm_delete_post',__("Are you sure you want to delete this page?")); ?>
279  //]]>
280  </script>
281  <?php echo
282  dcPage::jsDatePicker().
283  dcPage::jsToolBar().
284  dcPage::jsModal().
285  dcPage::jsLoad('js/_post.js').
286  dcPage::jsConfirmClose('entry-form','comment-form').
287  # --BEHAVIOR-- adminPageHeaders
288  $core->callBehavior('adminPageHeaders').
289  dcPage::jsPageTabs($default_tab).
290  $next_headlink."\n".$prev_headlink;
291  ?>
292</head>
293
294<body>
295
296<?php
297
298if (!empty($_GET['upd'])) {
299          echo '<p class="message">'.__('Page has been successfully updated.').'</p>';
300}
301elseif (!empty($_GET['crea'])) {
302          echo '<p class="message">'.__('Page has been successfully created.').'</p>';
303}
304elseif (!empty($_GET['attached'])) {
305     echo '<p class="message">'.__('File has been successfully attached.').'</p>';
306}
307elseif (!empty($_GET['rmattach'])) {
308     echo '<p class="message">'.__('Attachment has been successfully removed.').'</p>';
309}
310
311# XHTML conversion
312if (!empty($_GET['xconv']))
313{
314     $post_excerpt = $post_excerpt_xhtml;
315     $post_content = $post_content_xhtml;
316     $post_format = 'xhtml';
317     
318     echo '<p class="message">'.__('Don\'t forget to validate your XHTML conversion by saving your post.').'</p>';
319}
320
321echo '<h2>'.html::escapeHTML($core->blog->name).
322' &rsaquo; <a href="'.$p_url.'">'.__('Pages').'</a> &rsaquo; '.$page_title;
323
324if ($post_id && $post->post_status == 1) {
325     echo ' - <a id="post-preview" href="'.$post->getURL().'" class="button">'.__('View page').'</a>';
326} elseif ($post_id) {
327     $preview_url =
328     $core->blog->url.$core->url->getBase('pagespreview').'/'.
329     $core->auth->userID().'/'.
330     http::browserUID(DC_MASTER_KEY.$core->auth->userID().$core->auth->getInfo('user_pwd')).
331     '/'.$post->post_url;
332     echo ' - <a id="post-preview" href="'.$preview_url.'" class="button">'.__('Preview page').'</a>';
333}
334
335echo '</h2>';
336
337if ($post_id)
338{
339     echo '<p>';
340     if ($prev_link) { echo $prev_link; }
341     if ($next_link && $prev_link) { echo ' - '; }
342     if ($next_link) { echo $next_link; }
343     
344     # --BEHAVIOR-- adminPageNavLinks
345     $core->callBehavior('adminPageNavLinks',isset($post) ? $post : null);
346     
347     echo '</p>';
348}
349
350# Exit if we cannot view page
351if (!$can_view_page) {
352     echo '</body></html>';
353     return;
354}
355
356
357/* Post form if we can edit post
358-------------------------------------------------------- */
359if ($can_edit_page)
360{
361     echo '<div class="multi-part" title="'.__('Edit page').'" id="edit-entry">';
362     echo '<form action="'.html::escapeURL($redir_url).'" method="post" id="entry-form">';
363
364     echo '<div id="entry-wrapper">';
365     echo '<div id="entry-content"><fieldset class="constrained">';
366     
367     echo
368     '<p class="col"><label for="post_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').
369     form::field('post_title',20,255,html::escapeHTML($post_title),'maximal').
370     '</label></p>'.
371     
372     '<p class="area" id="excerpt-area"><label for="post_excerpt">'.__('Excerpt:').'</label> '.
373     form::textarea('post_excerpt',50,5,html::escapeHTML($post_excerpt)).
374     '</p>'.
375     
376     '<p class="area"><label class="required" '.
377     'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '.
378     form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content)).
379     '</p>';
380     
381     echo
382     '<p class="area" id="notes-area"><label for="post_notes">'.__('Notes:').'</label>'.
383     form::textarea('post_notes',50,5,html::escapeHTML($post_notes)).
384     '</p>';
385
386     # --BEHAVIOR-- adminPageForm
387     $core->callBehavior('adminPageForm',isset($post) ? $post : null);
388     
389     echo
390     '<p>'.
391     ($post_id ? form::hidden('id',$post_id) : '').
392     '<input type="submit" value="'.__('Save').' (s)" '.
393     'accesskey="s" name="save" /> '.
394     ($can_delete ? '<input type="submit" class="delete" value="'.__('Delete').'" name="delete" />' : '').
395     $core->formNonce().
396     '</p>';
397     
398     echo '</fieldset></div>';          // End #entry-content
399     echo '</div>';      // End #entry-wrapper
400
401     echo '<div id="entry-sidebar">';
402     
403     echo
404     '<p><label for="post_status">'.__('Page status:').
405     form::combo('post_status',$status_combo,$post_status,'','',!$can_publish).
406     '</label></p>'.
407     
408     '<p><label for="post_dt">'.__('Published on:').
409     form::field('post_dt',16,16,$post_dt).'</label></p>'.
410     
411     '<p><label for="post_format">'.__('Text formating:').
412     form::combo('post_format',$formaters_combo,$post_format).
413     ($post_id && $post_format != 'xhtml' ? '<a href="'.html::escapeURL($redir_url).'&amp;id='.$post_id.'&amp;xconv=1">'.__('Convert to XHTML').'</a>' : '').
414     '</label></p>'.
415     
416     '<p><label for="post_open_comment" class="classic">'.form::checkbox('post_open_comment',1,$post_open_comment).' '.
417     __('Accept comments').'</label></p>'.
418     '<p><label for="post_open_tb" class="classic">'.form::checkbox('post_open_tb',1,$post_open_tb).' '.
419     __('Accept trackbacks').'</label></p>'.
420     
421     '<p><label for="post_position" class="classic">'.__('Page position:').' '.
422     form::field('post_position',3,3,(string) $post_position).
423     '</label></p>'.
424     
425     '<p><label for="post_lang">'.__('Page lang:').
426     form::combo('post_lang',$lang_combo,$post_lang).'</label></p>'.
427     
428     '<p><label for="post_password">'.__('Page password:').
429     form::field('post_password',10,32,html::escapeHTML($post_password),'maximal').
430     '</label></p>'.
431     
432     '<div class="lockable">'.
433     '<p><label for="post_url">'.__('Basename:').
434     form::field('post_url',10,255,html::escapeHTML($post_url),'maximal').
435     '</label></p>'.
436     '<p class="form-note warn">'.
437     __('Warning: If you set the URL manually, it may conflict with another page.').
438     '</p>'.
439     '</div>';
440     
441     if ($post_id)
442     {
443          echo
444          '<h3 class="clear">'.__('Attachments').'</h3>';
445          foreach ($post_media as $f)
446          {
447               $ftitle = $f->media_title;
448               if (strlen($ftitle) > 18) {
449                    $ftitle = substr($ftitle,0,16).'...';
450               }
451               echo
452               '<div class="media-item">'.
453               '<a class="media-icon" href="media_item.php?id='.$f->media_id.'">'.
454               '<img src="'.$f->media_icon.'" alt="" title="'.$f->basename.'" /></a>'.
455               '<ul>'.
456               '<li><a class="media-link" href="media_item.php?id='.$f->media_id.'"'.
457               'title="'.$f->basename.'">'.$ftitle.'</a></li>'.
458               '<li>'.$f->media_dtstr.'</li>'.
459               '<li>'.files::size($f->size).' - '.
460               '<a href="'.$f->file_url.'">'.__('open').'</a>'.'</li>'.
461               
462               '<li class="media-action"><a class="attachment-remove" id="attachment-'.$f->media_id.'" '.
463               'href="post_media.php?post_id='.$post_id.'&amp;media_id='.$f->media_id.'&amp;remove=1">'.
464               '<img src="images/check-off.png" alt="'.__('remove').'" /></a>'.
465               '</li>'.
466               
467               '</ul>'.
468               '</div>';
469          }
470          unset($f);
471         
472          if (empty($post_media)) {
473               echo '<p>'.__('No attachment.').'</p>';
474          }
475          echo '<p><a href="media.php?post_id='.$post_id.'">'.__('Add files to this page').'</a></p>';
476     }
477     
478     # --BEHAVIOR-- adminPageFormSidebar
479     $core->callBehavior('adminPageFormSidebar',isset($post) ? $post : null);
480     
481     echo '</div>';      // End #entry-sidebar
482     
483     echo '</form>';
484     echo '</div>';
485     
486     if ($post_id && !empty($post_media))
487     {
488          echo
489          '<form action="post_media.php" id="attachment-remove-hide" method="post">'.
490          '<div>'.form::hidden(array('post_id'),$post_id).
491          form::hidden(array('media_id'),'').
492          form::hidden(array('remove'),1).
493          $core->formNonce().'</div></form>';
494     }
495}
496
497
498/* Comments and trackbacks
499-------------------------------------------------------- */
500if ($post_id)
501{
502     $params = array('post_id' => $post_id, 'order' => 'comment_dt ASC');
503     
504     $comments = $core->blog->getComments(array_merge($params,array('comment_trackback'=>0)));
505     $trackbacks = $core->blog->getComments(array_merge($params,array('comment_trackback'=>1)));
506     
507     # Actions combo box
508     $combo_action = array();
509     if ($can_edit_page && $core->auth->check('publish,contentadmin',$core->blog->id))
510     {
511          $combo_action[__('publish')] = 'publish';
512          $combo_action[__('unpublish')] = 'unpublish';
513          $combo_action[__('mark as pending')] = 'pending';
514          $combo_action[__('mark as junk')] = 'junk';
515     }
516     
517     if ($can_edit_page && $core->auth->check('delete,contentadmin',$core->blog->id))
518     {
519          $combo_action[__('delete')] = 'delete';
520     }
521     
522     $has_action = !empty($combo_action) && (!$trackbacks->isEmpty() || !$comments->isEmpty());
523     
524     echo
525     '<div id="comments" class="multi-part" title="'.__('Comments').'">';
526     
527     if ($has_action) {
528          echo '<form action="comments_actions.php" method="post">';
529     }
530     
531     echo '<h3>'.__('Trackbacks').'</h3>';
532     
533     if (!$trackbacks->isEmpty()) {
534          showComments($trackbacks,$has_action);
535     } else {
536          echo '<p>'.__('No trackback').'</p>';
537     }
538     
539     echo '<h3>'.__('Comments').'</h3>';
540     if (!$comments->isEmpty()) {
541          showComments($comments,$has_action);
542     } else {
543          echo '<p>'.__('No comment').'</p>';
544     }
545     
546     if ($has_action) {
547          echo
548          '<div class="two-cols">'.
549          '<p class="col checkboxes-helpers"></p>'.
550         
551          '<p class="col right"><label for="action">'.__('Selected comments action:').'</label> '.
552          form::combo('action',$combo_action).
553          form::hidden('redir',html::escapeURL($redir_url).'&amp;id='.$post_id.'&amp;co=1').
554          $core->formNonce().
555          '<input type="submit" value="'.__('ok').'" /></p>'.
556          '</div>'.
557          '</form>';
558     }
559     
560     echo '</div>';
561}
562
563/* Add a comment
564-------------------------------------------------------- */
565if ($post_id)
566{
567     echo
568     '<div class="multi-part" id="add-comment" title="'.__('Add a comment').'">'.
569     '<h3>'.__('Add a comment').'</h3>'.
570     
571     '<form action="comment.php" method="post" id="comment-form">'.
572     '<fieldset class="constrained">'.
573     '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:').
574     form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn'))).
575     '</label></p>'.
576     
577     '<p><label for="comment_email">'.__('Email:').
578     form::field('comment_email',30,255,html::escapeHTML($core->auth->getInfo('user_email'))).
579     '</label></p>'.
580     
581     '<p><label for="comment_site">'.__('Web site:').
582     form::field('comment_site',30,255,html::escapeHTML($core->auth->getInfo('user_url'))).
583     '</label></p>'.
584     
585     '<p class="area"><label for="comment_content" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Comment:').'</label> '.
586     form::textarea('comment_content',50,8,html::escapeHTML('')).
587     '</p>'.
588     
589     '<p>'.form::hidden('post_id',$post_id).
590     $core->formNonce().
591     '<input type="submit" name="add" value="'.__('Save').'" /></p>'.
592     '</fieldset>'.
593     '</form>'.
594     '</div>';
595}
596
597
598# Show comments or trackbacks
599function showComments($rs,$has_action)
600{
601     echo
602     '<table class="comments-list"><tr>'.
603     '<th colspan="2">'.__('Author').'</th>'.
604     '<th>'.__('Date').'</th>'.
605     '<th class="nowrap">'.__('IP address').'</th>'.
606     '<th>'.__('Status').'</th>'.
607     '<th>&nbsp;</th>'.
608     '</tr>';
609     
610     while($rs->fetch())
611     {
612          $comment_url = 'comment.php?id='.$rs->comment_id;
613         
614          $img = '<img alt="%1$s" title="%1$s" src="images/%2$s" />';
615          switch ($rs->comment_status) {
616               case 1:
617                    $img_status = sprintf($img,__('published'),'check-on.png');
618                    break;
619               case 0:
620                    $img_status = sprintf($img,__('unpublished'),'check-off.png');
621                    break;
622               case -1:
623                    $img_status = sprintf($img,__('pending'),'check-wrn.png');
624                    break;
625               case -2:
626                    $img_status = sprintf($img,__('junk'),'junk.png');
627                    break;
628          }
629         
630          echo
631          '<tr class="line'.($rs->comment_status != 1 ? ' offline' : '').'"'.
632          ' id="c'.$rs->comment_id.'">'.
633         
634          '<td class="nowrap">'.
635          ($has_action ? form::checkbox(array('comments[]'),$rs->comment_id,'','','',0,'title="'.__('select this comment').'"') : '').'</td>'.
636          '<td class="maximal">'.$rs->comment_author.'</td>'.
637          '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$rs->comment_dt).'</td>'.
638          '<td class="nowrap"><a href="comments.php?ip='.$rs->comment_ip.'">'.$rs->comment_ip.'</a></td>'.
639          '<td class="nowrap status">'.$img_status.'</td>'.
640          '<td class="nowrap status"><a href="'.$comment_url.'">'.
641          '<img src="images/edit-mini.png" alt="" title="'.__('Edit this comment').'" /></a></td>'.
642         
643          '</tr>';
644     }
645     
646     echo '</table>';
647}
648dcPage::helpBlock('page');
649?>
650</body>
651</html>
Note: See TracBrowser for help on using the repository browser.

Sites map