Esempio n. 1
0
/**
 * Implements the {atkstyle} plugin for use in templates.
 *
 * The atkstyle plugin registers a stylesheet in the current page.
 * Useful for templates that have an associated stylesheet that should
 * be loaded each time the template is included.
 *
 * Params:
 * file   The path of the stylesheet, relative to the running scripts
 *        directory.
 * media  The stylesheet media.
 *
 * Example:
 * {atkstyle file="styles/default.css"}
 *
 * @author Ivo Jansch <*****@*****.**>
 *
 */
function smarty_function_atkstyle($params, &$smarty)
{
    $page =& atkPage::getInstance();
    $page->register_style($params["file"], $params["media"]);
    return "";
}
Esempio n. 2
0
<?php

atkPage::getInstance()->register_script(atkconfig('atkroot') . 'atk/javascript/overlibmws/overlibmws.js');
$theme = atkinstance("atk.ui.atktheme");
$image = $theme->imgPath("help");
$tooltip = atk_htmlentities(str_replace(array("\r\n", "\r", "\n"), ' ', $tooltip));
?>

<img align="top" src="<?php 
echo $image;
?>
" border="0" style="margin-left: 3px;"
     onmouseover="return overlib( & quot;<?php 
echo $tooltip;
?>
 & quot; , BGCLASS, 'overlib_bg', FGCLASS, 'overlib_fg', TEXTFONTCLASS, 'overlib_txt', WIDTH, 300);"
     onmouseout="return nd();"/>