static function displayErrorPage() { Manialink::load(); Manialink::beginFrame(-70, 35, 0.1); $ui = new Bgs1InRace(143, 63); $ui->setSubStyle(Bgs1InRace::Shadow); $ui->save(); $ui = new \ManiaLib\Gui\Elements\Quad(140, 60); $ui->setPosition(1.5, -1.5, 0.1); $ui->setBgcolor('fffe'); $ui->save(); $ui = new Label(110); $ui->setPosition(6, -6, 0.2); $ui->setStyle(Label::TextButtonMedium); $ui->setText('' . 'Please update maniaplanet'); $ui->save(); $ui = new Label(131); $ui->setPosition(6, -13, 0.2); $ui->enableAutonewline(); $ui->setStyle(Label::TextTips); $ui->setText('You cannot display this content because your Maniaplanet ' . 'version is not up-to-date. Please update Maniaplanet to ' . 'the latest version. While it should be automatic, you can ' . 'find help and more information on the Maniaplanet Wiki: '); $ui->save(); $ui = new Label(131); $ui->setAlign('center', 'center'); $ui->setPosition(71.5, -35, 0.2); $ui->setStyle(Label::TextChallengeNameMedalNone); $ui->setUrl('http://wiki.maniaplanet.com/en/Changelog'); $ui->setText('wiki.maniaplanet.com/en/Changelog'); $ui->save(); $ui = new Label(131); $ui->setValign('bottom'); $ui->setPosition(5, -57, 0.2); $ui->enableAutonewline(); $ui->setStyle(Label::TextTips); $ui->setText('Thank you for your understanding,' . "\n" . 'Nadeo Team'); $ui->save(); Manialink::endFrame(); Manialink::render(); }
Manialink::setFrameId('post-' . get_the_ID()); $ui = new Label(190); $ui->setScale(1.5); $ui->setStyle(Label::TextButtonBig); $ui->setText('$000' . maniapress_html_filter(the_title('', '', false))); // $ui->save(); Manialink::beginFrame(153, 1, 0.1); $ui = new ManiaLib\Gui\Elements\Bgs1(30, 7); $ui->setSubStyle(ManiaLib\Gui\Elements\Bgs1::BgList); $ui->save(); $ui = new Label(23); $ui->setPosition(2, -2, 0.1); $ui->setText(maniapress_get_comments_number()); $ui->setStyle(Label::TextButtonMedium); $ui->setUrl(ManiaLib\Utils\URI::getCurrent()); $ui->setScriptEvents(); $ui->setId('comments-count'); $ui->save(); UI::tooltip('comments-count', 'Read the comments on the Web'); $ui = new \ManiaLib\Gui\Elements\BgRaceScore2(13, 13); $ui->setPosition(25, 1.75, 0.1); $ui->setSubStyle(\ManiaLib\Gui\Elements\BgRaceScore2::Speaking); $ui->save(); Manialink::endFrame(); $ui = new Label(190); $ui->setPosition(0, -12); $ui->enableAutonewline(); $ui->setMaxline(21); $ui->setTextColor('000'); $ui->setTextSize(2);