Exemplo n.º 1
0
ini_set('display_errors', '1');
include dirname(dirname(__FILE__)) . '/vendor/autoload.php';
use iMobile\Container;
use iMobile\Tag\Input;
use iMobile\Tag\Link;
use iMobile\Tag\Listview;
use iMobile\Tag\Page;
/**
 * Adding custom CSS
 * @package iMobile
 * @filesource
 */
/**
 * Create a new Php object.
 */
$iMobile = new Container();
/**
 * Adding custom CSS to head in iMobile
 */
$iMobile->head()->title('Custom CSS Example');
$iMobile->head()->add(new Link('custom.css'));
/**
 * Create a new page object.
 */
$p = new Page('custom-css');
$p->theme('b');
$p->title('Custom CSS Example');
$p->header()->theme('a');
$bt = $p->header()->addButton('', 'index.php', 'a', 'home', false, false, true);
$bt->rel('external')->attribute('data-iconpos', 'notext');
/**
Exemplo n.º 2
0
<?php

error_reporting(E_ALL);
ini_set('display_errors', '1');
include dirname(dirname(__FILE__)) . '/vendor/autoload.php';
use iMobile\Container;
use iMobile\Tag\Input;
use iMobile\Tag\Listview;
use iMobile\Tag\Page;
use iMobile\Tag\Script;
use iMobile\Tag;
/**
 * Create a new Php object.
 */
$iMobile = new Container();
/**
 * Adding custom JavaScript to head in iMobile
 */
$iMobile->head()->title('Custom JS Example');
$iMobile->head()->add(new Script('custom.js'));
/**
 * Create a new page object.
 */
$p = new Page('custom-js');
$p->theme('b');
$p->title('Custom JS Example');
$p->header()->theme('a');
$bt = $p->header()->addButton('', 'index.php', 'a', 'home', false, false, true);
$bt->rel('external')->attribute('data-iconpos', 'notext');
/**
 * Adding Content.