WP twitter feeds - Version 1.4.4

Version Description

  • Added Tweets Slider file.
Download this release

Release Info

Developer vivacityinfotech.jaipur
Plugin Icon 128x128 WP twitter feeds
Version 1.4.4
Comparing to
See all releases

Code changes from version 1.4.5 to 1.4.4

README.txt CHANGED
@@ -1,11 +1,11 @@
1
- === Plugin Name ===
2
  Contributors: vivacityinfotech.jaipur
3
  Donate link: http://tinyurl.com/owxtkmt
4
  Tags: wp twitter feeds,twitter feeds, twitter timeline,twitter widget,twitter widget for wordpress,wp twitter feeds widget,live tweets, live twitter feeds, tweets, feeds, wp twitter feeds plugin, twitter user tweets, twitter 1.1, twitter api
5
  Requires at least: 3.0
6
- Tested up to: 4.0
7
  License: GPLv2 or later
8
- Stable tag: 1.4.6
9
 
10
 
11
  WP Twitter Feeds - A simple widget which lets you add your latest tweets in just a few clicks on your website.
@@ -123,10 +123,6 @@ Log in to vote.
123
 
124
 
125
  == Changelog ==
126
- = 1.4.6 =
127
- * Updated labels.
128
- = 1.4.5 =
129
- * Added jQuery Slider file.
130
  = 1.4.4 =
131
  * Added Tweets Slider file.
132
  = 1.4.3 =
1
+ === Plugin Name ===
2
  Contributors: vivacityinfotech.jaipur
3
  Donate link: http://tinyurl.com/owxtkmt
4
  Tags: wp twitter feeds,twitter feeds, twitter timeline,twitter widget,twitter widget for wordpress,wp twitter feeds widget,live tweets, live twitter feeds, tweets, feeds, wp twitter feeds plugin, twitter user tweets, twitter 1.1, twitter api
5
  Requires at least: 3.0
6
+ Tested up to: 3.9.1
7
  License: GPLv2 or later
8
+ Stable tag: 1.4.4
9
 
10
 
11
  WP Twitter Feeds - A simple widget which lets you add your latest tweets in just a few clicks on your website.
123
 
124
 
125
  == Changelog ==
 
 
 
 
126
  = 1.4.4 =
127
  * Added Tweets Slider file.
128
  = 1.4.3 =
controller/widget_html.php CHANGED
@@ -37,10 +37,10 @@ font-weight:bold;
37
  <h4 style="width:100%; text-align:center;">Twitter API Settings</h4>
38
  <div style="padding:10px;">
39
  <p>
40
- <label for="<?php echo $this->get_field_id('consumerKey'); ?>">API key: <input class="widefat" id="<?php echo $this->get_field_id('consumerKey'); ?>" name="<?php echo $this->get_field_name('consumerKey'); ?>" type="text" value="<?php echo esc_attr($consumerKey); ?>" /></label>
41
  </p>
42
  <p>
43
- <label for="<?php echo $this->get_field_id('consumerSecret'); ?>">API secret: <input class="widefat" id="<?php echo $this->get_field_id('consumerSecret'); ?>" name="<?php echo $this->get_field_name('consumerSecret'); ?>" type="text" value="<?php echo esc_attr($consumerSecret); ?>" /></label>
44
  </p>
45
  <p>
46
  <label for="<?php echo $this->get_field_id('accessToken'); ?>">Access Token: <input class="widefat" id="<?php echo $this->get_field_id('accessToken'); ?>" name="<?php echo $this->get_field_name('accessToken'); ?>" type="text" value="<?php echo esc_attr($accessToken); ?>" /></label>
37
  <h4 style="width:100%; text-align:center;">Twitter API Settings</h4>
38
  <div style="padding:10px;">
39
  <p>
40
+ <label for="<?php echo $this->get_field_id('consumerKey'); ?>">Consumer Key: <input class="widefat" id="<?php echo $this->get_field_id('consumerKey'); ?>" name="<?php echo $this->get_field_name('consumerKey'); ?>" type="text" value="<?php echo esc_attr($consumerKey); ?>" /></label>
41
  </p>
42
  <p>
43
+ <label for="<?php echo $this->get_field_id('consumerSecret'); ?>">Consumer Secret: <input class="widefat" id="<?php echo $this->get_field_id('consumerSecret'); ?>" name="<?php echo $this->get_field_name('consumerSecret'); ?>" type="text" value="<?php echo esc_attr($consumerSecret); ?>" /></label>
44
  </p>
45
  <p>
