Changeset 43899 in spip-zone
- Timestamp:
- Jan 26, 2011, 10:21:43 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_core_/plugins/sites/exec/sites.php
r43415 r43899 135 135 136 136 $onglet_contenu = 137 (_INTERFACE_ONGLETS? 138 ($statut == 'prop' ? "<p class='site_prop'>"._T('info_site_propose')." <b>".affdate($date_heure)." </b></p>" : "") 139 . $fond:"") 140 141 . (($syndication == "oui" OR $syndication == "off" OR $syndication == "sus") ? 137 138 (($syndication == "oui" OR $syndication == "off" OR $syndication == "sus") ? 142 139 "<p class='site_syndique'><a href='".htmlspecialchars($url_syndic)."'>" 143 140 . http_img_pack('feed.png', 'RSS'). '</a>'._T('info_site_syndique').'</p>' … … 165 162 166 163 : choix_feed($id_syndic, $id_rubrique, $nom_site, $row)) 167 . ( _INTERFACE_ONGLETS?"":($flag_administrable ? options_moderation($row) : ""))164 . (($flag_administrable ? options_moderation($row) : "")) 168 165 169 166 ; 170 167 171 168 $onglet_proprietes = 172 ( _INTERFACE_ONGLETS?"":169 ( 173 170 $fond 174 171 . ($statut == 'prop' ? "<p class='site_prop'>"._T('info_site_propose')." <b>".affdate($date_heure)." </b></p>" : "") 175 172 ) 176 . afficher_site_rubrique($id_syndic, $id_rubrique, $id_secteur)177 173 . ($dater ? $dater($id_syndic, $flag_editable, $statut, 'syndic', 'sites', $date_heure) : "") 178 . (_INTERFACE_ONGLETS?($flag_administrable ? options_moderation($row) : ""):"")179 174 . pipeline('affiche_milieu',array('args'=>array('exec'=>'sites','id_syndic'=>$id_syndic),'data'=>'')) 180 175 ; 181 182 $onglet_documents = "" ;183 $onglet_interactivite = "";184 176 185 177 echo … … 187 179 "<div class='fiche_objet'>" 188 180 . $haut 189 . afficher_onglets_pages(array( 190 'voir' => _T('onglet_contenu'), 191 'props' => _T('onglet_proprietes'), 192 'docs' => _T('onglet_documents'), 193 'interactivite' => _T('onglet_interactivite'), 194 ), 195 _INTERFACE_ONGLETS? 196 array( 197 'voir'=>$onglet_contenu, 198 'props'=>$onglet_proprietes, 199 'docs'=>$onglet_documents, 200 'interactivite'=>$onglet_interactivite, 201 ) 202 :array( 203 'props'=>$onglet_proprietes, 204 'voir'=>$onglet_contenu ) 205 ) 181 . "<div class='nettoyeur'></div>" 182 . $onglet_proprietes 183 . "<div class='nettoyeur'></div>" 184 . $onglet_contenu 185 . pipeline('afficher_complement_objet',array('args'=>array('type'=>'site','id'=>$id_syndic),'data'=>"<div class='nettoyeur'></div>")) 186 . "<div class='nettoyeur'></div>" 206 187 . "</div>")); 207 188 } … … 317 298 } 318 299 319 // http://doc.spip.org/@afficher_site_rubrique320 function afficher_site_rubrique($id_syndic, $id_rubrique, $id_secteur)321 {322 global $spip_lang_right;323 324 if (!_INTERFACE_ONGLETS) return "";325 326 $chercher_rubrique = charger_fonction('chercher_rubrique', 'inc');327 328 $form = $chercher_rubrique($id_rubrique, 'site', false);329 if (strpos($form,'<select')!==false) {330 $form .= "<div style='text-align: $spip_lang_right;'>"331 . '<input class="fondo" type="submit" value="'._T('bouton_choisir').'"/>'332 . "</div>";333 }334 335 $msg = _T('titre_cadre_interieur_rubrique');336 337 $form = "<input type='hidden' name='editer_article' value='oui' />\n" . $form;338 $form = redirige_action_post("editer_site", $id_syndic, 'sites', $form, " class='submit_plongeur'");339 340 if ($id_rubrique == 0) $logo = "racine-24.png";341 elseif ($id_secteur == $id_rubrique) $logo = "secteur-24.png";342 else $logo = "rubrique-24.png";343 344 return debut_cadre_couleur($logo, true, "", $msg) . $form .fin_cadre_couleur(true);345 }346 300 ?>
Note: See TracChangeset
for help on using the changeset viewer.