Version Description
- Added the feature to change tweets theme.
- Added the option to show/hide border arround the tweets.
Download this release
Release Info
Developer | vivacityinfotech.jaipur |
Plugin | WP twitter feeds |
Version | 1.3 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.3
- README.txt +8 -2
- controller/twitter_widget.class.php +23 -1
- controller/widget_html.php +14 -0
- css/admin_style.min.css +32 -10
- wp-latest-twitter-tweets.php +1 -1
README.txt
CHANGED
@@ -3,9 +3,9 @@ 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.
|
7 |
License: GPLv2 or later
|
8 |
-
Stable tag: 1.
|
9 |
|
10 |
|
11 |
WP Twitter Feeds - A simple widget which lets you add your latest tweets in just a few clicks on your website.
|
@@ -82,9 +82,15 @@ Installation consists of following steps:
|
|
82 |
3. WP Twitter Feeds widget under Appearence->Widgets.
|
83 |
4. WP Twitter Feeds widget under Appearence->Widgets.
|
84 |
5. WP Twitter Feeds widget under Appearence->Widgets.
|
|
|
|
|
85 |
|
86 |
== Changelog ==
|
87 |
|
|
|
|
|
|
|
|
|
88 |
= 1.2 =
|
89 |
* Improved Fornt-End UI design.
|
90 |
|
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.3
|
9 |
|
10 |
|
11 |
WP Twitter Feeds - A simple widget which lets you add your latest tweets in just a few clicks on your website.
|
82 |
3. WP Twitter Feeds widget under Appearence->Widgets.
|
83 |
4. WP Twitter Feeds widget under Appearence->Widgets.
|
84 |
5. WP Twitter Feeds widget under Appearence->Widgets.
|
85 |
+
6. WP Twitter Feeds widget on front End (Light Theme).
|
86 |
+
7. WP Twitter Feeds widget on front End (Dark Theme).
|
87 |
|
88 |
== Changelog ==
|
89 |
|
90 |
+
= 1.3 =
|
91 |
+
* Added the feature to change tweets theme.
|
92 |
+
* Added the option to show/hide border arround the tweets.
|
93 |
+
|
94 |
= 1.2 =
|
95 |
* Improved Fornt-End UI design.
|
96 |
|
controller/twitter_widget.class.php
CHANGED
@@ -21,6 +21,8 @@
|
|
21 |
$color_intents = $instance['intentColor'];
|
22 |
$showAvatar = $instance['showAvatar'];
|
23 |
$border_rad_avatar = $instance['border_rad'];
|
|
|
|
|
24 |
if (!in_array('curl', get_loaded_extensions())) {
|
25 |
echo '<p style="background-color:pink;padding:10px;border:1px solid red;"><strong>cURL is not installed!</strong></p>';
|
26 |
}
|
@@ -32,6 +34,8 @@
|
|
32 |
'title' => 'Latest Tweets'
|
33 |
, 'name' => ''
|
34 |
, 'tweets_cnt' => 3
|
|
|
|
|
35 |
, 'store_time' => 4
|
36 |
, 'replies_excl' => true
|
37 |
, 'disp_scr_name' => false
|
@@ -102,6 +106,8 @@
|
|
102 |
$instance['timeRef'] = $new_instance['timeRef'];
|
103 |
$instance['showAvatar'] = $new_instance['showAvatar'];
|
104 |
$instance['border_rad'] = $new_instance['border_rad'];
|
|
|
|
|
105 |
return $instance;
|
106 |
}
|
107 |
function __construct() {
|
@@ -140,6 +146,8 @@
|
|
140 |
$wpltf_wdgt_intentColor = $instance['intentColor'];
|
141 |
$wpltf_wdgt_showAvatar = isset( $instance['showAvatar'] ) ? $instance['showAvatar'] : false;
|
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=='' )
|
@@ -148,7 +156,21 @@
|
|
148 |
}
|
149 |
else
|
150 |
{
|
151 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
<?php
|
153 |
|
154 |
$tweets_count = $wpltf_wdgt_tweets_cnt;
|
21 |
$color_intents = $instance['intentColor'];
|
22 |
$showAvatar = $instance['showAvatar'];
|
23 |
$border_rad_avatar = $instance['border_rad'];
|
24 |
+
$tweet_border = $instance['tweet_border'];
|
25 |
+
$tweet_theme = $instance['tweet_theme'];
|
26 |
if (!in_array('curl', get_loaded_extensions())) {
|
27 |
echo '<p style="background-color:pink;padding:10px;border:1px solid red;"><strong>cURL is not installed!</strong></p>';
|
28 |
}
|
34 |
'title' => 'Latest Tweets'
|
35 |
, 'name' => ''
|
36 |
, 'tweets_cnt' => 3
|
37 |
+
, 'tweet_theme' => 'light'
|
38 |
+
, 'tweet_border' => 'true'
|
39 |
, 'store_time' => 4
|
40 |
, 'replies_excl' => true
|
41 |
, 'disp_scr_name' => false
|
106 |
$instance['timeRef'] = $new_instance['timeRef'];
|
107 |
$instance['showAvatar'] = $new_instance['showAvatar'];
|
108 |
$instance['border_rad'] = $new_instance['border_rad'];
|
109 |
+
$instance['tweet_border'] = $new_instance['tweet_border'];
|
110 |
+
$instance['tweet_theme'] = $new_instance['tweet_theme'];
|
111 |
return $instance;
|
112 |
}
|
113 |
function __construct() {
|
146 |
$wpltf_wdgt_intentColor = $instance['intentColor'];
|
147 |
$wpltf_wdgt_showAvatar = isset( $instance['showAvatar'] ) ? $instance['showAvatar'] : false;
|
148 |
$wpltf_wdgt_border_rad = isset( $instance['border_rad'] ) ? $instance['border_rad'] : false;
|
149 |
+
$wpltf_wdgt_tewwt_border = isset( $instance['tweet_border'] ) ? $instance['tweet_border'] : 'false';
|
150 |
+
$wpltf_wdgt_tweet_theme = isset( $instance['tweet_theme'] ) ? $instance['tweet_theme'] : 'light';
|
151 |
if (!empty($wpltf_wdgt_title))
|
152 |
echo $before_title . $wpltf_wdgt_title . $after_title;
|
153 |
if($wpltf_wdgt_consumerKey=='' || $wpltf_wdgt_consumerSecret ==''|| $wpltf_wdgt_accessTokenSecret=='' || $wpltf_wdgt_accessToken=='' )
|
156 |
}
|
157 |
else
|
158 |
{
|
159 |
+
$class='light';
|
160 |
+
if(isset($wpltf_wdgt_tweet_theme) && $wpltf_wdgt_tweet_theme=='dark')
|
161 |
+
$class='dark';
|
162 |
+
if(isset($wpltf_wdgt_tewwt_border) && $wpltf_wdgt_tewwt_border=='true')
|
163 |
+
{
|
164 |
+
echo '<style>
|
165 |
+
.fetched_tweets.light > li{border-color: rgb(238, 238, 238) rgb(221, 221, 221) rgb(187, 187, 187);
|
166 |
+
border-width: 1px;
|
167 |
+
border-style: solid;}
|
168 |
+
.fetched_tweets.dark > li{
|
169 |
+
border-color: #444;
|
170 |
+
border-width: 1px;
|
171 |
+
border-style: solid;}</style>';
|
172 |
+
}
|
173 |
+
?> <ul class="fetched_tweets <?php echo $class;?>">
|
174 |
<?php
|
175 |
|
176 |
$tweets_count = $wpltf_wdgt_tweets_cnt;
|
controller/widget_html.php
CHANGED
@@ -86,4 +86,18 @@ font-weight:bold;
|
|
86 |
<input class="checkbox" type="checkbox" <?php checked( (isset( $instance['disp_scr_name']) && ($instance['disp_scr_name'] == "true") ), true ); ?> id="<?php echo $this->get_field_id( 'disp_scr_name' ); ?>" name="<?php echo $this->get_field_name( 'disp_scr_name' ); ?>" value="true" />
|
87 |
<label for="<?php echo $this->get_field_id( 'disp_scr_name' ); ?>">Show Twitter Screen Name</label>
|
88 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
</div>
|
86 |
<input class="checkbox" type="checkbox" <?php checked( (isset( $instance['disp_scr_name']) && ($instance['disp_scr_name'] == "true") ), true ); ?> id="<?php echo $this->get_field_id( 'disp_scr_name' ); ?>" name="<?php echo $this->get_field_name( 'disp_scr_name' ); ?>" value="true" />
|
87 |
<label for="<?php echo $this->get_field_id( 'disp_scr_name' ); ?>">Show Twitter Screen Name</label>
|
88 |
</p>
|
89 |
+
<p>
|
90 |
+
<label for="<?php echo $this->get_field_id( 'tweet_border' ); ?>">Show Twitter Widget Border:</label><br/>
|
91 |
+
<select name="<?php echo $this->get_field_name( 'tweet_border' ); ?>" id="<?php echo $this->get_field_id( 'tweet_border' ); ?>" style="width: 100%;">
|
92 |
+
<option value="true" <?php if(isset($tweet_border) && $tweet_border=='true'){echo 'selected';} ?>>Yes</option>
|
93 |
+
<option value="false" <?php if(isset($tweet_border) && $tweet_border=='false'){echo 'selected';} ?>>No</option>
|
94 |
+
</select>
|
95 |
+
</p>
|
96 |
+
<p>
|
97 |
+
<label for="<?php echo $this->get_field_id( 'tweet_theme' ); ?>">Twitter Widget Theme:</label><br/>
|
98 |
+
<select name="<?php echo $this->get_field_name( 'tweet_theme' ); ?>" id="<?php echo $this->get_field_id( 'tweet_theme' ); ?>" style="width: 100%;">
|
99 |
+
<option value="light" <?php if(isset($tweet_theme) && $tweet_theme=='light'){echo 'selected';} ?>>Light</option>
|
100 |
+
<option value="dark" <?php if(isset($tweet_theme) && $tweet_theme=='dark'){echo 'selected';} ?>>Dark</option>
|
101 |
+
</select>
|
102 |
+
</p>
|
103 |
</div>
|
css/admin_style.min.css
CHANGED
@@ -8,16 +8,19 @@ width:100%;
|
|
8 |
margin-bottom: 5px;
|
9 |
float: left;
|
10 |
}
|
11 |
-
.fetched_tweets > li{font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
12 |
-
|
13 |
-
border-style: solid;
|
14 |
box-shadow: rgba(0, 0, 0, 0.14902) 0px 1px 3px;}
|
15 |
-
|
|
|
|
|
|
|
16 |
line-height: 20px;}
|
17 |
|
18 |
-
.fetched_tweets .tweets_avatar .tweet_data a{
|
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;
|
@@ -32,6 +35,8 @@ display:block;
|
|
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;
|
@@ -40,15 +45,18 @@ width:68%;
|
|
40 |
line-height: 18px;
|
41 |
}
|
42 |
.clear{clear:both;}
|
43 |
-
.times a
|
|
|
|
|
|
|
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 |
-
|
50 |
-
|
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;
|
@@ -76,3 +84,17 @@ border-radius:.5em;
|
|
76 |
color: #D8000C;
|
77 |
background-color: #FFBABA;
|
78 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
margin-bottom: 5px;
|
9 |
float: left;
|
10 |
}
|
11 |
+
.fetched_tweets > li{font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
12 |
+
|
|
|
13 |
box-shadow: rgba(0, 0, 0, 0.14902) 0px 1px 3px;}
|
14 |
+
|
15 |
+
|
16 |
+
.tweet_data{float:left;
|
17 |
+
font: 16px/20px Georgia,"Times New Roman",Palatino,serif;
|
18 |
line-height: 20px;}
|
19 |
|
20 |
+
.fetched_tweets .tweets_avatar .tweet_data a{text-decoration:none;
|
21 |
}
|
22 |
+
.light .tweets-intent-data{width:100%;border-top:1px solid #e8e8e8;}
|
23 |
+
.dark .tweets-intent-data{width:100%;border-top: 1px solid #444;}
|
24 |
.tweets-intent-data a{text-decoration:none;}
|
25 |
.tweets-intent-data li{
|
26 |
display: inline-block;
|
35 |
margin-left:0px;
|
36 |
margin-top: 0px;}
|
37 |
.seperator_wpltf{clear:left;border-top:1px solid #e8e8e8;margin:3px auto;}
|
38 |
+
.light .seperator_wpltf{border-top:1px solid #e8e8e8;}
|
39 |
+
.dark .seperator_wpltf{border-top:1px solid #444;}
|
40 |
.fetched_tweets .tweets_avatar .tweet_data a:hover{text-decoration: underline;}
|
41 |
div.wdtf-screen-name {
|
42 |
margin-left: 4px;float: left;
|
45 |
line-height: 18px;
|
46 |
}
|
47 |
.clear{clear:both;}
|
48 |
+
ul.light li.tweets_avatar .times a,ul.light li.tweets_avatar .wdtf-screen-name a,ul.light li.tweets_avatar .stats a{color:#999999 ;
|
49 |
+
text-decoration:none;}
|
50 |
+
ul.dark li.tweets_avatar .times a,ul.dark li.tweets_avatar .wdtf-screen-name a,ul.dark li.tweets_avatar .stats a{color:#a0a0a0 ;
|
51 |
+
text-decoration:none;}
|
52 |
.times a:hover,.wdtf-screen-name a:hover,.stats a:hover{text-decoration: underline;}
|
53 |
.stats-favorites{text-transform: uppercase;font-size: 11px;;}
|
54 |
span.stats-narrow .stats{display:block;}
|
55 |
span.stats-narrow .stats a{display:block; width:45%;float:left;}
|
56 |
li.tweets_avatar{padding: 8px 8px 0;
|
57 |
+
border-radius: 5px;}
|
58 |
+
.light div.wdtf-screen-name span.screen_name{font-weight:bold;}
|
59 |
+
.dark div.wdtf-screen-name span.screen_name{font-weight:bold;color: #cfcfcf;}
|
60 |
div.times{float:left;}
|
61 |
.isa_info, .isa_success, .isa_warning, .isa_error {
|
62 |
border: 1px solid;
|
84 |
color: #D8000C;
|
85 |
background-color: #FFBABA;
|
86 |
}
|
87 |
+
ul.light li.tweets_avatar {
|
88 |
+
background: #fff;
|
89 |
+
color: #000;
|
90 |
+
}
|
91 |
+
ul.dark li.tweets_avatar {
|
92 |
+
background: #333;
|
93 |
+
color: #fff;
|
94 |
+
}
|
95 |
+
.fetched_tweets.light .tweets_avatar .tweet_data a {
|
96 |
+
color: #0084B4;
|
97 |
+
}
|
98 |
+
.fetched_tweets.dark .tweets_avatar .tweet_data a {
|
99 |
+
color: #87c2ed;
|
100 |
+
}
|
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: vivacityinfotech
|
7 |
-
Version: 1.
|
8 |
Author URI: http://www.vivacityinfotech.net/
|
9 |
|
10 |
Copyright 2014 Vivacity InfoTech Pvt. Ltd. (email : support@vivacityinfotech.com)
|
4 |
Plugin URI: http://www.vivacityinfotech.net/
|
5 |
Description: Displays latest tweets from your Twitter account using Twitter oAuth API 1.1.
|
6 |
Author: vivacityinfotech
|
7 |
+
Version: 1.3
|
8 |
Author URI: http://www.vivacityinfotech.net/
|
9 |
|
10 |
Copyright 2014 Vivacity InfoTech Pvt. Ltd. (email : support@vivacityinfotech.com)
|