46
  <label for="<?php echo $this->get_field_id('accessToken'); ?>">Access Token: <input class="widefat" id="<?php echo $this->get_field_id('accessToken'); ?>" name="<?php echo $this->get_field_name('accessToken'); ?>" type="text" value="<?php echo esc_attr($accessToken); ?>" /></label>
js/jquery.newsTicker.js DELETED
@@ -1,248 +0,0 @@
1
- /*
2
- _____ _____ _____ _______
3
- /\ \ /\ \ /\ \ /::\ \
4
- /::\ \ /::\ \ /::\ \ /::::\ \
5
- /::::\ \ \:::\ \ /::::\ \ /::::::\ \
6
- /::::::\ \ \:::\ \ /::::::\ \ /::::::::\ \
7
- /:::/\:::\ \ \:::\ \ /:::/\:::\ \ /:::/~~\:::\ \
8
- /:::/__\:::\ \ \:::\ \ /:::/__\:::\ \ /:::/ \:::\ \
9
- /::::\ \:::\ \ /::::\ \ \:::\ \:::\ \:::/ / \:::\ \
10
- /::::::\ \:::\ \__ /::::::\ \_\:::\ \:::\ \:/____/ \:::\____\
11
- /:::/\:::\ \:::\____\ \ /:::/\:::\ \ \:::\ \:::\ \ | |:::| |
12
- /:::/ \:::\ \:::| | \/:::/ \:::\____\ \:::\ \:::\____\___| |:::|____|
13
- \::/ |::::\ /:::|____| /:::/ \::/ / \:::\ \::/ / _\___/:::/ /
14
- \/____|:::::\/:::/ /\/:::/ / \/____/\ \:::\ \/____/:\ |::| /:::/ /
15
- |:::::::::/ /:::::/ / \:::\ \:::\ \ \:::\|::|/:::/ /
16
- |::|\::::/ /\::::/____/ \:::\ \:::\____\ \::::::::::/ /
17
- |::| \::/____/ \:::\ \ \:::\ /:::/ / \::::::::/ /
18
- |::| ~| \:::\ \ \:::\/:::/ / \::::::/ /
19
- |::| | \:::\ \ \::::::/ / \::::/____/
20
- \::| | \:::\____\ \::::/ / |::| |
21
- \:| | \::/ / \::/ / |::|____|
22
- \|___| \/____/ \/____/ ~~
23
-
24
- ____.________ _____ .___ .___
25
- | |\_____ \ __ __ ___________ ___.__. / _ \ __| _/__ _______ ____ ____ ____ __| _/
26
- | | / / \ \| | \_/ __ \_ __ < | | / /_\ \ / __ |\ \/ /\__ \ / \_/ ___\/ __ \ / __ |
27
- /\__| |/ \_/. \ | /\ ___/| | \/\___ | / | \/ /_/ | \ / / __ \| | \ \__\ ___// /_/ |
28
- \________|\_____\ \_/____/ \___ >__| / ____| \____|__ /\____ | \_/ (____ /___| /\___ >___ >____ |
29
- \__> \/ \/ \/ \/ \/ \/ \/ \/ \/
30
- _______ ___________.__ __
31
- \ \ ______ _ ________ \__ ___/|__| ____ | | __ ___________
32
- ______ / | \_/ __ \ \/ \/ / ___/ | | | |/ ___\| |/ // __ \_ __ \ ______
33
- /_____/ / | \ ___/\ /\___ \ | | | \ \___| <\ ___/| | \/ /_____/
34
- \____|__ /\___ >\/\_//____ > |____| |__|\___ >__|_ \\___ >__|
35
- \/ \/ \/ \/ \/ \/
36
-
37
-
38
- ==============================================================================================================
39
- JQuery Advanced News Ticker 1.0.11 (20/02/14)
40
- created by risq
41
- website (docs & demos) : http://risq.github.io/jquery-advanced-news-ticker/
42
- ==============================================================================================================
43
-
44
- */
45
-
46
- ;
47
- (function($, window, document, undefined) {
48
- 'use strict';
49
- var pluginName = 'newsTicker',
50
- defaults = {
51
- row_height: 20,
52
- max_rows: 3,
53
- speed: 400,
54
- duration: 2500,
55
- direction: 'up',
56
- autostart: 1,
57
- pauseOnHover: 1,
58
- nextButton: null,
59
- prevButton: null,
60
- startButton: null,
61
- stopButton: null,
62
- hasMoved: function() {},
63
- movingUp: function() {},
64
- movingDown: function() {},
65
- start: function() {},
66
- stop: function() {},
67
- pause: function() {},
68
- unpause: function() {}
69
- };
70
-
71
- function Plugin(element, options) {
72
- this.element = element;
73
- this.$el = $(element);
74
- this.options = $.extend({}, defaults, options);
75
- this._defaults = defaults;
76
- this._name = pluginName;
77
- this.moveInterval;
78
- this.state = 0;
79
- this.paused = 0;
80
- this.moving = 0;
81
- if (this.$el.is('ul, ol')) {
82
- this.init();
83
- }
84
- }
85
-
86
- Plugin.prototype = {
87
- init: function() {
88
- this.$el.height(this.options.row_height * this.options.max_rows)
89
- .css({overflow : 'hidden'});
90
-
91
- this.checkSpeed();
92
-
93
- if(this.options.nextButton && typeof(this.options.nextButton[0]) !== 'undefined')
94
- this.options.nextButton.click(function(e) {
95
- this.moveNext();
96
- this.resetInterval();
97
- }.bind(this));
98
- if(this.options.prevButton && typeof(this.options.prevButton[0]) !== 'undefined')
99
- this.options.prevButton.click(function(e) {
100
- this.movePrev();
101
- this.resetInterval();
102
- }.bind(this));
103
- if(this.options.stopButton && typeof(this.options.stopButton[0]) !== 'undefined')
104
- this.options.stopButton.click(function(e) {
105
- this.stop()
106
- }.bind(this));
107
- if(this.options.startButton && typeof(this.options.startButton[0]) !== 'undefined')
108
- this.options.startButton.click(function(e) {
109
- this.start()
110
- }.bind(this));
111
-
112
- if(this.options.pauseOnHover) {
113
- this.$el.hover(function() {
114
- if (this.state)
115
- this.pause();
116
- }.bind(this), function() {
117
- if (this.state)
118
- this.unpause();
119
- }.bind(this));
120
- }
121
-
122
- if(this.options.autostart)
123
- this.start();
124
- },
125
-
126
- start: function() {
127
- if (!this.state) {
128
- this.state = 1;
129
- this.resetInterval();
130
- this.options.start();
131
- }
132
- },
133
-
134
- stop: function() {
135
- if (this.state) {
136
- clearInterval(this.moveInterval);
137
- this.state = 0;
138
- this.options.stop();
139
- }
140
- },
141
-
142
- resetInterval: function() {
143
- if (this.state) {
144
- clearInterval(this.moveInterval);
145
- this.moveInterval = setInterval(function() {this.move()}.bind(this), this.options.duration);
146
- }
147
- },
148
-
149
- move: function() {
150
- if (!this.paused) this.moveNext();
151
- },
152
-
153
- moveNext: function() {
154
- if (this.options.direction === 'down')
155
- this.moveDown();
156
- else if (this.options.direction === 'up')
157
- this.moveUp();
158
- },
159
-
160
- movePrev: function() {
161
- if (this.options.direction === 'down')
162
- this.moveUp();
163
- else if (this.options.direction === 'up')
164
- this.moveDown();
165
- },
166
-
167
- pause: function() {
168
- if (!this.paused) this.paused = 1;
169
- this.options.pause();
170
- },
171
-
172
- unpause: function() {
173
- if (this.paused) this.paused = 0;
174
- this.options.unpause();
175
- },
176
-
177
- moveDown: function() {
178
- if (!this.moving) {
179
- this.moving = 1;
180
- this.options.movingDown();
181
- this.$el.children('li:last').detach().prependTo(this.$el).css('marginTop', '-' + this.options.row_height + 'px')
182
- .animate({marginTop: '0px'}, this.options.speed, function(){
183
- this.moving = 0;
184
- this.options.hasMoved();
185
- }.bind(this));
186
- }
187
- },
188
-
189
- moveUp: function() {
190
- if (!this.moving) {
191
- this.moving = 1;
192
- this.options.movingUp();
193
- var element = this.$el.children('li:first');
194
- element.animate({marginTop: '-' + this.options.row_height + 'px'}, this.options.speed,
195
- function(){
196
- element.detach().css('marginTop', '0').appendTo(this.$el);
197
- this.moving = 0;
198
- this.options.hasMoved();
199
- }.bind(this));
200
- }
201
- },
202
-
203
- updateOption: function(option, value) {
204
- if (typeof(this.options[option]) !== 'undefined'){
205
- this.options[option] = value;
206
- if (option == 'duration' || option == 'speed'){
207
- this.checkSpeed();
208
- this.resetInterval();
209
- }
210
- }
211
- },
212
-
213
- add: function(content){
214
- this.$el.append($('<li>').html(content));
215
- },
216
-
217
- getState: function() {
218
- if (paused) return 2 // 2 = paused
219
- else return this.state;// 0 = stopped, 1 = started
220
- },
221
-
222
- checkSpeed: function() {
223
- if (this.options.duration < (this.options.speed + 25))
224
- this.options.speed = this.options.duration - 25;
225
- },
226
-
227
- destroy: function() {
228
- this._destroy(); // or this.delete; depends on jQuery version
229
- }
230
- };
231
-
232
- $.fn[pluginName] = function(option) {
233
- var args = arguments;
234
-
235
- return this.each(function() {
236
- var $this = $(this),
237
- data = $.data(this, 'plugin_' + pluginName),
238
- options = typeof option === 'object' && option;
239
- if (!data) {
240
- $this.data('plugin_' + pluginName, (data = new Plugin(this, options)));
241
- }
242
- // if first argument is a string, call silimarly named function
243
- if (typeof option === 'string') {
244
- data[option].apply(data, Array.prototype.slice.call(args, 1));
245
- }
246
- });
247
- };
248
- })(jQuery, window, document);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/jquery.newsTicker.min.js DELETED
@@ -1,12 +0,0 @@
1
- /*
2
- JQuery Advanced News Ticker 1.0.11 (20/02/14)
3
- created by risq
4
- website (docs & demos) : http://risq.github.io/jquery-advanced-news-ticker/
5
- */
6
- (function(b,k,l,m){function g(a,f){this.element=a;this.$el=b(a);this.options=b.extend({},c,f);this._defaults=c;this._name=d;this.moveInterval;this.moving=this.paused=this.state=0;(this.$el.is("ul")||this.$el.is("ol"))&&this.init()}var d="newsTicker",c={row_height:20,max_rows:3,speed:400,duration:2500,direction:"up",autostart:1,pauseOnHover:1,nextButton:null,prevButton:null,startButton:null,stopButton:null,hasMoved:function(){},movingUp:function(){},movingDown:function(){},start:function(){},stop:function(){},
7
- pause:function(){},unpause:function(){}};g.prototype={init:function(){this.$el.height(this.options.row_height*this.options.max_rows).css({overflow:"hidden"});this.checkSpeed();this.options.nextButton&&"undefined"!==typeof this.options.nextButton[0]&&this.options.nextButton.click(function(a){this.moveNext();this.resetInterval()}.bind(this));this.options.prevButton&&"undefined"!==typeof this.options.prevButton[0]&&this.options.prevButton.click(function(a){this.movePrev();this.resetInterval()}.bind(this));
8
- this.options.stopButton&&"undefined"!==typeof this.options.stopButton[0]&&this.options.stopButton.click(function(a){this.stop()}.bind(this));this.options.startButton&&"undefined"!==typeof this.options.startButton[0]&&this.options.startButton.click(function(a){this.start()}.bind(this));this.options.pauseOnHover&&this.$el.hover(function(){this.state&&this.pause()}.bind(this),function(){this.state&&this.unpause()}.bind(this));this.options.autostart&&this.start()},start:function(){this.state||(this.state=
9
- 1,this.resetInterval(),this.options.start())},stop:function(){this.state&&(clearInterval(this.moveInterval),this.state=0,this.options.stop())},resetInterval:function(){this.state&&(clearInterval(this.moveInterval),this.moveInterval=setInterval(function(){this.move()}.bind(this),this.options.duration))},move:function(){this.paused||this.moveNext()},moveNext:function(){"down"===this.options.direction?this.moveDown():"up"===this.options.direction&&this.moveUp()},movePrev:function(){"down"===this.options.direction?
10
- this.moveUp():"up"===this.options.direction&&this.moveDown()},pause:function(){this.paused||(this.paused=1);this.options.pause()},unpause:function(){this.paused&&(this.paused=0);this.options.unpause()},moveDown:function(){this.moving||(this.moving=1,this.options.movingDown(),this.$el.children("li:last").detach().prependTo(this.$el).css("marginTop","-"+this.options.row_height+"px").animate({marginTop:"0px"},this.options.speed,function(){this.moving=0;this.options.hasMoved()}.bind(this)))},moveUp:function(){if(!this.moving){this.moving=
11
- 1;this.options.movingUp();var a=this.$el.children("li:first");a.animate({marginTop:"-"+this.options.row_height+"px"},this.options.speed,function(){a.detach().css("marginTop","0").appendTo(this.$el);this.moving=0;this.options.hasMoved()}.bind(this))}},updateOption:function(a,b){"undefined"!==typeof this.options[a]&&(this.options[a]=b,"duration"==a||"speed"==a)&&(this.checkSpeed(),this.resetInterval())},add:function(a){this.$el.append(b("<li>").html(a))},getState:function(){return paused?2:this.state},
12
- checkSpeed:function(){this.options.duration<this.options.speed+25&&(this.options.speed=this.options.duration-25)},destroy:function(){this._destroy()}};b.fn[d]=function(a){var f=arguments;return this.each(function(){var c=b(this),e=b.data(this,"plugin_"+d),h="object"===typeof a&&a;e||c.data("plugin_"+d,e=new g(this,h));"string"===typeof a&&e[a].apply(e,Array.prototype.slice.call(f,1))})}})(jQuery,window,document);
 
 
 
 
 
 
 
 
 
 
 
 
views/dynamic_html.php CHANGED
@@ -14,10 +14,10 @@
14
  <h4 style="width:100%; text-align:center;">Twitter API Options</h4>
