Version Description
- Improved Fornt-End UI design.
- Boxed layout for tweets.
- Improved Twitter username validation in the widget.
Download this release
Release Info
Developer | vivacityinfotech.jaipur |
Plugin | WP twitter feeds |
Version | 1.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.1
- README.txt +1 -86
- controller/twitter_widget.class.php +48 -21
- controller/widget_html.php +12 -3
- css/admin_style.min.css +65 -11
- images/rsz_11button_ok.png +0 -0
- images/rsz_1onebit_33.png +0 -0
- js/validate.js +5 -5
- wp-latest-twitter-tweets.php +1 -1
README.txt
CHANGED
@@ -1,86 +1 @@
|
|
1 |
-
=== Plugin Name ===
|
2 |
-
Contributors: vivacityinfotech.jaipur
|
3 |
-
Tags: twitter feeds, twitter timeline,twitter widget,twitter widget for wordpress,wp twitter widget,live tweets, live twitter feeds, tweets, feeds, twitter time line, twitter user tweets, twitter 1.1, twitter api
|
4 |
-
Requires at least: 3.0
|
5 |
-
Tested up to: 3.8
|
6 |
-
License: GPLv2 or later
|
7 |
-
|
8 |
-
WP Twitter Feeds - A simple widget which lets you add your latest tweets in just a few clicks on your website.
|
9 |
-
|
10 |
-
== Description ==
|
11 |
-
|
12 |
-
An easy Twitter feeds widget that provides facility to display twitter tweets on your website using the latest Twitter 1.1 API. A simple widget which lets you add your latest tweets in widget areas. Get started in just a few clicks and use the provided Widget to easily display your Tweets on your website.
|
13 |
-
|
14 |
-
Now you don`t need to copy and paste the code from twitter with your settings anymore, just install the plugin and set the options.
|
15 |
-
By option page, you can define the duration of fade effect, the number of tweet to see and other things.
|
16 |
-
|
17 |
-
The "WP Twitter Feeds" Widget will never require your Twitter password, because it based on Open Authentication (OAuth) keys and secrets, that you will get by creating your application at Twitter. It gets all your required data from API. Incase you change your password, you won’t need to update your Widget in your Blog.
|
18 |
-
|
19 |
-
= Plugin Features =
|
20 |
-
|
21 |
-
*Easy install
|
22 |
-
*Very easy to configure.
|
23 |
-
*Display Tweets with a Widget.
|
24 |
-
*You can choose to show a profile image, border color and much more with your Tweets.
|
25 |
-
*Multiple instance so you can use Twitter widget multiple places.
|
26 |
-
*Different color Options.
|
27 |
-
*Lightweight and loading fast
|
28 |
-
*Set maximum number of tweets to display
|
29 |
-
*Turn on/off displaying avatar
|
30 |
-
*Supports v1.1 of the Twitter API
|
31 |
-
|
32 |
-
|
33 |
-
= Rate Us / Feedback =
|
34 |
-
|
35 |
-
Please take the time to let us and others know about your experiences by leaving a review, so that we can improve the plugin for you and other users.
|
36 |
-
|
37 |
-
If you like the plugin please [Donate here](http://tinyurl.com/owxtkmt).
|
38 |
-
|
39 |
-
= Want More? =
|
40 |
-
|
41 |
-
If You Want more functionality or some modifications, just drop us a line what you want and We will try to add or modify the plugin functions.
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
== Available Languages ==
|
46 |
-
|
47 |
-
English
|
48 |
-
|
49 |
-
== Installation ==
|
50 |
-
|
51 |
-
Installation consists of following steps:
|
52 |
-
|
53 |
-
1. Upload "WP Twitter Tweets" to the /wp-content/plugins/ directory
|
54 |
-
2. Activate the plugin through the 'Plugins' menu in WordPress
|
55 |
-
3. Place the "WP Twitter Tweets" Widget on your sidebar and add twitter username with API details of Twitter.
|
56 |
-
|
57 |
-
== Frequently Asked Questions ==
|
58 |
-
|
59 |
-
= How to create a Twitter Application =
|
60 |
-
|
61 |
-
1. Visit the Twitter Developers Site: The first thing you need to do is head on down to dev.twitter.com. In order to create an account, all you need to do is click on the “Sign In” link at the top right.
|
62 |
-
|
63 |
-
2. Sign in with your Twitter Account: Next, sign in with the Twitter account you want to associate with your app. You do have a Twitter account don’t you?!
|
64 |
-
|
65 |
-
3. Go to “My Applications”: Once you’re logged in, click on the downwards arrow to the right of your Twitter image and select “My Applications”. This is where all your registered Twitter apps will appear.
|
66 |
-
|
67 |
-
4. Create a New Application: If you are new to the Developers site you won’t see any applications registered. Either way, it’s time to create our first application. To do this, click on the big “Create a new application” button.
|
68 |
-
|
69 |
-
5. Fill in your Application Details: It’s been easy so far, but this screen often makes people confused. Don’t worry, it’s a lot easier than you think. First of all you need to give your app a unique name (one that no one else has used for their Twitter app). Since we’re going to be an creating app for personal use and not one that other people can register and use, just put your domain name in or perhaps even your name. You don’t have to worry much about the description– you can change this later. I’ve put “a set of Twitter tools for personal use”.Put your website in the website field– don’t worry that it isn’t (as Twitter ask) your application’s publicly accessible home page. However, this website will be where your app is hosted.For now ignore the Callback URL field. If you are allowing users to log into your app to authenticate themselves, you’d enter the URL where they would be returned after they’ve given permission to Twitter to use your app.Once you’ve done this, make sure you’ve read the “Developer Rules Of The Road” blurb, check the “Yes, I agree” box, fill in the CAPTCHA (don’t you just love them) and click the “create your Twitter Application” button. Hurrah!
|
70 |
-
|
71 |
-
6. Create Your Access Token.
|
72 |
-
|
73 |
-
7. Make a note of your OAuth Settings.
|
74 |
-
|
75 |
-
== Screenshots ==
|
76 |
-
|
77 |
-
1. WP Twitter Feeds plugin installed and appears in the plugins menu.
|
78 |
-
2. WP Twitter Feeds widget under Appearence->Widgets.
|
79 |
-
3. WP Twitter Feeds widget under Appearence->Widgets.
|
80 |
-
4. WP Twitter Feeds widget under Appearence->Widgets.
|
81 |
-
5. WP Twitter Feeds widget under Appearence->Widgets.
|
82 |
-
|
83 |
-
== Changelog ==
|
84 |
-
|
85 |
-
= 1.0 =
|
86 |
-
* Initial release
|
87 |
*Easy install
|
88 |
*Very easy to configure.
|
89 |
*Display Tweets with a Widget.
|
90 |
*You can choose to show a profile image, border color and much more with your Tweets.
|
91 |
*Multiple instance so you can use Twitter widget multiple places.
|
92 |
*Different color Options.
|
93 |
*Lightweight and loading fast
|
94 |
*Set maximum number of tweets to display
|
95 |
*Turn on/off displaying avatar
|
96 |
*Supports v1.1 of the Twitter API
|
97 |
English
|
1 |
+
=== Plugin Name ===
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
*Easy install
|
3 |
*Very easy to configure.
|
4 |
*Display Tweets with a Widget.
|
5 |
*You can choose to show a profile image, border color and much more with your Tweets.
|
6 |
*Multiple instance so you can use Twitter widget multiple places.
|
7 |
*Different color Options.
|
8 |
*Lightweight and loading fast
|
9 |
*Set maximum number of tweets to display
|
10 |
*Turn on/off displaying avatar
|
11 |
*Supports v1.1 of the Twitter API
|
12 |
English
|
controller/twitter_widget.class.php
CHANGED
@@ -142,10 +142,13 @@
|
|
142 |
$wpltf_wdgt_border_rad = isset( $instance['border_rad'] ) ? $instance['border_rad'] : false;
|
143 |
if (!empty($wpltf_wdgt_title))
|
144 |
echo $before_title . $wpltf_wdgt_title . $after_title;
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
|
|
|
|
|
|
149 |
<?php
|
150 |
|
151 |
$tweets_count = $wpltf_wdgt_tweets_cnt;
|
@@ -177,7 +180,7 @@
|
|
177 |
$accessTokenSecret
|
178 |
);
|
179 |
$totalToFetch = ($replies_excl) ? max(50, $tweets_count * 3) : $tweets_count;
|
180 |
-
|
181 |
$fetchedTweets = $api_call->get(
|
182 |
'statuses/user_timeline',
|
183 |
array(
|
@@ -186,7 +189,7 @@
|
|
186 |
'replies_excl' => $replies_excl
|
187 |
)
|
188 |
);
|
189 |
-
|
190 |
if($api_call->http_code != 200) :
|
191 |
$tweets = get_option($backupName);
|
192 |
|
@@ -207,6 +210,8 @@
|
|
207 |
$tweets[] = array(
|
208 |
'text' => $text,
|
209 |
'scr_name'=>$screen_name,
|
|
|
|
|
210 |
'name' => $name,
|
211 |
'permalink' => $permalink,
|
212 |
'image' => $image,
|
@@ -234,7 +239,7 @@
|
|
234 |
}
|
235 |
if($tweets) : ?>
|
236 |
<?php foreach($tweets as $t) : ?>
|
237 |
-
<li<?php echo ($showAvatar) ? ' class="
|
238 |
<?php
|
239 |
echo '<div class="tweet_wrap"><div class="wdtf-user-card ltr">';
|
240 |
if ($showAvatar){
|
@@ -260,6 +265,7 @@
|
|
260 |
<?php echo $t['text']; ?>
|
261 |
</div>
|
262 |
<br/>
|
|
|
263 |
<div class="times">
|
264 |
<em>
|
265 |
|
@@ -280,18 +286,38 @@
|
|
280 |
</em>
|
281 |
</div>
|
282 |
<?php if($twitterIntents == "true"){
|
283 |
-
?>
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
<?php } ?>
|
296 |
<div class="clear"></div>
|
297 |
</div><div class="clear"></div>
|
@@ -303,9 +329,10 @@
|
|
303 |
<?php endif; ?>
|
304 |
</ul>
|
305 |
<?php
|
|
|
306 |
echo $after_widget;
|
307 |
}
|
308 |
|
309 |
}
|
310 |
-
|
311 |
-
?>
|
142 |
$wpltf_wdgt_border_rad = isset( $instance['border_rad'] ) ? $instance['border_rad'] : false;
|
143 |
if (!empty($wpltf_wdgt_title))
|
144 |
echo $before_title . $wpltf_wdgt_title . $after_title;
|
145 |
+
if($wpltf_wdgt_consumerKey=='' || $wpltf_wdgt_consumerSecret ==''|| $wpltf_wdgt_accessTokenSecret=='' || $wpltf_wdgt_accessToken=='' )
|
146 |
+
{
|
147 |
+
echo '<div class="isa_error">Bad Authentication data.<br/>Please enter valid API Keys.</div>';
|
148 |
+
}
|
149 |
+
else
|
150 |
+
{
|
151 |
+
?> <ul class="fetched_tweets">
|
152 |
<?php
|
153 |
|
154 |
$tweets_count = $wpltf_wdgt_tweets_cnt;
|
180 |
$accessTokenSecret
|
181 |
);
|
182 |
$totalToFetch = ($replies_excl) ? max(50, $tweets_count * 3) : $tweets_count;
|
183 |
+
|
184 |
$fetchedTweets = $api_call->get(
|
185 |
'statuses/user_timeline',
|
186 |
array(
|
189 |
'replies_excl' => $replies_excl
|
190 |
)
|
191 |
);
|
192 |
+
|
193 |
if($api_call->http_code != 200) :
|
194 |
$tweets = get_option($backupName);
|
195 |
|
210 |
$tweets[] = array(
|
211 |
'text' => $text,
|
212 |
'scr_name'=>$screen_name,
|
213 |
+
'favourite_count'=>$tweet->favorite_count,
|
214 |
+
'retweet_count'=>$tweet->retweet_count,
|
215 |
'name' => $name,
|
216 |
'permalink' => $permalink,
|
217 |
'image' => $image,
|
239 |
}
|
240 |
if($tweets) : ?>
|
241 |
<?php foreach($tweets as $t) : ?>
|
242 |
+
<li<?php echo ($showAvatar) ? ' class="tweets_avatar"':""; ?>>
|
243 |
<?php
|
244 |
echo '<div class="tweet_wrap"><div class="wdtf-user-card ltr">';
|
245 |
if ($showAvatar){
|
265 |
<?php echo $t['text']; ?>
|
266 |
</div>
|
267 |
<br/>
|
268 |
+
<div class="clear"></div>
|
269 |
<div class="times">
|
270 |
<em>
|
271 |
|
286 |
</em>
|
287 |
</div>
|
288 |
<?php if($twitterIntents == "true"){
|
289 |
+
?>
|
290 |
+
<div class="tweets-intent-data">
|
291 |
+
<?php if($t['favourite_count']!=0 || $t['retweet_count']!=0){?>
|
292 |
+
<span class="stats-narrow customisable-border"><span class="stats" data-scribe="component:stats">
|
293 |
+
<?php if($t['retweet_count']!=0)
|
294 |
+
{?>
|
295 |
+
<a href="https://twitter.com/<?php echo $screen_name; ?>/statuses/<?php echo $t['tweet_id']; ?>" title="View Tweet on Twitter" data-scribe="element:favorite_count" target="_blank">
|
296 |
+
<span class="stats-favorites">
|
297 |
+
<strong><?php echo $t['retweet_count'];?></strong> retweet<?php if($t['retweet_count']>1)echo's';?>
|
298 |
+
</span>
|
299 |
+
</a>
|
300 |
+
<?php } ?>
|
301 |
+
<?php if($t['favourite_count']!=0)
|
302 |
+
{?>
|
303 |
+
<a href="https://twitter.com/<?php echo $screen_name; ?>/statuses/<?php echo $t['tweet_id']; ?>" title="View Tweet on Twitter" data-scribe="element:favorite_count" target="_blank">
|
304 |
+
<span class="stats-favorites">
|
305 |
+
<strong><?php echo $t['favourite_count'];?></strong> Favorite<?php if($t['favourite_count']>1)echo's';?>
|
306 |
+
</span>
|
307 |
+
</a>
|
308 |
+
<?php }?>
|
309 |
+
|
310 |
+
</span>
|
311 |
+
</span>
|
312 |
+
<div class="clear"></div>
|
313 |
+
<div class="seperator_wpltf"></div>
|
314 |
+
<?php }?>
|
315 |
+
<ul class="tweet-actions " role="menu" >
|
316 |
+
<li><a href="http://twitter.com/intent/tweet?in_reply_to=<?php echo $t['tweet_id']; ?>" data-lang="en" class="in-reply-to" title="Reply" target="_blank"><span aria-hidden="true" data-icon="" <?php echo ($color_intents) ? 'style="color:'.$color_intents.';"' :''; ?>></span></a></li>
|
317 |
+
<li><a href="http://twitter.com/intent/retweet?tweet_id=<?php echo $t['tweet_id']; ?>" data-lang="en" class="retweet" title="Retweet" target="_blank"><span aria-hidden="true" data-icon="" <?php echo ($color_intents) ? 'style="color:'.$color_intents.';"' :''; ?>></span></a></li>
|
318 |
+
<li><a href="http://twitter.com/intent/favorite?tweet_id=<?php echo $t['tweet_id']; ?>" data-lang="en" class="favorite" title="Favorite" target="_blank"><span aria-hidden="true" data-icon="" <?php echo ($color_intents) ? 'style="color:'.$color_intents.';"' :''; ?>></span></a></li>
|
319 |
+
</ul>
|
320 |
+
</div>
|
321 |
<?php } ?>
|
322 |
<div class="clear"></div>
|
323 |
</div><div class="clear"></div>
|
329 |
<?php endif; ?>
|
330 |
</ul>
|
331 |
<?php
|
332 |
+
}
|
333 |
echo $after_widget;
|
334 |
}
|
335 |
|
336 |
}
|
337 |
+
|
338 |
+
?>
|
controller/widget_html.php
CHANGED
@@ -1,11 +1,19 @@
|
|
|
|
|
|
1 |
<style>input.user-validator-valid {
|
2 |
-
background-color: #
|
|
|
|
|
|
|
3 |
color: #2C823C;
|
4 |
font-weight:bold;
|
5 |
}
|
6 |
input.user-validator-invalid {
|
7 |
-
background-color: #
|
|
|
|
|
8 |
color: #660011;
|
|
|
9 |
font-weight:bold;
|
10 |
}
|
11 |
</style>
|
@@ -14,7 +22,7 @@ font-weight:bold;
|
|
14 |
</p>
|
15 |
<p>
|
16 |
<label for="<?php echo $this->get_field_id('name'); ?>">Twitter User Name: <input class="widefat twitter_user_name" id="<?php echo $this->get_field_id('name'); ?>" name="<?php echo $this->get_field_name('name'); ?>" type="text" value="<?php echo esc_attr($name); ?>" /></label>
|
17 |
-
<
|
18 |
</p>
|
19 |
<p>
|
20 |
<label for="<?php echo $this->get_field_id('store_time'); ?>">Tweets Cache Time (in minutes): <input class="widefat" id="<?php echo $this->get_field_id('store_time'); ?>" name="<?php echo $this->get_field_name('store_time'); ?>" type="text" value="<?php echo esc_attr($timeto_store); ?>" /></label>
|
@@ -79,3 +87,4 @@ font-weight:bold;
|
|
79 |
<label for="<?php echo $this->get_field_id( 'disp_scr_name' ); ?>">Show Twitter Screen Name</label>
|
80 |
</p>
|
81 |
</div>
|
|
1 |
+
<?php $ok_url=plugins_url( '../images/rsz_11button_ok.png',__FILE__);
|
2 |
+
$cancel_url=plugins_url( '../images/rsz_1onebit_33.png',__FILE__);?>
|
3 |
<style>input.user-validator-valid {
|
4 |
+
background-color: #CFFAD7;
|
5 |
+
background-image:url('<?php echo $ok_url?>');
|
6 |
+
background-position:right;
|
7 |
+
background-repeat:no-repeat;
|
8 |
color: #2C823C;
|
9 |
font-weight:bold;
|
10 |
}
|
11 |
input.user-validator-invalid {
|
12 |
+
background-color: #FCCDC5;
|
13 |
+
background-image:url('<?php echo $cancel_url?>');
|
14 |
+
background-position:right;
|
15 |
color: #660011;
|
16 |
+
background-repeat:no-repeat;
|
17 |
font-weight:bold;
|
18 |
}
|
19 |
</style>
|
22 |
</p>
|
23 |
<p>
|
24 |
<label for="<?php echo $this->get_field_id('name'); ?>">Twitter User Name: <input class="widefat twitter_user_name" id="<?php echo $this->get_field_id('name'); ?>" name="<?php echo $this->get_field_name('name'); ?>" type="text" value="<?php echo esc_attr($name); ?>" /></label>
|
25 |
+
<span class="widefat user-validator">Start entering your user name</span>
|
26 |
</p>
|
27 |
<p>
|
28 |
<label for="<?php echo $this->get_field_id('store_time'); ?>">Tweets Cache Time (in minutes): <input class="widefat" id="<?php echo $this->get_field_id('store_time'); ?>" name="<?php echo $this->get_field_name('store_time'); ?>" type="text" value="<?php echo esc_attr($timeto_store); ?>" /></label>
|
87 |
<label for="<?php echo $this->get_field_id( 'disp_scr_name' ); ?>">Show Twitter Screen Name</label>
|
88 |
</p>
|
89 |
</div>
|
90 |
+
|
css/admin_style.min.css
CHANGED
@@ -1,25 +1,79 @@
|
|
1 |
-
@font-face{font-family:'
|
2 |
-
.
|
3 |
-
.
|
4 |
-
[data-icon]:before{font-family:'
|
5 |
.pi-visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}
|
6 |
div.wdtf-user-card {
|
7 |
width:100%;
|
8 |
margin-bottom: 5px;
|
9 |
float: left;
|
10 |
}
|
11 |
-
.
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
|
|
15 |
.tweets-intent-data a{text-decoration:none;}
|
16 |
-
.tweets
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
div.wdtf-screen-name {
|
18 |
margin-left: 4px;float: left;
|
19 |
-
font-size:
|
|
|
20 |
line-height: 18px;
|
21 |
}
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
div.wdtf-screen-name span.screen_name{font-weight:bold;}
|
25 |
div.times{float:left;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@font-face{font-family:'stt-intents';src:url('fonts/stt-intents.eot')}@font-face{font-family:'stt-intents';src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAWQAA0AAAAACAgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABMAAAABoAAAAcZoSdXkdERUYAAAFMAAAAHwAAACAANQAGT1MvMgAAAWwAAABHAAAAVi7i3BxjbWFwAAABtAAAAFUAAAFqodkD8Wdhc3AAAAIMAAAACAAAAAj//wADZ2x5ZgAAAhQAAAHQAAACXJAtYUdoZWFkAAAD5AAAADMAAAA2/fluKWhoZWEAAAQYAAAAIAAAACQDif/paG10eAAABDgAAAAYAAAAIAlVAABsb2NhAAAEUAAAABIAAAASAewBNG1heHAAAARkAAAAHQAAACAATABPbmFtZQAABIQAAADXAAABuXl6fnVwb3N0AAAFXAAAADQAAABaJCWFRHicY2BgYGQAgpOd+YYg+lztdDEYDQBAyQXkAAB4nGNgZGBg4ANiCQYQYGJgZGBmYAeSLGAeAwAEsQA8AHicY2BkPMA4gYGVgYNRmdGSgYHBDkpfZxBjKGZgYGJgZWaAAwEEkyEgzTWFweEBw0chxob/Bxg0GBsYHBoYGBhBcgCOlwsBAHicY2BgYGaAYBkGRgYQSAHyGMF8FgYPIM3HwMHAxMDGwPCA4QPDB9YPlR+F/v8HKUTlK7ALMAsw8nfzfYaagwQYgbphgoxMQIIJXQG6juEHAJ1mEWUAAAAAAAAB//8AAnicVZG5bttAEEB39hhKS5qWFR4WdFgiYVFHIDG8rEBwxC5FYsBdDDiFECCGS8GVGxv6BH+CviFfwC8J3AZp8gVWlsrhZLGzcwLzZpYAIdsCClgTSsgB9KB4ymH9lBN1ytyjyq3IS0KOLc0yQUPf66dJlmZpMhFjsC30ptBPFpBFThviyHWg6HJGGeccoFI7bAXB4U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GludGVudHMAAEYAbwBuAHQARgBvAHIAZwBlACAAMgAuADAAIAA6ACAAcwB0AHQALQBpAG4AdABlAG4AdABzACAAOgAgADEAMQAtADEAMAAtADIAMAAxADMAAEZvbnRGb3JnZSAyLjAgOiBzdHQtaW50ZW50cyA6IDExLTEwLTIwMTMAAHMAdAB0AC0AaQBuAHQAZQBuAHQAcwAAc3R0LWludGVudHMAAFYAZQByAHMAaQBvAG4AIAAxAC4AMAAAVmVyc2lvbiAxLjAAAHMAdAB0AC0AaQBuAHQAZQBuAHQAcwAAc3R0LWludGVudHMAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAEAAgECAQMBBAEFAQYHdW5pRjAwMAd1bmlGMDc5B3VuaUYxMTIHdW5pRjAwNQd1bmlFMDAwAAAAAAAB//8AAgABAAAADgAAABgAAAAAAAIAAQADAAcAAQAEAAAAAgAAAAAAAQAAAADJiW8xAAAAAM59lxYAAAAAzn2XFg==) format('truetype');font-weight:normal;font-style:normal}
|
2 |
+
.fetched_tweets li{-ms-word-break:break-all;word-break:break-all;word-break:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto}.tweets_avatar{margin-bottom:15px;}
|
3 |
+
.tweets_avatar img{float:left;margin-right:10px;border-radius:5px;}.circular{-webkit-border-radius:50% !important;-moz-border-radius:50% !important;border-radius:50% !important;}.tweets-intent-data{margin-top:5px;float:right;}.tweets-intent-data a{margin-right:5px}
|
4 |
+
[data-icon]:before{font-family:'stt-intents';content:attr(data-icon);speak:none;font-weight:normal;font-variant:normal;font-size:20px;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
|
5 |
.pi-visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}
|
6 |
div.wdtf-user-card {
|
7 |
width:100%;
|
8 |
margin-bottom: 5px;
|
9 |
float: left;
|
10 |
}
|
11 |
+
.fetched_tweets > li{font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;border-color: rgb(238, 238, 238) rgb(221, 221, 221) rgb(187, 187, 187);
|
12 |
+
border-width: 1px;
|
13 |
+
border-style: solid;
|
14 |
+
box-shadow: rgba(0, 0, 0, 0.14902) 0px 1px 3px;}
|
15 |
+
.tweet_data{float:left;font: 16px/20px Georgia,"Times New Roman",Palatino,serif;
|
16 |
+
line-height: 20px;}
|
17 |
+
|
18 |
+
.fetched_tweets .tweets_avatar .tweet_data a{color: #0084B4;text-decoration:none;
|
19 |
}
|
20 |
+
.tweets-intent-data{width:100%;border-top:1px solid #e8e8e8;}
|
21 |
.tweets-intent-data a{text-decoration:none;}
|
22 |
+
.tweets-intent-data li{
|
23 |
+
display: inline-block;
|
24 |
+
float: none;
|
25 |
+
width: 31.33%;
|
26 |
+
text-align: center;
|
27 |
+
}
|
28 |
+
.tweets-intent-data ul{margin-bottom: 7px;
|
29 |
+
padding-top: 7px;
|
30 |
+
display:block;
|
31 |
+
|
32 |
+
margin-left:0px;
|
33 |
+
margin-top: 0px;}
|
34 |
+
.seperator_wpltf{clear:left;border-top:1px solid #e8e8e8;margin:3px auto;}
|
35 |
+
.fetched_tweets .tweets_avatar .tweet_data a:hover{text-decoration: underline;}
|
36 |
div.wdtf-screen-name {
|
37 |
margin-left: 4px;float: left;
|
38 |
+
font-size:1.1em;
|
39 |
+
width:68%;
|
40 |
line-height: 18px;
|
41 |
}
|
42 |
+
.clear{clear:both;}
|
43 |
+
.times a,.wdtf-screen-name a,.stats a{color:#999999 !important;text-decoration:none;}
|
44 |
+
.times a:hover,.wdtf-screen-name a:hover,.stats a:hover{text-decoration: underline;}
|
45 |
+
.stats-favorites{text-transform: uppercase;font-size: 11px;;}
|
46 |
+
span.stats-narrow .stats{display:block;}
|
47 |
+
span.stats-narrow .stats a{display:block; width:45%;float:left;}
|
48 |
+
li.tweets_avatar{padding: 8px 8px 0;
|
49 |
+
background: #fff;
|
50 |
+
border-radius: 5px;color: #000;}
|
51 |
div.wdtf-screen-name span.screen_name{font-weight:bold;}
|
52 |
div.times{float:left;}
|
53 |
+
.isa_info, .isa_success, .isa_warning, .isa_error {
|
54 |
+
border: 1px solid;
|
55 |
+
margin: 10px 0px;
|
56 |
+
padding:15px 10px;
|
57 |
+
background-repeat: no-repeat;
|
58 |
+
background-position: 10px center;-moz-border-radius:.5em;
|
59 |
+
-webkit-border-radius:.5em;
|
60 |
+
border-radius:.5em;
|
61 |
+
|
62 |
+
}
|
63 |
+
.isa_info {
|
64 |
+
color: #00529B;
|
65 |
+
background-color: #BDE5F8;
|
66 |
+
}
|
67 |
+
.isa_success {
|
68 |
+
color: #4F8A10;
|
69 |
+
background-color: #DFF2BF;
|
70 |
+
}
|
71 |
+
.isa_warning {
|
72 |
+
color: #9F6000;
|
73 |
+
background-color: #FEEFB3;
|
74 |
+
}
|
75 |
+
.isa_error {
|
76 |
+
color: #D8000C;
|
77 |
+
background-color: #FFBABA;
|
78 |
+
}
|
79 |
+
|
images/rsz_11button_ok.png
ADDED
Binary file
|
images/rsz_1onebit_33.png
ADDED
Binary file
|
js/validate.js
CHANGED
@@ -23,7 +23,7 @@ jQuery(document).ready(function ($) {
|
|
23 |
|
24 |
return;
|
25 |
}
|
26 |
-
$('.user-validator').
|
27 |
|
28 |
timer = setTimeout(function() {
|
29 |
validateScreenName( userInput );
|
@@ -46,9 +46,9 @@ jQuery(document).ready(function ($) {
|
|
46 |
|
47 |
function setValidatorTo( obj ) {
|
48 |
$('.user-validator')
|
49 |
-
.
|
50 |
-
.removeClass('user-validator-valid user-validator-invalid')
|
51 |
-
|
52 |
}
|
53 |
|
54 |
function start() {
|
@@ -56,4 +56,4 @@ jQuery(document).ready(function ($) {
|
|
56 |
if( lastResult )
|
57 |
setValidatorTo( lastResult );
|
58 |
}
|
59 |
-
});
|
23 |
|
24 |
return;
|
25 |
}
|
26 |
+
$('.user-validator').html('checking...');
|
27 |
|
28 |
timer = setTimeout(function() {
|
29 |
validateScreenName( userInput );
|
46 |
|
47 |
function setValidatorTo( obj ) {
|
48 |
$('.user-validator')
|
49 |
+
.html(obj.data)
|
50 |
+
.removeClass('user-validator-valid user-validator-invalid');
|
51 |
+
$('.twitter_user_name').removeClass('user-validator-valid user-validator-invalid').addClass(obj.class);
|
52 |
}
|
53 |
|
54 |
function start() {
|
56 |
if( lastResult )
|
57 |
setValidatorTo( lastResult );
|
58 |
}
|
59 |
+
});
|
wp-latest-twitter-tweets.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: WP Twitter Feeds
|
4 |
Plugin URI: http://www.vivacityinfotech.com/
|
5 |
-
Description:
|
6 |
Author: vivacityinfotech
|
7 |
Version: 1.0
|
8 |
Author URI: http://www.vivacityinfotech.com/
|
2 |
/*
|
3 |
Plugin Name: WP Twitter Feeds
|
4 |
Plugin URI: http://www.vivacityinfotech.com/
|
5 |
+
Description: Displays latest tweets from your Twitter account using Twitter oAuth API 1.1.
|
6 |
Author: vivacityinfotech
|
7 |
Version: 1.0
|
8 |
Author URI: http://www.vivacityinfotech.com/
|