Changeset 1620:542c321dc040 for plugins
- Timestamp:
- 08/30/13 10:37:08 (12 years ago)
- Branch:
- default
- Parents:
- 1619:5d925866b5b3 (diff), 1593:0c884219a872 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- plugins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/attachments/_admin.php
r1537 r1620 12 12 if (!defined('DC_CONTEXT_ADMIN')) { return; } 13 13 14 $core->addBehavior ('adminPostForm Sidebar',array('attachmentAdmin','adminPostFormSidebar'));14 $core->addBehavior ('adminPostFormItems',array('attachmentAdmin','adminPostFormItems')); 15 15 $core->addBehavior ('adminPostAfterForm',array('attachmentAdmin','adminPostAfterForm')); 16 $core->addBehavior('adminPostHeaders',array('attachmentAdmin','postHeaders')); 17 $core->addBehavior ('adminPageFormItems',array('attachmentAdmin','adminPostFormItems')); 18 $core->addBehavior ('adminPageAfterForm',array('attachmentAdmin','adminPostAfterForm')); 19 $core->addBehavior('adminPageHeaders',array('attachmentAdmin','postHeaders')); 16 20 17 21 class attachmentAdmin 18 22 { 19 public static function adminPostFormSidebar($post) 23 public static function postHeaders() 24 { 25 return 26 '<script type="text/javascript" src="index.php?pf=attachments/js/post.js"></script>'; 27 } 28 public static function adminPostFormItems($main,$sidebar,$post) 20 29 { 21 30 if ($post !== null) 22 31 { 23 32 $core =& $GLOBALS['core']; 24 if ( isset($core->media) ) { 25 $post_media = $core->media->getPostMedia($post->post_id); 26 echo 27 '<h3 class="clear">'.__('Attachments').'</h3>'; 28 foreach ($post_media as $f) 29 { 30 $ftitle = $f->media_title; 31 if (strlen($ftitle) > 18) { 32 $ftitle = substr($ftitle,0,16).'...'; 33 } 34 echo 35 '<div class="media-item">'. 36 '<a class="media-icon" href="media_item.php?id='.$f->media_id.'">'. 37 '<img src="'.$f->media_icon.'" alt="" title="'.$f->basename.'" /></a>'. 38 '<ul>'. 39 '<li><a class="media-link" href="media_item.php?id='.$f->media_id.'" '. 40 'title="'.$f->basename.'">'.$ftitle.'</a></li>'. 41 '<li>'.$f->media_dtstr.'</li>'. 42 '<li>'.files::size($f->size).' - '. 43 '<a href="'.$f->file_url.'">'.__('open').'</a>'.'</li>'. 44 45 '<li class="media-action"><a class="attachment-remove" id="attachment-'.$f->media_id.'" '. 46 'href="post_media.php?post_id='.$post->post_id.'&media_id='.$f->media_id.'&remove=1">'. 47 '<img src="images/check-off.png" alt="'.__('remove').'" /></a>'. 48 '</li>'. 49 50 '</ul>'. 51 '</div>'; 33 $post_media = $core->media->getPostMedia($post->post_id); 34 $nb_media = count($post_media); 35 $title = !$nb_media ? __('Attachments') : sprintf(__('Attachments (%d)'),$nb_media); 36 $item = '<h5 class="clear s-attachments">'.$title.'</h5>'; 37 foreach ($post_media as $f) 38 { 39 $ftitle = $f->media_title; 40 if (strlen($ftitle) > 18) { 41 $ftitle = substr($ftitle,0,16).'...'; 52 42 } 53 unset($f); 43 $item .= 44 '<div class="media-item s-attachments">'. 45 '<a class="media-icon" href="media_item.php?id='.$f->media_id.'">'. 46 '<img src="'.$f->media_icon.'" alt="" title="'.$f->basename.'" /></a>'. 47 '<ul>'. 48 '<li><a class="media-link" href="media_item.php?id='.$f->media_id.'" '. 49 'title="'.$f->basename.'">'.$ftitle.'</a></li>'. 50 '<li>'.$f->media_dtstr.'</li>'. 51 '<li>'.files::size($f->size).' - '. 52 '<a href="'.$f->file_url.'">'.__('open').'</a>'.'</li>'. 53 54 '<li class="media-action"><a class="attachment-remove" id="attachment-'.$f->media_id.'" '. 55 'href="post_media.php?post_id='.$post->post_id.'&media_id='.$f->media_id.'&remove=1">'. 56 '<img src="images/check-off.png" alt="'.__('remove').'" /></a>'. 57 '</li>'. 58 59 '</ul>'. 60 '</div>'; 54 61 } 62 unset($f); 55 63 56 64 if (empty($post_media)) { 57 echo '<p>'.__('No attachment.').'</p>';58 } else {59 }60 echo '<p><a class="button" href="media.php?post_id='.$post->post_id.'">'.__('Add files to this entry').'</a></p>';65 $item .= '<p class="form-note s-attachments">'.__('No attachment.').'</p>'; 66 } 67 $item .= '<p class="s-attachments"><a class="button" href="media.php?post_id='.$post->post_id.'">'.__('Add files to this entry').'</a></p>'; 68 $sidebar['metas-box']['items']['attachments']= $item; 61 69 } 62 70 } -
plugins/pages/page.php
r1537 r1620 124 124 if ($next_rs !== null) { 125 125 $next_link = sprintf($post_link,$next_rs->post_id, 126 html::escapeHTML($next_rs->post_title),__(' next page').' »');126 html::escapeHTML($next_rs->post_title),__('Next page').' »'); 127 127 $next_headlink = sprintf($post_headlink,'next', 128 128 html::escapeHTML($next_rs->post_title),$next_rs->post_id); … … 131 131 if ($prev_rs !== null) { 132 132 $prev_link = sprintf($post_link,$prev_rs->post_id, 133 html::escapeHTML($prev_rs->post_title),'« '.__(' previous page'));133 html::escapeHTML($prev_rs->post_title),'« '.__('Previous page')); 134 134 $prev_headlink = sprintf($post_headlink,'previous', 135 135 html::escapeHTML($prev_rs->post_title),$prev_rs->post_id); … … 304 304 dcPage::jsToolBar(). 305 305 dcPage::jsModal(). 306 dcPage::jsMetaEditor().307 306 dcPage::jsLoad('js/_post.js'). 308 307 dcPage::jsConfirmClose('entry-form','comment-form'). … … 318 317 <?php 319 318 319 if ($post_id) { 320 switch ($post_status) { 321 case 1: 322 $img_status = sprintf($img_status_pattern,__('Published'),'check-on.png'); 323 break; 324 case 0: 325 $img_status = sprintf($img_status_pattern,__('Unpublished'),'check-off.png'); 326 break; 327 case -1: 328 $img_status = sprintf($img_status_pattern,__('Scheduled'),'scheduled.png'); 329 break; 330 case -2: 331 $img_status = sprintf($img_status_pattern,__('Pending'),'check-wrn.png'); 332 break; 333 default: 334 $img_status = ''; 335 } 336 $edit_entry_title = '“'.$post_title.'”'.' '.$img_status; 337 } else { 338 $edit_entry_title = $page_title; 339 } 340 echo dcPage::breadcrumb( 341 array( 342 html::escapeHTML($core->blog->name) => '', 343 __('Pages') => $p_url, 344 '<span class="page-title">'.$edit_entry_title.'</span>' => '' 345 )); 346 320 347 if (!empty($_GET['upd'])) { 321 dcPage:: message(__('Page has been successfully updated.'));348 dcPage::success(__('Page has been successfully updated.')); 322 349 } 323 350 elseif (!empty($_GET['crea'])) { 324 dcPage:: message(__('Page has been successfully created.'));351 dcPage::success(__('Page has been successfully created.')); 325 352 } 326 353 elseif (!empty($_GET['attached'])) { 327 dcPage:: message(__('File has been successfully attached.'));354 dcPage::success(__('File has been successfully attached.')); 328 355 } 329 356 elseif (!empty($_GET['rmattach'])) { 330 dcPage:: message(__('Attachment has been successfully removed.'));357 dcPage::success(__('Attachment has been successfully removed.')); 331 358 } 332 359 … … 341 368 } 342 369 343 echo '<h2>'.html::escapeHTML($core->blog->name).344 ' › <a href="'.$p_url.'">'.__('Pages').'</a> › <span class="page-title">'.$page_title;345 if ($post_id) {346 switch ($post_status) {347 case 1:348 $img_status = sprintf($img_status_pattern,__('published'),'check-on.png');349 break;350 case 0:351 $img_status = sprintf($img_status_pattern,__('unpublished'),'check-off.png');352 break;353 case -1:354 $img_status = sprintf($img_status_pattern,__('scheduled'),'scheduled.png');355 break;356 case -2:357 $img_status = sprintf($img_status_pattern,__('pending'),'check-wrn.png');358 break;359 default:360 $img_status = '';361 }362 echo ' “'.$post_title.'”'.' '.$img_status;363 }364 echo '</span></h2>';365 366 370 if ($post_id && $post->post_status == 1) { 367 echo '<p><a href="'.$post->getURL().'" onclick="window.open(this.href);return false;" title="'.$post_title.' ('.__('new window').')'.'">'.__('Go to this page on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>';371 echo '<p><a class="onblog_link" href="'.$post->getURL().'" onclick="window.open(this.href);return false;" title="'.$post_title.' ('.__('new window').')'.'">'.__('Go to this page on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>'; 368 372 } 369 373 … … 372 376 if ($post_id) 373 377 { 374 echo '<p >';378 echo '<p class="nav_prevnext">'; 375 379 if ($prev_link) { echo $prev_link; } 376 if ($next_link && $prev_link) { echo ' -'; }380 if ($next_link && $prev_link) { echo ' | '; } 377 381 if ($next_link) { echo $next_link; } 378 382 … … 390 394 391 395 392 /* Post form if we can edit p ost396 /* Post form if we can edit page 393 397 -------------------------------------------------------- */ 394 398 if ($can_edit_page) 395 399 { 400 $sidebar_items = new ArrayObject(array( 401 'status-box' => array( 402 'title' => __('Status'), 403 'items' => array( 404 'post_status' => 405 '<p><label for="post_status" class="ib">'.__('Page status:').'</label> '. 406 form::combo('post_status',$status_combo,$post_status,'','',!$can_publish). 407 '</p>', 408 'post_dt' => 409 '<p><label for="post_dt" class="ib">'.__('Publication date and hour').'</label>'. 410 form::field('post_dt',16,16,$post_dt,($bad_dt ? 'invalid' : '')). 411 '</p>', 412 'post_lang' => 413 '<p><label for="post_lang" class="ib">'.__('Page lang:').'</label>'. 414 form::combo('post_lang',$lang_combo,$post_lang). 415 '</p>', 416 'post_format' => 417 '<div>'. 418 '<h5 id="label_format"><label for="post_format" class="ib">'.__('Text formating').'</label></h5>'. 419 '<p>'.form::combo('post_format',$formaters_combo,$post_format,'maximal'). 420 '</p>'. 421 '<p>'.($post_id && $post_format != 'xhtml' ? 422 '<a id="convert-xhtml" class="button maximal" href="post.php?id='.$post_id.'&xconv=1">'. 423 __('Convert to XHTML').'</a>' : '').'</p></div>')), 424 'metas-box' => array( 425 'title' => __('Ordering'), 426 'items' => array( 427 'post_position' => 428 '<p><label for="post_position" class="classic">'.__('Page position:').'</label> '. 429 form::field('post_position',3,3,(string) $post_position). 430 '</p>')), 431 'options-box' => array( 432 'title' => __('Options'), 433 'items' => array( 434 'post_open_comment' => 435 '<p><label for="post_open_comment" class="classic">'. 436 form::checkbox('post_open_comment',1,$post_open_comment).' '. 437 __('Accept comments').'</label></p>'. 438 ($core->blog->settings->system->allow_comments ? 439 (isContributionAllowed($post_id,strtotime($post_dt),true) ? 440 '' : 441 '<p class="form-note warn">'. 442 __('Warning: Comments are not more accepted for this entry.').'</p>') : 443 '<p class="form-note warn">'. 444 __('Warning: Comments are not accepted on this blog.').'</p>'), 445 'post_open_tb' => 446 '<p><label for="post_open_tb" class="classic">'. 447 form::checkbox('post_open_tb',1,$post_open_tb).' '. 448 __('Accept trackbacks').'</label></p>'. 449 ($core->blog->settings->system->allow_trackbacks ? 450 (isContributionAllowed($post_id,strtotime($post_dt),false) ? 451 '' : 452 '<p class="form-note warn">'. 453 __('Warning: Trackbacks are not more accepted for this entry.').'</p>') : 454 '<p class="form-note warn">'.__('Warning: Trackbacks are not accepted on this blog.').'</p>'), 455 'post_hide' => 456 '<p><label for="post_selected" class="classic">'.form::checkbox('post_selected',1,$post_selected).' '. 457 __('Hide in widget Pages').'</label></p>'. 458 '</p>', 459 'post_password' => 460 '<p><label for="post_password" class="ib">'.__('Password').'</label>'. 461 form::field('post_password',10,32,html::escapeHTML($post_password),'maximal'). 462 '</p>', 463 'post_url' => 464 '<div class="lockable">'. 465 '<p><label for="post_url" class="ib">'.__('Edit basename').'</label>'. 466 form::field('post_url',10,255,html::escapeHTML($post_url),'maximal'). 467 '</p>'. 468 '<p class="form-note warn">'. 469 __('Warning: If you set the URL manually, it may conflict with another entry.'). 470 '</p></div>' 471 )))); 472 $main_items = new ArrayObject(array( 473 "post_title" => 474 '<p class="col">'. 475 '<label class="required no-margin"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'. 476 form::field('post_title',20,255,html::escapeHTML($post_title),'maximal'). 477 '</p>', 478 479 "post_excerpt" => 480 '<p class="area" id="excerpt-area"><label for="post_excerpt">'.__('Excerpt:').'<span class="form-note">'. 481 __('Add an introduction to the post.').'</span></label> '. 482 form::textarea('post_excerpt',50,5,html::escapeHTML($post_excerpt)). 483 '</p>', 484 485 "post_content" => 486 '<p class="area"><label class="required" '. 487 'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 488 form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content)). 489 '</p>', 490 491 "post_notes" => 492 '<p class="area" id="notes-area"><label for="post_notes">'.__('Personal notes:').'<span class="form-note">'. 493 __('Add unpublished notes.').'</span></label>'. 494 form::textarea('post_notes',50,5,html::escapeHTML($post_notes)). 495 '</p>' 496 ) 497 ); 498 499 # --BEHAVIOR-- adminPostFormItems 500 $core->callBehavior('adminPageFormItems',$main_items,$sidebar_items, isset($post) ? $post : null); 501 396 502 echo '<div class="multi-part" title="'.__('Edit page').'" id="edit-entry">'; 397 503 echo '<form action="'.html::escapeURL($redir_url).'" method="post" id="entry-form">'; … … 400 506 echo '<div id="entry-content"><div class="constrained">'; 401 507 402 echo 403 '<p class="col"><label for="post_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:'). 404 form::field('post_title',20,255,html::escapeHTML($post_title),'maximal'). 405 '</label></p>'. 406 407 '<p class="area" id="excerpt-area"><label for="post_excerpt">'.__('Excerpt:').'</label> '. 408 form::textarea('post_excerpt',50,5,html::escapeHTML($post_excerpt)). 409 '</p>'. 410 411 '<p class="area"><label class="required" '. 412 'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 413 form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content)). 414 '</p>'; 415 416 echo 417 '<p class="area" id="notes-area"><label for="post_notes">'.__('Notes:').'</label>'. 418 form::textarea('post_notes',50,5,html::escapeHTML($post_notes)). 419 '</p>'; 508 509 foreach ($main_items as $id => $item) { 510 echo $item; 511 } 420 512 421 513 # --BEHAVIOR-- adminPageForm … … 423 515 424 516 echo 425 '<p >'.517 '<p class="border-top">'. 426 518 ($post_id ? form::hidden('id',$post_id) : ''). 427 519 '<input type="submit" value="'.__('Save').' (s)" '. … … 450 542 echo '<div id="entry-sidebar">'; 451 543 452 echo 453 '<p><label for="post_status">'.__('Page status:'). 454 form::combo('post_status',$status_combo,$post_status,'','',!$can_publish). 455 '</label></p>'. 456 457 '<p><label for="post_dt">'.__('Published on:'). 458 form::field('post_dt',16,16,$post_dt,($bad_dt ? 'invalid' : '')).'</label></p>'. 459 460 '<p><label for="post_format">'.__('Text formating:'). 461 form::combo('post_format',$formaters_combo,$post_format). 462 ($post_id && $post_format != 'xhtml' ? '<a href="'.html::escapeURL($redir_url).'&id='.$post_id.'&xconv=1">'.__('Convert to XHTML').'</a>' : ''). 463 '</label></p>'. 464 465 '<p><label for="post_open_comment" class="classic">'.form::checkbox('post_open_comment',1,$post_open_comment).' '. 466 __('Accept comments').'</label></p>'. 467 ($core->blog->settings->system->allow_comments ? 468 (isContributionAllowed($post_id,strtotime($post_dt),true) ? 469 '' : 470 '<p class="form-note warn">'.__('Warning: Comments are not more accepted for this page.').'</p>') : 471 '<p class="form-note warn">'.__('Warning: Comments are not accepted on this blog.').'</p>'). 472 473 '<p><label for="post_open_tb" class="classic">'.form::checkbox('post_open_tb',1,$post_open_tb).' '. 474 __('Accept trackbacks').'</label></p>'. 475 ($core->blog->settings->system->allow_trackbacks ? 476 (isContributionAllowed($post_id,strtotime($post_dt),false) ? 477 '' : 478 '<p class="form-note warn">'.__('Warning: Trackbacks are not more accepted for this page.').'</p>') : 479 '<p class="form-note warn">'.__('Warning: Trackbacks are not accepted on this blog.').'</p>'). 480 481 '<p><label for="post_selected" class="classic">'.form::checkbox('post_selected',1,$post_selected).' '. 482 __('Hide').'</label></p>'. 483 '<p class="form-note">'. 484 __('If checked this page will be active but not listed in widget Pages.'). 485 '</p>'. 486 487 '<p><label for="post_position" class="classic">'.__('Page position:').' '. 488 form::field('post_position',3,3,(string) $post_position). 489 '</label></p>'. 490 491 '<p><label for="post_lang">'.__('Page lang:'). 492 form::combo('post_lang',$lang_combo,$post_lang).'</label></p>'. 493 494 '<p><label for="post_password">'.__('Page password:'). 495 form::field('post_password',10,32,html::escapeHTML($post_password),'maximal'). 496 '</label></p>'. 497 498 '<div class="lockable">'. 499 '<p><label for="post_url">'.__('Basename:'). 500 form::field('post_url',10,255,html::escapeHTML($post_url),'maximal'). 501 '</label></p>'. 502 '<p class="form-note warn">'. 503 __('Warning: If you set the URL manually, it may conflict with another page.'). 504 '</p>'. 505 '</div>'; 506 507 if ($post_id) 508 { 509 echo 510 '<h3 class="clear">'.__('Attachments').'</h3>'; 511 foreach ($post_media as $f) 512 { 513 $ftitle = $f->media_title; 514 if (strlen($ftitle) > 18) { 515 $ftitle = substr($ftitle,0,16).'...'; 516 } 517 echo 518 '<div class="media-item">'. 519 '<a class="media-icon" href="media_item.php?id='.$f->media_id.'">'. 520 '<img src="'.$f->media_icon.'" alt="" title="'.$f->basename.'" /></a>'. 521 '<ul>'. 522 '<li><a class="media-link" href="media_item.php?id='.$f->media_id.'"'. 523 'title="'.$f->basename.'">'.$ftitle.'</a></li>'. 524 '<li>'.$f->media_dtstr.'</li>'. 525 '<li>'.files::size($f->size).' - '. 526 '<a href="'.$f->file_url.'">'.__('open').'</a>'.'</li>'. 527 528 '<li class="media-action"><a class="attachment-remove" id="attachment-'.$f->media_id.'" '. 529 'href="post_media.php?post_id='.$post_id.'&media_id='.$f->media_id.'&remove=1">'. 530 '<img src="images/check-off.png" alt="'.__('remove').'" /></a>'. 531 '</li>'. 532 533 '</ul>'. 534 '</div>'; 535 } 536 unset($f); 537 538 if (empty($post_media)) { 539 echo '<p>'.__('No attachment.').'</p>'; 540 } 541 echo '<p><a href="media.php?post_id='.$post_id.'">'.__('Add files to this page').'</a></p>'; 544 foreach ($sidebar_items as $id => $c) { 545 echo '<div id="'.$id.'" class="box">'. 546 '<h4>'.$c['title'].'</h4>'; 547 foreach ($c['items'] as $e_name=>$e_content) { 548 echo $e_content; 549 } 550 echo '</div>'; 542 551 } 543 552 … … 575 584 if ($can_edit_page && $core->auth->check('publish,contentadmin',$core->blog->id)) 576 585 { 577 $combo_action[__(' publish')] = 'publish';578 $combo_action[__(' unpublish')] = 'unpublish';579 $combo_action[__(' mark as pending')] = 'pending';580 $combo_action[__(' mark as junk')] = 'junk';586 $combo_action[__('Publish')] = 'publish'; 587 $combo_action[__('Unpublish')] = 'unpublish'; 588 $combo_action[__('Mark as pending')] = 'pending'; 589 $combo_action[__('Mark as junk')] = 'junk'; 581 590 } 582 591 583 592 if ($can_edit_page && $core->auth->check('delete,contentadmin',$core->blog->id)) 584 593 { 585 $combo_action[__(' delete')] = 'delete';594 $combo_action[__('Delete')] = 'delete'; 586 595 } 587 596 … … 615 624 '<p class="col checkboxes-helpers"></p>'. 616 625 617 '<p class="col right"><label for="action" >'.__('Selected comments action:').'</label> '.626 '<p class="col right"><label for="action" class="classic">'.__('Selected comments action:').'</label> '. 618 627 form::combo('action',$combo_action). 619 628 form::hidden('redir',html::escapeURL($redir_url).'&id='.$post_id.'&co=1'). … … 637 646 '<form action="comment.php" method="post" id="comment-form">'. 638 647 '<div class="constrained">'. 639 '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:'). 648 '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:').'</label>'. 640 649 form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn'))). 641 '</ label></p>'.642 643 '<p><label for="comment_email">'.__('Email:'). 650 '</p>'. 651 652 '<p><label for="comment_email">'.__('Email:').'</label>'. 644 653 form::field('comment_email',30,255,html::escapeHTML($core->auth->getInfo('user_email'))). 645 '</ label></p>'.646 647 '<p><label for="comment_site">'.__('Web site:'). 654 '</p>'. 655 656 '<p><label for="comment_site">'.__('Web site:').'</label>'. 648 657 form::field('comment_site',30,255,html::escapeHTML($core->auth->getInfo('user_url'))). 649 '</ label></p>'.658 '</p>'. 650 659 651 660 '<p class="area"><label for="comment_content" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Comment:').'</label> '. … … 688 697 echo 689 698 '<table class="comments-list"><tr>'. 690 '<th colspan="2" >'.__('Author').'</th>'.699 '<th colspan="2" class="nowrap first">'.__('Author').'</th>'. 691 700 '<th>'.__('Date').'</th>'. 692 701 '<th class="nowrap">'.__('IP address').'</th>'. 693 702 '<th>'.__('Status').'</th>'. 694 '<th> </th>'.703 '<th>'.__('Edit').'</th>'. 695 704 '</tr>'; 696 705 … … 702 711 switch ($rs->comment_status) { 703 712 case 1: 704 $img_status = sprintf($img,__(' published'),'check-on.png');713 $img_status = sprintf($img,__('Published'),'check-on.png'); 705 714 break; 706 715 case 0: 707 $img_status = sprintf($img,__(' unpublished'),'check-off.png');716 $img_status = sprintf($img,__('Unpublished'),'check-off.png'); 708 717 break; 709 718 case -1: 710 $img_status = sprintf($img,__(' pending'),'check-wrn.png');719 $img_status = sprintf($img,__('Pending'),'check-wrn.png'); 711 720 break; 712 721 case -2: 713 $img_status = sprintf($img,__(' junk'),'junk.png');722 $img_status = sprintf($img,__('Junk'),'junk.png'); 714 723 break; 715 724 } … … 720 729 721 730 '<td class="nowrap">'. 722 ($has_action ? form::checkbox(array('comments[]'),$rs->comment_id,'','','',0,'title="'.__(' select this comment').'"') : '').'</td>'.731 ($has_action ? form::checkbox(array('comments[]'),$rs->comment_id,'','','',0,'title="'.__('Select this comment').'"') : '').'</td>'. 723 732 '<td class="maximal">'.$rs->comment_author.'</td>'. 724 733 '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$rs->comment_dt).'</td>'. … … 726 735 '<td class="nowrap status">'.$img_status.'</td>'. 727 736 '<td class="nowrap status"><a href="'.$comment_url.'">'. 728 '<img src="images/edit-mini.png" alt="" title="'.__('Edit this comment').'" /> </a></td>'.737 '<img src="images/edit-mini.png" alt="" title="'.__('Edit this comment').'" /> '.__('Edit').'</a></td>'. 729 738 730 739 '</tr>'; -
plugins/pages/page.php
r1619 r1620 139 139 $core->media = new dcMedia($core); 140 140 $post_media = $core->media->getPostMedia($post_id); 141 } catch (Exception $e) {} 141 } catch (Exception $e) { 142 $core->error->add($e->getMessage()); 143 } 142 144 } 143 145 }
Note: See TracChangeset
for help on using the changeset viewer.