15
  <div style="padding:10px;">
16
  <p>
17
- <label for="<?php echo $this->get_field_id('consumerKey'); ?>">API Key: <input class="widefat" id="<?php echo $this->get_field_id('consumerKey'); ?>" name="<?php echo $this->get_field_name('consumerKey'); ?>" type="text" value="<?php echo esc_attr($consumerKey); ?>" /></label>
18
  </p>
19
  <p>
20
- <label for="<?php echo $this->get_field_id('consumerSecret'); ?>">API Secret: <input class="widefat" id="<?php echo $this->get_field_id('consumerSecret'); ?>" name="<?php echo $this->get_field_name('consumerSecret'); ?>" type="text" value="<?php echo esc_attr($consumerSecret); ?>" /></label>
21
  </p>
22
  <p>
23
  <label for="<?php echo $this->get_field_id('accessToken'); ?>">Access Token: <input class="widefat" id="<?php echo $this->get_field_id('accessToken'); ?>" name="<?php echo $this->get_field_name('accessToken'); ?>" type="text" value="<?php echo esc_attr($accessToken); ?>" /></label>
14
  <h4 style="width:100%; text-align:center;">Twitter API Options</h4>
15
  <div style="padding:10px;">
16
  <p>
17
+ <label for="<?php echo $this->get_field_id('consumerKey'); ?>">Consumer Key: <input class="widefat" id="<?php echo $this->get_field_id('consumerKey'); ?>" name="<?php echo $this->get_field_name('consumerKey'); ?>" type="text" value="<?php echo esc_attr($consumerKey); ?>" /></label>
18
  </p>
