Changeset 3135
- Timestamp:
- 07/01/13 02:34:06 (10 years ago)
- Location:
- plugins/postExpired
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/postExpired/_admin.php
r2555 r3135 1 1 <?php 2 2 # -- BEGIN LICENSE BLOCK ---------------------------------- 3 # 3 4 # This file is part of postExpired, a plugin for Dotclear 2. 4 5 # 5 # Copyright (c) 2009-201 0 JCDenis and contributors6 # jcdenis@gdwd.com6 # Copyright (c) 2009-2013 Jean-Christian Denis and contributors 7 # contact@jcdenis.fr http://jcd.lv 7 8 # 8 9 # Licensed under the GPL version 2.0 license. 9 10 # A copy of this license is available in LICENSE file or at 10 11 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 12 # 11 13 # -- END LICENSE BLOCK ------------------------------------ 12 14 … … 115 117 $expired_status = $rs_status->isEmpty() ? '' : (string) $rs_status->meta_id; 116 118 117 if ( $_REQUEST['p'] != 'pages') {119 if (!isset($_REQUEST['p']) || $_REQUEST['p'] != 'pages') { 118 120 $rs_cat = $core->meta->getMetadata(array('meta_type'=>'postexpiredcat','limit'=>1,'post_id'=>$post->post_id)); 119 121 $expired_cat = $rs_cat->isEmpty() ? '' : (string) $rs_cat->meta_id; … … 137 139 { 138 140 $status = (string) array_search($expired_status,self::statusCombo()); 139 if ( $_REQUEST['p'] != 'pages') {141 if (!isset($_REQUEST['p']) || $_REQUEST['p'] != 'pages') { 140 142 $category = (string) array_search($expired_cat,self::categoriesCombo()); 141 143 $selected = (string) array_search($expired_selected,self::selectedCombo()); … … 148 150 '<p>'.__('Status:').' '.$status.'</p>'; 149 151 150 if ( $_REQUEST['p'] != 'pages') {152 if (!isset($_REQUEST['p']) || $_REQUEST['p'] != 'pages') { 151 153 echo 152 154 '<p>'.__('Category:').' '.$category.'</p>'. … … 168 170 '</label></p>'; 169 171 170 if ( $_REQUEST['p'] != 'pages') {172 if (!isset($_REQUEST['p']) || $_REQUEST['p'] != 'pages') { 171 173 echo 172 174 '<p><label>'.__('Category:'). … … 335 337 http::redirect($redir); 336 338 } 337 339 338 340 try 339 341 { … … 341 343 while($posts->fetch()) 342 344 { 343 $posts_ids[] = $posts-> id;345 $posts_ids[] = $posts->post_id; 344 346 } 345 347 346 348 $rs_params['no_content'] = true; 347 349 $rs_params['post_id'] = $posts_ids; 348 $rs_params['meta_id'] = 'postexpired'; 349 $rs = $core->meta->getPostsByMeta($rs_params); 350 351 while ($rs->fetch()) 352 { 353 if ($post->isEditable()) 350 $rs_params['post_type'] = ''; 351 $rs_params['meta_type'] = 'postexpired'; 352 353 foreach($_POST['rmv_post_expired'] as $meta_id) 354 { 355 $rs_params['meta_id'] = $meta_id; 356 $rs = $core->meta->getPostsByMeta($rs_params); 357 358 while ($rs->fetch()) 354 359 { 355 self::del($rs->post_id); 360 if ($rs->isEditable()) 361 { 362 self::del($rs->post_id); 363 } 356 364 } 357 365 } … … 371 379 { 372 380 echo self::header(). 373 '<h2> '.__('Add expired date to entries').'</h2>'.381 '<h2><span class="page-title">'.__('Add expired date to entries').'</span></h2>'. 374 382 '<p>'.__('It will be added only if there is no expired date on entry.').'<p>'. 375 383 '<form action="posts_actions.php" method="post">'. … … 382 390 '</label></p>'; 383 391 384 if ( $_POST['post_type'] != 'page') {392 if (!isset($_POST['psot_type']) || $_POST['post_type'] != 'page') { 385 393 echo 386 394 '<p><label>'.__('Category:'). … … 407 415 $core->formNonce(). 408 416 form::hidden(array('action'),'action_postexpired_add'). 409 '<input type="submit" value="'.__(' save').'" /></p>'.417 '<input type="submit" value="'.__('Save').'" /></p>'. 410 418 '</form>'; 411 419 } … … 429 437 } 430 438 431 echo '<h2> '.__('Remove selected expired date from entries').'</h2>';439 echo '<h2><span class="page-title">'.__('Remove selected expired date from entries').'</span></h2>'; 432 440 433 441 if (empty($dts)) -
plugins/postExpired/_define.php
r2555 r3135 1 1 <?php 2 2 # -- BEGIN LICENSE BLOCK ---------------------------------- 3 # 3 4 # This file is part of postExpired, a plugin for Dotclear 2. 4 5 # 5 # Copyright (c) 2009-201 0 JCDenis and contributors6 # jcdenis@gdwd.com6 # Copyright (c) 2009-2013 Jean-Christian Denis and contributors 7 # contact@jcdenis.fr http://jcd.lv 7 8 # 8 9 # Licensed under the GPL version 2.0 license. 9 10 # A copy of this license is available in LICENSE file or at 10 11 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 12 # 11 13 # -- END LICENSE BLOCK ------------------------------------ 12 14 … … 17 19 /* Description*/ "Change entries options at a given date", 18 20 /* Author */ "JC Denis", 19 /* Version */ ' 0.5',21 /* Version */ '2013.06.30', 20 22 /* Permissions */ 'usage,contentadmin' 21 23 ); 22 /* date */ #2010081723 24 ?> -
plugins/postExpired/_public.php
r2555 r3135 1 1 <?php 2 2 # -- BEGIN LICENSE BLOCK ---------------------------------- 3 # 3 4 # This file is part of postExpired, a plugin for Dotclear 2. 4 5 # 5 # Copyright (c) 2009-201 0 JCDenis and contributors6 # jcdenis@gdwd.com6 # Copyright (c) 2009-2013 Jean-Christian Denis and contributors 7 # contact@jcdenis.fr http://jcd.lv 7 8 # 8 9 # Licensed under the GPL version 2.0 license. 9 10 # A copy of this license is available in LICENSE file or at 10 11 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 12 # 11 13 # -- END LICENSE BLOCK ------------------------------------ 12 14 -
plugins/postExpired/js/postexpired.js
r2187 r3135 1 1 /* -- BEGIN LICENSE BLOCK ---------------------------------- 2 * 2 3 * This file is part of postExpired, a plugin for Dotclear 2. 3 4 * 4 * Copyright (c) 2009-201 0 JCDenis and contributors5 * jcdenis@gdwd.com5 * Copyright (c) 2009-2013 Jean-Christian Denis and contributors 6 * contact@jcdenis.fr http://jcd.lv 6 7 * 7 8 * Licensed under the GPL version 2.0 license. 8 9 * A copy of this license is available in LICENSE file or at 9 10 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 11 * 10 12 * -- END LICENSE BLOCK ------------------------------------*/ 11 13 -
plugins/postExpired/locales/fr/main.lang.php
r2519 r3135 1 1 <?php 2 2 // Language: Français 3 // Module: postExpired - 0.44 // Date: 201 0-08-03 14:31:405 // Translated with dcTranslater - 1.4.13 // Module: postExpired - 2013.06.30 4 // Date: 2013-07-01 00:33:05 5 // Translated with dcTranslater - 2013.05.11 6 6 7 #_admin.php: 348 #_admin.php: 549 #_admin.php: 6310 #_admin.php: 7211 #_admin.php:8 17 #_admin.php:42 8 #_admin.php:62 9 #_admin.php:71 10 #_admin.php:80 11 #_admin.php:89 12 12 $GLOBALS['__l10n']['Not changed'] = 'Inchangé'; 13 13 14 #_admin.php: 5514 #_admin.php:63 15 15 $GLOBALS['__l10n']['Pending'] = 'En attente'; 16 16 17 #_admin.php: 5617 #_admin.php:64 18 18 $GLOBALS['__l10n']['Unpublished'] = 'Non publié'; 19 19 20 #_admin.php: 6520 #_admin.php:73 21 21 $GLOBALS['__l10n']['Not selected'] = 'Non sélectionné'; 22 22 23 #_admin.php: 7324 #_admin.php: 8223 #_admin.php:81 24 #_admin.php:90 25 25 $GLOBALS['__l10n']['Opened'] = 'Ouvert'; 26 26 27 #_admin.php: 7428 #_admin.php: 8327 #_admin.php:82 28 #_admin.php:91 29 29 $GLOBALS['__l10n']['Closed'] = 'Fermé'; 30 30 31 #_admin.php:1 2631 #_admin.php:135 32 32 $GLOBALS['__l10n']['Expired date'] = 'Date de péremption'; 33 33 34 #_admin.php:1 4234 #_admin.php:158 35 35 $GLOBALS['__l10n']['Comments:'] = 'Commentaires :'; 36 36 37 #_admin.php:1 4337 #_admin.php:159 38 38 $GLOBALS['__l10n']['Trackbacks:'] = 'Rétroliens :'; 39 39 40 #_admin.php:1 5141 #_admin.php:3 6042 $GLOBALS['__l10n']['On this date, change:'] = ' Acette date, changer :';40 #_admin.php:167 41 #_admin.php:387 42 $GLOBALS['__l10n']['On this date, change:'] = 'Á cette date, changer :'; 43 43 44 #_admin.php:1 5845 #_admin.php:3 6744 #_admin.php:177 45 #_admin.php:397 46 46 $GLOBALS['__l10n']['Selection:'] = 'Séléction :'; 47 47 48 #_admin.php:1 6149 #_admin.php: 37048 #_admin.php:182 49 #_admin.php:402 50 50 $GLOBALS['__l10n']['Comments status:'] = 'Status des commentaires :'; 51 51 52 #_admin.php:1 6453 #_admin.php: 37352 #_admin.php:185 53 #_admin.php:405 54 54 $GLOBALS['__l10n']['Trackbacks status:'] = 'Status des rétroliens :'; 55 55 56 #_admin.php:2 4557 #_admin.php:2 4956 #_admin.php:266 57 #_admin.php:270 58 58 $GLOBALS['__l10n']['Expired entries'] = 'Billets périmés'; 59 59 60 #_admin.php:2 4560 #_admin.php:266 61 61 $GLOBALS['__l10n']['Add expired date'] = 'Ajouter une date de péremption'; 62 62 63 #_admin.php:2 4963 #_admin.php:270 64 64 $GLOBALS['__l10n']['Remove expired date'] = 'Retirer une date de péremption'; 65 65 66 #_admin.php:3 5466 #_admin.php:381 67 67 $GLOBALS['__l10n']['Add expired date to entries'] = 'Ajouter une date de péremption aux billets'; 68 68 69 #_admin.php:3 5569 #_admin.php:382 70 70 $GLOBALS['__l10n']['It will be added only if there is no expired date on entry.'] = 'Ajouté uniquement si il n\'y a pas de date de péremption sur le billet.'; 71 71 72 #_admin.php:4 0772 #_admin.php:439 73 73 $GLOBALS['__l10n']['Remove selected expired date from entries'] = 'Retirer les dates de péremption sélectionnées des billets'; 74 74 75 #_admin.php:4 1175 #_admin.php:443 76 76 $GLOBALS['__l10n']['No expired date for selected entries'] = 'Pas de date de peremption sur les billets sélectionnés'; 77 77 78 #_admin.php:4 1979 $GLOBALS['__l10n']['Following expired date have been found in selected entries:'] = 'Les dates de péremption suivante ont été trouvé sur les billets sélectionnés :';78 #_admin.php:451 79 $GLOBALS['__l10n']['Following expired date have been found in selected entries:'] = 'Les dates de péremption suivantes ont été trouvé sur les billets sélectionnés :'; 80 80 81 #_public.php:1 581 #_public.php:17 82 82 $GLOBALS['__l10n']['Expired on'] = 'Expire le'; 83 83 84 #_public.php:1 684 #_public.php:18 85 85 $GLOBALS['__l10n']['This entry has no expiration date'] = 'Ce billet n\'a pas de date de péremption'; 86 86 -
plugins/postExpired/locales/fr/main.po
r2519 r3135 1 1 # Language: Français 2 # Module: postExpired - 0.43 # Date: 201 0-08-03 14:31:404 # Translated with translater 1.4.12 # Module: postExpired - 2013.06.30 3 # Date: 2013-07-01 00:33:05 4 # Translated with translater 2013.05.11 5 5 6 6 msgid "" 7 7 msgstr "" 8 8 "Content-Type: text/plain; charset=UTF-8\n" 9 "Project-Id-Version: postExpired 0.4\n"9 "Project-Id-Version: postExpired 2013.06.30\n" 10 10 "POT-Creation-Date: \n" 11 "PO-Revision-Date: 201 0-08-03T14:31:40+00:00\n"12 "Last-Translator: J CDenis\n"11 "PO-Revision-Date: 2013-07-01T00:33:05+00:00\n" 12 "Last-Translator: Jean-Christian Denis\n" 13 13 "Language-Team: \n" 14 14 "MIME-Version: 1.0\n" 15 15 "Content-Transfer-Encoding: 8bit\n" 16 16 17 #: _admin.php: 3418 #: _admin.php: 5419 #: _admin.php: 6320 #: _admin.php: 7221 #: _admin.php:8 117 #: _admin.php:42 18 #: _admin.php:62 19 #: _admin.php:71 20 #: _admin.php:80 21 #: _admin.php:89 22 22 msgid "Not changed" 23 23 msgstr "Inchangé" 24 24 25 #: _admin.php: 5525 #: _admin.php:63 26 26 msgid "Pending" 27 27 msgstr "En attente" 28 28 29 #: _admin.php: 5629 #: _admin.php:64 30 30 msgid "Unpublished" 31 31 msgstr "Non publié" 32 32 33 #: _admin.php: 6533 #: _admin.php:73 34 34 msgid "Not selected" 35 35 msgstr "Non sélectionné" 36 36 37 #: _admin.php: 7338 #: _admin.php: 8237 #: _admin.php:81 38 #: _admin.php:90 39 39 msgid "Opened" 40 40 msgstr "Ouvert" 41 41 42 #: _admin.php: 7443 #: _admin.php: 8342 #: _admin.php:82 43 #: _admin.php:91 44 44 msgid "Closed" 45 45 msgstr "Fermé" 46 46 47 #: _admin.php:1 2647 #: _admin.php:135 48 48 msgid "Expired date" 49 49 msgstr "Date de péremption" 50 50 51 #: _admin.php:1 4251 #: _admin.php:158 52 52 msgid "Comments:" 53 53 msgstr "Commentaires :" 54 54 55 #: _admin.php:1 4355 #: _admin.php:159 56 56 msgid "Trackbacks:" 57 57 msgstr "Rétroliens :" 58 58 59 #: _admin.php:1 5160 #: _admin.php:3 6059 #: _admin.php:167 60 #: _admin.php:387 61 61 msgid "On this date, change:" 62 msgstr " Acette date, changer :"62 msgstr "Á cette date, changer :" 63 63 64 #: _admin.php:1 5865 #: _admin.php:3 6764 #: _admin.php:177 65 #: _admin.php:397 66 66 msgid "Selection:" 67 67 msgstr "Séléction :" 68 68 69 #: _admin.php:1 6170 #: _admin.php: 37069 #: _admin.php:182 70 #: _admin.php:402 71 71 msgid "Comments status:" 72 72 msgstr "Status des commentaires :" 73 73 74 #: _admin.php:1 6475 #: _admin.php: 37374 #: _admin.php:185 75 #: _admin.php:405 76 76 msgid "Trackbacks status:" 77 77 msgstr "Status des rétroliens :" 78 78 79 #: _admin.php:2 4580 #: _admin.php:2 4979 #: _admin.php:266 80 #: _admin.php:270 81 81 msgid "Expired entries" 82 82 msgstr "Billets périmés" 83 83 84 #: _admin.php:2 4584 #: _admin.php:266 85 85 msgid "Add expired date" 86 86 msgstr "Ajouter une date de péremption" 87 87 88 #: _admin.php:2 4988 #: _admin.php:270 89 89 msgid "Remove expired date" 90 90 msgstr "Retirer une date de péremption" 91 91 92 #: _admin.php:3 5492 #: _admin.php:381 93 93 msgid "Add expired date to entries" 94 94 msgstr "Ajouter une date de péremption aux billets" 95 95 96 #: _admin.php:3 5596 #: _admin.php:382 97 97 msgid "It will be added only if there is no expired date on entry." 98 98 msgstr "Ajouté uniquement si il n'y a pas de date de péremption sur le billet." 99 99 100 #: _admin.php:4 07100 #: _admin.php:439 101 101 msgid "Remove selected expired date from entries" 102 102 msgstr "Retirer les dates de péremption sélectionnées des billets" 103 103 104 #: _admin.php:4 11104 #: _admin.php:443 105 105 msgid "No expired date for selected entries" 106 106 msgstr "Pas de date de peremption sur les billets sélectionnés" 107 107 108 #: _admin.php:4 19108 #: _admin.php:451 109 109 msgid "Following expired date have been found in selected entries:" 110 msgstr "Les dates de péremption suivante ont été trouvé sur les billets sélectionnés :"110 msgstr "Les dates de péremption suivantes ont été trouvé sur les billets sélectionnés :" 111 111 112 #: _public.php:1 5112 #: _public.php:17 113 113 msgid "Expired on" 114 114 msgstr "Expire le" 115 115 116 #: _public.php:1 6116 #: _public.php:18 117 117 msgid "This entry has no expiration date" 118 118 msgstr "Ce billet n'a pas de date de péremption" -
plugins/postExpired/release.txt
r2555 r3135 1 1 todo 2 2 * Add option to add/remove tag 3 4 2013.06.30 5 * Fixed post_type and posts_actions 3 6 4 7 0.5 20100817
Note: See TracChangeset
for help on using the changeset viewer.