Skip to content
Extraits de code Groupes Projets
Valider d40205e6 rédigé par cerdic's avatar cerdic
Parcourir les fichiers

inclusion manquante sur inc/texte et en trop sur inc/presentation, que l'on repousse plus loin

parent f8fae0da
Branches
Étiquettes
Aucune requête de fusion associée trouvée
...@@ -265,6 +265,7 @@ function bando_identite(){ ...@@ -265,6 +265,7 @@ function bando_identite(){
* @return string * @return string
*/ */
function bando_outils_rapides($boutons, $contexte = array()){ function bando_outils_rapides($boutons, $contexte = array()){
include_spip('inc/presentation_mini');
$res = ""; $res = "";
......
...@@ -129,6 +129,7 @@ function definir_barre_onglets($script) { ...@@ -129,6 +129,7 @@ function definir_barre_onglets($script) {
// http://doc.spip.org/@barre_onglets // http://doc.spip.org/@barre_onglets
function barre_onglets($rubrique, $ongletCourant){ function barre_onglets($rubrique, $ongletCourant){
include_spip('inc/presentation');
$res = ''; $res = '';
......
...@@ -34,7 +34,7 @@ function inc_commencer_page_dist($titre = "", $rubrique = "accueil", $sous_rubri ...@@ -34,7 +34,7 @@ function inc_commencer_page_dist($titre = "", $rubrique = "accueil", $sous_rubri
// envoi du doctype et du <head><title>...</head> // envoi du doctype et du <head><title>...</head>
// http://doc.spip.org/@init_entete // http://doc.spip.org/@init_entete
function init_entete($titre='', $dummy=0, $minipres=false) { function init_entete($titre='', $dummy=0, $minipres=false) {
include_spip('inc/texte');
if (!$nom_site_spip = textebrut(typo($GLOBALS['meta']["nom_site"]))) if (!$nom_site_spip = textebrut(typo($GLOBALS['meta']["nom_site"])))
$nom_site_spip= _T('info_mon_site_spip'); $nom_site_spip= _T('info_mon_site_spip');
...@@ -52,6 +52,7 @@ function init_entete($titre='', $dummy=0, $minipres=false) { ...@@ -52,6 +52,7 @@ function init_entete($titre='', $dummy=0, $minipres=false) {
function init_head($titre='', $dummy=0, $minipres=false) { function init_head($titre='', $dummy=0, $minipres=false) {
include_spip('inc/gadgets'); include_spip('inc/gadgets');
include_spip('inc/presentation_mini');
$head = ($titre?"<title>$titre</title>\n":"") $head = ($titre?"<title>$titre</title>\n":"")
. "<meta http-equiv='Content-Type' content='text/html" . "<meta http-equiv='Content-Type' content='text/html"
......
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
if (!defined("_ECRIRE_INC_VERSION")) return; if (!defined("_ECRIRE_INC_VERSION")) return;
include_spip('inc/presentation');
// http://doc.spip.org/@repercuter_gadgets // http://doc.spip.org/@repercuter_gadgets
function repercuter_gadgets() { function repercuter_gadgets() {
......
...@@ -567,21 +567,6 @@ function fin_cadre_formulaire($return=false){ ...@@ -567,21 +567,6 @@ function fin_cadre_formulaire($return=false){
} }
// http://doc.spip.org/@formulaire_recherche
function formulaire_recherche($page, $complement=""){
$recherche = _request('recherche');
$recherche_aff = entites_html($recherche);
if (!strlen($recherche)) {
$recherche_aff = _T('info_rechercher');
$onfocus = " onfocus=\"this.value='';\"";
} else $onfocus = '';
$form = '<input type="text" size="10" value="'.$recherche_aff.'" name="recherche" class="recherche" accesskey="r"' . $onfocus . ' />';
$form .= "<input type='image' src='" . chemin_image('loupe.png') . "' name='submit' class='submit' alt='"._T('info_rechercher')."' />";
return "<div class='spip_recherche'>".generer_form_ecrire($page, $form . $complement, " method='get'")."</div>";
}
// //
// Afficher la hierarchie des rubriques // Afficher la hierarchie des rubriques
// //
......
...@@ -484,4 +484,19 @@ function voir_en_ligne ($type, $id, $statut=false, $image='racine-24.png', $af = ...@@ -484,4 +484,19 @@ function voir_en_ligne ($type, $id, $statut=false, $image='racine-24.png', $af =
} }
// http://doc.spip.org/@formulaire_recherche
function formulaire_recherche($page, $complement=""){
$recherche = _request('recherche');
$recherche_aff = entites_html($recherche);
if (!strlen($recherche)) {
$recherche_aff = _T('info_rechercher');
$onfocus = " onfocus=\"this.value='';\"";
} else $onfocus = '';
$form = '<input type="text" size="10" value="'.$recherche_aff.'" name="recherche" class="recherche" accesskey="r"' . $onfocus . ' />';
$form .= "<input type='image' src='" . chemin_image('loupe.png') . "' name='submit' class='submit' alt='"._T('info_rechercher')."' />";
return "<div class='spip_recherche'>".generer_form_ecrire($page, $form . $complement, " method='get'")."</div>";
}
?> ?>
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter