示例#1
0
 public function getRecBox()
 {
     global $wgUser;
     wfLoadExtensionMessages('Slider');
     if ($wgUser->getId() == 0 || !class_exists('RecommendationPresenter')) {
         return false;
     }
     $t = RecommendationPresenter::getRecommendation($wgUser);
     if (!$t) {
         return false;
     }
     $theBox = "<div id='sliderbox' class='sliderbox_08'>\n\t\t\t\t\t\t<div id='slider_thanks_08'>\n\t\t\t\t\t\t\t<a href='#' id='slider_close_button'></a>\n\t\t\t\t\t\t\t<div class='slider_become_main'>\n\t\t\t\t\t\t\t\t<p class='slider_editing_text'>Can you help edit...</p><a href=\"" . $t['url'] . "&action=edit\">" . str_replace('-', ' ', $t['page_title']) . "</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>";
     return $theBox;
 }