Plugin Directory

Changeset 808987


Ignore:
Timestamp:
11/22/2013 05:51:08 PM (12 years ago)
Author:
LordPretender
Message:

version 1.3 released.

Location:
posts-order-widget/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • posts-order-widget/trunk/languages/post-order-widget-fr_FR.po

    r782086 r808987  
    22msgstr ""
    33"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"
    66"Last-Translator: LordPretender <lordp.webmaster@gmail.com>\n"
    77"Language-Team: LordPretender <lordp.webmaster@gmail.com>\n"
     
    1717"X-Poedit-SearchPath-0: ..\n"
    1818
    19 #: ../post-order-widget.php:83
     19#: ../post-order-widget.php:87
    2020msgid ""
    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."
    2322msgstr ""
    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."
    2624
    27 #: ../post-order-widget.php:107
     25#: ../post-order-widget.php:116
    2826msgid "By title"
    2927msgstr "Par titre"
    3028
    31 #: ../post-order-widget.php:108
     29#: ../post-order-widget.php:117
     30msgid "Oldest to newest"
     31msgstr "Du plus ancien au plus récent"
     32
     33#: ../post-order-widget.php:118
     34msgid "By modification"
     35msgstr "Par modification"
     36
     37#: ../post-order-widget.php:119
     38msgid "Randomly"
     39msgstr "Aléatoirement"
     40
     41#: ../post-order-widget.php:125
    3242msgid "Newest to oldest"
    3343msgstr "Du plus récent au plus ancien"
    3444
    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
    4446msgid "Sort posts"
    4547msgstr "Trier les articles"
    4648
    47 #: ../post-order-widget.php:138
     49#: ../post-order-widget.php:158
    4850msgid "Display the order by title"
    4951msgstr "Afficher le tri par titre"
    5052
    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
    5654msgid "Display the order by ascending date"
    5755msgstr "Afficher le tri par date ascendante"
    5856
    59 #: ../post-order-widget.php:147
     57#: ../post-order-widget.php:164
    6058msgid "Display the order by modification"
    6159msgstr "Afficher le tri par modification"
     60
     61#: ../post-order-widget.php:167
     62msgid "Display the order randomly"
     63msgstr "Afficher le tri aléatoire"
     64
     65#~ msgid "Display the order by descending date"
     66#~ msgstr "Afficher le tri par date descendante"
    6267
    6368#~ msgid "Adaptation of the plugin \"WP Sort Posts\""
  • posts-order-widget/trunk/post-order-widget.php

    r782105 r808987  
    66Description: This widget will let visitors order posts by context rather than date with a dropdown menu.
    77Author: LordPretender
    8 Version: 1.2
     8Version: 1.3
    99Author URI: http://www.duy-pham.fr
    1010Domain Path: /languages
     
    1818$id_bydatea = "bydatea";
    1919$id_bymodified = "bymodified";
     20$id_rand = "rand";
    2021
    2122//Déclaration de notre extention en tant que Widget
     
    8485            'pow_widget', // Base ID
    8586            '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'), ) // Args
     87            array( 'description' => __('Let visitors order posts by context rather than date with a dropdown menu.', 'post-order-widget'), ) // Args
    8788        );
    8889    }
     
    9798     */
    9899    public function widget( $args, $instance ) {
    99         global $id_bytitle, $id_bydatea, $id_bymodified;
     100        global $id_bytitle, $id_bydatea, $id_bymodified, $id_rand;
    100101       
    101102        //On n'affiche pas le widget si nous sommes dans une page, un article, un média.
     
    116117        $opt_bydatea = $instance[$id_bydatea] ? "<option value=\"datea\"{$params['datea']}>". __('Oldest to newest', 'post-order-widget'). "</option>" : "";
    117118        $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>" : "";
    118120
    119121        echo "
     
    124126              $opt_bydatea
    125127              $opt_bymodified
     128              $opt_rand
    126129            </select>
    127130        </form>";
     
    138141     */
    139142    public function form( $instance ) {
    140         global $id_bytitle, $id_bydatea, $id_bymodified;
     143        global $id_bytitle, $id_bydatea, $id_bymodified, $id_rand;
    141144       
    142145        $checked_bytitle = $instance[$id_bytitle] ? 'checked="checked"' : '';
    143146        $checked_bydatea = $instance[$id_bydatea] ? 'checked="checked"' : '';
    144147        $checked_bymodified = $instance[$id_bymodified] ? 'checked="checked"' : '';
     148        $checked_rand = $instance[$id_rand] ? 'checked="checked"' : '';
    145149       
    146150        ?>
     
    159163            <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); ?>" />
    160164            <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>
    161168        </p>
    162169        <?php
     
    174181     */
    175182    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;
    177184       
    178185        $instance = array();
     
    183190        $instance[$id_bydatea] = $new_instance[$id_bydatea] ? 1 : 0;
    184191        $instance[$id_bymodified] = $new_instance[$id_bymodified] ? 1 : 0;
     192        $instance[$id_rand] = $new_instance[$id_rand] ? 1 : 0;
    185193
    186194        return $instance;
  • posts-order-widget/trunk/readme.txt

    r782955 r808987  
    55Requires at least: 3.6.1
    66Tested up to: 3.6.1
    7 Stable tag: 1.2
     7Stable tag: 1.3
    88
    99Add the ability to sort the posts by context rather than descending date.
     
    1717* by date (oldest to newest)
    1818* sort by date last modified
     19* randomly
    1920
    2021== Installation ==
     
    3637== Changelog ==
    3738
     39= 1.3 =
     40* It is now possible to order randomly.
     41
    3842= 1.2 =
    39 
    4043* The widget name on the management widget page was a wrong one.
    4144
    4245= 1.1 =
    43 
    4446* The widget is now not displayed in pages, posts and attachments.
    4547
    4648= 1.0 =
    47 
    4849* The first version of the plugin.
Note: See TracChangeset for help on using the changeset viewer.