- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/pages/page.php
r1713 r1741 53 53 54 54 # Status combo 55 foreach ($core->blog->getAllPostStatus() as $k => $v) { 56 $status_combo[$v] = (string) $k; 57 } 55 $status_combo = dcAdminCombos::getPostStatusesCombo(); 56 58 57 $img_status_pattern = '<img class="img_select_option" alt="%1$s" title="%1$s" src="images/%2$s" />'; 59 58 60 59 # Formaters combo 61 foreach ($core->getFormaters() as $v) { 62 $formaters_combo[$v] = $v; 63 } 60 $formaters_combo = dcAdminCombos::getFormatersCombo(); 64 61 65 62 # Languages combo 66 63 $rs = $core->blog->getLangs(array('order'=>'asc')); 67 $all_langs = l10n::getISOcodes(0,1); 68 $lang_combo = array('' => '', __('Most used') => array(), __('Available') => l10n::getISOcodes(1,1)); 69 while ($rs->fetch()) { 70 if (isset($all_langs[$rs->post_lang])) { 71 $lang_combo[__('Most used')][$all_langs[$rs->post_lang]] = $rs->post_lang; 72 unset($lang_combo[__('Available')][$all_langs[$rs->post_lang]]); 73 } else { 74 $lang_combo[__('Most used')][$rs->post_lang] = $rs->post_lang; 75 } 76 } 77 unset($all_langs); 78 unset($rs); 64 $lang_combo = dcAdminCombos::getLangsCombo($rs,true); 65 79 66 80 67 # Validation flag … … 480 467 481 468 "post_excerpt" => 482 '<p class="area" id="excerpt-area"><label for="post_excerpt">'.__('Excerpt:').' <span class="form-note">'.483 __(' Add an introduction to the post.').'</span></label> '.469 '<p class="area" id="excerpt-area"><label for="post_excerpt">'.__('Excerpt:').' <span class="form-note">'. 470 __('Introduction to the post.').'</span></label> '. 484 471 form::textarea('post_excerpt',50,5,html::escapeHTML($post_excerpt)). 485 472 '</p>', … … 492 479 493 480 "post_notes" => 494 '<p class="area" id="notes-area"><label for="post_notes">'.__('Personal notes:').' <span class="form-note">'.495 __(' Add unpublished notes.').'</span></label>'.481 '<p class="area" id="notes-area"><label for="post_notes">'.__('Personal notes:').' <span class="form-note">'. 482 __('Unpublished notes.').'</span></label>'. 496 483 form::textarea('post_notes',50,5,html::escapeHTML($post_notes)). 497 484 '</p>' … … 545 532 546 533 foreach ($sidebar_items as $id => $c) { 547 echo '<div id="'.$id.'" class=" box">'.534 echo '<div id="'.$id.'" class="sb-box">'. 548 535 '<h4>'.$c['title'].'</h4>'; 549 536 foreach ($c['items'] as $e_name=>$e_content) { … … 603 590 604 591 echo 605 '<p class="top-add"><a class="button add onblog_link" href="#comment-form">'.__('Add a comment').'</a></p>';592 '<p class="top-add"><a class="button add" href="#comment-form">'.__('Add a comment').'</a></p>'; 606 593 607 594 if ($has_action) {
Note: See TracChangeset
for help on using the changeset viewer.