Example #1
0
 /**
  * This function is responsible for building
  * the header block that lives at the top
  * of every page.
  *
  * @return HTMLtag object.
  */
 function header_block()
 {
     $header = html_div('pageheader');
     $header->add(html_comment('HEADER BLOCK AREA'));
     $logo = html_a('/', html_img('/images/OnYourMarksWhite_080x066.png'), null, null, 'Home');
     $logo->set_style('headerimage');
     $header->add($logo, html_h2(FT_PAGE_HEADER), html_h4(FT_PAGE_SUBHEADER));
     return $header;
 }
 /**
  * Define la estructura global de la página
  *
  */
 function body_content()
 {
     $this->set_body_attributes("bgcolor=\"yellow\"");
     //add the header area
     $this->add(html_comment("Header block begins"));
     $this->add($this->header_block());
     $this->add(html_comment("Header block ends"));
     //add it to the page
     //build the outer wrapper div
     //that everything will live under
     $wrapper_div = html_div();
     $wrapper_div->set_id("mainarea");
     //add the main body
     $wrapper_div->add(html_comment("Main block begins"));
     NLS::setTextdomain($this->registry->gettextDomain(), Util::formatPath(MIGUELGETTEXT_DIR), NLS::getCharset());
     $wrapper_div->add($this->main_block());
     $wrapper_div->add(html_comment("Main block ends"));
     $this->add($wrapper_div);
 }