Feature #347 - Code cleaning for the common banner.

skala
Ivan Tcholakov 16 years ago
parent dd95a1bb0a
commit c6e0f2bb91
  1. 6
      main/admin/configure_homepage.php
  2. 2
      main/auth/inscription.php
  3. 216
      main/inc/banner.inc.php

@ -2,9 +2,7 @@
/* For licensing terms, see /license.txt */
$language_file = array('admin', 'accessibility');
$cidReset = true;
require '../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
@ -77,7 +75,7 @@ if (!empty($_SESSION['user_language_choice'])) {
$lang = api_get_setting('platformLanguage');
}
// ----- Ensuring availability of main files in the corresponding language -----
// Ensuring availability of main files in the corresponding language
if ($_configuration['multiple_access_urls']) {
$access_url_id = api_get_current_access_url_id();
@ -85,7 +83,7 @@ if ($_configuration['multiple_access_urls']) {
$url_info = api_get_access_url($access_url_id);
$url = api_remove_trailing_slash(preg_replace('/https?:\/\//i', '', $url_info['url']));
$clean_url = replace_dangerous_char($url);
$clean_url = str_replace('/','-',$clean_url);
$clean_url = str_replace('/', '-', $clean_url);
$clean_url .= '/';
$homep = api_get_path(SYS_PATH).'home/'; //homep for Home Path

@ -60,7 +60,7 @@ if ($_configuration['multiple_access_urls']) {
$url_info = api_get_access_url($access_url_id);
$url = api_remove_trailing_slash(preg_replace('/https?:\/\//i', '', $url_info['url']));
$clean_url = replace_dangerous_char($url);
$clean_url = str_replace('/','-',$clean_url);
$clean_url = str_replace('/', '-', $clean_url);
$clean_url .= '/';
$home_old = api_get_path(SYS_PATH).'home/';
$home = api_get_path(SYS_PATH).'home/'.$clean_url;

@ -1,16 +1,15 @@
<?php
/* For licensing terms, see /chamilo_license.txt */
require_once api_get_path(SYS_CODE_PATH).'/inc/lib/banner.lib.php';
/* For licensing terms, see /dokeos_license.txt */
/**
==============================================================================
* This script contains the actual html code to display the "header"
* or "banner" on top of every Dokeos page.
*
* @package dokeos.include
==============================================================================
*/
* This script contains the actual html code to display the "header"
* or "banner" on top of every Dokeos page.
*
* @package chamilo.include
*/
require_once api_get_path(SYS_CODE_PATH).'/inc/lib/banner.lib.php';
$session_id = api_get_session_id();
$session_name = api_get_session_name($my_session_id);
?>
@ -31,39 +30,33 @@ $session_name = api_get_session_name($my_session_id);
</div>
<?php
/*
-----------------------------------------------------------------------------
Course title section
-----------------------------------------------------------------------------
*/
if (!empty($_cid) and $_cid != -1 and isset($_course)) {
//Put the name of the course in the header
?>
<div id="my_courses"><a href="<?php echo api_get_path(WEB_COURSE_PATH).$_course['path']; ?>/index.php" target="_top">
<?php
echo $_course['name']." ";
/*echo '
<div id="my_courses">
<a href="'.api_get_path(WEB_COURSE_PATH).$_course['path'].'/index.php" target="_top">'.$_course['name'].' ';*/
if (api_get_setting("display_coursecode_in_courselist") == "true") {
echo $_course['name'].' ';
if (api_get_setting('display_coursecode_in_courselist') == 'true') {
echo $_course['official_code'];
}
if(api_get_setting("use_session_mode") == "true" && isset($_SESSION['session_name'])) {
if (api_get_setting('use_session_mode') == 'true' && isset($_SESSION['session_name'])) {
echo '&nbsp;('.$_SESSION['session_name'].')&nbsp;';
}
if (api_get_setting("display_coursecode_in_courselist") == "true" AND api_get_setting("display_teacher_in_courselist") == "true") {
echo " - ";
if (api_get_setting('display_coursecode_in_courselist') == 'true' && api_get_setting('display_teacher_in_courselist') == 'true') {
echo ' - ';
}
if (api_get_setting("display_teacher_in_courselist") == "true") {
if (api_get_setting('display_teacher_in_courselist') == 'true') {
echo stripslashes($_course['titular']);
}
echo "</a></div>";
} elseif (isset ($nameTools) && $language_file != 'course_home') {
echo '</a></div>';
} elseif (isset($nameTools) && $language_file != 'course_home') {
//Put the name of the user-tools in the header
if (!isset ($_user['user_id'])) {
if (!isset($_user['user_id'])) {
echo '<div id="my_courses"></div>';
} elseif(!$noPHP_SELF) {
echo "<div id=\"my_courses\"><a href=\"".api_get_self()."?".api_get_cidreq(), "\" target=\"_top\">", $nameTools, "</a></div>", "\n";
} elseif (!$noPHP_SELF) {
echo '<div id="my_courses"><a href="'.api_get_self().'?'.api_get_cidreq(), '" target="_top">', $nameTools, '</a></div>', "\n";
} else {
echo '<div id="my_courses">'.$nameTools.'</div>';
}
@ -74,28 +67,23 @@ if (!empty($_cid) and $_cid != -1 and isset($_course)) {
echo '<div class="clear">&nbsp;</div>';
/*
-----------------------------------------------------------------------------
Plugins for banner section
-----------------------------------------------------------------------------
*/
api_plugin('header');
$web_course_path = api_get_path(WEB_COURSE_PATH);
/*
-----------------------------------------------------------------------------
External link section
-----------------------------------------------------------------------------
*/
if (isset($_course['extLink']) && $_course['extLink']['name'] != "") {
echo "<span class=\"extLinkSeparator\"> / </span>";
if ($_course['extLink']['url'] != "") {
echo "<a class=\"extLink\" href=\"".$_course['extLink']['url']."\" target=\"_top\">";
if (isset($_course['extLink']) && $_course['extLink']['name'] != '') {
echo '<span class="extLinkSeparator"> / </span>';
if ($_course['extLink']['url'] != '') {
echo '<a class="extLink" href="'.$_course['extLink']['url'].'" target="_top">';
echo $_course['extLink']['name'];
echo "</a>";
echo '</a>';
} else {
echo $_course['extLink']['name'];
}
}
?>
</div>
@ -103,28 +91,28 @@ if (isset($_course['extLink']) && $_course['extLink']['name'] != "") {
<div id="Header2Right">
<ul>
<?php
if ((api_get_setting('showonline','world') == "true" AND !$_user['user_id']) OR (api_get_setting('showonline','users') == "true" AND $_user['user_id']) OR (api_get_setting('showonline','course') == "true" AND $_user['user_id'] AND $_cid)) {
if (api_get_setting("use_session_mode") == "true" && isset($_user['user_id']) && api_is_coach()) {
if ((api_get_setting('showonline', 'world') == 'true' AND !$_user['user_id']) OR (api_get_setting('showonline', 'users') == 'true' AND $_user['user_id']) OR (api_get_setting('showonline', 'course') == 'true' AND $_user['user_id'] AND $_cid)) {
if (api_get_setting('use_session_mode') == 'true' && isset($_user['user_id']) && api_is_coach()) {
echo '<li><a href="'.api_get_path(WEB_PATH).'whoisonlinesession.php?id_coach='.$_user['user_id'].'&amp;referer='.urlencode($_SERVER['REQUEST_URI']).'" target="_top">'.get_lang('UsersConnectedToMySessions').'</a></li>';
}
$number = count(WhoIsOnline(api_get_setting('time_limit_whosonline')));
if(!empty($_course['id'])) {
$online_in_course = who_is_online_in_this_course(api_get_user_id(), api_get_setting('time_limit_whosonline'), $_course['id']);
$number_online_in_course= count( $online_in_course );
$number_online_in_course = count($online_in_course);
} else {
$number_online_in_course = 0;
}
echo "<li>";
echo '<li>';
// Display the who's online of the platform
if ((api_get_setting('showonline','world') == "true" AND !$_user['user_id']) OR (api_get_setting('showonline','users') == "true" AND $_user['user_id'])) {
if ((api_get_setting('showonline', 'world') == 'true' AND !$_user['user_id']) OR (api_get_setting('showonline', 'users') == 'true' AND $_user['user_id'])) {
//echo '<a href="'.api_get_path(WEB_PATH).'whoisonline.php" target="_top">'.$number.'</a>';
echo '<a href="'.api_get_path(WEB_PATH).'whoisonline.php" target="_top">'.get_lang('UsersOnline').': '.$number.'</a>';
}
// Display the who's online for the course
if (is_array($_course) AND api_get_setting('showonline','course') == "true" AND isset($_course['sysCode'])) {
echo "(<a href='".api_get_path(WEB_PATH)."whoisonline.php?cidReq=".$_course['sysCode']."' target='_top'>$number_online_in_course ".get_lang('InThisCourse')."</a>)";
if (is_array($_course) AND api_get_setting('showonline', 'course') == 'true' AND isset($_course['sysCode'])) {
echo '(<a href="'.api_get_path(WEB_PATH).'whoisonline.php?cidReq='.$_course['sysCode'].'" target="_top">'.$number_online_in_course.' '.get_lang('InThisCourse').'</a>)';
}
echo '</li>';
}
@ -136,13 +124,13 @@ if ($_user['user_id'] && isset($_cid)) {
echo '</li>';
}
}
if ( api_is_allowed_to_edit() ) {
if(!empty($help)) {
if (api_is_allowed_to_edit()) {
if (!empty($help)) {
// Show help
?>
<li>|
<a href="#" onclick="MyWindow=window.open('<?php echo api_get_path(WEB_CODE_PATH)."help/help.php"; ?>?open=<?php echo $help; ?>','MyWindow','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=620,height=600,left=200,top=20'); return false;">
<img src="<?php echo api_get_path(WEB_CODE_PATH); ?>img/khelpcenter.gif" style="vertical-align: middle;" alt="<?php echo get_lang("Help") ?>"/>&nbsp;<?php echo get_lang("Help") ?></li></a>
<a href="#" onclick="MyWindow=window.open('<?php echo api_get_path(WEB_CODE_PATH).'help/help.php'; ?>?open=<?php echo $help; ?>','MyWindow','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=620,height=600,left=200,top=20'); return false;">
<img src="<?php echo api_get_path(WEB_CODE_PATH); ?>img/khelpcenter.gif" style="vertical-align: middle;" alt="<?php echo get_lang('Help'); ?>"/>&nbsp;<?php echo get_lang('Help'); ?></li></a>
<?php
}
@ -156,9 +144,7 @@ if ( api_is_allowed_to_edit() ) {
<div id="header3">
<?php
/*
-----------------------------------------------------------------------------
User section
-----------------------------------------------------------------------------
*/
if ($_user['user_id']) {
$login = '';
@ -247,7 +233,7 @@ if ($_user['user_id'] && !api_is_anonymous()) {
// Dashboard
if (api_get_setting('show_tabs', 'dashboard') == 'true') {
if (api_is_platform_admin() || $_user['status']==DRH) {
if (api_is_platform_admin() || $_user['status'] == DRH) {
$navigation['dashboard'] = $possible_tabs['dashboard'];
}
} else{
@ -255,7 +241,7 @@ if ($_user['user_id'] && !api_is_anonymous()) {
}
// Administration
if(api_is_platform_admin(true)) {
if (api_is_platform_admin(true)) {
if (api_get_setting('show_tabs', 'platform_administration') == 'true') {
$navigation['platform_admin'] = $possible_tabs['platform_admin'];
} else {
@ -265,36 +251,35 @@ if ($_user['user_id'] && !api_is_anonymous()) {
}
// Displaying the tabs
foreach($navigation as $section => $navigation_info) {
if(isset($GLOBALS['this_section'])) {
$current = ($section == $GLOBALS['this_section'] ? ' id="current"' : '');
foreach ($navigation as $section => $navigation_info) {
if (isset($GLOBALS['this_section'])) {
$current = $section == $GLOBALS['this_section'] ? ' id="current"' : '';
} else {
$current = '';
}
echo '<li'.$current.'><a href="'.$navigation_info['url'].'" target="_top"><span id="tab_active">'.$navigation_info['title'].'</span></a></li>'."\n";
}
/*********************/
$lang = ''; //el for "Edit Language"
if(!empty($_SESSION['user_language_choice'])) {
$lang=$_SESSION['user_language_choice'];
} elseif(!empty($_SESSION['_user']['language'])) {
$lang=$_SESSION['_user']['language'];
if (!empty($_SESSION['user_language_choice'])) {
$lang = $_SESSION['user_language_choice'];
} elseif (!empty($_SESSION['_user']['language'])) {
$lang = $_SESSION['_user']['language'];
} else {
$lang=get_setting('platformLanguage');
$lang = get_setting('platformLanguage');
}
if ($_configuration['multiple_access_urls']==true) {
if ($_configuration['multiple_access_urls']) {
$access_url_id = api_get_current_access_url_id();
if ($access_url_id != -1){
if ($access_url_id != -1) {
$url_info = api_get_access_url($access_url_id);
//$url = substr($url_info['url'],7,strlen($url_info['url'])-8);
$url = api_remove_trailing_slash(preg_replace('/https?:\/\//i', '', $url_info['url']));
$clean_url = replace_dangerous_char($url);
$clean_url = str_replace('/','-',$clean_url);
$clean_url = str_replace('/', '-', $clean_url);
$clean_url .= '/';
$homep = '../../home/'; //homep for Home Path
$homep_new = '../../home/'.$clean_url; //homep for Home Path added the url
$homep = api_get_path(SYS_PATH).'home/'; //homep for Home Path
$homep_new = api_get_path(SYS_PATH).'home/'.$clean_url; //homep for Home Path added the url
$new_url_dir = api_get_path(SYS_PATH).'home/'.$clean_url;
//we create the new dir for the new sites
if (!is_dir($new_url_dir)){
@ -302,49 +287,46 @@ if ($_configuration['multiple_access_urls']==true) {
}
}
} else {
$homep_new ='';
$vv = explode('/', api_get_self());
if(count($vv) > 2) $homep = '../../home/';
else $homep = 'home/';
$homep_new = '';
$homep = api_get_path(SYS_PATH).'home/';
}
$ext = '.html';
$menutabs = 'home_tabs';
if(is_file($homep.$menutabs.'_'.$lang.$ext) && is_readable($homep.$menutabs.'_'.$lang.$ext)) {
$home_top=file_get_contents($homep.$menutabs.'_'.$lang.$ext);
} elseif(is_file($homep.$menutabs.$lang.$ext) && is_readable($homep.$menutabs.$lang.$ext)) {
$home_top=file_get_contents($homep.$menutabs.$lang.$ext);
if (is_file($homep.$menutabs.'_'.$lang.$ext) && is_readable($homep.$menutabs.'_'.$lang.$ext)) {
$home_top = file_get_contents($homep.$menutabs.'_'.$lang.$ext);
} elseif (is_file($homep.$menutabs.$lang.$ext) && is_readable($homep.$menutabs.$lang.$ext)) {
$home_top = file_get_contents($homep.$menutabs.$lang.$ext);
} else {
$errorMsg=get_lang('HomePageFilesNotReadable');
$errorMsg = get_lang('HomePageFilesNotReadable');
}
if(api_get_self() != '/main/admin/configure_homepage.php') {
if(file_exists($homep.$menutabs.'_'.$lang.$ext)) {
$home_top_temp=file_get_contents($homep.$menutabs.'_'.$lang.$ext);
if (api_get_self() != '/main/admin/configure_homepage.php') {
if (file_exists($homep.$menutabs.'_'.$lang.$ext)) {
$home_top_temp = file_get_contents($homep.$menutabs.'_'.$lang.$ext);
} else if (file_exists($homep.$menutabs.$ext)) {
$home_top_temp=file_get_contents($homep.$menutabs.$ext);
$home_top_temp = file_get_contents($homep.$menutabs.$ext);
}
$open=str_replace('{rel_path}',api_get_path(REL_PATH),$home_top_temp);
$open = str_replace('{rel_path}',api_get_path(REL_PATH), $home_top_temp);
echo $open;
} else {
$home_menu = '';
if(file_exists($homep.$menutabs.'_'.$lang.$ext)) {
if (file_exists($homep.$menutabs.'_'.$lang.$ext)) {
$home_menu = file($homep.$menutabs.'_'.$lang.$ext);
} else {
$home_menu = file ($homep.$menutabs.$ext);
$home_menu = file($homep.$menutabs.$ext);
}
foreach($home_menu as $key=>$enreg) {
$enreg=trim($enreg);
if(!empty($enreg)) {
$edit_link='<a href="'.api_get_self().'?action=edit_tabs&amp;link_index='.$key.'" ><span>'.Display::return_icon('edit.gif', get_lang('Edit')).'</span></a>';
$delete_link='<a href="'.api_get_self().'?action=delete_tabs&amp;link_index='.$key.'" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,$charset)).'\')) return false;"><span>'.Display::return_icon('delete.gif', get_lang('Delete')).'</span></a>';
foreach ($home_menu as $key => $enreg) {
$enreg = trim($enreg);
if (!empty($enreg)) {
$edit_link = '<a href="'.api_get_self().'?action=edit_tabs&amp;link_index='.$key.'" ><span>'.Display::return_icon('edit.gif', get_lang('Edit')).'</span></a>';
$delete_link = '<a href="'.api_get_self().'?action=delete_tabs&amp;link_index='.$key.'" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,$charset)).'\')) return false;"><span>'.Display::return_icon('delete.gif', get_lang('Delete')).'</span></a>';
$tab_string = str_replace(array('href="'.api_get_path(WEB_PATH).'index.php?include=','</li>'),array('href="'.api_get_path(WEB_CODE_PATH).'admin/'.basename(api_get_self()).'?action=open_link&link=',''.$edit_link.$delete_link.'</li>'),$enreg);
echo $tab_string;
}
}
echo '<li id="insert-link"> <a href="'.api_get_self().'?action=insert_tabs" style="padding-right:0px;"><span>'. Display::return_icon('insert_row.png', get_lang('InsertLink'),array('style'=>'vertical-align:middle')).' '.get_lang('InsertLink').'</span></a></li>';
echo '<li id="insert-link"> <a href="'.api_get_self().'?action=insert_tabs" style="padding-right:0px;"><span>'. Display::return_icon('insert_row.png', get_lang('InsertLink'), array('style' => 'vertical-align:middle')).' '.get_lang('InsertLink').'</span></a></li>';
}
/*********************/
//Header about the tabs
if ($_self == 'admin_intro_edition_page')
?>
@ -357,29 +339,29 @@ if ($_self == 'admin_intro_edition_page')
*/
$navigation = array();
// part 1: Course Homepage. If we are in a course then the first breadcrumb is a link to the course homepage
//hide_course_breadcrumb the parameter has been added to hide the name of the course, that appeared in the default $interbreadcrumb
$my_session_name= ($session_name==null) ? '' : '&nbsp;('.$session_name.')';
if (isset ($_cid) and $_cid!=-1 and isset($_course) and !isset($_GET['hide_course_breadcrumb'])) {
$navigation_item['url'] = $web_course_path . $_course['path'].'/index.php'.(!empty($session_id)?'?id_session='.$session_id:'');
switch(api_get_setting('breadcrumbs_course_homepage')) {
// hide_course_breadcrumb the parameter has been added to hide the name of the course, that appeared in the default $interbreadcrumb
$my_session_name = is_null($session_name) ? '' : '&nbsp;('.$session_name.')';
if (isset ($_cid) and $_cid != -1 and isset($_course) and !isset($_GET['hide_course_breadcrumb'])) {
$navigation_item['url'] = $web_course_path . $_course['path'].'/index.php'.(!empty($session_id) ? '?id_session='.$session_id : '');
switch (api_get_setting('breadcrumbs_course_homepage')) {
case 'get_lang':
$navigation_item['title'] = get_lang('CourseHomepageLink');
$navigation_item['title'] = get_lang('CourseHomepageLink');
break;
case 'course_code':
$navigation_item['title'] = $_course['official_code'];
$navigation_item['title'] = $_course['official_code'];
break;
case 'session_name_and_course_title':
$navigation_item['title'] = $_course['name'].$my_session_name;
$navigation_item['title'] = $_course['name'].$my_session_name;
break;
default:
$navigation_item['title'] = $_course['name'];
$navigation_item['title'] = $_course['name'];
break;
}
$navigation[] = $navigation_item;
}
// part 2: Interbreadcrumbs. If there is an array $interbreadcrumb defined then these have to appear before the last breadcrumb (which is the tool itself)
if (isset($interbreadcrumb) && is_array($interbreadcrumb)) {
foreach($interbreadcrumb as $breadcrumb_step) {
foreach ($interbreadcrumb as $breadcrumb_step) {
$sep = (strrchr($breadcrumb_step['url'], '?') ? '&amp;' : '?');
$navigation_item['url'] = $breadcrumb_step['url'].$sep.api_get_cidreq();
$navigation_item['title'] = $breadcrumb_step['name'];
@ -388,30 +370,30 @@ if (isset($interbreadcrumb) && is_array($interbreadcrumb)) {
}
// part 3: The tool itself. If we are on the course homepage we do not want to display the title of the course because this
// is the same as the first part of the breadcrumbs (see part 1)
if (isset ($nameTools) AND $language_file<>"course_home") {
if (isset($nameTools) && $language_file != 'course_home') { // TODO: This condition $language_file != 'course_home' might bring surprises.
$navigation_item['url'] = '#';
$navigation_item['title'] = $nameTools;
$navigation[] = $navigation_item;
}
$final_navigation = array();
foreach($navigation as $index => $navigation_info) {
if(!empty($navigation_info['title'])) {
foreach ($navigation as $index => $navigation_info) {
if (!empty($navigation_info['title'])) {
$final_navigation[$index] = '<a href="'.$navigation_info['url'].'" class="breadcrumb breadcrumb'.$index.'" target="_top">'.$navigation_info['title'].'</a>';
}
}
if (!empty($final_navigation)) {
echo '<div id="header4">';
echo implode(' &gt; ',$final_navigation);
echo implode(' &gt; ', $final_navigation);
echo '</div>';
} else {
echo '<div id="header4">';
echo '</div>';
}
if(api_get_setting('show_toolshortcuts')=='true') {
if (api_get_setting('show_toolshortcuts') == 'true') {
echo '<div id="toolshortcuts">';
require_once('tool_navigation_menu.inc.php');
require_once 'tool_navigation_menu.inc.php';
show_navigation_tool_shortcuts();
echo '</div>';
}
@ -432,21 +414,20 @@ if (isset ($dokeos_database_connection)) {
<?php
//to mask the main div, set $header_hide_main_div to true in any script just before calling Display::display_header();
global $header_hide_main_div;
if (!empty($header_hide_main_div) && $header_hide_main_div===true) {
if (!empty($header_hide_main_div) && $header_hide_main_div === true) {
//do nothing
} else {
?>
<div id="main"> <!-- start of #main wrapper for #content and #menu divs -->
<?php
}
/*
-----------------------------------------------------------------------------
"call for chat" module section
-----------------------------------------------------------------------------
*/
$chat = strpos(api_get_self(), 'chat_banner.php');
if (!$chat) {
include_once (api_get_path(LIBRARY_PATH)."online.inc.php");
include_once api_get_path(LIBRARY_PATH).'online.inc.php';
//echo $accept;
$chatcall = chatcall();
if ($chatcall) {
@ -455,26 +436,24 @@ if (!$chat) {
}
/*
-----------------------------------------------------------------------------
Navigation menu section
-----------------------------------------------------------------------------
*/
if(api_get_setting('show_navigation_menu') != 'false' && api_get_setting('show_navigation_menu') != 'icons') {
if (api_get_setting('show_navigation_menu') != 'false' && api_get_setting('show_navigation_menu') != 'icons') {
Display::show_course_navigation_menu($_GET['isHidden']);
$course_id = api_get_course_id();
if (!empty($course_id) && ($course_id != -1)) {
if (!empty($course_id) && ($course_id != -1)) {
echo '<div id="menuButton">';
echo $output_string_menu;
echo '</div>';
if(isset($_SESSION['hideMenu'])) {
if($_SESSION['hideMenu'] =="shown") {
if (isset($_cid) ) {
if (isset($_SESSION['hideMenu'])) {
if ($_SESSION['hideMenu'] == 'shown') {
if (isset($_cid)) {
echo '<div id="centerwrap"> <!-- start of #centerwrap -->';
echo '<div id="center"> <!-- start of #center -->';
}
}
} else {
if (isset($_cid) ) {
if (isset($_cid)) {
echo '<div id="centerwrap"> <!-- start of #centerwrap -->';
echo '<div id="center"> <!-- start of #center -->';
}
@ -482,6 +461,5 @@ if(api_get_setting('show_navigation_menu') != 'false' && api_get_setting('show_n
}
}
?>
<!-- Begin Of script Output -->

Loading…
Cancel
Save