function smart_addStyle($src) { if ($src == 'smartobject') { $src = SMARTOBJECT_URL . 'module.css'; } echo smart_get_css_link($src); }
<?php /** * $Id: footer.php,v 1.1 2006/07/07 20:23:24 marcan Exp $ * Module: SmartShop * Author: The SmartFactory <www.smartfactory.ca> * Licence: GNU */ if (!defined("XOOPS_ROOT_PATH")) { die("XOOPS root path not defined"); } $uid = $xoopsUser ? $xoopsUser->getVar("uid") : 0; $xoopsTpl->assign("smartmail_adminpage", "<a href='" . XOOPS_URL . "/modules/smartmail/admin/index.php'>" . _CO_SOBJECT_ADMIN_PAGE . "</a>"); $xoopsTpl->assign("isAdmin", $smartmail_isAdmin); $xoopsTpl->assign('smartmail_url', SMARTMAIL_URL); $xoopsTpl->assign('smartmail_images_url', SMARTMAIL_IMAGES_URL); $xoopsTpl->assign("xoops_module_header", smart_get_css_link(SMARTMAIL_URL . 'module.css') . ' ' . smart_get_css_link(SMARTOBJECT_URL . 'module.css')); $xoopsTpl->assign("ref_smartfactory", "SmartMail is developed by The SmartFactory (http://smartfactory.ca), a division of InBox Solutions (http://inboxsolutions.net)");
/** * $Id: sendlink.php 159 2007-12-17 16:44:05Z malanciault $ * Module: SmartContent * Author: The SmartFactory <www.smartfactory.ca> * Licence: GNU */ include_once "header.php"; require_once SMARTOBJECT_ROOT_PATH . 'class/smartloader.php'; require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjectlink.php'; require_once XOOPS_ROOT_PATH . '/class/template.php'; $xoopsTpl = new XoopsTpl(); $myts =& MyTextSanitizer::getInstance(); $xoopsConfig['sitename'] = $myts->displayTarea($xoopsConfig['sitename']); xoops_header(false); echo smart_get_css_link(SMARTOBJECT_URL . 'module.css'); echo '</head><body>'; $smartobject_link_handler = xoops_getmodulehandler('link', 'smartobject'); $linkObj = $smartobject_link_handler->create(); $op = isset($_POST['op']) ? $_POST['op'] : ''; switch ($op) { case 'sendlink': include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php"; $controller = new SmartObjectController($smartobject_link_handler); $linkObj = $controller->storeSmartObject(); if ($linkObj->hasError()) { /** * @todo inform user and propose to close the window if a problem occured when saving the link */ } $xoopsMailer =& getMailer();