Changeset 1001
- Timestamp:
- 04/07/09 00:21:17 (14 years ago)
- Location:
- plugins/eventdata
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/eventdata/README.txt
r986 r1001 376 376 L'URL de la page public des événements. (S'utilise comme {{tpl:BlogURL}} ) 377 377 378 "EventPageNav" 379 Supporte les attribus communs. 380 Menu de choix de période d'événement à afficher. (ex: Non débuté, En cours, etc...) 381 Un attribu supplémantaire est ajouté: "menus", il permet de limiter le menu à des choix prédéfinis parmis les suivants: 382 'ongoing','outgoing','notstarted','started','notfinished','finished','all'. Par exemple pour limiter le menu à 2 choix 383 il faut utiliser {{tpl:EventPageNav menus="notstarted,ongoing"}} ce qui donnera le menu suivant: 384 "<div id="event_nav"><ul><li><a href="...">Non débuté</a></li><li><a href="...">En cours</a></li></ul></div>" 385 Si un tri est reconnu la balise "li" prendra la class "active". 386 378 387 "EventPeriod" 379 388 Supporte les attribus communs. 380 389 Affiche dans quel periode se trouve l'entrée courante. 381 390 Par exemple si le billet en cours à un événement associé qui est terminé, la period sera "finished" 382 Un attribu suplémentaire est ajouté: "strict", si il est présent, une des valeurs "s heduled", "ongoing", "finished" sera retourné,391 Un attribu suplémentaire est ajouté: "strict", si il est présent, une des valeurs "scheduled", "ongoing", "finished" sera retourné, 383 392 cela peut servir pour les CSS par exemple. 384 393 -
plugins/eventdata/_define.php
r986 r1001 17 17 /* Description*/ "Add period to your posts", 18 18 /* Author */ "JC Denis", 19 /* Version */ '0.3. 2',19 /* Version */ '0.3.3', 20 20 /* Permissions */ 'usage,contentadmin' 21 21 ); 22 /* date */ #2009040 222 /* date */ #20090407 23 23 ?> -
plugins/eventdata/_public.php
r990 r1001 17 17 __('Events'); 18 18 __('Dates of events'); 19 __('scheduled'); 19 __('all'); 20 __('ongoing'); 21 __('outgoing'); 22 __('notstarted'); 23 __('started'); 24 __('notfinished'); 20 25 __('finished'); 21 __('ongoing');22 26 __('From %S to %E'); 23 27 … … 47 51 $core->tpl->addValue('EventPageTitle',array('eventdataPublic','EventPageTitle')); 48 52 $core->tpl->addValue('EventPageDescription',array('eventdataPublic','EventPageDescription')); 53 $core->tpl->addValue('EventPageNav',array('eventdataPublic','EventPageNav')); 49 54 50 55 $core->tpl->addBlock('EntryEventDates',array('eventdataPublic','EntryEventDates')); … … 67 72 $core->tpl->addValue('EventPageTitle',array('eventdataPublic','EventDisableValue')); 68 73 $core->tpl->addValue('EventPageDescription',array('eventdataPublic','EventDisableValue')); 74 $core->tpl->addValue('EventPageNav',array('eventdataPublic','EventDisableValue')); 69 75 70 76 $core->tpl->addBlock('EntryEventDates',array('eventdataPublic','EventDisableBlock')); … … 177 183 $start = isset($attr['start']) ? '"'.addslashes($attr['start']).'"' : 'null'; 178 184 $end = isset($attr['end']) ? '"'.addslashes($attr['end']).'"' : 'null'; 179 $sort = isset($attr['order']) && strtoupper($attr['order']) == 'ASC' ? ' ASC' : 'DESC';185 $sort = isset($attr['order']) && strtoupper($attr['order']) == 'ASC' ? '"ASC"' : '"DESC"'; 180 186 181 187 return … … 322 328 else 323 329 return '<?php echo '.sprintf($f,'$core->blog->settings->event_tpl_desc').'; ?>'; 330 } 331 # Navigation menu for public page 332 public static function EventPageNav($attr) 333 { 334 global $core,$_ctx; 335 $f = $core->tpl->getFilters($attr); 336 337 $menu = array( 338 __('All') => 'all', 339 __('Ongoing') => 'ongoing', 340 __('Outgoing') => 'outgoing', 341 __('Not started') => 'notstarted', 342 __('Started') => 'started', 343 __('Not finished') => 'notfinished', 344 __('Finished') => 'finished' 345 ); 346 347 if (isset($attr['menus'])) { 348 $attr_menu = array(); 349 $attr_menus = explode(',',$attr['menus']); 350 foreach($attr_menus AS $k => $v) { 351 if (in_array($v,$menu)) 352 $attr_menu[$menu[$v]] = $v; 353 } 354 if (!empty($attr_menu)) 355 $menu = $attr_menu; 356 } 357 $res = ''; 358 foreach($menu AS $k => $v) { 359 $res .= $_ctx->post_params['period'] == $v ? '<li class="active">' : '<li>'; 360 $res .= '<a href="'.self::EventPageURL('').'/'.$v.'"><?php echo '.sprintf($f,'"'.$k.'"').'; ?></a></li>'; 361 } 362 363 return empty($res) ? '' : '<div id="event_nav"><ul>'.$res.'</ul></div>'; 324 364 } 325 365 # Posts list with events (like Entries) -
plugins/eventdata/default-templates/eventdata-default/eventdata.css
r960 r1001 22 22 background: transparent url(eventstheme/eventsongoing.png) no-repeat 0px 2px; 23 23 } 24 25 24 .post-info-co .post-events { 26 25 line-height: 20px; … … 28 27 background: transparent url(eventstheme/eventsicon.png) no-repeat 0 0; 29 28 } 29 #event_nav { 30 } 31 #event_nav li { 32 display: -moz-inline-box; 33 -moz-box-orient: vertical; 34 display: inline-block; 35 vertical-align: top; 36 word-wrap: break; 37 height: 100%; 38 margin: 0 20px 0 0; 39 padding: 0 0 10px 0; 40 font-size: 1em; 41 } 42 #event_nav li.active a { 43 } 44 * html #event_nav li { /* IE6 */ 45 display: inline; 46 } 47 *+html #event_nav li { /* IE7 */ 48 display: inline; 49 } 50 #event_nav li a { 51 } 52 #event_nav li a:hover, #nav li a:focus { 53 text-decoration: none; 54 } -
plugins/eventdata/default-templates/eventdata-default/events.html
r960 r1001 58 58 <div id="content-info"> 59 59 <h2>{{tpl:EventPageTitle encode_html="1"}}</h2> 60 {{tpl:EventPageNav}} 60 61 {{tpl:EventPageDescription}} 61 62 … … 65 66 66 67 </div> 67 68 68 69 69 <tpl:EventEntries> -
plugins/eventdata/default-templates/eventdata-noviny/eventdata.css
r960 r1001 1 1 * .post-events { 2 3 4 2 margin: 5px; 3 padding: 5px; 4 border-bottom: 1px solid #e9dfc6; 5 5 } 6 6 * .post-events h2 { 7 8 9 10 7 font-family: Helvetica,FreeSans,Arial,"Liberation Sans","Nimbus Sans L",sans-serif; 8 font-size: 1.4em; 9 font-weight: bold; 10 color: #8c6f4a; 11 11 } 12 12 * .post-events li { … … 27 27 background: #fff url(eventstheme/eventsongoing.png) no-repeat 0px 3px; 28 28 } 29 #event_nav { 30 position: relative; 31 bottom: -10px; 32 left: 0; 33 width: 710px; 34 } 35 #event_nav li { 36 display: -moz-inline-box; 37 -moz-box-orient: vertical; 38 display: inline-block; 39 vertical-align: top; 40 word-wrap: break; 41 height: 100%; 42 margin: 0 20px 0 0; 43 padding: 0 0 10px 0; 44 font-size: 1em; 45 color: #8c6f4a; 46 } 47 #event_nav li.active a { 48 color: #8c6f4a; 49 } 50 * html #event_nav li { /* IE6 */ 51 display: inline; 52 } 53 *+html #event_nav li { /* IE7 */ 54 display: inline; 55 } 56 #event_nav li a { 57 color: #2e6da3 58 } 59 #event_nav li a:hover, #nav li a:focus { 60 text-decoration: none; 61 color: #998f76; 62 } -
plugins/eventdata/default-templates/eventdata-noviny/events.html
r960 r1001 61 61 62 62 <h2>{{tpl:EventPageTitle encode_html="1"}}</h2> 63 {{tpl:EventPageNav}} 63 64 </div> 64 65 65 <!-- # meta --> 66 66 <div id="meta" class="grid-s"> -
plugins/eventdata/locales/fr/main.po
r986 r1001 10 10 #: _widgets.php:30 11 11 #: index.php:226 12 #: index.php:23 012 #: index.php:231 13 13 msgid "Events" 14 14 msgstr "Evénements" … … 58 58 msgstr "Dates d'événements" 59 59 60 #: _public.php:19 61 msgid "all" 62 msgstr "tous" 63 60 64 #: _public.php:20 61 #: _public.php:289 65 #: _public.php:294 66 #: inc/lib.eventdata.list.php:139 67 msgid "ongoing" 68 msgstr "en cours" 69 70 #: _public.php:21 71 msgid "outgoing" 72 msgstr "pas en cours" 73 74 #: _public.php:22 75 msgid "notstarted" 76 msgstr "non débuté" 77 78 #: _public.php:23 79 msgid "started" 80 msgstr "débuté" 81 82 #: _public.php:24 83 msgid "notfinished" 84 msgstr "non terminé" 85 86 #: _public.php:25 87 #: _public.php:296 62 88 #: inc/lib.eventdata.list.php:137 63 89 msgid "finished" 64 90 msgstr "terminé" 65 91 66 #: _public.php:21 67 #: _public.php:287 68 #: inc/lib.eventdata.list.php:139 69 msgid "ongoing" 70 msgstr "en cours" 71 72 #: _public.php:22 73 #: _public.php:225 92 #: _public.php:26 93 #: _public.php:232 74 94 #: _widgets.php:75 75 95 #: _widgets.php:167 … … 77 97 msgstr "Du %S au %E" 78 98 99 #: _public.php:339 100 #: _widgets.php:65 101 #: index.php:152 102 msgid "Ongoing" 103 msgstr "En cours" 104 105 #: _public.php:340 106 #: _widgets.php:66 107 #: index.php:153 108 msgid "Outgoing" 109 msgstr "Pas en cours" 110 111 #: _public.php:341 112 #: _widgets.php:61 113 #: index.php:148 114 msgid "Not started" 115 msgstr "Non débuté" 116 117 #: _public.php:342 118 #: _widgets.php:62 119 #: index.php:149 120 msgid "Started" 121 msgstr "Débuté" 122 123 #: _public.php:343 124 #: _widgets.php:64 125 #: index.php:151 126 msgid "Not finished" 127 msgstr "Non fini" 128 129 #: _public.php:344 130 #: _widgets.php:63 131 #: index.php:150 132 msgid "Finished" 133 msgstr "Fini" 134 79 135 #: _widgets.php:50 80 136 #: index.php:130 … … 92 148 93 149 #: _widgets.php:59 94 #: index.php:2 69150 #: index.php:270 95 151 msgid "Period:" 96 152 msgstr "Période :" 97 98 #: _widgets.php:6199 #: index.php:148100 msgid "Not started"101 msgstr "Non débuté"102 103 #: _widgets.php:62104 #: index.php:149105 msgid "Started"106 msgstr "Débuté"107 108 #: _widgets.php:63109 #: index.php:150110 msgid "Finished"111 msgstr "Fini"112 113 #: _widgets.php:64114 #: index.php:151115 msgid "Not finished"116 msgstr "Non fini"117 118 #: _widgets.php:65119 #: index.php:152120 msgid "Ongoing"121 msgstr "En cours"122 123 #: _widgets.php:66124 #: index.php:153125 msgid "Outgoing"126 msgstr "Pas en cours"127 153 128 154 #: _widgets.php:68 … … 165 191 166 192 #: index.php:28 167 #: index.php:60 4193 #: index.php:605 168 194 msgid "About" 169 195 msgstr "À propos" … … 178 204 179 205 #: index.php:33 180 #: index.php:56 5181 #: index.php:59 1206 #: index.php:566 207 #: index.php:592 182 208 msgid "Uninstall" 183 209 msgstr "Désinstaller" … … 203 229 msgstr "Thème courant du blog" 204 230 205 #: index.php:25 1231 #: index.php:252 206 232 msgid "This is the list of all entries with event" 207 233 msgstr "Ceci est la liste de tous les billets ayant un événement" 208 234 209 #: index.php:33 6235 #: index.php:337 210 236 msgid "This is a list of all the categories that can be rearranged by dates of events" 211 237 msgstr "Ceci est la liste de toutes les catégories qui peuvent être réordonnées par dates d'événements" 212 238 213 #: index.php:34 0239 #: index.php:341 214 240 msgid "Id" 215 241 msgstr "Id" 216 242 217 #: index.php:34 1243 #: index.php:342 218 244 msgid "Level" 219 245 msgstr "Niveau" 220 246 221 #: index.php:34 3222 #: index.php:35 6247 #: index.php:344 248 #: index.php:357 223 249 msgid "Reordered" 224 250 msgstr "Réordonné" 225 251 226 #: index.php:34 4227 #: index.php:3 59252 #: index.php:345 253 #: index.php:360 228 254 msgid "Unlisted" 229 255 msgstr "Caché" 230 256 231 #: index.php:35 6232 #: index.php:3 59257 #: index.php:357 258 #: index.php:360 233 259 msgid "Normal" 234 260 msgstr "Normal" 235 261 236 #: index.php:36 7262 #: index.php:368 237 263 msgid "Selected categories action:" 238 264 msgstr "Action sur les catégories sélectionnées :" 239 265 240 #: index.php:40 0266 #: index.php:401 241 267 msgid "This is the management of the public page" 242 268 msgstr "Ceci est la gestion de la page publique" 243 269 244 #: index.php:40 1270 #: index.php:402 245 271 msgid "Public page is disable" 246 272 msgstr "La page publique est inactive" 247 273 248 #: index.php:41 2274 #: index.php:413 249 275 msgid "Theme" 250 276 msgstr "Thème" 251 277 252 #: index.php:41 4278 #: index.php:415 253 279 msgid "Current blog theme:" 254 280 msgstr "Thème courant du blog :" 255 281 256 #: index.php:41 5282 #: index.php:416 257 283 msgid "Adapted template exists:" 258 284 msgstr "Existence du modèle adapté :" 259 285 260 #: index.php:415261 286 #: index.php:416 262 #: index.php:430 287 #: index.php:417 288 #: index.php:431 289 #: index.php:469 290 #: index.php:473 291 #: index.php:477 292 msgid "Yes" 293 msgstr "Oui" 294 295 #: index.php:416 296 #: index.php:417 297 #: index.php:431 263 298 #: index.php:468 264 299 #: index.php:472 265 300 #: index.php:476 266 msgid "Yes"267 msgstr "Oui"268 269 #: index.php:415270 #: index.php:416271 #: index.php:430272 #: index.php:467273 #: index.php:471274 #: index.php:475275 301 msgid "No" 276 302 msgstr "Non" 277 303 278 #: index.php:41 6304 #: index.php:417 279 305 msgid "Template on current theme exists:" 280 306 msgstr "Existence du modèle dans le thème courant :" 281 307 282 #: index.php:41 7308 #: index.php:418 283 309 msgid "Alternate template:" 284 310 msgstr "Modèle alternatif :" 285 311 286 #: index.php:41 8312 #: index.php:419 287 313 msgid "Public URL:" 288 314 msgstr "Lien publique :" 289 315 290 #: index.php:42 1316 #: index.php:422 291 317 msgid "URL prefix:" 292 318 msgstr "Prefixe du lien :" 293 319 294 #: index.php:42 5320 #: index.php:426 295 321 msgid "Choose predefined page template in case where theme of blog does not have it" 296 322 msgstr "Choisissez un modèle prédéfini au cas où le thème du blog n'en aurait pas" 297 323 298 #: index.php:4 29324 #: index.php:430 299 325 msgid "Disable list of dates of event on an entry" 300 326 msgstr "Désactiver la liste des dates d'événements d'un billet" 301 327 302 #: index.php:43 5303 #: index.php:50 1328 #: index.php:436 329 #: index.php:502 304 330 msgid "Save configuration" 305 331 msgstr "Enregistrer la configuration" 306 332 307 #: index.php:46 1333 #: index.php:462 308 334 msgid "Plugin admistration options on this blog" 309 335 msgstr "Administration de l'extension sur ce blog" 310 336 311 #: index.php:46 6337 #: index.php:467 312 338 msgid "Enable plugin" 313 339 msgstr "Activer l'extension" 314 340 315 #: index.php:47 0341 #: index.php:471 316 342 msgid "Plugin icon in Blog menu" 317 343 msgstr "Icone de l'extension dans le menu Blog" 318 344 319 #: index.php:47 4345 #: index.php:475 320 346 msgid "Enable public page" 321 347 msgstr "Activer la page publique" 322 348 323 #: index.php:48 1349 #: index.php:482 324 350 msgid "Manage events dates on entries" 325 351 msgstr "Gèrer les dates des billets" 326 352 327 #: index.php:48 5353 #: index.php:486 328 354 msgid "Manage list of reordered categories" 329 355 msgstr "Gérer la liste des catégories réordonnées" 330 356 331 #: index.php:4 89357 #: index.php:490 332 358 msgid "Manage public page" 333 359 msgstr "Gérer la page publique" 334 360 335 #: index.php:49 3361 #: index.php:494 336 362 msgid "Manage plugin" 337 363 msgstr "Gérer l'extension" 338 364 339 #: index.php:5 19340 #: index.php:57 2365 #: index.php:520 366 #: index.php:573 341 367 msgid "You must check warning in order to delete plugin." 342 368 msgstr "Vous devez vérifier la mise en garde en vue de supprimer l'extension" 343 369 344 #: index.php:54 3345 #: index.php:57 5370 #: index.php:544 371 #: index.php:576 346 372 msgid "In order to properly uninstall this plugin, you must specify the actions to perform" 347 373 msgstr "Dans le but de désintaller proprement l'extension, vous devez spécifier les actions à effectuer" 348 374 349 #: index.php:54 5375 #: index.php:546 350 376 msgid "Validate" 351 377 msgstr "Valider" 352 378 353 #: index.php:54 8354 #: index.php:58 0379 #: index.php:549 380 #: index.php:581 355 381 msgid "You understand that if you delete this plugin, the other plugins that use there table and class will no longer work." 356 382 msgstr "Vous comprenez que si vous supprimez cette extension, les autres extensions qui utilisent ces table et classes ne fonctionneront plus." 357 383 358 #: index.php:55 0384 #: index.php:551 359 385 msgid "Delete plugin files" 360 386 msgstr "Supprimer les fichiers de l'extension" 361 387 362 #: index.php:55 2363 #: index.php:58 2388 #: index.php:553 389 #: index.php:583 364 390 msgid "Delete plugin database table" 365 391 msgstr "Supprimer la table de l'extension dans la base de donnée" 366 392 367 #: index.php:55 4368 #: index.php:58 4393 #: index.php:555 394 #: index.php:585 369 395 msgid "Delete plugin public templates" 370 396 msgstr "Suprimer les modèles de l'extension" 371 397 372 #: index.php:55 6373 #: index.php:58 6398 #: index.php:557 399 #: index.php:587 374 400 msgid "Delete plugin settings" 375 401 msgstr "Supprimer les paramètres de l'extension" 376 402 377 #: index.php:577 378 msgid "Uninstall "eventdata" plugin" 379 msgstr "Désintaller l'extension "eventdata"" 380 381 #: index.php:605 403 #: index.php:606 382 404 msgid "Version:" 383 405 msgstr "Version :" 384 406 385 #: index.php:60 7407 #: index.php:608 386 408 msgid "Support:" 387 409 msgstr "Support :" 388 410 389 #: index.php:61 3411 #: index.php:614 390 412 msgid "Copyrights:" 391 413 msgstr "Droits :"
Note: See TracChangeset
for help on using the changeset viewer.