File "html_ef6b9090f79dc2eea32b5a9903a8b3d0.php"
Full path: /home/argothem/www/SpipFactory-fichiers_de_travail/sauvegarde-depannage-1.9a3.2/1.9/CACHE/skel/html_ef6b9090f79dc2eea32b5a9903a8b3d0.php
File size: 14.69 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : dist/site.html
* Date : Sat, 26 Aug 2006 21:58:06 GMT
* Compile : Sun, 08 Mar 2020 17:09:21 GMT (0.02s)
* Boucles : _lang, _ariane, _articles, _sites, _mots, _site
*/
//
// <BOUCLE rubriques>
//
function BOUCLE_langhtml_ef6b9090f79dc2eea32b5a9903a8b3d0(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
// REQUETE
$result = spip_optim_select(
array("rubriques.lang"), # SELECT
array('rubriques' => 'spip_rubriques'), # FROM
array(
array('=', 'rubriques.id_rubrique', spip_abstract_quote($Pile[$SP]['id_rubrique'])),
array('=', 'rubriques.statut', '"publie"')), # WHERE
array(), # WHERE pour jointure
'', # GROUP
array(), # ORDER
'', # LIMIT
'', # sous
array(), # HAVING
'rubriques', # table
'_lang', # boucle
''); # serveur
$t0 = "";
$SP++;
$old_lang = $GLOBALS['spip_lang'];
// RESULTATS
while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {
if (!$GLOBALS['forcer_lang'])
$GLOBALS['spip_lang'] = ($x = $Pile[$SP]['lang']) ? $x : $old_lang;
$t0 .= ('<html dir="' .
lang_dir(($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang']),'ltr','rtl') .
'" lang="' .
htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang']) .
'">');
}
$GLOBALS['spip_lang'] = $old_lang;
@spip_abstract_free($result,'');
return $t0;
}
//
// <BOUCLE hierarchie>
//
function BOUCLE_arianehtml_ef6b9090f79dc2eea32b5a9903a8b3d0(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
$hierarchie = calculer_hierarchie($Pile[$SP]['id_rubrique'], false);
// REQUETE
$result = spip_optim_select(
array("rubriques.id_rubrique",
"rubriques.titre",
"FIELD(rubriques.id_rubrique, $hierarchie) AS rang",
"rubriques.lang"), # SELECT
array('rubriques' => 'spip_rubriques'), # FROM
array(), # WHERE
array(), # WHERE pour jointure
'', # GROUP
array('rang'), # ORDER
'', # LIMIT
'', # sous
array(
array('<>', 'rang', 0)), # HAVING
'rubriques', # table
'_ariane', # boucle
''); # serveur
$t0 = "";
$SP++;
$old_lang = $GLOBALS['spip_lang'];
// RESULTATS
while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {
if (!$GLOBALS['forcer_lang'])
$GLOBALS['spip_lang'] = ($x = $Pile[$SP]['lang']) ? $x : $old_lang;
$t0 .= (' > <a href="' .
htmlspecialchars(vider_url(generer_url_rubrique($Pile[$SP]['id_rubrique']))) .
'">' .
interdire_scripts(couper(typo($Pile[$SP]['titre']),'80')) .
'</a>');
}
$GLOBALS['spip_lang'] = $old_lang;
@spip_abstract_free($result,'');
return $t0;
}
//
// <BOUCLE syndic_articles>
//
function BOUCLE_articleshtml_ef6b9090f79dc2eea32b5a9903a8b3d0(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
// REQUETE
$result = spip_optim_select(
array("syndic_articles.url",
"syndic_articles.titre",
"syndic_articles.tags",
"syndic_articles.date",
"syndic_articles.lesauteurs",
"syndic_articles.descriptif"), # SELECT
array('syndic_articles' => 'spip_syndic_articles','J1' => 'spip_syndic'), # FROM
array(
array('=', 'syndic_articles.id_syndic', spip_abstract_quote($Pile[$SP]['id_syndic'])),
array('<', 'LEAST((UNIX_TIMESTAMP(now())-UNIX_TIMESTAMP(syndic_articles.date))/86400,
TO_DAYS(now())-TO_DAYS(syndic_articles.date),
DAYOFMONTH(now())-DAYOFMONTH(syndic_articles.date)+30.4368*(MONTH(now())-MONTH(syndic_articles.date))+365.2422*(YEAR(now())-YEAR(syndic_articles.date)))', "'180'"),
array('=', 'syndic_articles.id_syndic', "J1.id_syndic"),
array('=', 'syndic_articles.statut', '"publie"'),
array('=', 'J1.statut', '"publie"')), # WHERE
array(), # WHERE pour jointure
'', # GROUP
array('syndic_articles.date' . ' DESC'), # ORDER
'', # LIMIT
'', # sous
array(), # HAVING
'syndic_articles', # table
'_articles', # boucle
''); # serveur
// Partition
$nombre_boucle = @spip_abstract_count($result,"");
$debut_boucle = intval(_request("debut_articles"));
$fin_boucle = min($debut_boucle+(($a = intval('5')) ? $a : 10) - 1, $nombre_boucle - 1);
$Numrows['_articles']["grand_total"] = $nombre_boucle;
$Numrows['_articles']["total"] = max(0,$fin_boucle - $debut_boucle + 1);
$Numrows['_articles']['compteur_boucle'] = 0;
$t0 = "";
$SP++;
// RESULTATS
while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {
$Numrows['_articles']['compteur_boucle']++;
if ($Numrows['_articles']['compteur_boucle']-1 >= $debut_boucle) {
if ($Numrows['_articles']['compteur_boucle']-1 > $fin_boucle) break;
$t0 .= ('
<li>
<h3 class="titre"><a href="' .
htmlspecialchars(vider_url($Pile[$SP]['url'])) .
'" class="spip_out">' .
interdire_scripts(safehtml($Pile[$SP]['titre'])) .
'</a></h3>
' .
((strval($t1 = interdire_scripts(afficher_enclosures(safehtml($Pile[$SP]['tags']))))!='') ?
('<div class="enclosures">' . $t1 . '</div>') :
('')) .
'
<small>' .
affdate_court(vider_date($Pile[$SP]['date'])) .
((strval($t1 = interdire_scripts(safehtml($Pile[$SP]['lesauteurs'])))!='') ?
((', ' .
_T('public/spip/ecrire:par_auteur') .
' ') . $t1) :
('')) .
((strval($t1 = interdire_scripts(afficher_tags(safehtml($Pile[$SP]['tags']))))!='') ?
(' — <em>' . $t1 . '</em>') :
('')) .
'</small>
' .
((strval($t1 = interdire_scripts(filtrer('image_reduire',safehtml($Pile[$SP]['descriptif']),'300')))!='') ?
('<div class="texte">' . $t1 . '
<br class="nettoyeur" /></div>') :
('')) .
'
</li>
');
}
}
@spip_abstract_free($result,'');
return $t0;
}
//
// <BOUCLE syndication>
//
function BOUCLE_siteshtml_ef6b9090f79dc2eea32b5a9903a8b3d0(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
// REQUETE
$result = spip_optim_select(
array("syndic.id_syndic",
"syndic.nom_site",
"syndic.url_site"), # SELECT
array('syndic' => 'spip_syndic'), # FROM
array(
array('=', 'syndic.statut', '"publie"')), # WHERE
array(), # WHERE pour jointure
'', # GROUP
array('syndic.nom_site'), # ORDER
'', # LIMIT
'', # sous
array(), # HAVING
'syndic', # table
'_sites', # boucle
''); # serveur
// Partition
$nombre_boucle = @spip_abstract_count($result,"");
$debut_boucle = intval(_request("debut_sites"));
$fin_boucle = min($debut_boucle+(($a = intval('20')) ? $a : 10) - 1, $nombre_boucle - 1);
$Numrows['_sites']["grand_total"] = $nombre_boucle;
$Numrows['_sites']["total"] = max(0,$fin_boucle - $debut_boucle + 1);
$Numrows['_sites']['compteur_boucle'] = 0;
$t0 = "";
$SP++;
// RESULTATS
while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {
$Numrows['_sites']['compteur_boucle']++;
if ($Numrows['_sites']['compteur_boucle']-1 >= $debut_boucle) {
if ($Numrows['_sites']['compteur_boucle']-1 > $fin_boucle) break;
$t0 .= ('
<li><a href="' .
generer_url_site($Pile[$SP]['id_syndic']) .
'"' .
((strval($t1 = (calcul_exposer($Pile[$SP]['id_syndic'], 'id_syndic', $Pile[0]) ? 'on' : ''))!='') ?
(' class="' . $t1 . '"') :
('')) .
'>' .
interdire_scripts(construire_titre_lien($Pile[$SP]['nom_site'],$Pile[$SP]['url_site'])) .
'</a></li>
');
}
}
@spip_abstract_free($result,'');
return $t0;
}
//
// <BOUCLE mots>
//
function BOUCLE_motshtml_ef6b9090f79dc2eea32b5a9903a8b3d0(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
// REQUETE
$result = spip_optim_select(
array("mots.id_mot",
"mots.titre"), # SELECT
array('L1' => 'spip_mots_syndic','mots' => 'spip_mots'), # FROM
array(
array('=', 'L1.id_syndic', spip_abstract_quote($Pile[$SP]['id_syndic']))), # WHERE
array(1 => array('mots', 'id_mot')), # WHERE pour jointure
"mots.id_mot", # GROUP
array('mots.titre'), # ORDER
'', # LIMIT
'', # sous
array(), # HAVING
'mots', # table
'_mots', # boucle
''); # serveur
$t0 = "";
$SP++;
// RESULTATS
while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {
$t0 .= ('
<li><a href="' .
htmlspecialchars(vider_url(generer_url_mot($Pile[$SP]['id_mot']))) .
'" rel="tag">' .
interdire_scripts(typo($Pile[$SP]['titre'])) .
'</a></li>
');
}
@spip_abstract_free($result,'');
return $t0;
}
//
// <BOUCLE syndication>
//
function BOUCLE_sitehtml_ef6b9090f79dc2eea32b5a9903a8b3d0(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
// REQUETE
$result = spip_optim_select(
array("syndic.id_rubrique",
"syndic.id_syndic",
"syndic.date",
"syndic.nom_site",
"syndic.url_site",
"syndic.descriptif"), # SELECT
array('syndic' => 'spip_syndic'), # FROM
array(
array('=', 'syndic.id_syndic', spip_abstract_quote($Pile[$SP]['id_syndic'])),
array('=', 'syndic.statut', '"publie"')), # WHERE
array(), # WHERE pour jointure
'', # GROUP
array(), # ORDER
'', # LIMIT
'', # sous
array(), # HAVING
'syndic', # table
'_site', # boucle
''); # serveur
$t0 = "";
$SP++;
// RESULTATS
while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {
$t0 .= ('
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
' .
'
' .
BOUCLE_langhtml_ef6b9090f79dc2eea32b5a9903a8b3d0($Cache, $Pile, $doublons, $Numrows, $SP) .
'
<head>
<title>' .
((strval($t1 = interdire_scripts(textebrut(construire_titre_lien($Pile[$SP]['nom_site'],$Pile[$SP]['url_site']))))!='') ?
($t1 . ' - ') :
('')) .
interdire_scripts(textebrut(typo($GLOBALS['meta']['nom_site']))) .
'</title>
' .
((strval($t1 = interdire_scripts(textebrut(couper(propre($Pile[$SP]['descriptif']),'150'))))!='') ?
('<meta name="description" content="' . $t1 . '" />') :
('')) .
'
' .
'<?php
$contexte_inclus = array(\'fond\' => ' . argumenter_squelette('inc-head') . ',
\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ');
include(\'ecrire/public.php\');
?'.'>' .
'
<meta name="robots" content="none" />
</head>
<body class="page_site">
<div id="page">
' .
'
' .
'<?php
$contexte_inclus = array(\'fond\' => ' . argumenter_squelette('inc-entete') . ',
\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ');
include(\'ecrire/public.php\');
?'.'>' .
'
' .
'
<div id="hierarchie"><a href="' .
htmlspecialchars(sinon($GLOBALS['meta']['adresse_site'],'.')) .
'/">' .
_T('public/spip/ecrire:accueil_site') .
'</a>' .
BOUCLE_arianehtml_ef6b9090f79dc2eea32b5a9903a8b3d0($Cache, $Pile, $doublons, $Numrows, $SP) .
((strval($t1 = interdire_scripts(couper(construire_titre_lien($Pile[$SP]['nom_site'],$Pile[$SP]['url_site']),'80')))!='') ?
(' > ' . $t1) :
('')) .
'</div>
<div id="conteneur">
' .
'
<div id="contenu">
<div class="cartouche">
<a href="' .
interdire_scripts(calculer_url($Pile[$SP]['url_site'])) .
'">' .
filtrer('image_reduire',affiche_logos(calcule_logo('id_syndic', 'ON', $Pile[$SP]['id_syndic'],'', ''), '', ''),'150','100') .
'</a>
<h1 class="titre">' .
interdire_scripts(construire_titre_lien($Pile[$SP]['nom_site'],$Pile[$SP]['url_site'])) .
'</h1>
' .
((strval($t1 = interdire_scripts(couper(calculer_url($Pile[$SP]['url_site']),'80')))!='') ?
(('<p class="soustitre"><a href="' .
interdire_scripts(calculer_url($Pile[$SP]['url_site'])) .
'" class="spip_out">') . $t1 . '</a></p>') :
('')) .
'
</div>
' .
((strval($t1 = interdire_scripts(propre($Pile[$SP]['descriptif'])))!='') ?
('<div class="chapo">' . $t1 . '</div>') :
('')) .
'
' .
'
' .
(($f = (((strval($t1 = BOUCLE_articleshtml_ef6b9090f79dc2eea32b5a9903a8b3d0($Cache, $Pile, $doublons, $Numrows, $SP))!='') ?
(('
<div class="liste-articles">
' .
calcul_pagination(
(isset($Numrows['_articles']['grand_total']) ?
$Numrows['_articles']['grand_total'] : $Numrows['_articles']['total']
), '_articles', (($a = intval('5')) ? $a : 10), false ) .
'
<h2 class="invisible">' .
_T('public/spip/ecrire:articles') .
'</h2>
<ul>
') . $t1 . ('
</ul>
' .
((strval($t3 = calcul_pagination(
(isset($Numrows['_articles']['grand_total']) ?
$Numrows['_articles']['grand_total'] : $Numrows['_articles']['total']
), '_articles', (($a = intval('5')) ? $a : 10), true ))!='') ?
('<p class="pagination">' . $t3 . '</p>') :
('')) .
'
</div>
')) :
(''))))?
'<div id="fragment_html_ef6b9090f79dc2eea32b5a9903a8b3d0_articles" class="fragment">'.$f.'<!-- /fragment_html_ef6b9090f79dc2eea32b5a9903a8b3d0_articles --></div><?php stop_inclure("fragment_html_ef6b9090f79dc2eea32b5a9903a8b3d0_articles"); ?>':'')
.
'
' .
((strval($t1 = interdire_scripts(calculer_notes()))!='') ?
(('<div class="notes"><h2>' .
_T('public/spip/ecrire:info_notes') .
'</h2>') . $t1 . '</div>') :
('')) .
'
</div><!-- fin contenu -->
' .
'
<div id="navigation">
' .
'
' .
'<?php
$contexte_inclus = array(\'fond\' => ' . argumenter_squelette('inc-rubriques') . ',
\'id_rubrique\' => ' . argumenter_squelette($Pile[$SP]['id_rubrique']) . ',
\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ');
include(\'ecrire/public.php\');
?'.'>' .
'
' .
'
' .
(($f = (((strval($t1 = BOUCLE_siteshtml_ef6b9090f79dc2eea32b5a9903a8b3d0($Cache, $Pile, $doublons, $Numrows, $SP))!='') ?
(('
<div class="syndic">
' .
calcul_pagination(
(isset($Numrows['_sites']['grand_total']) ?
$Numrows['_sites']['grand_total'] : $Numrows['_sites']['total']
), '_sites', (($a = intval('20')) ? $a : 10), false ) .
'
<h2 class="menu-titre">' .
_T('public/spip/ecrire:sites_web') .
'</h2>
' .
((strval($t3 = calcul_pagination(
(isset($Numrows['_sites']['grand_total']) ?
$Numrows['_sites']['grand_total'] : $Numrows['_sites']['total']
), '_sites', (($a = intval('20')) ? $a : 10), true ))!='') ?
('<p class="pagination">' . $t3 . '</p>') :
('')) .
'
<ul>
') . $t1 . '
</ul>
</div>
') :
(''))))?
'<div id="fragment_html_ef6b9090f79dc2eea32b5a9903a8b3d0_sites" class="fragment">'.$f.'<!-- /fragment_html_ef6b9090f79dc2eea32b5a9903a8b3d0_sites --></div><?php stop_inclure("fragment_html_ef6b9090f79dc2eea32b5a9903a8b3d0_sites"); ?>':'')
.
'
' .
'
' .
((strval($t1 = BOUCLE_motshtml_ef6b9090f79dc2eea32b5a9903a8b3d0($Cache, $Pile, $doublons, $Numrows, $SP))!='') ?
(('
<div class="divers">
<h2 class="menu-titre">' .
_T('public/spip/ecrire:mots_clefs') .
'</h2>
<ul>
') . $t1 . '
</ul>
</div>
') :
('')) .
'
</div><!-- fin navigation -->
</div><!-- fin conteneur -->
' .
'
' .
'<?php
$contexte_inclus = array(\'fond\' => ' . argumenter_squelette('inc-pied') . ',
\'skel\' => ' . argumenter_squelette('dist/site.html') . ',
\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ');
include(\'ecrire/public.php\');
?'.'>' .
'
</div><!-- fin page -->
</body>
</html>
');
}
@spip_abstract_free($result,'');
return $t0;
}
//
// Fonction principale du squelette dist/site.html
//
function html_ef6b9090f79dc2eea32b5a9903a8b3d0($Cache, $Pile, $doublons=array(), $Numrows=array(), $SP=0) {
$page = ('<?php header("X-Spip-Cache: 7200"); ?>'.'<?php header("Cache-Control: max-age=7200"); ?>' .
BOUCLE_sitehtml_ef6b9090f79dc2eea32b5a9903a8b3d0($Cache, $Pile, $doublons, $Numrows, $SP));
return analyse_resultat_skel('html_ef6b9090f79dc2eea32b5a9903a8b3d0', $Cache, $page);
}
?>