19
  <p>
20
+ <label for="<?php echo $this->get_field_id('consumerSecret'); ?>">Consumer Secret: <input class="widefat" id="<?php echo $this->get_field_id('consumerSecret'); ?>" name="<?php echo $this->get_field_name('consumerSecret'); ?>" type="text" value="<?php echo esc_attr($consumerSecret); ?>" /></label>
21
  </p>
22
  <p>
23
  <label for="<?php echo $this->get_field_id('accessToken'); ?>">Access Token: <input class="widefat" id="<?php echo $this->get_field_id('accessToken'); ?>" name="<?php echo $this->get_field_name('accessToken'); ?>" type="text" value="<?php echo esc_attr($accessToken); ?>" /></label>
wp-latest-twitter-tweets.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Twitter Feeds
4
  Plugin URI: http://www.vivacityinfotech.net/
5
  Description: Displays latest tweets from your Twitter account using Twitter oAuth API 1.1.
6
  Author: Vivacity Infotech Pvt. Ltd.
7
- Version: 1.4.6
8
  Author URI: http://www.vivacityinfotech.net/
9
 
10
  Copyright 2014 Vivacity InfoTech Pvt. Ltd. (email : support@vivacityinfotech.com)
@@ -40,4 +40,4 @@ function add_meta_links($links, $file) {
40
  }
41
  return $links;
42
  }
43
- ?>
4
  Plugin URI: http://www.vivacityinfotech.net/
5
  Description: Displays latest tweets from your Twitter account using Twitter oAuth API 1.1.
6
  Author: Vivacity Infotech Pvt. Ltd.
7
+ Version: 1.4.4
8
  Author URI: http://www.vivacityinfotech.net/
9
 
10
  Copyright 2014 Vivacity InfoTech Pvt. Ltd. (email : support@vivacityinfotech.com)
40
  }
41
  return $links;
42
  }
43
+ ?>