/** * Timestamp function for the theme resource */ function smarty_resource_theme_timestamp($tpl_name, &$tpl_timestamp, &$smarty) { $theme =& atkTheme::getInstance(); $path = $theme->tplPath($tpl_name); if (!empty($path)) { $tpl_timestamp = filemtime($path); return true; } else { return false; } }
* * @copyright (c)2000-2004 Ibuildings.nl BV * @license http://www.achievo.org/atk/licensing ATK Open Source License * * @version $Revision$ * $Id$ */ /** * @internal includes */ $config_atkroot = "./"; include_once "atk.inc"; atksession(); atksecure(); require "theme.inc"; atkimport("atk.ui.atktheme"); $output =& atkOutput::getInstance(); $page =& atkinstance("atk.ui.atkpage"); $page->unregister_all_scripts(); $theme =& atkTheme::getInstance(); $ui =& atkinstance("atk.ui.atkui"); /* general menu stuff */ /* load menu layout */ atkimport("atk.menu.atkmenu"); $menu =& atkMenu::getMenu(); if (is_object($menu)) { $output->output($menu->render()); } else { atkerror("no menu object created!"); } $output->outputFlush();