Commit 02468f76 authored by slopez's avatar slopez
Browse files

on allège le site ae un peu

parent 1304c103
...@@ -303,16 +303,16 @@ class site extends interfaceweb ...@@ -303,16 +303,16 @@ class site extends interfaceweb
$timing["site::start_page"] -= microtime(true); $timing["site::start_page"] -= microtime(true);
parent::start_page($section,$title,$compact); parent::start_page($section,$title,$compact);
$this->add_box("calendrier",new calendar($this->db)); $this->add_box("calendrier",new calendar($this->db));
require_once($topdir . "include/cts/box_slide_show.inc.php");
$slides = new box_slideshow('L\'info en boucle');
$slides->add_slide($this->get_weekly_photo_contents());
$slides->add_slide($this->get_planning_contents());
$slides->add_slide($this->get_planning_permanences_contents());
if ($this->user->is_valid())
$slides->add_slide($this->get_forum_box());
if ( $section == "accueil" ) if ( $section == "accueil" )
{ {
require_once($topdir . "include/cts/box_slide_show.inc.php");
$slides = new box_slideshow('L\'info en boucle');
$slides->add_slide($this->get_weekly_photo_contents());
$slides->add_slide($this->get_planning_contents());
$slides->add_slide($this->get_planning_permanences_contents());
if ($this->user->is_valid())
$slides->add_slide($this->get_forum_box());
if(!$slides->is_empty()) if(!$slides->is_empty())
$this->add_box("info_en_boucle",$slides); $this->add_box("info_en_boucle",$slides);
//Nb: alerts est *trés* long à calculer, il ne sera donc que dans accueil //Nb: alerts est *trés* long à calculer, il ne sera donc que dans accueil
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment