function input($typ, $attr, $arg) { $i = new Topas_tag(); $attr = array_merge($attr, array('type', 'value')); $arg['type'] = $typ; $i->single('input', $attr, $arg); return $i; }
function application_banner($controller, $service, $modul) { $tag = new Topas_tag(); list($modul, $data) = $controller->needs("application/banner"); if (isset($data['modul'])) { $modul = $data['modul']; } $data["src"] = $controller->media($data["src"], $modul); $img = $tag->img($data); return $img->get(); }
<?php if (strstr(__FILE__, $_SERVER['PHP_SELF'])) { require '../../../core/protect.php'; } list($controller, $service, $modul) = $IN; $bg1 = $controller->media('bgstart.jpg', 'yw_start'); $tag = new Topas_tag(); $common = 'position: absolute; height: 1600px; top: 0px; z-index: 0; '; $left = $tag->div(array('id' => 'site-bg-left', 'style' => "{$common} width: 50%; left: 0px; background-color: #ffffce;")); $rigd = $tag->div(array('id' => 'site-bg-right', 'style' => "{$common} width: 50%; left: 50%; background-color: #ff6702;")); $midl = $tag->div(array('id' => 'site-bg-middle', 'style' => "{$common} width: 800px; left: 12%; background: url(" . $bg1 . "); text-align: center;")); $midl->pp($controller->service("application/banner", "yw_start", 1)); foreach (array($left, $rigd, $midl) as $s) { $f[] = $s->get(); } $OUT = <<<EOT <!-- Hintergrund --> {$f['0']} {$f['1']} {$f['2']} <!-- /Hintergrund --> EOT ;