function doEndTag() { parent::doEndTag(); if (!(strpos($this->preferred_markup, 'wml') !== false && $this->link)) { $this->write('</b>'); } }
function doStartTag() { parent::doStartTag(); if ($this->getAncestorByClassName('wallelementblock') || $this->getAncestorByClassName('wallelementmenu') || $this->getAncestorByClassName('wallelementform')) { trigger_error("'hr' tag cannot be used inside a block, form or cool_menu tag (breaks XHTML validity and will produce an error on some browsers)", E_USER_ERROR); } if (strpos($this->preferred_markup, 'xhtmlmp') !== false) { $this->write('<hr'); if ($this->color) { $this->write(' color="' . $this->color . '" style="border-color: ' . $this->color . '; background-color: ' . $this->color . '"'); } $this->write('/>'); } else { if (strpos($this->preferred_markup, 'wml') !== false) { $this->write('<p>---</p>'); } else { if (strpos($this->preferred_markup, 'chtml') !== false) { $this->write('<hr'); if ($this->color) { $this->write(' color="' . $this->color . '"'); } $this->write('>'); } } } }
function doStartTag() { parent::doStartTag(); if (!$this->getAncestorByClassName('wallelementdocument')) { trigger_error("tag 'xmlpidtd' must be nested inside 'document' tag", E_USER_ERROR); } if (strpos($this->preferred_markup, 'xhtmlmp') !== false) { $this->writeln('<?xml version="1.0" encoding="UTF-8"?>'); if ($this->_wall->use_xhtml_extensions) { $this->write('<!DOCTYPE html PUBLIC "-//OPENWAVE//DTD XHTML Mobile 1.0//EN"'); $this->write(' "http://www.openwave.com/DTD/xhtml-mobile10.dtd">'); } else { $this->write('<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"'); $this->write(' "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">'); } } else { if (strpos($this->preferred_markup, 'chtml') !== false) { $this->write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD Compact HTML 1.0 Draft//EN">'); } else { if (strpos($this->preferred_markup, 'wml') !== false) { $this->writeln('<?xml version="1.0" encoding="UTF-8"?>'); if ($this->_wall->use_wml_extensions) { $this->write('<!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN" '); $this->write('"http://www.phone.com/dtd/wml11.dtd">'); } else { $this->write('<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" '); $this->write('"http://www.wapforum.org/DTD/wml_1.1.xml">'); } } } } }
function doEndTag() { parent::doEndTag(); if (strpos($this->preferred_markup, 'xhtmlmp') !== false) { $this->write('</style>'); } }
function doStartTag() { parent::doStartTag(); if (strpos($this->preferred_markup, 'xhtmlmp') !== false || strpos($this->preferred_markup, 'wml') !== false) { $this->write('<br/>'); } else { if (strpos($this->preferred_markup, 'chtml') !== false) { $this->write('<br>'); } } }
function doEndTag() { parent::doEndTag(); if (strpos($this->preferred_markup, 'xhtmlmp') !== false || strpos($this->preferred_markup, 'wml') !== false) { $this->write('</p>'); } else { if (strpos($this->preferred_markup, 'chtml') !== false && $this->align) { $this->write('</p>'); } } }
function doEndTag() { parent::doEndTag(); if (strpos($this->preferred_markup, 'xhtmlmp') !== false || strpos($this->preferred_markup, 'chtml') !== false) { $this->write('</title>'); } else { if (strpos($this->preferred_markup, 'wml') !== false) { $this->_wall->skip_body = true; } } $this->document->title = isset($this->cdata) ? $this->cdata : false; }
function doEndTag() { parent::doEndTag(); $this->href = TagUtil::normalizeHref($this->href, $this->preferred_markup); if (strpos($this->preferred_markup, 'xhtmlmp') !== false || strpos($this->preferred_markup, 'chtml') !== false) { $this->write('</h' . $this->level . '>'); } else { if (strpos($this->preferred_markup, 'wml') !== false) { $this->write('</b></p>'); # or should it be: $this->write('</b></p>'); ? } } }
function doStartTag() { parent::doStartTag(); if (!$this->getAncestorByClassName('wallelementdocument') || !$this->getAncestorByClassName('wallelementhead')) { trigger_error("tag 'menu_css' must be nested inside 'head' and 'document' tags", E_USER_ERROR); } $this->css_table_coloring = $this->_wall->getCapa('xhtml_supports_css_cell_table_coloring'); $this->table_for_layout = $this->_wall->getCapa('xhtml_supports_table_for_layout'); $this->bgcolor1 = $this->bgcolor1 ? $this->bgcolor1 : $this->_wall->getCapa('xhtml_readable_background_color1'); $this->bgcolor2 = $this->bgcolor2 ? $this->bgcolor2 : $this->_wall->getCapa('xhtml_readable_background_color2'); $this->_wall->menu_css_tag = true; if (strpos($this->preferred_markup, 'xhtmlmp') !== false && $this->css_table_coloring && $this->table_for_layout) { # if (!$this->bgcolor1) $this->bgcolor1 = '#99CCFF'; # if (!$this->bgcolor2) $this->bgcolor2 = '#FFFFFF'; $this->writeln('<style type="text/css">'); $this->writeln('.bgcolor1 { background-color: ' . $this->bgcolor1 . '; }'); $this->writeln('.bgcolor2 { background-color: ' . $this->bgcolor2 . '; }'); $this->writeln('</style>'); } }
function doEndTag() { parent::doEndTag(); if (strpos($this->preferred_markup, 'wml') !== false) { $this->write('<br/>'); } else { if ($this->perform_tabularization) { $this->write('</td>'); if ($this->cool_menu->isLastRowCell()) { $this->write('</tr>'); } } else { if (strpos($this->preferred_markup, 'chtml') !== false) { $this->write('<br>'); } else { $this->write('<br/>'); } } } }
function doStartTag() { parent::doStartTag(); if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL && TERA_WURFL_VERSION == 1) { $this->write('Device ID: ' . $this->_wall->wurfl->id); } else { $this->write('Device ID: ' . $this->_wall->wurfl->capabilities['id']); } if ($this->ua) { if (strpos($this->preferred_markup, 'chtml') !== false) { $this->writeln('<br>'); } else { $this->writeln('<br/>'); } if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL && TERA_WURFL_VERSION == 1) { $this->write('User agent (given): ' . $this->_wall->wurfl->user_agent); } else { $this->write('User agent (given): ' . $this->_wall->wurfl->userAgent); } } }
function doEndTag() { parent::doEndTag(); }
function doEndTag() { parent::doEndTag(); $this->write('</option>'); }
function doStartTag() { parent::doStartTag(); if (!$this->getAncestorByClassName('wallelementdocument')) { trigger_error("tag 'input' must be nested inside a 'document' tag", E_USER_ERROR); } if ($this->emptyok && $this->emptyok != 'emptyok') { trigger_error("Only admitted value for emptyok attribute (<input> tag) is 'emptyok'", E_USER_ERROR); } if ($this->type == 'submit') { if (strpos($this->preferred_markup, 'xhtmlmp') !== false) { $this->write('<input type="submit" name="' . $this->name . '" value="' . $this->value . '"/>'); } else { if (strpos($this->preferred_markup, 'chtml') !== false) { $this->write('<input type="submit" name="' . $this->name . '" value="' . $this->value . '">'); } else { if (strpos($this->preferred_markup, 'wml') !== false) { $this->writeln(''); if (!$this->wml13 && $this->softkey) { $this->writeln('<do type="accept" label="' . $this->value . '">'); } else { $this->writeln('<anchor>' . $this->value); } $this->write('<go href="' . $this->form->action . '"'); if ($this->form->method) { $this->write(' method="' . $this->form->method . '"'); } $this->writeln('>'); foreach ($this->form->fields as $field) { $this->write('<postfield name="' . $field['name'] . '" value="'); if ($field['type'] == 'hidden') { $this->write($field['value']); } else { $this->write('$' . $field['name']); } $this->writeln('" />'); } $this->writeln('</go>'); if (!$this->wml13 && $this->softkey) { $this->writeln('</do>'); } else { $this->writeln('</anchor>'); } } } } } else { if (strpos($this->preferred_markup, 'xhtmlmp') !== false) { $this->write('<input type="' . $this->type . '" name="' . $this->name . '" value="' . $this->value . '"'); $style = ''; if ($this->format) { if ($this->cssformat) { $style .= '-wap-input-format: '' . $this->format . ''; '; } else { if ($this->attributeformat) { $this->write(' format="' . $this->format . '"'); } } } if (!$this->emptyok) { if ($this->cssformat) { $style .= '-wap-input-required; '; } else { if ($this->attributeformat) { $this->write(' emptyok="emptyok"'); } } } if (strlen($style)) { $this->write(' style="' . trim($style) . '"'); } if ($this->title) { $this->write(' title="' . $this->title . '"'); } if ($this->accesskey) { $this->write(' accesskey="' . $this->accesskey . '"'); } if ($this->checked) { $this->write(' checked="' . $this->checked . '"'); } if ($this->disabled) { $this->write(' disabled="' . $this->disabled . '"'); } if ($this->maxlength) { $this->write(' maxlength="' . $this->maxlength . '"'); } if ($this->size) { $this->write(' size="' . $this->size . '"'); } if ($this->xhtmlClass) { $this->write(' class="' . $this->xhtmlClass . '"'); } if ($this->xhtmlId) { $this->write(' id="' . $this->xhtmlId . '"'); } $this->write('/>'); } else { if (strpos($this->preferred_markup, 'chtml') !== false) { $this->write('<input type="' . $this->type . '" name="' . $this->name . '" value="' . $this->value . '"'); $style = ''; if ($this->format && $this->type == 'text' && ($this->format == 'N*' || preg_match('/^N{1,}$/', $this->format))) { $this->write(' istyle="4"'); } if (strlen($style)) { $this->write(' style="' . trim($style) . '"'); } if ($this->title) { $this->write(' title="' . $this->title . '"'); } if ($this->accesskey) { $this->write(' accesskey="' . $this->accesskey . '"'); } if ($this->checked) { $this->write(' checked="' . $this->checked . '"'); } if ($this->disabled) { $this->write(' disabled="' . $this->disabled . '"'); } if ($this->maxlength) { $this->write(' maxlength="' . $this->maxlength . '"'); } if ($this->size) { $this->write(' size="' . $this->size . '"'); } $this->write('>'); } else { if (strpos($this->preferred_markup, 'wml') !== false) { $this->form->addField($this); if ($this->type != 'hidden') { $this->write('<input type="' . $this->type . '" name="' . $this->name . '" value="' . $this->value . '"'); if ($this->title) { $this->write(' title="' . $this->title . '"'); } if ($this->format) { $this->write(' format="' . $this->format . '"'); } if (!$this->emptyok) { $this->write(' emptyok="false"'); } if ($this->accesskey) { $this->write(' accesskey="' . $this->accesskey . '"'); } if ($this->maxlength) { $this->write(' maxlength="' . $this->maxlength . '"'); } if ($this->size) { $this->write(' size="' . $this->size . '"'); } $this->write('/>'); } } } } } }
function doEndTag() { parent::doEndTag(); if (strpos($this->preferred_markup, 'xhtmlmp') !== false) { if ($this->render_as == 'image') { $this->write('<img' . $this->css_hook . ' src="' . $this->src . '" '); if ($this->width) { $this->write('width="' . $this->width . '" '); } if ($this->height) { $this->write('height="' . $this->height . '" '); } $this->write('alt="' . $this->alt . '" />' . $this->xhtml_br); } else { if ($this->render_as == 'icon' && $this->_wall->use_xhtml_extensions) { $this->write('<img src="" alt="' . $this->alt . '" localsrc="' . $this->opwv_icon_localsrc . '"/>' . $this->xhtml_br); } } } else { if (strpos($this->preferred_markup, 'wml') !== false) { if ($this->render_as == 'image') { $this->write($this->opwv_icon_space . '<img src="' . $this->src . '" '); if ($this->width) { $this->write('width="' . $this->width . '" '); } if ($this->height) { $this->write('height="' . $this->height . '" '); } $this->write('alt="' . $this->alt . '" />'); } else { if ($this->render_as == 'icon' && $this->_wall->use_wml_extensions) { $this->write($this->opwv_icon_space . '<img src="" alt="' . $this->alt . '" localsrc="' . $this->opwv_icon_localsrc . '"/>'); } } } else { if (strpos($this->preferred_markup, 'chtml') !== false) { if ($this->render_as == 'image') { $this->write('<img src="' . $this->src . '" '); if ($this->width) { $this->write('width="' . $this->width . '" '); } if ($this->height) { $this->write('height="' . $this->height . '" '); } $this->write('alt="' . $this->alt . '" />' . $this->chtml_br); } else { if ($this->render_as == 'icon') { $region = $this->_wall->getCapa('imode_region'); if ($region == 'ja') { $this->write($this->imode_ja_icon . $this->chtml_br); } else { if ($region == 'eu') { $this->write($this->imode_eu_icon . $this->chtml_br); } } } } } } } }
function doEndTag() { parent::doEndTag(); //$this->write($this->preferred_markup); if (strpos($this->preferred_markup, 'xhtmlmp') !== false) { if ($this->_wall->menu_css_tag && $this->table_and_css_background && $this->colorize) { $this->write('</table>'); } else { if ($this->autonumber) { $this->write('</ol>'); } else { $this->write('</ul>'); } } } else { if (strpos($this->preferred_markup, 'chtml') !== false) { } else { if (strpos($this->preferred_markup, 'wml') !== false) { if ($this->wml_menu_with_select) { $this->write('</select>'); $this->write('</p>'); } else { $this->write('</p>'); } } } } }
function doStartTag() { parent::doStartTag(); if (strpos($this->preferred_markup, 'chtml') !== false) { $this->region = $this->_wall->getCapa('imode_region'); if ($this->test && $this->region == 'ja' && $this->ja_imode_icon) { $this->img->render_as = 'icon'; $this->img->imode_ja_icon = $this->ja_imode_icon; } else { if ($this->test && $this->region == 'eu' && $this->eu_imode_icon) { $this->img->render_as = 'icon'; $this->img->imode_eu_icon = $this->eu_imode_icon; } } } else { if (strpos($this->preferred_markup, 'xhtmlmp') !== false || strpos($this->preferred_markup, 'wml') !== false) { if ($this->test && $this->opwv_icon) { $this->img->render_as = 'icon'; $this->img->opwv_icon_localsrc = $this->opwv_icon; } } } }
function doEndTag() { parent::doEndTag(); if (strpos($this->preferred_markup, 'xhtmlmp') !== false) { if ($this->marquee_as_css) { $this->write('</div>'); } else { if ($this->nowrap_mode) { $this->write('</div>'); } } } else { if (strpos($this->preferred_markup, 'chtml') !== false) { $this->write('</marquee>'); } else { if (strpos($this->preferred_markup, 'wml') !== false) { //$this->write(''); } } } }
function doEndTag() { parent::doEndTag(); $this->write('</head>'); }
function doEndTag() { parent::doEndTag(); if (strpos($this->preferred_markup, 'xhtmlmp') !== false || strpos($this->preferred_markup, 'chtml') !== false) { $this->write('</body>'); $this->write('</html>'); } else { if (strpos($this->preferred_markup, 'wml') !== false) { $this->write('</card>'); $this->write('</wml>'); } } }
function doEndTag() { parent::doEndTag(); if (strpos($this->preferred_markup, 'xhtmlmp') !== false) { $this->write('</p></form>'); } else { if (strpos($this->preferred_markup, 'chtml') !== false) { $this->write('</form>'); } else { if (strpos($this->preferred_markup, 'wml') !== false && $this->enable_wml) { $this->write('</p>'); } } } }
function doEndTag() { parent::doEndTag(); if (strpos($this->preferred_markup, 'wml') !== false) { $this->write('</p>'); } else { if ($this->perform_tabularization) { $css_for_xhtml = strpos($this->preferred_markup, 'xhtmlmp') !== false ? ' class="coolmenu"' : ''; $start = $this->cellnumber % $this->colnum_int; if ($start != 1 && $this->colnum_int != 1) { if ($start == 0) { $this->write('<td' . $css_for_xhtml . '></td>'); } else { for ($i = $start; $i <= $this->colnum_int; $i++) { $this->write('<td' . $css_for_xhtml . '></td>'); } } $this->write('</tr>'); } $this->write('</table>'); } else { if (strpos($this->preferred_markup, 'xhtmlmp') !== false) { $this->write('</p>'); } } } }
function doEndTag() { parent::doEndTag(); if ($this->menu) { if (strpos($this->preferred_markup, 'xhtmlmp') !== false) { if ($this->fancy_ok) { $this->write('</a></td></tr>'); } else { $this->write('</a></li>'); } } else { if (strpos($this->preferred_markup, 'wml') !== false) { if ($this->wml_menu_with_select) { $this->write('</option>'); } else { $this->write('</a><br/>'); } } else { if (strpos($this->preferred_markup, 'chtml') !== false) { $this->write('</a><br>'); } } } } else { $this->write('</a>'); } }
function doEndTag() { parent::doEndTag(); $this->write('</select>'); }
function doEndTag() { parent::doEndTag(); if (strpos($this->preferred_markup, 'xhtmlmp') !== false) { if (strlen($this->style)) { $this->write('</span>'); } } else { if (strpos($this->preferred_markup, 'chtml') !== false) { if (strlen($this->font)) { $this->write('</font>'); } } } }