533 ); |
533 ); |
534 $s .= $lang->get('onpage_btn_deletepage_votes', $subst); |
534 $s .= $lang->get('onpage_btn_deletepage_votes', $subst); |
535 } |
535 } |
536 |
536 |
537 $menubtn->assign_vars(array( |
537 $menubtn->assign_vars(array( |
538 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxDeletePage()); return false; }" title="Delete this page. This is always reversible unless the logs are cleared. (alt-k)" accesskey="k"', |
538 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxDeletePage()); return false; }" title="' . $lang->get('onpage_tip_deletepage') . '" accesskey="k"', |
539 'HREF' => makeUrl($paths->page, 'do=deletepage', true), |
539 'HREF' => makeUrl($paths->page, 'do=deletepage', true), |
540 'TEXT' => $s, |
540 'TEXT' => $s, |
541 )); |
541 )); |
542 $this->toolbar_menu .= $menubtn->run(); |
542 $this->toolbar_menu .= $menubtn->run(); |
543 |
543 |
589 |
589 |
590 // Administer page button |
590 // Administer page button |
591 if ( $session->user_level >= USER_LEVEL_ADMIN && $paths->page_exists && $paths->namespace != 'Special' && $paths->namespace != 'Admin' ) |
591 if ( $session->user_level >= USER_LEVEL_ADMIN && $paths->page_exists && $paths->namespace != 'Special' && $paths->namespace != 'Admin' ) |
592 { |
592 { |
593 $menubtn->assign_vars(array( |
593 $menubtn->assign_vars(array( |
594 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxAdminPage()); return false; }" title="Administrative options for this page" accesskey="g"', |
594 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxAdminPage()); return false; }" title="' . $lang->get('onpage_tip_adminoptions') . '" accesskey="g"', |
595 'HREF' => makeUrlNS('Special', 'Administration', 'module='.$paths->nslist['Admin'].'PageManager', true), |
595 'HREF' => makeUrlNS('Special', 'Administration', 'module='.$paths->nslist['Admin'].'PageManager', true), |
596 'TEXT' => $lang->get('onpage_btn_admin'), |
596 'TEXT' => $lang->get('onpage_btn_admin'), |
597 )); |
597 )); |
598 $this->toolbar_menu .= $menubtn->run(); |
598 $this->toolbar_menu .= $menubtn->run(); |
599 } |
599 } |
600 |
600 |
601 if ( strlen($this->toolbar_menu) > 0 ) |
601 if ( strlen($this->toolbar_menu) > 0 ) |
602 { |
602 { |
603 $button->assign_vars(array( |
603 $button->assign_vars(array( |
604 'FLAGS' => 'id="mdgToolbar_moreoptions" onclick="if ( !KILL_SWITCH ) { return false; }" title="Additional options for working with this page"', |
604 'FLAGS' => 'id="mdgToolbar_moreoptions" onclick="if ( !KILL_SWITCH ) { return false; }" title="' . $lang->get('onpage_tip_moreoptions') . '"', |
605 'PARENTFLAGS' => '', |
605 'PARENTFLAGS' => '', |
606 'HREF' => makeUrl($paths->page, 'do=moreoptions', true), |
606 'HREF' => makeUrl($paths->page, 'do=moreoptions', true), |
607 'TEXT' => $lang->get('onpage_btn_moreoptions') |
607 'TEXT' => $lang->get('onpage_btn_moreoptions') |
608 )); |
608 )); |
609 $tb .= $button->run(); |
609 $tb .= $button->run(); |