/** * Render the feed and display it directly */ public function render() { icms::$logger->disableLogger(); //header ('Content-Type:text/xml; charset='._CHARSET); $xoopsOption['template_main'] = "db:system_rss.html"; $tpl = new icms_view_Tpl(); $tpl->assign('channel_title', $this->title); $tpl->assign('channel_link', $this->url); $tpl->assign('channel_desc', $this->description); $tpl->assign('channel_webmaster', $this->webMaster); $tpl->assign('channel_editor', $this->channelEditor); $tpl->assign('channel_category', $this->category); $tpl->assign('channel_generator', $this->generator); $tpl->assign('channel_language', $this->language); $tpl->assign('channel_lastbuild', $this->lastbuild); $tpl->assign('channel_copyright', $this->copyright); $tpl->assign('channel_width', $this->width); $tpl->assign('channel_height', $this->height); $tpl->assign('channel_ttl', $this->ttl); $tpl->assign('image_url', $this->image['url']); foreach ($this->feeds as $feed) { $tpl->append('items', $feed); } $tpl->display('db:system_rss.html'); }
$orig_img = WideImage::load(ICMS_IMANAGER_FOLDER_PATH . '/temp/' . $orig_img_name); } $img = array(); $img['name'] = $temp_img_name; $img['originalname'] = $original_image->getVar('image_name'); $img['id'] = $original_image->getVar('image_id'); $img['title'] = $original_image->getVar('image_nicename'); $img['url'] = ICMS_IMANAGER_FOLDER_URL . '/temp/' . $temp_img_name; $img['previewurl'] = ICMS_IMANAGER_FOLDER_URL . '/temp/' . $temp_img_name . '?' . time(); $img['originalurl'] = ICMS_IMANAGER_FOLDER_URL . '/temp/' . $orig_img_name; $img['path'] = ICMS_IMANAGER_FOLDER_PATH . '/temp/' . $temp_img_name; $img['width'] = $temp_img->getWidth(); $img['height'] = $temp_img->getHeight(); $img['size'] = icms_convert_size(filesize(ICMS_IMANAGER_FOLDER_PATH . '/temp/' . $temp_img_name)); $img['ori_width'] = $orig_img->getWidth(); $img['ori_height'] = $orig_img->getHeight(); $img['ori_size'] = icms_convert_size(filesize(ICMS_IMANAGER_FOLDER_PATH . '/temp/' . $orig_img_name)); $icmsTpl->assign('image', $img); #Getting the plugins for the editor $plugins_arr = icms_core_Filesystem::getDirList(ICMS_LIBRARIES_PATH . '/image-editor/plugins'); foreach ($plugins_arr as $plugin_folder) { if (file_exists(ICMS_LIBRARIES_PATH . '/image-editor/plugins/' . $plugin_folder . '/icms_plugin_version.php')) { if (file_exists(ICMS_LIBRARIES_PATH . '/image-editor/plugins/' . $plugin_folder . '/language/' . $icmsConfig['language'] . '/main.php')) { include_once ICMS_LIBRARIES_PATH . '/image-editor/plugins/' . $plugin_folder . '/language/' . $icmsConfig['language'] . '/main.php'; } include_once ICMS_LIBRARIES_PATH . '/image-editor/plugins/' . $plugin_folder . '/icms_plugin_version.php'; $icmsTpl->append('plugins', $plugversion); unset($plugversion); } } echo $icmsTpl->fetch(ICMS_LIBRARIES_PATH . '/image-editor/templates/image-editor.html');