* @author Ivo Jansch <*****@*****.**> * * @copyright (c)2000-2004 Ibuildings.nl BV * @license http://www.achievo.org/atk/licensing ATK Open Source License * * @version $Revision: 5036 $ * $Id: top.php 6354 2009-04-15 02:41:21Z mvdam $ */ /** * @internal includes. */ $config_atkroot = "./"; include_once "atk.inc"; atksession(); atksecure(); $page =& atkNew("atk.ui.atkpage"); $ui =& atkInstance("atk.ui.atkui"); $theme =& atkInstance("atk.ui.atktheme"); $output =& atkInstance("atk.ui.atkoutput"); $page->register_style($theme->stylePath("style.css")); $page->register_style($theme->stylePath("top.css")); $vars = array("logintext" => atkText("logged_in_as", "atk"), "logouttext" => ucfirst(atkText("logout", "atk")), "logoutlink" => "app.php?atklogout=1", "logouttarget" => "_top", "centerpiece" => "", "searchpiece" => "", "title" => atkText("app_title"), "user" => atkArrayNvl(atkGetUser(), "name")); // Backwards compatible $vars[content], that is what will render when the // box.tpl is used instead of a top.tpl. This happens in old themes. $contenttpl = '<br />[logintext]: <b>[user]</b> <a href="[logoutlink]" target="[logouttarget]">[logouttext] </a> <br /><br />'; $stringparser =& atkNew("atk.utils.atkstringparser", $contenttpl); $vars["content"] = $stringparser->parse($vars); $top = $ui->renderBox($vars, "top"); $page->addContent($top); $output->output($page->render($vars["title"], true)); $output->outputFlush();
<?php $config_atkroot = "./"; include_once "atk.inc"; atksession(); atksecure(); require "theme.inc"; $page =& atkinstance("atk.ui.atkpage"); $ui =& atkinstance("atk.ui.atkui"); $theme =& atkTheme::getInstance(); $output =& atkOutput::getInstance(); $page->register_style($theme->stylePath("style.css")); $tmp_output = ' <br> <br>You can find a manual on the wiki <a href="http://www.achievo.org/wiki/Achievo/Manual">http://www.achievo.org/wiki/Achievo/Manual</a>,. <br> '; $box = $ui->renderBox(array("title" => atkText("app_title"), "content" => $tmp_output)); $page->addContent($box); $output->output($page->render(atkText('app_title'), true)); $output->outputFlush();
<?php $config_atkroot = "./"; include_once "atk.inc"; atksession(); atksecure(); require "theme.inc"; $page =& atkinstance("atk.ui.atkpage"); $ui =& atkinstance("atk.ui.atkui"); $theme =& atkTheme::getInstance(); $output =& atkOutput::getInstance(); $page->register_style($theme->stylePath("style.css")); $license = file("doc/LICENSE"); $tmp_output = ""; for ($i = 0; $i < count($license); $i++) { $tmp_output .= '<br>' . str_replace("\f", "", $license[$i]); } $title = atkText('title_license'); $box = $ui->renderBox(array("title" => atkText("title_license"), "content" => $tmp_output)); $actionpage = $ui->render("actionpage.tpl", array("blocks" => array($box), "title" => $title)); $page->addContent($actionpage); $output->output($page->render($title, true)); $output->outputFlush();