public final function title() { // if ($this->isCached($this->id('title'))) { // return $this->get($this->id('title')); // } else { return parent::title(); // } }
<!DOCTYPE html> <html> <head> <title><?php echo Page::title(); ?> </title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Bootstrap --> <?php echo HTML::style('packages/devhook/devhook/bootstrap/css/bootstrap.min.css'); ?> <?php echo HTML::style('packages/devhook/devhook/font-awesome/css/font-awesome.min.css'); ?> <?php echo HTML::script('packages/devhook/devhook/js/jquery.js'); ?> <?php echo Page::head(); ?> </head> <body style="padding-top:70px"> <?php echo Page::bodyBegin(); ?> <div class="container">
/** * Adds a Page (page) to the pages collection of HTML Body element * * @param string $id * @param string $title * @param string $content * @param boolean * @return self|Page */ public function addBasicPage($id, $title, $content, $returnAdded = false) { $page = new Page($id); $page->title($title)->addContent($content); $this->html()->body()->addPage($page); if ($returnAdded === true) { return $page; } return $this; }
require_once $raiz . 'librerias/iMobile/Configuracion.cnf.php'; /** * Example 2 - Adding Pages * @package iMobile * @filesource */ /** * Create a new Php object. */ $j = new Container(); /** * Create a new Page object and populate it */ $p = new Page('example-2'); $p->theme('b'); $p->title('Example 2'); $p->header()->addButton('Example 1', 'example-1.php', 'a', 'arrow-l'); $p->header()->addButton('Example 3', 'example-3.php', 'b', 'arrow-r'); $p->header()->theme('a'); $p->addContent('<h1>Adding Pages</h1>'); $p->addContent('<p>In this example we create a Page,'); $p->addContent(' add content and Buttons to the Header.'); $p->addContent(' After we add the page to Container object.</p>'); $p->addContent('<a href="index.php" data-role="button" data-theme="a">Home</a>'); $p->addContent('<a href="example-3.php" data-role="button">Example 3</a>'); $p->footer()->title('Example 2 Footer'); $p->footer()->position('fixed'); $p->footer()->theme('a'); /** * Add the page to Container object. */
/** * Get Blog Post title * * <code> * echo Blog::getPostTitle(); * </code> * * @return string */ public static function getPostTitle() { return Page::title(); }
<?php Page::title('Магазин: Заказы'); ?> <?php $typeClass = array('' => '', '0' => '', '1' => 'active', '2' => 'active', '3' => '', '4' => ''); ?> <table class="table table-hover"> <thead> <tr> <th width="1"></th> <th width="1">Заказ</th> <th width="200">Заказчик</th> <th>Примечание</th> <th width="1">Время</th> <th width="1">Стоимость</th> <th width="1"></th> </tr> </thead> <?php $group = ''; foreach ($data as $row) { ?> <?php $statusColor = $row->orderStatus ? $row->orderStatus->color : ''; ?> <?php $statusIcon = $row->orderStatus ? $row->orderStatus->icon : ''; ?>
<?php Page::title('Магазин: Заказ №' . $order->id); ?> <div class="page-header row"> <div class="col-md-5"> <h2 style="margin: 0;"> Заказ <span class="text-muted">№</span><?php echo $order->id; ?> <i style="color:<?php echo $order->orderStatus->color; ?> " class="icon-<?php echo $order->orderStatus->icon; ?> icon-large"></i> <small><?php echo $order->orderStatus->title; ?> </small> </h2> </div> <div class="col-md-2 text-center"> <div class="btn-group"> <a href="<?php echo URL::previous();
* @filesource */ /** * Include the iMobile class. */ include '../lib/iMobile.php'; /** * Create a new Php object. */ $iMobile = new Php(); /** * Create a new page object. */ $p = new Page('simple-xml'); $p->theme('b'); $p->title('Cars'); $bt = $p->header()->addButton('', 'index.php', 'b', 'home', false, false, true); $bt->rel('external')->attribute('data-iconpos', 'notext'); /** * Adding Listview to page. */ $lv = $p->addContent(new Listviem(), true); $lv->filter(true); /** * Reading XML; */ $xml = @simplexml_load_file('cars.xml') or die("error loading xml file."); foreach ($xml->brandGroup as $brandGroup) { /** * Adding Dividers. */