/** * The constructor takes care of the page contents. */ function __construct() { parent::__construct(); $text = 'this page intentionally left blank'; $this->set('title', $text); $link = ax_a_href($text, 'http://www.this-page-intentionally-left-blank.org/whythat.html', array('style' => 'color:black; text-decoration:none;')); $paragraph = ax_p($link, array('style' => 'position: absolute; right: 4em; bottom: 2em; font-size: small;')); $this->append($paragraph); }
function __construct() { /* Call the parent constructor */ AnewtPage::__construct(); /* Add stylesheets */ $this->add_stylesheet_href('style.css'); $this->add_stylesheet_href_media('print.css', 'print'); /* Link to an external JavaScript file */ $this->add_javascript_src('some-script.js'); /* Embed JavaScript code directly */ $this->add_javascript_content('function foo() { alert("foo"); }'); /* Provide a list of blocks */ $this->blocks = array('header', 'content', 'footer'); /* Set some default values */ $this->title = 'This is the default title'; }
function __construct() { parent::__construct(); $this->set('blocks', array('header', 'main', 'footer')); }
function __construct() { AnewtPage::__construct(); $this->blocks = array('header', 'content', 'footer'); }