function __construct() { parent::__construct(70, 180); $this->setSubStyle(Bgs1::BgWindow1); $this->setPosition(-150, 90, 0.1); $this->titleBg = new Quad(70, 70); $this->titleBg->setImage(Config::getInstance()->titleBgURL, true); $this->addCardElement($this->titleBg); $this->logo = new Icons128x128_1(16); $this->logo->setPosition(4, -38, 0.1); $this->logo->setSubStyle(Icons128x128_1::Vehicles); $this->addCardElement($this->logo); $this->title = new Label(46); $this->title->setPosition(22, -41, 0.1); $this->title->setStyle(Label::TextTitle1); $this->title->setScriptEvents(); $this->addCardElement($this->title); $this->subTitle = new Label(46); $this->subTitle->setPosition(22, -47.75, 0.1); $this->subTitle->setStyle(Label::TextSubTitle1); $this->addCardElement($this->subTitle); $this->quitButton = new Button(); $this->quitButton->setPosition(-1, -163.5, 0.1); $this->quitButton->text->setText('Back'); $this->quitButton->text->setStyle(Label::TextButtonNavBack); $this->quitButton->icon->setPosition(-8.5, -0.5, 0.1); $this->quitButton->icon->setStyle(Quad::Icons128x128_1); $this->quitButton->icon->setSubStyle(Icons128x128_1::BackFocusable); $this->quitButton->icon->setSize(11, 11); }
$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); $ui->setText(maniapress_html_filter(get_the_content()));