$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()));
$ui->save();
$ui = new \ManiaLib\Gui\Elements\Button();
$ui->setHalign('center');
$ui->setPosition(95, -105, 0.1);
$ui->setStyle(\ManiaLib\Gui\Elements\Button::CardButtonSmallWide);
$ui->setUrl(ManiaLib\Utils\URI::getCurrent());
$ui->setText('Read the full post on the Web');
$ui->save();
$categories = maniapress_get_categories(get_the_ID());
$tags = maniapress_get_tags(get_the_ID());
$metadata = sprintf('This entry was written by %s, posted on %s at %s, filed under %s and tagged %s.', get_the_author(), the_date('', '', '', false), get_the_time(), $categories, $tags);
$ui = new Label(190 / 1.25);
示例#2
0
 * @license     http://www.gnu.org/licenses/lgpl.html LGPL License 3
 * @version     $Revision$:
 * @author      $Author$:
 * @date        $Date$:
 */
use ManiaLib\Gui\Manialink;
use ManiaLib\Gui\Elements\Label;
Manialink::beginFrame(0, 0, 0, 1, new \ManiaLib\Gui\Layouts\Spacer(190, 29));
Manialink::setFrameId('post-' . get_the_ID());
$ui = new Label(190);
$ui->setStyle(Label::TextButtonMedium);
$ui->setText('$000' . maniapress_html_filter(the_title('', '', false)));
$ui->setManialink(get_permalink());
$ui->save();
$categories = maniapress_get_categories(get_the_ID());
$ui = new Label(190 / 1.25);
$ui->setScale(1.25);
$ui->setPosition(0, -4, 0);
$ui->setStyle(Label::TextButtonSmall);
$ui->setText('' . sprintf('Published %s %s', get_the_time('F j, Y'), $categories));
$ui->save();
// TODO MANIAPRESS Add comment count
$ui = new Label(190);
$ui->setPosition(0, -9);
$ui->enableAutonewline();
$ui->setMaxline(4);
$ui->setTextColor('000');
$ui->setTextSize(2);
$ui->setText(maniapress_html_filter(get_the_content('')));
$ui->save();
Manialink::endFrame();