$section .= ' <a class="claroCmd" href="' . htmlspecialchars(Url::Contextualize($_SERVER['PHP_SELF'] . '?introCmd=exMvDown&introId=' . $introId)) . '">' . '<img src="' . get_icon_url('move_down') . '" alt="' . get_lang('Move down') . '" />' . '</a>'; } // Visibility if ($introVisibility == 'SHOW') { $section .= '<a class="claroCmd" href="' . htmlspecialchars(Url::Contextualize($_SERVER['PHP_SELF'] . '?introCmd=mkInvisible&introId=' . $introId)) . '" title="' . get_lang('Click to make invisible') . '">'; $section .= '<img src="' . get_icon_url('visible') . '" alt="' . get_lang('Visible') . '" />'; $section .= '</a>' . "\n"; } else { $section .= '<a class="claroCmd" href="' . htmlspecialchars(Url::Contextualize($_SERVER['PHP_SELF'] . '?introCmd=mkVisible&introId=' . $introId)) . '" title="' . get_lang('Click to make visible') . '">'; $section .= '<img src="' . get_icon_url('invisible') . '" alt="' . get_lang('Invisible') . '" />'; $section .= '</a>' . "\n"; } $section .= '</div>' . "\n\n"; } if (!empty($section) || $intro_editAllowed) { $section = '<div class="claroIntroSection' . $cssClass . '">' . "\n" . $section; $section .= '</div>' . "\n\n"; } $output .= $section; } } // end foreach textIntroList } // end if count textIntroList > 0 if ($intro_dispCommand) { $output .= '<p>' . "\n" . '<a class="claroCmd" href="' . htmlspecialchars(Url::Contextualize($_SERVER['PHP_SELF'] . '?introCmd=rqAdd')) . '">' . '<img src="' . get_icon_url('textzone') . '" alt="" />' . get_lang('Add Text') . '</a>' . "\n" . '</p>' . "\n\n"; } } // end if intro_dispDefault clear_current_module_label(); echo $output;
public function render() { $claro_buffer = new ClaroBuffer(); $claro_buffer->append("\n" . '<!-- ' . $this->name . ' -->' . "\n"); foreach ($this->appletList as $applet) { set_current_module_label($applet['label']); pushClaroMessage('Current module label set to : ' . get_current_module_label(), 'debug'); // install course applet if (claro_is_in_a_course()) { install_module_in_course($applet['label'], claro_get_current_course_id()); } if ($applet['activation'] == 'activated' && file_exists($applet['path'])) { load_module_config(); Language::load_module_translation(); if ($this->useList() && count($this->appletList) > 0) { $claro_buffer->append("<li\n id=\"dock-" . $this->name . "-applet-" . $applet['label'] . "\"\n class=\"applet dock-" . $this->name . " applet-" . $applet['label'] . "\"><span>\n"); } else { $claro_buffer->append("<span\n id=\"dock-" . $this->name . "-applet-" . $applet['label'] . "\"\n class=\"applet dock-" . $this->name . " applet-" . $applet['label'] . "\">\n"); } include_once $applet['path']; if ($this->useList() && count($this->appletList) > 0) { $claro_buffer->append("\n</span></li>\n"); } else { $claro_buffer->append("\n</span>\n"); } } else { Console::debug("Applet not found or not activated : " . $applet['label']); } clear_current_module_label(); pushClaroMessage('Current module label set to : ' . get_current_module_label(), 'debug'); } $claro_buffer->append("\n" . '<!-- End of ' . $this->name . ' -->' . "\n"); return $claro_buffer->getContent(); }
$module_cache_filename = get_conf('module_cache_filename', 'moduleCache.inc.php'); $cacheRepositorySys = get_path('rootSys') . get_conf('cacheRepository', 'tmp/cache/'); if (!file_exists($cacheRepositorySys . $module_cache_filename)) { require_once get_path('incRepositorySys') . '/lib/module/manage.lib.php'; generate_module_cache(); } require_once get_path('incRepositorySys') . '/lib/lock.lib.php'; if (file_exists($cacheRepositorySys . $module_cache_filename)) { include $cacheRepositorySys . $module_cache_filename; } else { pushClaroMessage('module_cache not generated : check access right in ' . $cacheRepositorySys, 'warning'); } // reset current module label after calling the cache if (isset($tlabelReq) && get_current_module_label() != $tlabelReq) { // reset all previous occurence of module label in stack while (clear_current_module_label()) { } // set the current module label set_current_module_label($tlabelReq); } // Add feed RSS in header if (claro_is_in_a_course() && get_conf('enableRssInCourse', true)) { require claro_get_conf_repository() . 'rss.conf.php'; $claroline->display->header->addHtmlHeader('<link rel="alternate" type="application/rss+xml" title="' . claro_htmlspecialchars($_course['name'] . ' - ' . get_conf('siteName')) . '"' . ' href="' . get_path('url') . '/claroline/backends/rss.php?cidReq=' . claro_get_current_course_id() . '" />'); } // timezone debug code if (claro_debug_mode() && get_conf('clmain_serverTimezone', '')) { pushClaroMessage('timezone set to ' . date_default_timezone_get(), 'debug'); } if (claro_is_in_a_course() && isset($tlabelReq) && $tlabelReq == 'CLQWZ') { require_once get_path('incRepositorySys') . '/../exercise/lib/add_missing_table.lib.php';