Changeset 112715 in spip-zone
- Timestamp:
- Dec 10, 2018, 5:01:47 PM (2 years ago)
- Location:
- _plugins_/liaison_objet/branches/v2
- Files:
-
- 1 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/liaison_objet/branches/v2
-
Property
svn:mergeinfo
set to
/_plugins_/liaison_objet/trunk merged eligible
-
Property
svn:mergeinfo
set to
-
_plugins_/liaison_objet/branches/v2/formulaires/bouton_objet.php
r108373 r112715 17 17 $choisies = lire_config('liaison_objet/liaison_' . $objet_dest . '_dest', array()); 18 18 19 $lang = $langue ? explode(',', $langue) : '';19 $lang = $langue ? (is_array($langue) ? $langue : explode(',', $langue)) : ''; 20 20 21 21 // On garde l'objet original pour la détection des données de l'objet -
_plugins_/liaison_objet/branches/v2/formulaires/inc-bouton_objet_liaison.html
r107933 r112715 2 2 3 3 <strong><:liaison_objet:liaison_objet:></strong> 4 <ul> 5 #SET{nom_id_dest,id_#OBJET_DEST} 4 <ul> 5 #SET{nom_id_dest,id_#OBJET_DEST} 6 6 7 7 <BOUCLE_affichage(LIAISON_OBJETS){id_objet}{statut ?}{objet}{objet_dest}{par ordre_objet}> 8 8 #SET{objet_dest,#OBJET_DEST} 9 9 [(#OBJET_DEST|=={document}|oui)#SET{objet_dest,document_edit}] 10 [(#SET{id,id_#OBJET_DEST})] 10 [(#SET{id,id_#OBJET_DEST})] 11 11 [(#OBJET_DEST|=={site}|oui) 12 12 #SET{id,id_syndic} … … 18 18 <a href="[(#URL_ACTION_AUTEUR{ranger,supprimer_ordre-[(#ENV{langue})]-[(#ID_LIAISON_OBJET)]-#ORDRE-[(#OBJET_DEST)]-[(#ENV{id_objet_dest})],[(#SELF)]})]" class="ajax"> 19 19 <img src="[(#CHEMIN{prive/themes/spip/images/item-remove.png})]"/></a></li> 20 21 22 23 </B_affichage> 20 </BOUCLE_rub> 21 </BOUCLE_affichage> 22 </ul> 23 </B_affichage> -
_plugins_/liaison_objet/branches/v2/formulaires/inc-boutons_objet.html
r107933 r112715 1 1 <B_objets> 2 3 4 5 6 7 8 </BOUCLE_objets> 9 10 </li> 2 <li> 3 <label><:liaison_objet:affichage_section:></label> 4 <select name="id_objet_dest"> 5 <option value="#CLE" >[(#TITRE)]</option> 6 <BOUCLE_objets(DATA){source tableau, #ENV{objets_choisies}|array_diff_key{#ENV{exclure}|array_flip}}{par titre}> 7 <option value="#CLE" >[(#TITRE)]</option> 8 </BOUCLE_objets> 9 </select> 10 </li> 11 11 </B_objets> -
_plugins_/liaison_objet/branches/v2/liaison_objet_pipelines.php
r107933 r112715 18 18 19 19 if (in_array($exec, $objets_liaison)) { 20 $contexte = []; 20 21 $e = trouver_objet_exec($exec); 21 22 $objet = $e['type']; … … 30 31 $objets_cibles = lire_config('liaison_objet/objets_cible', array()); 31 32 32 $contexte['langue'] = array( $args['lang']);33 $contexte['langue'] = array(_LANGUE_PAR_DEFAUT); 33 34 if ($objet == 'rubrique' OR $objet == 'article') { 34 35 $contexte['langue'] = sql_getfetsel('lang', $table, $id_table_objet . '=' . $contexte['id_objet']); -
_plugins_/liaison_objet/branches/v2/modeles_lo/liaison_interface_tr.html
r107933 r112715 20 20 #SET{id,id_syndic} 21 21 ] 22 [(#OBJET|=={site}|oui) 23 #SET{id,id_syndic} 24 ] 25 26 22 27 [<a class="select" href="[(#URL_ECRIRE{#GET{objet}}|parametre_url{#GET{id},#ID_OBJET})]">(#ENV{logo_objet}|image_reduire{25}|sinon{#ENV{logo_objet}|image_reduire{25}|inserer_attribut{class,spip_logos}}) </a>] <a href="[(#URL_ECRIRE{#GET{objet}}|parametre_url{#GET{id},#ID_OBJET})]">[(#TITRE|sinon{#OBJET|info_objet{#ID_OBJET,#ENV{champ_titre}}})]</a> #SET{table,#OBJET|table_objet_sql} 23 28 [ … … 27 32 </td> 28 33 <td class="type_lien">[(#TYPE_LIEN|nom_type{#OBJET_DEST})]</td> 29 <td class="date">[(#DATE|affdate)]</td> 34 <td class="date">#SET{date,#DATE|affdate} 35 [(#OBJET|=={evenement}|oui) 36 #SET{date,#DATE_DEBUT| agenda_affdate_debut_fin{#DATE_FIN,#HORAIRE}} 37 ] 38 [(#GET{date})] 39 </td> 30 40 <td class="id_objet"><b style="white-space: nowrap;">N°[(#ID_OBJET|>{0}|?{#ID_OBJET,#ID_LIAISON_OBJET})]</b></td> 31 41 <td> -
_plugins_/liaison_objet/branches/v2/paquet.xml
r108373 r112715 2 2 prefix="liaison_objet" 3 3 categorie="edition" 4 version="2.0. 2"4 version="2.0.3" 5 5 etat="stable" 6 6 compatibilite="[3.0.5;3.2.*]" -
_plugins_/liaison_objet/branches/v2/recherche_objet_fonctions.php
r107933 r112715 10 10 //Les tables non conforme, faudrait inclure une pipeline 11 11 $exceptions = charger_fonction('exceptions', 'inc'); 12 $exception_objet = $exceptions(); 13 if (!$champ_titre = $exception_objet['titre'][$objet]) 12 $exception_objet = $exceptions();; 13 14 $champ_date = ''; 15 if (!$champ_titre = $exception_objet['titre'][$objet]) { 14 16 $champ_titre = 'titre'; 17 } 18 15 19 16 20 $ancien_objet = $objet; … … 34 38 } 35 39 36 if (isset($tables[$table _dest]['statut'][0]['publie']))37 $statut = $tables[$table _dest]['statut'][0]['publie'];40 if (isset($tables[$table]['statut'][0]['publie'])) 41 $statut = $tables[$table]['statut'][0]['publie']; 38 42 $exceptions_statut = array( 39 43 'rubrique', … … 44 48 if ($objet == 'auteur') 45 49 $where[] = 'statut !=' . sql_quote('5poubelle'); 46 if (isset($tables[$table_dest]['field']['lang']) AND $lang)50 if (isset($tables[$table]['field']['lang']) AND $lang) 47 51 $where[] = 'lang IN ("' . implode('","', $lang) . '")'; 48 $d = info_objet($objet, '', $champ_titre . ',' . $id_table_objet, $where); 52 53 if ($objet == 'evenement') { 54 $champ_date = 'date_debut,date_fin,horaire,'; 55 } 56 $d = info_objet($objet, '', $champ_date . $champ_titre . ',' . $id_table_objet, $where); 49 57 50 58 $data = array(); 51 59 if (is_array($d)) { 52 60 foreach ($d as $r) { 53 if (!$r['titre']) 61 $date = ''; 62 if ($objet == 'evenement') { 63 $date = '(' . agenda_affdate_debut_fin($r['date_debut'], $r['date_fin'], $r['horaire']) . ')'; 64 } 65 if (!$r['titre']) { 54 66 $r['titre'] = titre_objet_sel($objet, $r); 55 if (!isset($exclus[$r[$id_table_objet] . '-' . $objet])) 67 } 68 if (!isset($exclus[$r[$id_table_objet] . '-' . $objet])) { 56 69 $data[] = array( 57 'label' => $r[titre] . ' (' . $traduction_nom_objet . ')' ,70 'label' => $r[titre] . ' (' . $traduction_nom_objet . ')' . $date, 58 71 'value' => $r[$id_table_objet] . '-' . $objet 59 72 ); 73 } 74 60 75 } 61 76 } 62 77 return $data; 63 78 } 64 ?> 79
Note: See TracChangeset
for help on using the changeset viewer.