Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1997 → Rev 1998

/branches/v5.0-ouadji/papyrus/applettes/menu/menu.php
197,19 → 197,22
$langue_test=GEN_I18N_ID_DEFAUT;
}
//mail('aurelien@tela-botanica.org','valeur du menu sélectionné',$GLOBALS['id_menu_en_cours']);
// Récupération des infos sur sur l'entrée du menu à afficher
$menu_info = GEN_lireInfoMenu($objet_pear_db, $id_pere_menu_a_deployer, DB_FETCHMODE_ASSOC);
// Gestion des menus uniques
if ($menu_type == 'unique' && ($menu_info['gm_date_fin_validite'] == '0000-00-00 00:00:00' || strtotime($menu_info['gm_date_fin_validite']) > time() )) {
$retour .= afficherEntreeListeMenu( $objet_pear_db, $id_pere_menu_a_deployer, $i18n_url,
$niveau_actuel, 1, $position, $menu_type, $indent_origine, $indent_pas, $_GEN_commun, $num_menu);
// Dans le cas, d'un menu unique, on retourne directement le résultat ici.
if($GLOBALS['_GEN_commun']['info_menu']->gm_id_menu == $GLOBALS['id_menu_en_cours'])
if($GLOBALS['_GEN_commun']['info_menu']->gm_id_menu == $GLOBALS['id_menu_en_cours'])
{
return '<span class="menu_actif">'.$retour.'</span>';
} else {
return $retour ;
return '<span class="menu_inactif">'.$retour.'</span>' ;
}
}
// On affiche un menu que si $profondeur <= $niveau_actuel <= $depart
518,7 → 521,8
//Création d'une entrée dans la liste du menu
$espaces = str_repeat(' ', $indent_origine + ($indent_pas * ($position + 2)));
$retour = $espaces.'<a id="menu_lien_'.$num_menu.'_'.$menu_id.'" href="'.$une_url->getURL().'" '.$menu_texte_title.$menu_accesskey.'>'.$menu_nom.'</a>'."\n";
$GLOBALS['id_menu_en_cours'] = $menu_id ;
$GLOBALS['id_menu_en_cours'] = $menu_id ;
 
return $retour;
}
 
/branches/v5.0-ouadji/papyrus/applettes/syndication/syndication.php
47,6 → 47,7
'(url="[^"]*")|'.
'(titre="[^"]*")|'.
'(nb="?\d+"?)|'.
'(nbmax="?\d+"?)|'.
'(nouvellefenetre="?(?:0|1)"?)|'.
'(formatdate="[^"]*")|'.
'(formatdatepro="[^"]*")|'.
111,6 → 112,9
if (!isset($options['nb'])) {
$options['nb'] = SYND_NOMBRE;
}
if (!isset($options['nbmax'])) {
$options['nbmax'] = SYND_NOMBRE_MAX;
}
if (!isset($options['nouvellefenetre'])) {
$options['nouvellefenetre'] = SYND_OUVRIR_LIEN_RSS_NOUVELLE_FENETRE;
}
259,8 → 263,10
}
}
// Trie des pages par date
//var_dump($GLOBALS['_SYNDICATION_']['pages']);
krsort($GLOBALS['_SYNDICATION_']['pages']);
$GLOBALS['_SYNDICATION_']['sites'] = array_slice($GLOBALS['_SYNDICATION_']['sites'],0,$options['nbmax'],true) ;
$GLOBALS['_SYNDICATION_']['pages'] = array_slice($GLOBALS['_SYNDICATION_']['pages'],0,$options['nbmax'],true) ;
//+----------------------------------------------------------------------------------------------------------------+
// Extrait les variables et les ajoutes a l'espace de noms local
/branches/v5.0-ouadji/papyrus/applettes/syndication/squelettes/synd_liste_actu.tpl.html
26,20 → 26,8
<?php foreach ($flux as $key=>$news) : ?>
<h2 class="rss_titre_article"><a href="<?=$news[0];?>" class="lien_ext"><?php echo preg_replace('/^\d+-\d+&nbsp;:/', '', $news[1]);?></a></h2>
<h1 class="rss_titre_site"><?= $news[2]; ?> - <span class="date"><?php echo $GLOBALS['jours'][date ('w', $news[3])].' '.date('d',$news[3]).
' '.$GLOBALS['mois'][date('n', $news[3])].' '.date ('Y', strtotime ($news[3])); ?></span></h1>
' '.$GLOBALS['mois'][date('n', $news[3])].' '.date ('Y', $news[3]); ?></span></h1>
<?php endforeach; ?>
 
<!--
<?php foreach ($sites as $site) : ?>
<?php foreach ($site['pages'] as $page) : ?>
<h2 class="rss_titre_article"><a href="<?=$page['url'];?>" class="lien_ext"><?php echo preg_replace('/^\d+-\d+&nbsp;:/', '', $page['titre']);?></a></h2>
<h1 class="rss_titre_site"><?= $site['titre']; ?> - <span class="date"><?php echo $GLOBALS['jours'][date ('w', strtotime ($page['date']))].' '.date('d', strtotime($page['date'])).
' '.$GLOBALS['mois'][date('n', strtotime ($page['date']))].' '.date('Y'); ?></span></h1>
 
<?php endforeach; ?>
<?php endforeach; ?>
-->
</div>
<?php endif; ?>
<!-- SYNDICATION - FIN -->
/branches/v5.0-ouadji/papyrus/applettes/syndication/configuration/synd_configuration.inc.php
53,8 → 53,10
define('MAGPIE_DIR', GEN_CHEMIN_API.'syndication_rss/magpierss/');
/** Constante stockant le chemin vers le dossier de cache pour MAGPIERSS.*/
define('MAGPIE_CACHE_DIR', MAGPIE_DIR.'/tmp/magpie_cache');
/** Constante stockant le nombre de page syndiqués à afficher par site.*/
/** Constante stockant le nombre de pages syndiquées à afficher par site.*/
define('SYND_NOMBRE', 10);
/** Constante stockant le nombre de pages maximum à afficher */
define('SYND_NOMBRE_MAX', 30);
/** Constante stockant si oui ou non on ouvre une nouvelle fenêtre pour consulter la page d'un site syndiqué.*/
define('SYND_OUVRIR_LIEN_RSS_NOUVELLE_FENETRE', 1);
/** Constante stockant le format des dates.*/