Changeset 109929 in spip-zone
- Timestamp:
- Apr 17, 2018, 1:34:52 PM (3 years ago)
- Location:
- _plugins_/simple_calendrier/branches/v2
- Files:
-
- 13 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/simple_calendrier/branches/v2
-
Property
svn:mergeinfo
set to
/_plugins_/simple_calendrier/trunk merged eligible
-
Property
svn:mergeinfo
set to
-
_plugins_/simple_calendrier/branches/v2/base/simplecal.php
r104742 r109929 8 8 */ 9 9 10 if (!defined("_ECRIRE_INC_VERSION")) return; 10 if (!defined("_ECRIRE_INC_VERSION")) { 11 return; 12 } 11 13 12 14 … … 28 30 29 31 30 function simplecal_declarer_tables_objets_sql($tables) {32 function simplecal_declarer_tables_objets_sql($tables) { 31 33 32 34 // Champs de la table spip_evenements … … 64 66 "KEY lang" => "lang" 65 67 ); 66 67 // champs candidats a la jointure68 $join = array(69 "id_evenement" => "id_evenement",70 "id_secteur" => "id_secteur",71 "id_rubrique" => "id_rubrique"72 );73 68 74 69 // champ 'statut' … … 103 98 'field'=> $fields, 104 99 'key' => $key, 105 'join' => $join,106 100 'titre' => 'titre, lang', 107 101 'date' => 'date', // indique le nom du field pour le formulaires_dater_charger_dist 108 102 'champs_editables' => array('titre', 'date_debut', 'date_fin', 'horaire', 'descriptif', 'texte', 'lieu', 'adresse', 'lien_titre', 'lien_url', 'type', 'id_objet'), 109 'champs_versionnes' => array(' id_rubrique', 'titre', 'descriptif', 'texte', 'lieu', 'adresse', 'date_debut', 'date_fin', 'lien_titre', 'lien_url', 'jointure_auteurs'),103 'champs_versionnes' => array('titre', 'descriptif', 'texte', 'lieu', 'adresse', 'lien_titre', 'lien_url'), 110 104 'rechercher_champs' => array('titre'=>8, 'descriptif'=>4, 'texte'=>2), 111 'rechercher_jointures' => array('document' => array('titre' => 2, 'descriptif' => 1)), 112 'tables_jointures' => array('id_auteur' => 'auteurs_liens'), 105 'tables_jointures' => array(), 113 106 'statut' => array($statut), 114 107 'statut_textes_instituer' => $statut_textes_instituer, … … 129 122 return $tables; 130 123 } 131 132 ?> -
_plugins_/simple_calendrier/branches/v2/lang/simplecal.xml
r104745 r109929 1 1 <traduction module="simplecal" gestionnaire="salvatore" url="https://trad.spip.net" source="svn://zone.spip.org/spip-zone/_plugins_/simple_calendrier/trunk/lang/" reference="fr"> 2 <langue code="en" url="https://trad.spip.net/tradlang_module/simplecal?lang_cible=en" total="16 9" traduits="141" relire="0" modifs="5" nouveaux="23" pourcent="83.43">2 <langue code="en" url="https://trad.spip.net/tradlang_module/simplecal?lang_cible=en" total="167" traduits="141" relire="0" modifs="5" nouveaux="21" pourcent="84.43"> 3 3 </langue> 4 <langue code="fr" url="https://trad.spip.net/tradlang_module/simplecal?lang_cible=fr" total="16 9" traduits="169" relire="0" modifs="0" nouveaux="0" pourcent="100.00">4 <langue code="fr" url="https://trad.spip.net/tradlang_module/simplecal?lang_cible=fr" total="167" traduits="167" relire="0" modifs="0" nouveaux="0" pourcent="100.00"> 5 5 </langue> 6 6 </traduction> -
_plugins_/simple_calendrier/branches/v2/lang/simplecal_fr.php
r104745 r109929 145 145 'info_titre' => 'Titre', 146 146 'info_tous_evenements_en_redaction' => 'Tous les évènements en cours de rédaction', 147 'info_tous_evenements_presents' => 'Tous les évènements publiés dans cette rubrique',147 'info_tous_evenements_presents' => 'Tous les évènements à venir publiés dans cette rubrique', 148 148 'info_tous_evenements_refuses' => 'Tous les évènements refusés', 149 149 'item_mots_cles_association_evenements' => 'aux évènements', -
_plugins_/simple_calendrier/branches/v2/paquet.xml
r109922 r109929 2 2 prefix="simplecal" 3 3 categorie="date" 4 version="2.2. 4"4 version="2.2.12" 5 5 etat="stable" 6 compatibilite="[3.0.0;3. 1.*]"6 compatibilite="[3.0.0;3.2.*]" 7 7 logo="prive/themes/spip/images/evenement-32.png" 8 8 schema="2.1.5" … … 17 17 <credit lien="http://jqueryui.com/themeroller/">Themes CSS (datepicker)</credit> 18 18 19 <pipeline nom="declarer_tables_interfaces" inclure="base/simplecal.php" /> <!-- OK SPIP3 -->20 <pipeline nom="declarer_tables_objets_sql" inclure="base/simplecal.php" /> <!-- OK SPIP3 -->21 <pipeline nom="configurer_liste_metas" inclure="simplecal_pipelines.php" /> <!-- OK SPIP3 -->22 <pipeline nom="autoriser" inclure="simplecal_autoriser.php" /> <!-- OK SPIP3 -->19 <pipeline nom="declarer_tables_interfaces" inclure="base/simplecal.php" /> 20 <pipeline nom="declarer_tables_objets_sql" inclure="base/simplecal.php" /> 21 <pipeline nom="configurer_liste_metas" inclure="simplecal_pipelines.php" /> 22 <pipeline nom="autoriser" inclure="simplecal_autoriser.php" /> 23 23 <pipeline nom="header_prive" inclure="simplecal_pipelines.php" /> 24 <pipeline nom="insert_head_css" inclure="simplecal_pipelines.php" /> <!-- OK SPIP3 -->25 <pipeline nom="boite_infos" inclure="simplecal_pipelines.php" /> <!-- OK SPIP3 -->26 <pipeline nom="affiche_milieu" inclure="simplecal_pipelines.php" /> <!-- OK SPIP3 -->27 <pipeline nom="affiche_gauche" inclure="simplecal_pipelines.php" /> <!-- OK SPIP3 -->28 <pipeline nom="affiche_auteurs_interventions" inclure="simplecal_pipelines.php" /> <!-- OK SPIP3 -->29 <pipeline nom="rubrique_encours" inclure="simplecal_pipelines.php" /> <!-- OK SPIP3 -->30 <pipeline nom="affiche_enfants" inclure="simplecal_pipelines.php" /> <!-- OK SPIP3 -->24 <pipeline nom="insert_head_css" inclure="simplecal_pipelines.php" /> 25 <pipeline nom="boite_infos" inclure="simplecal_pipelines.php" /> 26 <pipeline nom="affiche_milieu" inclure="simplecal_pipelines.php" /> 27 <pipeline nom="affiche_gauche" inclure="simplecal_pipelines.php" /> 28 <pipeline nom="affiche_auteurs_interventions" inclure="simplecal_pipelines.php" /> 29 <pipeline nom="rubrique_encours" inclure="simplecal_pipelines.php" /> 30 <pipeline nom="affiche_enfants" inclure="simplecal_pipelines.php" /> 31 31 <pipeline nom="objet_compte_enfants" inclure="simplecal_pipelines.php" /> 32 <pipeline nom="accueil_encours" inclure="simplecal_pipelines.php" /> <!-- OK SPIP3 -->33 <pipeline nom="accueil_informations" inclure="simplecal_pipelines.php" /> <!-- OK SPIP3 -->34 <pipeline nom="compter_contributions_auteur" inclure="simplecal_pipelines.php" /> <!-- OK SPIP3 -->35 <pipeline nom="optimiser_base_disparus" inclure="simplecal_pipelines.php" /> <!-- OK SPIP3 -->32 <pipeline nom="accueil_encours" inclure="simplecal_pipelines.php" /> 33 <pipeline nom="accueil_informations" inclure="simplecal_pipelines.php" /> 34 <pipeline nom="compter_contributions_auteur" inclure="simplecal_pipelines.php" /> 35 <pipeline nom="optimiser_base_disparus" inclure="simplecal_pipelines.php" /> 36 36 <pipeline nom="propres_creer_chaine_url" inclure="simplecal_pipelines.php" /> 37 37 <pipeline nom="corbeille_table_infos" inclure="simplecal_pipelines.php" /> 38 38 <pipeline nom="jqueryui_plugins" inclure="simplecal_pipelines.php" /> 39 40 <utilise nom="gis" compatibilite="[4.44.2;]" /> 39 41 40 42 <!-- Prendre en compte la table des evenements dans les recherches --> -
_plugins_/simple_calendrier/branches/v2/prive/objets/liste/evenements.html
r105359 r109929 1 [(#REM) 2 Note : css automatique dans /prive/themes/spip/lists.css.html 3 ] 4 5 <B_liste_evt> 1 [(#SET{defaut_tri,#ARRAY{ 2 titre,1, 3 date_debut,1, 4 id_evenements,1, 5 points,-1 6 }})]<B_liste_evt> 6 7 #ANCRE_PAGINATION 7 8 <div class="liste-objets evenements"> … … 10 11 <thead> 11 12 <tr class="first_row"> 12 <th class="statut"><span title="<:lien_trier_statut|attribut_html:>">#</span></th> 13 <th class="titre"><:info_titre:></th> 14 <th class="auteur"><:auteur:></th> 15 <th class="date"><:date:></th> 16 <th class="id"><:info_numero_abbreviation:></th> 13 <th class="statut" scope="col">[(#TRI{statut,<span title="<:lien_trier_statut|attribut_html:>">#</span>,ajax})]</th> 14 <th class="titre" scope="col">[(#TRI{titre,<:info_titre:>,ajax})]</th> 15 <th class="date" scope="col">[(#TRI{date_debut,<:simplecal:dates:>,ajax})]</th> 16 <th class="id" scope="col">[(#TRI{id_evenement,<:info_numero_abbreviation:>,ajax})]</th> 17 17 </tr> 18 18 </thead> 19 19 <tbody> 20 21 <!-- id_auteur + id_mot pose pb ensemble ... --> 22 <BOUCLE_liste_evt(EVENEMENTS){id_evenement?}{id_auteur?}{id_secteur?}{id_rubrique?}{id_mot?}{statut?}{where?}{recherche?}{par date_debut, date}{pagination 10}> 20 <BOUCLE_liste_evt(EVENEMENTS){id_evenement?}{id_rubrique?}{id_secteur?}{id_mot?}{id_auteur?}{where?}{statut?}{recherche?}{tri #ENV{par, titre},#GET{defaut_tri}}{par date_debut, date_fin}{pagination 10}> 23 21 <tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]"> 24 22 <td class="statut">[(#STATUT|puce_statut{'evenement',#ID_EVENEMENT,#ID_RUBRIQUE})]</td> … … 27 25 <a href="[(#ID_EVENEMENT|generer_url_entite{evenement})]" 28 26 title="<:info_numero_abbreviation|attribut_html:> #ID_EVENEMENT" 29 [hreflang="(#ENV{lang}|=={#LANG}|non|?{#LANG})"]>#TITRE</a> 30 [(#DATE_DEBUT|affdate_debut_fin{#DATE_FIN,non})][ - (#LIEU)] 31 </td> 32 <td class="auteur"><BOUCLE_auteurs(AUTEURS){id_evenement}{', '}><a href="[(#ID_AUTEUR|generer_url_entite{auteur})]">#NOM</a></BOUCLE_auteurs></td> 33 <td class="date secondaire">[(#DATE|affdate_jourcourt)]</td> 27 [hreflang="(#ENV{lang}|=={#LANG}|non|?{#LANG})"]>#TITRE</a>[(#LIEU|textebrut)]</td> 28 <td class="date secondaire">[(#DATE_DEBUT|affdate_debut_fin{#DATE_FIN,non,abbr})]</td> 34 29 <td class="id">[(#AUTORISER{modifier,evenement,#ID_EVENEMENT}|?{ 35 30 <a href="[(#URL_ECRIRE{evenement_edit,id_evenement=#ID_EVENEMENT})]">#ID_EVENEMENT</a>, -
_plugins_/simple_calendrier/branches/v2/prive/squelettes/contenu/evenement.html
r61121 r109929 18 18 </div> 19 19 20 <!--affiche_milieu--> 21 20 22 <div class="ajax"> 21 23 #FORMULAIRE_EDITER_LIENS{auteurs,evenement,#ID_EVENEMENT} … … 23 25 24 26 <div id="wysiwyg"> 25 <INCLURE{fond=prive/objets/contenu/evenement,id=#ID_EVENEMENT } />27 <INCLURE{fond=prive/objets/contenu/evenement,id=#ID_EVENEMENT,id_evenement=#ID_EVENEMENT,virtuel=oui,ajax=wysiwyg,wysiwyg=1}> 26 28 </div> 29 30 <div class="nettoyeur"></div> 27 31 28 32 #PIPELINE{afficher_complement_objet,#ARRAY{args,#ARRAY{type,evenement,id,#ID_EVENEMENT},data,'<div class="nettoyeur"></div>'}} 29 33 30 34 #BOITE_FERMER 35 36 31 37 [(#EVAL{_AJAX}|oui) 32 38 <script type="text/javascript">if (window.jQuery) -
_plugins_/simple_calendrier/branches/v2/prive/squelettes/contenu/evenements.html
r84658 r109929 8 8 9 9 10 [(#INCLURE{fond=prive/objets/liste/evenements,where=#GET{where},par=date ,ajax,env})]10 [(#INCLURE{fond=prive/objets/liste/evenements,where=#GET{where},par=date_debut,ajax,env})] 11 11 12 12 -
_plugins_/simple_calendrier/branches/v2/prive/squelettes/inclure/simplecal-rubrique-enfants.html
r84658 r109929 3 3 ] 4 4 [(#AUTORISER{publierdans,rubrique,#ID_RUBRIQUE}|?{ 5 #INCLURE{fond=prive/objets/liste/evenements,titre=<:simplecal:info_tous_evenements_en_redaction:>,statut=prepa,id_rubrique,par=date ,ajax,env}5 #INCLURE{fond=prive/objets/liste/evenements,titre=<:simplecal:info_tous_evenements_en_redaction:>,statut=prepa,id_rubrique,par=date_debut,ajax,env} 6 6 , 7 #INCLURE{fond=prive/objets/liste/evenements,titre=<:simplecal:info_tous_evenements_en_redaction:>,statut=prepa,id_rubrique,id_auteur=#SESSION{id_auteur},par=date ,ajax,env}7 #INCLURE{fond=prive/objets/liste/evenements,titre=<:simplecal:info_tous_evenements_en_redaction:>,statut=prepa,id_rubrique,id_auteur=#SESSION{id_auteur},par=date_debut,ajax,env} 8 8 }) 9 9 ] 10 10 11 11 [(#REM) 12 Les evenements publies 12 Les evenements publies et à venir 13 13 ] 14 [(#INCLURE{fond=prive/objets/liste/evenements,titre=<:simplecal:info_tous_evenements_presents:>,statut=publie,id_rubrique,par=date,ajax,env} 15 |sinon{#INCLURE{fond=prive/objets/liste/evenements,titre=<:simplecal:info_tous_evenements_refuses:>,statut=refuse,id_rubrique,par=date,ajax,env}})] 14 15 [(#SET{where, #VAL{''}|simplecal_evenements_where{#ENV{mode,'avenir'}} })] 16 [(#INCLURE{fond=prive/objets/liste/evenements,titre=<:simplecal:info_tous_evenements_presents:>,where=#GET{where},statut=publie,id_rubrique,par=date_debut,ajax,env} 17 |sinon{#INCLURE{fond=prive/objets/liste/evenements,titre=<:simplecal:info_tous_evenements_refuses:>,statut=refuse,id_rubrique,par=date_debut,ajax,env}})] -
_plugins_/simple_calendrier/branches/v2/prive/squelettes/inclure/simplecal-rubrique-prop.html
r84658 r109929 2 2 Les evenements proposes 3 3 ] 4 [(#INCLURE{fond=prive/objets/liste/evenements,titre=<:simplecal:info_evenements_proposes:>,statut=prop,id_rubrique,par=date ,ajax,env})]4 [(#INCLURE{fond=prive/objets/liste/evenements,titre=<:simplecal:info_evenements_proposes:>,statut=prop,id_rubrique,par=date_debut,ajax,env})] -
_plugins_/simple_calendrier/branches/v2/prive/squelettes/navigation/evenements.html
r70840 r109929 1 #BOITE_OUVRIR{'',info center} 2 [(#CHEMIN_IMAGE{simplecal-logo-96.png}|balise_img|inserer_attribut{alt,<:simplecal:alt_img_logo:>})] 3 <br /> 4 <:simplecal:description_plugin:> 5 #BOITE_FERMER 6 1 [(#ENV{id_rubrique}|non) 2 #BOITE_OUVRIR{'',info center} 3 [(#CHEMIN_IMAGE{simplecal-logo-96.png}|balise_img|inserer_attribut{alt,<:simplecal:alt_img_logo:>})] 4 <br /> 5 <:simplecal:description_plugin:> 6 #BOITE_FERMER 7 ] 7 8 8 9 [(#ENV{id_rubrique}|oui) 9 #BOITE_OUVRIR{'',raccourcis} 10 [(#URL_ECRIRE{rubrique,id_rubrique=#ENV{id_rubrique}}|icone_horizontale{<:simplecal:retour_rubrique:>,simplecal_logo,''})] 11 [(#URL_ECRIRE{evenements,mode=avenir}|icone_horizontale{<:simplecal:raccourcis_tous_evenements:>,simplecal_logo,''})] 12 #BOITE_FERMER 10 #BOITE_OUVRIR{'',raccourcis} 11 [(#URL_ECRIRE{evenements}|icone_horizontale{<:simplecal:raccourcis_tous_evenements:>,evenement-16.png,''})] 12 #BOITE_FERMER 13 13 ] 14 14 15 [#BOITE_OUVRIR{'',basic} 16 (#VAL{#ENV{annee}}|simplecal_classement{#ENV{mois},#ENV{mode},#ENV{id_rubrique}}) 17 #BOITE_FERMER] 15 [(#ENV{id_rubrique}|non) 16 [#BOITE_OUVRIR{'',basic} 17 (#VAL{#ENV{annee}}|simplecal_classement{#ENV{mois},#ENV{mode},#ENV{id_rubrique}}) 18 #BOITE_FERMER] 18 19 19 [(#AUTORISER{demo,simplecal}) 20 #BOITE_OUVRIR{'',raccourcis} 21 [(#URL_ECRIRE{simplecal_demo}|icone_horizontale{<:simplecal:raccourcis_demo:>,evenement,''})] 22 #BOITE_FERMER 20 [(#AUTORISER{demo,simplecal}) 21 #BOITE_OUVRIR{'',raccourcis} 22 [(#URL_ECRIRE{simplecal_demo}|icone_horizontale{<:simplecal:raccourcis_demo:>,evenement,''})] 23 #BOITE_FERMER 24 ] 23 25 ] -
_plugins_/simple_calendrier/branches/v2/simplecal_autoriser.php
r95272 r109929 127 127 } 128 128 129 /** 130 * Autorisation de créer un événement dans une rubrique 131 * 132 * @param string $faire Action demandée 133 * @param string $type Type d'objet sur lequel appliquer l'action 134 * @param int $id Identifiant de l'objet 135 * @param array $qui Description de l'auteur demandant l'autorisation 136 * @param array $opt Options de cette autorisation 137 * @return bool true s'il a le droit, false sinon 138 **/ 139 function autoriser_rubrique_creerevenementdans_dist($faire, $type, $id, $qui, $opt) { 140 return ($id and autoriser('voir', 'rubrique', $id) and autoriser('creer', 'evenement', $id)); 141 } 142 143 /* Compatibilité avec le plugin LIM : restriction par rubrique */ 144 if (!function_exists('autoriser_rubrique_creerevenementdans') AND test_plugin_actif('lim')) { 145 function autoriser_rubrique_creerevenementdans($faire, $type, $id, $qui, $opt) { 146 $quelles_rubriques = lire_config('lim_rubriques/evenement'); 147 is_null($quelles_rubriques) ? $lim_rub = true : $lim_rub = !in_array($id,$quelles_rubriques); 148 149 return 150 $lim_rub 151 AND autoriser_rubrique_creerevenementdans_dist($faire, $type, $id, $qui, $opt); 152 } 153 } 154 129 155 ?> -
_plugins_/simple_calendrier/branches/v2/simplecal_pipelines.php
r101802 r109929 195 195 } 196 196 } 197 198 // On se trouve dans une rubrique 199 if ($exec == 'rubrique'){ 200 $id_rubrique = $flux['args']['id_rubrique']; 201 $contexte = array( 202 'id_rubrique' => $flux['args']['id_rubrique'], 203 'mode' => 'avenir' 204 ); 205 $nav_evenements = recuperer_fond('prive/squelettes/navigation/evenements', $contexte); 206 $flux['data'] .= $nav_evenements; 207 } 197 208 198 209 return $flux;
Note: See TracChangeset
for help on using the changeset viewer.