X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Finc%2Fcommencer_page.php;fp=www%2Fecrire%2Finc%2Fcommencer_page.php;h=eb44e516283e8a377f3fd0712be237b34e933817;hp=a0a01dc4351dd1cb4bcc05ec6451e1de9327dfb7;hb=e99f0878011913365e49b30d90e496c24c301393;hpb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed diff --git a/www/ecrire/inc/commencer_page.php b/www/ecrire/inc/commencer_page.php index a0a01dc..eb44e51 100644 --- a/www/ecrire/inc/commencer_page.php +++ b/www/ecrire/inc/commencer_page.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2011 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -18,7 +18,6 @@ if (!defined('_ECRIRE_INC_VERSION')) return; // http://doc.spip.org/@inc_commencer_page_dist function inc_commencer_page_dist($titre = "", $rubrique = "accueil", $sous_rubrique = "accueil", $id_rubrique = "",$menu=true,$minipres=false, $alertes = true) { - global $spip_ecran; global $connect_id_auteur; include_spip('inc/headers'); @@ -40,6 +39,10 @@ function init_entete($titre='', $id_rubrique=0, $minipres=false) { if (!$nom_site_spip = textebrut(typo($GLOBALS['meta']["nom_site"]))) $nom_site_spip= _T('info_mon_site_spip'); + // Pour corriger la position des sous-menus principaux + // (quand intitules sur 2 lignes) + + $js = repercuter_gadgets($id_rubrique); $head = "[" . $nom_site_spip . "] " . textebrut(typo($titre)) . "\n" @@ -47,38 +50,7 @@ function init_entete($titre='', $id_rubrique=0, $minipres=false) { . (($c = $GLOBALS['meta']['charset']) ? "; charset=$c" : '') . "' />\n" - . envoi_link($nom_site_spip,$minipres); - - // anciennement verifForm - // et corriger position des sous-menus principaux (quand intitules sur 2 lignes) - $head .= ' - - '; + . envoi_link($nom_site_spip,$minipres, $js); return _DOCTYPE_ECRIRE . html_lang_attributes() @@ -139,7 +111,7 @@ function init_body($rubrique='accueil', $sous_rubrique='accueil', $id_rubrique=' // couleurs $couleurs = charger_fonction('couleurs', 'inc'); - $items .= "
"; + $items .= "
"; $items .= $couleurs() . "
"; $items .= "
";