Exemplo n.º 1
0
 function addSideWidgets($title)
 {
     global $wgUser, $wgLanguageCode;
     $skin = $wgUser->getSkin();
     if (ImageHelper::IMAGES_ON) {
         //first add related images
         $html = ImageHelper::getRelatedImagesWidget($title);
         if ($html != "") {
             $skin->addWidget($html);
         }
     }
     //first add image info
     $html = ImageHelper::getImageInfoWidget($title);
     if ($html != "") {
         $skin->addWidget($html);
     }
     if (ImageHelper::IMAGES_ON) {
         $html = ImageHelper::getRelatedWikiHowsWidget($title);
         if ($html != "") {
             $skin->addWidget($html);
         }
     }
 }