Changeset 808987
- Timestamp:
- 11/22/2013 05:51:08 PM (12 years ago)
- Location:
- posts-order-widget/trunk
- Files:
-
- 4 edited
-
languages/post-order-widget-fr_FR.mo (modified) (previous)
-
languages/post-order-widget-fr_FR.po (modified) (2 diffs)
-
post-order-widget.php (modified) (10 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
posts-order-widget/trunk/languages/post-order-widget-fr_FR.po
r782086 r808987 2 2 msgstr "" 3 3 "Project-Id-Version: WP Sort Posts Widget\n" 4 "POT-Creation-Date: 2013- 09-13 23:43+0100\n"5 "PO-Revision-Date: 2013- 09-13 23:43+0100\n"4 "POT-Creation-Date: 2013-11-22 18:39+0100\n" 5 "PO-Revision-Date: 2013-11-22 18:43+0100\n" 6 6 "Last-Translator: LordPretender <lordp.webmaster@gmail.com>\n" 7 7 "Language-Team: LordPretender <lordp.webmaster@gmail.com>\n" … … 17 17 "X-Poedit-SearchPath-0: ..\n" 18 18 19 #: ../post-order-widget.php:8 319 #: ../post-order-widget.php:87 20 20 msgid "" 21 "This widget will let visitors order posts by context rather than date with a " 22 "dropdown menu." 21 "Let visitors order posts by context rather than date with a dropdown menu." 23 22 msgstr "" 24 "Ce widget permet aux utilisateurs de trier les articles grâce à une liste " 25 "déroulante." 23 "Autorise les utilisateurs à trier les articles grâce à une liste déroulante." 26 24 27 #: ../post-order-widget.php:1 0725 #: ../post-order-widget.php:116 28 26 msgid "By title" 29 27 msgstr "Par titre" 30 28 31 #: ../post-order-widget.php:108 29 #: ../post-order-widget.php:117 30 msgid "Oldest to newest" 31 msgstr "Du plus ancien au plus récent" 32 33 #: ../post-order-widget.php:118 34 msgid "By modification" 35 msgstr "Par modification" 36 37 #: ../post-order-widget.php:119 38 msgid "Randomly" 39 msgstr "Aléatoirement" 40 41 #: ../post-order-widget.php:125 32 42 msgid "Newest to oldest" 33 43 msgstr "Du plus récent au plus ancien" 34 44 35 #: ../post-order-widget.php:109 36 msgid "Oldest to newest" 37 msgstr "Du plus ancien au plus récent" 38 39 #: ../post-order-widget.php:110 40 msgid "By modification" 41 msgstr "Par modification" 42 43 #: ../post-order-widget.php:133 45 #: ../post-order-widget.php:153 44 46 msgid "Sort posts" 45 47 msgstr "Trier les articles" 46 48 47 #: ../post-order-widget.php:1 3849 #: ../post-order-widget.php:158 48 50 msgid "Display the order by title" 49 51 msgstr "Afficher le tri par titre" 50 52 51 #: ../post-order-widget.php:141 52 msgid "Display the order by descending date" 53 msgstr "Afficher le tri par date descendante" 54 55 #: ../post-order-widget.php:144 53 #: ../post-order-widget.php:161 56 54 msgid "Display the order by ascending date" 57 55 msgstr "Afficher le tri par date ascendante" 58 56 59 #: ../post-order-widget.php:1 4757 #: ../post-order-widget.php:164 60 58 msgid "Display the order by modification" 61 59 msgstr "Afficher le tri par modification" 60 61 #: ../post-order-widget.php:167 62 msgid "Display the order randomly" 63 msgstr "Afficher le tri aléatoire" 64 65 #~ msgid "Display the order by descending date" 66 #~ msgstr "Afficher le tri par date descendante" 62 67 63 68 #~ msgid "Adaptation of the plugin \"WP Sort Posts\"" -
posts-order-widget/trunk/post-order-widget.php
r782105 r808987 6 6 Description: This widget will let visitors order posts by context rather than date with a dropdown menu. 7 7 Author: LordPretender 8 Version: 1. 28 Version: 1.3 9 9 Author URI: http://www.duy-pham.fr 10 10 Domain Path: /languages … … 18 18 $id_bydatea = "bydatea"; 19 19 $id_bymodified = "bymodified"; 20 $id_rand = "rand"; 20 21 21 22 //Déclaration de notre extention en tant que Widget … … 84 85 'pow_widget', // Base ID 85 86 'Posts Order Widget', // Name 86 array( 'description' => __(' This widget will let visitors order posts by context rather than date with a dropdown menu.', 'post-order-widget'), ) // Args87 array( 'description' => __('Let visitors order posts by context rather than date with a dropdown menu.', 'post-order-widget'), ) // Args 87 88 ); 88 89 } … … 97 98 */ 98 99 public function widget( $args, $instance ) { 99 global $id_bytitle, $id_bydatea, $id_bymodified ;100 global $id_bytitle, $id_bydatea, $id_bymodified, $id_rand; 100 101 101 102 //On n'affiche pas le widget si nous sommes dans une page, un article, un média. … … 116 117 $opt_bydatea = $instance[$id_bydatea] ? "<option value=\"datea\"{$params['datea']}>". __('Oldest to newest', 'post-order-widget'). "</option>" : ""; 117 118 $opt_bymodified = $instance[$id_bymodified] ? "<option value=\"modified\"{$params['modified']}>". __('By modification', 'post-order-widget'). "</option>" : ""; 119 $opt_rand = $instance[$id_rand] ? "<option value=\"rand\"{$params['rand']}>". __('Randomly', 'post-order-widget'). "</option>" : ""; 118 120 119 121 echo " … … 124 126 $opt_bydatea 125 127 $opt_bymodified 128 $opt_rand 126 129 </select> 127 130 </form>"; … … 138 141 */ 139 142 public function form( $instance ) { 140 global $id_bytitle, $id_bydatea, $id_bymodified ;143 global $id_bytitle, $id_bydatea, $id_bymodified, $id_rand; 141 144 142 145 $checked_bytitle = $instance[$id_bytitle] ? 'checked="checked"' : ''; 143 146 $checked_bydatea = $instance[$id_bydatea] ? 'checked="checked"' : ''; 144 147 $checked_bymodified = $instance[$id_bymodified] ? 'checked="checked"' : ''; 148 $checked_rand = $instance[$id_rand] ? 'checked="checked"' : ''; 145 149 146 150 ?> … … 159 163 <input class="checkbox" type="checkbox" <?php echo $checked_bymodified; ?> id="<?php echo $this->get_field_id($id_bymodified); ?>" name="<?php echo $this->get_field_name($id_bymodified); ?>" /> 160 164 <label for="<?php echo $this->get_field_id($id_bymodified); ?>"><?php _e('Display the order by modification', 'post-order-widget'); ?></label> 165 <br /> 166 <input class="checkbox" type="checkbox" <?php echo $checked_rand; ?> id="<?php echo $this->get_field_id($id_rand); ?>" name="<?php echo $this->get_field_name($id_rand); ?>" /> 167 <label for="<?php echo $this->get_field_id($id_rand); ?>"><?php _e('Display the order randomly', 'post-order-widget'); ?></label> 161 168 </p> 162 169 <?php … … 174 181 */ 175 182 public function update( $new_instance, $old_instance ) { 176 global $id_bytitle, $id_bydatea, $id_bymodified ;183 global $id_bytitle, $id_bydatea, $id_bymodified, $id_rand; 177 184 178 185 $instance = array(); … … 183 190 $instance[$id_bydatea] = $new_instance[$id_bydatea] ? 1 : 0; 184 191 $instance[$id_bymodified] = $new_instance[$id_bymodified] ? 1 : 0; 192 $instance[$id_rand] = $new_instance[$id_rand] ? 1 : 0; 185 193 186 194 return $instance; -
posts-order-widget/trunk/readme.txt
r782955 r808987 5 5 Requires at least: 3.6.1 6 6 Tested up to: 3.6.1 7 Stable tag: 1. 27 Stable tag: 1.3 8 8 9 9 Add the ability to sort the posts by context rather than descending date. … … 17 17 * by date (oldest to newest) 18 18 * sort by date last modified 19 * randomly 19 20 20 21 == Installation == … … 36 37 == Changelog == 37 38 39 = 1.3 = 40 * It is now possible to order randomly. 41 38 42 = 1.2 = 39 40 43 * The widget name on the management widget page was a wrong one. 41 44 42 45 = 1.1 = 43 44 46 * The widget is now not displayed in pages, posts and attachments. 45 47 46 48 = 1.0 = 47 48 49 * The first version of the plugin.
Note: See TracChangeset
for help on using the changeset viewer.