Plugin Directory

Changeset 691812


Ignore:
Timestamp:
04/04/2013 09:02:44 PM (13 years ago)
Author:
ArnaudBan
Message:

version 0.4.1

Location:
widget-embed-lastest-tweets
Files:
4 edited
4 copied

Legend:

Unmodified
Added
Removed
  • widget-embed-lastest-tweets/tags/0.4.1/readme.txt

    r668718 r691812  
    99
    1010A Widget to show your latest Tweets.
    11 Visit the option page "Plugins->Widget Embed Last Plugin" to authentify yourself
     11Visit the option page "Plugins->Widget Embed Latest Tweet" to authentify yourself
    1212
    1313
     
    1717
    1818This plugin uses the Twitter API version 1.1. You have to authentify yourself !
    19 Visit the option page "Plugins->Widget Embed Last Plugin" to do so.
     19Visit the option page "Plugins->Widget Embed Latest Tweet" to do so.
    2020
    2121Options :
     
    5959
    6060== Changelog ==
     61
     62= 0.4.1 =
     63
     64* Add 'exclude_replies' option
     65* typo fixes
    6166
    6267= 0.4 =
  • widget-embed-lastest-tweets/tags/0.4.1/welt-option.php

    r624528 r691812  
    6464    <h4><?php _e('Why', 'ab-welt-locales'); ?> ?</h4>
    6565    <p>
    66         <?php _e('In order to avoid the Twitter\'s API limitation from anonymous request.', 'ab-welt-locales'); ?>
     66        <?php _e('Twitter\'s API version 1.1 require it', 'ab-welt-locales'); ?>
    6767    </p>
    6868
     
    121121function welt_twitter_oauth_var_validate($twitter_variable) {
    122122
    123     $valid_option = $twitter_variable;
     123    $valid_option = array();
     124
     125    foreach ($twitter_variable as $option => $value) {
     126        if( !empty( $value ) ){
     127            $valid_option[$option] = $value;
     128        }
     129    }
    124130
    125131    return $valid_option;
  • widget-embed-lastest-tweets/tags/0.4.1/widget-embed-latest-tweets.php

    r668718 r691812  
    22/*
    33 * Plugin Name: Widget embed latest Tweets
    4  * Plugin URI: http://www.arnaudbanvillet.com/blog/portfolio/widget-embed-latest-tweets/
     4 * Plugin URI: http://arnaudban.me/blog/portfolio/widget-embed-latest-tweets/
    55 * Description: A Widget to show your latest Tweets. Use the oEmbed methode and some cache. Visit the option page "Plugins->Widget Embed Last Plugin" to authentify yourself
    6  * Version: 0.4
     6 * Version: 0.4.1
    77 * Author: Arnaud Banvillet
    8  * Author URI: http://www.arnaudbanvillet.com
     8 * Author URI: http://arnaudban.me
    99 * License: GPL2
    1010 *
     
    2929
    3030    var $defaut = array(
    31             'title'             => 'Last Tweet',
    32             'count'             => 3,
    33             'align'             => 'none',
    34             'hide_thread'   => true,
    35             'lang'              => 'en',
    36             'include_rts'   => true,
    37             'hide_media'    => true
     31            'title'            => 'Latest Tweets',
     32            'count'            => 3,
     33            'align'            => 'none',
     34            'hide_thread'      => true,
     35            'lang'             => 'en',
     36            'include_rts'      => true,
     37            'hide_media'       => true,
     38            'exclude_replies'  => false,
    3839    );
    3940
     
    113114        $instance['hide_thread'] = $new_instance['hide_thread'] == 'hide_thread';
    114115        $instance['hide_media'] = $new_instance['hide_media'] == 'hide_media';
     116        $instance['exclude_replies'] = $new_instance['exclude_replies'] == 'exclude_replies';
    115117
    116118        $instance['lang'] = strip_tags($new_instance['lang']);
     
    178180            <br />
    179181            <span class="description"><?php _e('Hide the images in the Tweet' , 'ab-welt-locales') ?></span>
     182        </p>
     183
     184        <p>
     185            <label for="<?php echo $this->get_field_id('exclude_replies'); ?>"><?php _e('Exclude replies', 'ab-welt-locales') ?> :</label>
     186            <input id="<?php echo $this->get_field_id('exclude_replies'); ?>" name="<?php echo $this->get_field_name('exclude_replies'); ?>" type="checkbox" <?php checked( $exclude_replies ) ?> value="exclude_replies"/>
     187            <br />
     188            <span class="description"><?php _e('They will not show but they will count in the number of tweets' , 'ab-welt-locales') ?></span>
    180189        </p>
    181190
  • widget-embed-lastest-tweets/trunk/readme.txt

    r668718 r691812  
    99
    1010A Widget to show your latest Tweets.
    11 Visit the option page "Plugins->Widget Embed Last Plugin" to authentify yourself
     11Visit the option page "Plugins->Widget Embed Latest Tweet" to authentify yourself
    1212
    1313
     
    1717
    1818This plugin uses the Twitter API version 1.1. You have to authentify yourself !
    19 Visit the option page "Plugins->Widget Embed Last Plugin" to do so.
     19Visit the option page "Plugins->Widget Embed Latest Tweet" to do so.
    2020
    2121Options :
     
    5959
    6060== Changelog ==
     61
     62= 0.4.1 =
     63
     64* Add 'exclude_replies' option
     65* typo fixes
    6166
    6267= 0.4 =
  • widget-embed-lastest-tweets/trunk/welt-option.php

    r624528 r691812  
    6464    <h4><?php _e('Why', 'ab-welt-locales'); ?> ?</h4>
    6565    <p>
    66         <?php _e('In order to avoid the Twitter\'s API limitation from anonymous request.', 'ab-welt-locales'); ?>
     66        <?php _e('Twitter\'s API version 1.1 require it', 'ab-welt-locales'); ?>
    6767    </p>
    6868
     
    121121function welt_twitter_oauth_var_validate($twitter_variable) {
    122122
    123     $valid_option = $twitter_variable;
     123    $valid_option = array();
     124
     125    foreach ($twitter_variable as $option => $value) {
     126        if( !empty( $value ) ){
     127            $valid_option[$option] = $value;
     128        }
     129    }
    124130
    125131    return $valid_option;
  • widget-embed-lastest-tweets/trunk/widget-embed-latest-tweets.php

    r668718 r691812  
    22/*
    33 * Plugin Name: Widget embed latest Tweets
    4  * Plugin URI: http://www.arnaudbanvillet.com/blog/portfolio/widget-embed-latest-tweets/
     4 * Plugin URI: http://arnaudban.me/blog/portfolio/widget-embed-latest-tweets/
    55 * Description: A Widget to show your latest Tweets. Use the oEmbed methode and some cache. Visit the option page "Plugins->Widget Embed Last Plugin" to authentify yourself
    6  * Version: 0.4
     6 * Version: 0.4.1
    77 * Author: Arnaud Banvillet
    8  * Author URI: http://www.arnaudbanvillet.com
     8 * Author URI: http://arnaudban.me
    99 * License: GPL2
    1010 *
     
    2929
    3030    var $defaut = array(
    31             'title'             => 'Last Tweet',
    32             'count'             => 3,
    33             'align'             => 'none',
    34             'hide_thread'   => true,
    35             'lang'              => 'en',
    36             'include_rts'   => true,
    37             'hide_media'    => true
     31            'title'            => 'Latest Tweets',
     32            'count'            => 3,
     33            'align'            => 'none',
     34            'hide_thread'      => true,
     35            'lang'             => 'en',
     36            'include_rts'      => true,
     37            'hide_media'       => true,
     38            'exclude_replies'  => false,
    3839    );
    3940
     
    113114        $instance['hide_thread'] = $new_instance['hide_thread'] == 'hide_thread';
    114115        $instance['hide_media'] = $new_instance['hide_media'] == 'hide_media';
     116        $instance['exclude_replies'] = $new_instance['exclude_replies'] == 'exclude_replies';
    115117
    116118        $instance['lang'] = strip_tags($new_instance['lang']);
     
    178180            <br />
    179181            <span class="description"><?php _e('Hide the images in the Tweet' , 'ab-welt-locales') ?></span>
     182        </p>
     183
     184        <p>
     185            <label for="<?php echo $this->get_field_id('exclude_replies'); ?>"><?php _e('Exclude replies', 'ab-welt-locales') ?> :</label>
     186            <input id="<?php echo $this->get_field_id('exclude_replies'); ?>" name="<?php echo $this->get_field_name('exclude_replies'); ?>" type="checkbox" <?php checked( $exclude_replies ) ?> value="exclude_replies"/>
     187            <br />
     188            <span class="description"><?php _e('They will not show but they will count in the number of tweets' , 'ab-welt-locales') ?></span>
    180189        </p>
    181190
Note: See TracChangeset for help on using the changeset viewer.