padding: 0; margin: 0; } a { color: blue; text-decoration: none; } a:visited { color: blue; text-decoration: none; } </style> </head> <body> <div class="lang"><?php $pc = new PWEL_CONTROLLER(); print $lang . " | "; print ' <a href="' . $pc->validateLink("../docs") . '">' . $tr->translate("documentation") . '</a>'; ?> </div> <div class="centering"> <div><h1><?php print $tr->translate("welcome"); ?> </h1></div> <div class="subtext"><?php print $tr->translate("subtext"); ?> </div> </div> </body>
$pc = new PWEL_CONTROLLER(); $pr = new PWEL_ROUTING(); $db = new eDB("."); $select = new eDB_Select("docsdb", array("type" => "component")); foreach ($select->result as $row) { print '<li><a href="' . $pc->validateLink($row["url"]) . '">' . $row["name"] . '</a></li>'; if ($param == str_replace("/", "", $row["url"])) { $name = $row["name"]; } } ?> </ul> <div class="smalltitle">Browse Collection</div> <ul> <?php $pc = new PWEL_CONTROLLER(); $pr = new PWEL_ROUTING(); $db = new eDB("."); $select = new eDB_Select("docsdb", array("type" => "collection")); foreach ($select->result as $row) { print '<li><a href="' . $pc->validateLink($row["url"]) . '">' . $row["name"] . '</a></li>'; if ($param == str_replace("/", "", $row["url"])) { $name = $row["name"]; } } ?> </ul> </div> <div class="content"> <div class="smalltitle"><?php print $name;
/** * Adds css tag * * @param string $url */ public function addCss($url) { self::$methodCalls[] = array('method' => 'addCss', 'args' => array($url)); $c = new PWEL_CONTROLLER(); $head = $this->searchElements('head'); if ($head) { foreach ($head as $pos) { self::$data[$pos] = str_replace('</head>', $c->validateCss($url) . "\r\n" . '</head>', $this->data[$pos]); } } }