function billboard_slides_show() { include_once ICMS_ROOT_PATH . '/modules/billboard/include/common.php'; $billboard_slide_handler = icms_getModuleHandler('slide', 'billboard'); $billboard_config = icms_getModuleConfig('billboard'); $criteria = new CriteriaCompo(); $criteria->setStart(0); $criteria->setLimit(10); $criteria->setSort('slide_order'); $criteria->setOrder('ASC'); $block = array(); $block['slides'] = $billboard_slide_handler->getObjects($criteria, true, false); $block['config'] = $billboard_config; return $block; }
/** * Gets the include ID if the module is in SEO format (otherwise nothing) * * @param mixed $moduleName Modulename if it is passed, otherwise false * @return mixed The module include ID otherwise nothing * @todo Move to a static class method - Module */ function icms_getModuleIncludeIdSEO($moduleName = false) { $icmsModule =& icms_getModuleInfo($moduleName); $icmsModuleConfig =& icms_getModuleConfig($moduleName); return !empty($icmsModuleConfig['seo_inc_id']); }
/** * */ public function getModuleConfig() { return icms_getModuleConfig($this->_moduleName); }
* @version $Id: common.php 20051 2010-08-28 16:30:42Z phoenyx $ */ defined("ICMS_ROOT_PATH") or die("ICMS root path not defined"); if (!defined("CONTENT_DIRNAME")) { define("CONTENT_DIRNAME", $modversion["dirname"] = basename(dirname(dirname(__FILE__)))); } if (!defined("CONTENT_URL")) { define("CONTENT_URL", ICMS_URL . "/modules/" . CONTENT_DIRNAME . "/"); } if (!defined("CONTENT_ROOT_PATH")) { define("CONTENT_ROOT_PATH", ICMS_ROOT_PATH . "/modules/" . CONTENT_DIRNAME . "/"); } if (!defined("CONTENT_IMAGES_URL")) { define("CONTENT_IMAGES_URL", CONTENT_URL . "images/"); } if (!defined("CONTENT_ADMIN_URL")) { define("CONTENT_ADMIN_URL", CONTENT_URL . "admin/"); } // Include the common language file of the module icms_loadLanguageFile("content", "common"); // Creating the module object to make it available throughout the module $contentModule = icms_getModuleInfo(CONTENT_DIRNAME); if (is_object($contentModule)) { $content_moduleName = $contentModule->getVar("name"); } // Find if the user is admin of the module and make this info available throughout the module $content_isAdmin = icms_userIsAdmin(CONTENT_DIRNAME); // Creating the module config array to make it available throughout the module $contentConfig = icms_getModuleConfig(CONTENT_DIRNAME); // creating the icmsPersistableRegistry to make it available throughout the module $icmsPersistableRegistry = icms_ipf_registry_Handler::getInstance();