Version Description
- Added retweets and replies feature
- Added image on feeds along with chosen size
Download this release
Release Info
Developer | Access Keys |
Plugin | AccessPress Twitter Feed – Twitter Feed for WordPress |
Version | 1.6.3 |
Comparing to | |
See all releases |
Code changes from version 1.6.2 to 1.6.3
- accesspress-twitter-feed.php +15 -7
- inc/backend/boards/about.php +16 -32
- inc/backend/boards/how-to-use.php +11 -11
- inc/backend/boards/main-settings.php +32 -0
- inc/backend/boards/more-wp.php +1 -16
- inc/backend/save-settings.php +4 -1
- inc/backend/settings.php +4 -5
- inc/frontend/templates/default/template-1.php +14 -4
- inc/frontend/templates/default/template-2.php +13 -4
- inc/frontend/templates/default/template-3.php +13 -3
- inc/frontend/templates/slider/template-1.php +14 -5
- inc/frontend/templates/slider/template-2.php +13 -8
- inc/frontend/templates/slider/template-3.php +13 -7
- inc/frontend/templates/tweet-media.php +66 -0
- js/frontend.js +3 -3
- oauth/OAuth.php +20 -0
- oauth/twitteroauth.php +15 -12
- readme.txt +7 -22
accesspress-twitter-feed.php
CHANGED
@@ -4,7 +4,7 @@ defined('ABSPATH') or die('No script kiddies please!');
|
|
4 |
* Plugin Name: WP TFeed
|
5 |
* Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed/
|
6 |
* Description: A plugin to show your twitter feed in your site with various configurable settings
|
7 |
-
* Version: 1.6.
|
8 |
* Author: AccessPress Themes
|
9 |
* Author URI: http://accesspressthemes.com
|
10 |
* Text Domain: accesspress-twitter-feed
|
@@ -24,7 +24,7 @@ if (!defined('APTF_CSS_DIR')) {
|
|
24 |
define('APTF_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
|
25 |
}
|
26 |
if (!defined('APTF_VERSION')) {
|
27 |
-
define('APTF_VERSION', '1.6.
|
28 |
}
|
29 |
|
30 |
if (!defined('APTF_TD')) {
|
@@ -303,9 +303,17 @@ if (!class_exists('APTF_Class')) {
|
|
303 |
$consumer_secret = esc_attr($aptf_settings['consumer_secret']);
|
304 |
$access_token = esc_attr($aptf_settings['access_token']);
|
305 |
$access_token_secret = esc_attr($aptf_settings['access_token_secret']);
|
306 |
-
|
307 |
-
$
|
308 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
309 |
$cache_period = intval(esc_attr($aptf_settings['cache_period'])) * 60;
|
310 |
$cache_period = ($cache_period < 1) ? 3600 : $cache_period;
|
311 |
if(!isset($tweets->errors)){
|
@@ -329,7 +337,7 @@ if (!class_exists('APTF_Class')) {
|
|
329 |
'demo' => '<a href="https://demo.accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/" target="_blank"><span class="dashicons dashicons-welcome-view-site"></span>Live Demo</a>',
|
330 |
'doc' => '<a href="https://accesspressthemes.com/documentation/documentation-plugin-instruction-accesspress-twitter-feed-pro/" target="_blank"><span class="dashicons dashicons-media-document"></span>Documentation</a>',
|
331 |
'support' => '<a href="http://accesspressthemes.com/support" target="_blank"><span class="dashicons dashicons-admin-users"></span>Support</a>',
|
332 |
-
'pro' => '<a href="https://
|
333 |
);
|
334 |
|
335 |
$links = array_merge( $links, $new_links );
|
@@ -342,7 +350,7 @@ if (!class_exists('APTF_Class')) {
|
|
342 |
{
|
343 |
if ( isset($_GET['page'] ) && $_GET['page'] == 'ap-twitter-feed' ) {
|
344 |
$link = 'https://wordpress.org/support/plugin/accesspress-twitter-feed/reviews/#new-post';
|
345 |
-
$pro_link = 'https://
|
346 |
$text = 'Enjoyed WP TFeed? <a href="' . $link . '" target="_blank">Please leave us a ★★★★★ rating</a> We really appreciate your support! | Try premium version of <a href="' . $pro_link . '" target="_blank">Accesspress Twitter Feed Pro</a> - more features, more power!';
|
347 |
return $text;
|
348 |
} else {
|
4 |
* Plugin Name: WP TFeed
|
5 |
* Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed/
|
6 |
* Description: A plugin to show your twitter feed in your site with various configurable settings
|
7 |
+
* Version: 1.6.3
|
8 |
* Author: AccessPress Themes
|
9 |
* Author URI: http://accesspressthemes.com
|
10 |
* Text Domain: accesspress-twitter-feed
|
24 |
define('APTF_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
|
25 |
}
|
26 |
if (!defined('APTF_VERSION')) {
|
27 |
+
define('APTF_VERSION', '1.6.3');
|
28 |
}
|
29 |
|
30 |
if (!defined('APTF_TD')) {
|
303 |
$consumer_secret = esc_attr($aptf_settings['consumer_secret']);
|
304 |
$access_token = esc_attr($aptf_settings['access_token']);
|
305 |
$access_token_secret = esc_attr($aptf_settings['access_token_secret']);
|
306 |
+
$oauth_connection = $this->get_oauth_connection($consumer_key, $consumer_secret, $access_token, $access_token_secret);
|
307 |
+
$exclude_rts_replies = (!empty($aptf_settings[ 'exclude_rts_replies' ])) ? 1 : 0;
|
308 |
+
//var_dump($exclude_rts_replies);
|
309 |
+
if ( $exclude_rts_replies == 1 ) {
|
310 |
+
$api_url = 'https://api.twitter.com/1.1/statuses/user_timeline.json?tweet_mode=extended&include_rts=false&exclude_replies=true';
|
311 |
+
} else {
|
312 |
+
$api_url = 'https://api.twitter.com/1.1/statuses/user_timeline.json?tweet_mode=extended';
|
313 |
+
}
|
314 |
+
//$api_url = "https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=".$username."&count=".$tweets_number.'&exclude_replies=true';
|
315 |
+
//$tweets = $oauth_connection->get(apply_filters('aptf_api_url',$api_url,$username,$tweets_number));
|
316 |
+
$tweets = $oauth_connection->get($api_url . "&screen_name=" . $username . "&count=" . $tweets_number);
|
317 |
$cache_period = intval(esc_attr($aptf_settings['cache_period'])) * 60;
|
318 |
$cache_period = ($cache_period < 1) ? 3600 : $cache_period;
|
319 |
if(!isset($tweets->errors)){
|
337 |
'demo' => '<a href="https://demo.accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/" target="_blank"><span class="dashicons dashicons-welcome-view-site"></span>Live Demo</a>',
|
338 |
'doc' => '<a href="https://accesspressthemes.com/documentation/documentation-plugin-instruction-accesspress-twitter-feed-pro/" target="_blank"><span class="dashicons dashicons-media-document"></span>Documentation</a>',
|
339 |
'support' => '<a href="http://accesspressthemes.com/support" target="_blank"><span class="dashicons dashicons-admin-users"></span>Support</a>',
|
340 |
+
'pro' => '<a href="https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/" target="_blank"><span class="dashicons dashicons-cart"></span>Premium version</a>'
|
341 |
);
|
342 |
|
343 |
$links = array_merge( $links, $new_links );
|
350 |
{
|
351 |
if ( isset($_GET['page'] ) && $_GET['page'] == 'ap-twitter-feed' ) {
|
352 |
$link = 'https://wordpress.org/support/plugin/accesspress-twitter-feed/reviews/#new-post';
|
353 |
+
$pro_link = 'https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/';
|
354 |
$text = 'Enjoyed WP TFeed? <a href="' . $link . '" target="_blank">Please leave us a ★★★★★ rating</a> We really appreciate your support! | Try premium version of <a href="' . $pro_link . '" target="_blank">Accesspress Twitter Feed Pro</a> - more features, more power!';
|
355 |
return $text;
|
356 |
} else {
|
inc/backend/boards/about.php
CHANGED
@@ -1,55 +1,39 @@
|
|
1 |
<div class="aptf-single-board-wrapper" id="aptf-about-board" style="display: none">
|
2 |
<h3><?php _e('About', 'accesspress-twitter-feed'); ?></h3>
|
3 |
|
4 |
-
<p
|
5 |
|
6 |
-
<p
|
7 |
|
8 |
-
<p
|
9 |
<div class="halfseperator"></div>
|
10 |
-
<p
|
11 |
<a href="https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed/" target="_blank">https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed/</a></p>
|
12 |
<div class="halfseperator"></div>
|
13 |
-
<p
|
14 |
<a href="https://demo.accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed/" target="_blank">https://demo.accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed/</a></p>
|
15 |
<div class="halfseperator"></div>
|
16 |
-
<p
|
17 |
<a href="https://accesspressthemes.com/documentation/documentation-plugin-instruction-accesspress-twitter-feed/" target="_blank">https://accesspressthemes.com/documentation/documentation-plugin-instruction-accesspress-twitter-feed/</a></p>
|
18 |
|
19 |
-
<h3
|
20 |
-
<p
|
21 |
<a href="https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/" target="_blank">https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/</a></p>
|
22 |
-
|
23 |
-
<h3>More From AccessPress themes </h3>
|
24 |
-
<ul class="aptf-more-products-wrap">
|
25 |
-
<li><a href="https://accesspressthemes.com/plugins/" target="_blank"><span class="prod-title"> Wordpress Plugins </span> <img src="<?php echo APTF_IMAGE_DIR . '/plugin.png'; ?>" width="100%" /> </a></li>
|
26 |
-
<li><a href="https://accesspressthemes.com/themes/" target="_blank"><span class="prod-title"> Wordpress Themes </span> <img src="<?php echo APTF_IMAGE_DIR . '/theme.png'; ?>" width="100%" /></a></li>
|
27 |
-
<li><a href="https://accesspressthemes.com/contact/" target="_blank"><span class="prod-title"> Wordpress Customization </span> <img src="<?php echo APTF_IMAGE_DIR . '/customize.png'; ?>" width="100%" /></a></li>
|
28 |
-
</ul>
|
29 |
|
30 |
|
31 |
<div class="seperator"></div><div class="dottedline"></div><div class="seperator"></div>
|
32 |
|
33 |
-
<h3
|
34 |
-
<p
|
35 |
-
<strong
|
36 |
-
<strong
|
37 |
-
<strong
|
38 |
</p>
|
39 |
<div class="seperator"></div><div class="dottedline"></div><div class="seperator"></div>
|
40 |
-
<h3
|
41 |
-
<p
|
42 |
|
43 |
|
44 |
-
<p
|
45 |
<iframe style="border: none; overflow: hidden; width: 100%; height: 206px;" src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&width=842&height=258&colorscheme=light&show_faces=true&header=false&stream=false&show_border=true&appId=1411139805828592" width="240" height="150" frameborder="0" scrolling="no"></iframe></p>
|
46 |
-
|
47 |
-
<ul class="social-icon">
|
48 |
-
<li><a href="https://plus.google.com/+Accesspressthemesprofile" target="_blank"><img src="<?php echo APTF_IMAGE_DIR; ?>/googleplus.png" alt="google+"></a></li>
|
49 |
-
<li><a href="http://www.pinterest.com/accesspresswp/" target="_blank"><img src="<?php echo APTF_IMAGE_DIR; ?>/pinterest.png" alt="pinterest"></a></li>
|
50 |
-
<li><a href="https://www.flickr.com/photos/accesspressthemes/" target="_blank"><img src="<?php echo APTF_IMAGE_DIR; ?>/flicker.png" alt="flicker"></a></li>
|
51 |
-
<li><a href="https://twitter.com/apthemes" target="_blank"><img src="<?php echo APTF_IMAGE_DIR; ?>/twitter.png" alt="twitter"/></a></li>
|
52 |
-
</ul>
|
53 |
-
|
54 |
-
|
55 |
</div>
|
1 |
<div class="aptf-single-board-wrapper" id="aptf-about-board" style="display: none">
|
2 |
<h3><?php _e('About', 'accesspress-twitter-feed'); ?></h3>
|
3 |
|
4 |
+
<p><?php _e('<strong>WP TFeed </strong> - is a FREE WordPress Plugin by AccessPress Themes. ', 'accesspress-twitter-feed'); ?></p>
|
5 |
|
6 |
+
<p><?php _e('AccessPress Themes is a venture of Access Keys - who has developed hundreds of Custom WordPress themes and plugins for its clients over the years. ', 'accesspress-twitter-feed'); ?></p>
|
7 |
|
8 |
+
<p><?php _e('<strong>WP TFeed</strong> is a <strong>FREE</strong> <strong>Twitter plugin</strong> for <strong>WordPress</strong>. It just takes a few minute to set it up and use. Start strong Twitter integration right on your website and increase your social reach to next level.', 'accesspress-twitter-feed'); ?></p>
|
9 |
<div class="halfseperator"></div>
|
10 |
+
<p><?php _e('<strong>Please visit our product page for more details here:</strong><br />', 'accesspress-twitter-feed'); ?>
|
11 |
<a href="https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed/" target="_blank">https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed/</a></p>
|
12 |
<div class="halfseperator"></div>
|
13 |
+
<p><?php _e('<strong>Please visit our demo page here:</strong><br />', 'accesspress-twitter-feed'); ?>
|
14 |
<a href="https://demo.accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed/" target="_blank">https://demo.accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed/</a></p>
|
15 |
<div class="halfseperator"></div>
|
16 |
+
<p><?php _e('<strong>Plugin documentation can be found here:</strong><br />', 'accesspress-twitter-feed'); ?>
|
17 |
<a href="https://accesspressthemes.com/documentation/documentation-plugin-instruction-accesspress-twitter-feed/" target="_blank">https://accesspressthemes.com/documentation/documentation-plugin-instruction-accesspress-twitter-feed/</a></p>
|
18 |
|
19 |
+
<h3><?php _e('Premium Upgrade', 'accesspress-twitter-feed'); ?></h3>
|
20 |
+
<p><?php _e('<strong>For premium upgrade please visit here:</strong><br />', 'accesspress-twitter-feed'); ?>
|
21 |
<a href="https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/" target="_blank">https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/</a></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
|
24 |
<div class="seperator"></div><div class="dottedline"></div><div class="seperator"></div>
|
25 |
|
26 |
+
<h3><?php _e('Get in touch', 'accesspress-twitter-feed'); ?></h3>
|
27 |
+
<p><?php _e('If you’ve any question/feedback, please get in touch: <br />', 'accesspress-twitter-feed'); ?>
|
28 |
+
<strong><?php _e('General enquiries:', 'accesspress-twitter-feed'); ?></strong> <a href="mailto:info@accesspressthemes.com">info@accesspressthemes.com</a><br />
|
29 |
+
<strong><?php _e('Support:', 'accesspress-twitter-feed'); ?></strong> <a href="mailto:support@accesspressthemes.com">support@accesspressthemes.com</a><br />
|
30 |
+
<strong><?php _e('Sales:', 'accesspress-twitter-feed'); ?></strong> <a href="mailto:sales@accesspressthemes.com">sales@accesspressthemes.com</a>
|
31 |
</p>
|
32 |
<div class="seperator"></div><div class="dottedline"></div><div class="seperator"></div>
|
33 |
+
<h3><?php _e('Get social', 'accesspress-twitter-feed'); ?></h3>
|
34 |
+
<p><?php _e('Get connected with us on social media. Facebook is the best place to find updates on our themes/plugins: ', 'accesspress-twitter-feed'); ?></p>
|
35 |
|
36 |
|
37 |
+
<p><?php _e('<strong>Like us on facebook:</strong><br />', 'accesspress-twitter-feed'); ?>
|
38 |
<iframe style="border: none; overflow: hidden; width: 100%; height: 206px;" src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&width=842&height=258&colorscheme=light&show_faces=true&header=false&stream=false&show_border=true&appId=1411139805828592" width="240" height="150" frameborder="0" scrolling="no"></iframe></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
</div>
|
inc/backend/boards/how-to-use.php
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
<div class="aptf-single-board-wrapper" id="aptf-how_to_use-board" style="display:none">
|
2 |
<h3><?php _e('How to use', 'accesspress-twitter-feed'); ?></h3>
|
3 |
-
<p
|
4 |
-
<h4
|
5 |
-
<p
|
6 |
-
[ap-twitter-feed template="template-1/template-2/template-3"]
|
7 |
|
8 |
-
<h4
|
9 |
-
<p
|
10 |
-
[ap-twitter-feed-slider] <br/><br/> <strong>Shortcode</strong> or <strong>WP TFeed Widget</strong> in any registered widget area from Appearance Widget Section.You can use template parameter in this shortcode too
|
11 |
-
<p
|
12 |
-
<p
|
13 |
-
[ap-twitter-feed-slider controls="true" slide_duration="2000" auto_slide="true"]
|
14 |
</p>
|
15 |
|
16 |
-
<p
|
17 |
</div>
|
1 |
<div class="aptf-single-board-wrapper" id="aptf-how_to_use-board" style="display:none">
|
2 |
<h3><?php _e('How to use', 'accesspress-twitter-feed'); ?></h3>
|
3 |
+
<p><?php _e('There are two methods to display your Twitter Feeds in your site using WP TFeed.', 'accesspress-twitter-feed'); ?></p>
|
4 |
+
<h4><?php _e('Normal Feeds', 'accesspress-twitter-feed'); ?></h4>
|
5 |
+
<p><?php _e('For displaying Twitter Feeds in normal manner, you can use <br/><br/>[ap-twitter-feed]<br/><br/> shortcode or WP TFeed Widget in any registered widget area from Appearance Widget Section.You can also pass template parameter in the shortcode such as <br/>
|
6 |
+
[ap-twitter-feed template="template-1/template-2/template-3"]', 'accesspress-twitter-feed'); ?></p>
|
7 |
|
8 |
+
<h4><?php _e('Feeds In Slider', 'accesspress-twitter-feed'); ?></h4>
|
9 |
+
<p><?php _e('To display the twitter feeds, you can either use <br/><br/>
|
10 |
+
[ap-twitter-feed-slider] <br/><br/> <strong>Shortcode</strong> or <strong>WP TFeed Widget</strong> in any registered widget area from Appearance Widget Section.You can use template parameter in this shortcode too.', 'accesspress-twitter-feed'); ?></p>
|
11 |
+
<p><?php _e('Extra parameters that you can pass in slider shortcode are auto_slide="true/false" slide_duration="any duration in milliseconds:e.g: 1000" and controls="true/false"', 'accesspress-twitter-feed'); ?></p>
|
12 |
+
<p><?php _e('
|
13 |
+
[ap-twitter-feed-slider controls="true" slide_duration="2000" auto_slide="true"]', 'accesspress-twitter-feed'); ?>
|
14 |
</p>
|
15 |
|
16 |
+
<p><?php _e('For detailed documentation please visit', 'accesspress-twitter-feed'); ?> <a href="https://accesspressthemes.com/documentation/accesspress-twitter-feed/" target="_blank">here</a></p>
|
17 |
</div>
|
inc/backend/boards/main-settings.php
CHANGED
@@ -106,6 +106,18 @@
|
|
106 |
<div class="aptf-option-note"><?php _e('Check if you want to display twitter actions', 'accesspress-twitter-feed'); ?></div>
|
107 |
</div>
|
108 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
<div class="aptf-option-wrapper">
|
110 |
<label><?php _e('Fallback Unavailable Message', 'accesspress-twitter-feed'); ?></label>
|
111 |
<div class="aptf-option-field">
|
@@ -120,6 +132,26 @@
|
|
120 |
<div class="aptf-option-note"><?php _e('Check if you want to display twitter follow button at the end of the feeds', 'accesspress-twitter-feed'); ?></div>
|
121 |
</div>
|
122 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
<div class="aptf-option-wrapper">
|
124 |
<label><?php _e('Disable Cache', 'accesspress-twitter-feed'); ?></label>
|
125 |
<div class="aptf-option-field">
|
106 |
<div class="aptf-option-note"><?php _e('Check if you want to display twitter actions', 'accesspress-twitter-feed'); ?></div>
|
107 |
</div>
|
108 |
</div>
|
109 |
+
<div class="aptf-option-wrapper">
|
110 |
+
<label><?php _e('Exclude Retweets & Replies)', 'accesspress-twitter-feed'); ?></label>
|
111 |
+
<div class="aptf-option-field">
|
112 |
+
<input type="checkbox" name="exclude_rts_replies" value="1"
|
113 |
+
<?php
|
114 |
+
if ( isset($aptf_settings['exclude_rts_replies']) ) {
|
115 |
+
checked($aptf_settings['exclude_rts_replies'], true);
|
116 |
+
}
|
117 |
+
?>/>
|
118 |
+
<div class="aptf-option-note"><?php _e('Check if you want to exclude replies and retweets from the tweets.', 'accesspress-twitter-feed'); ?></div>
|
119 |
+
</div>
|
120 |
+
</div>
|
121 |
<div class="aptf-option-wrapper">
|
122 |
<label><?php _e('Fallback Unavailable Message', 'accesspress-twitter-feed'); ?></label>
|
123 |
<div class="aptf-option-field">
|
132 |
<div class="aptf-option-note"><?php _e('Check if you want to display twitter follow button at the end of the feeds', 'accesspress-twitter-feed'); ?></div>
|
133 |
</div>
|
134 |
</div>
|
135 |
+
<div class="aptf-option-wrapper">
|
136 |
+
<label><?php _e('Disable Image on Feed', 'accesspress-twitter-feed'); ?></label>
|
137 |
+
<div class="aptf-option-field">
|
138 |
+
<input type="checkbox" class="aptf-light-switch" name="disable_image" value="1"
|
139 |
+
<?php
|
140 |
+
if ( isset($aptf_settings['disable_image']) ) {
|
141 |
+
checked($aptf_settings['disable_image'], true);
|
142 |
+
}
|
143 |
+
?>
|
144 |
+
/>
|
145 |
+
<div class="aptf-option-note"><?php _e('Check if you want to disable images on your feeds', 'accesspress-twitter-feed'); ?></div>
|
146 |
+
</div>
|
147 |
+
</div>
|
148 |
+
<div class="aptf-option-wrapper aptf-light-bulb">
|
149 |
+
<label><?php _e('Image Width', 'accesspress-twitter-feed'); ?></label>
|
150 |
+
<div class="aptf-option-field">
|
151 |
+
<input type="text" name="image_width" value="<?php echo isset($aptf_settings[ 'image_width' ]) ? esc_attr($aptf_settings[ 'image_width' ]) : ''; ?>" placeholder="400px or 100%"/>
|
152 |
+
<div class="aptf-option-note"><?php _e('Please enter the width of the image that will show up in the twitter feed in px or % . Default is 100%', 'accesspress-twitter-feed'); ?></div>
|
153 |
+
</div>
|
154 |
+
</div>
|
155 |
<div class="aptf-option-wrapper">
|
156 |
<label><?php _e('Disable Cache', 'accesspress-twitter-feed'); ?></label>
|
157 |
<div class="aptf-option-field">
|
inc/backend/boards/more-wp.php
CHANGED
@@ -1,19 +1,4 @@
|
|
1 |
<div class="aptf-single-board-wrapper" id="aptf-morewp-board" style="display:none">
|
2 |
-
|
3 |
-
<div>
|
4 |
-
<p><strong>WP TFeed</strong> works best with every WordPress theme. It's even more remarkable when used with popular themes like VMagazine and AccessPress Parallax.</p>
|
5 |
-
|
6 |
-
<p>AND IF THIS PLUGIN HAS IMPRESSED YOU, THEN YOU WOULD ENJOY OUR OTHER PROJECTS TOO. DO CHECK THESE OUT :</p>
|
7 |
-
|
8 |
-
<p><a href="https://wpallclub.com/">WPAll Club</a> - A complete WordPress resources club. WordPress tutorials, blogs, curated free and premium themes and plugins, WordPress deals, offers, hosting info and more.</p>
|
9 |
-
|
10 |
-
<p> <a href="https://themeforest.net/user/accesskeys/portfolio">Premium WordPress Themes</a> - <strong>6 premium WordPress</strong> themes well suited for all sort of websites. Professional, well coded and highly configurable themes for you. </p>
|
11 |
-
|
12 |
-
<p> <a href="https://codecanyon.net/user/accesskeys/portfolio?Ref=AccessKeys">Premium WordPress Plugins</a> - <strong>45+ premium WordPress plugins</strong> of many different types. High user ratings, great quality and best sellers in CodeCanyon marketplace. </p>
|
13 |
-
|
14 |
-
<p> <a href="https://accesspressthemes.com/">AccessPress Themes</a> - <strong>AccessPress Themes</strong> has 50+ beautiful and elegant, fully responsive, multipurpose themes to meet your need for free and commercial basis.</p>
|
15 |
-
|
16 |
-
<p> <a href="https://8degreethemes.com/">8Degree Themes</a> - <strong>8Degree Themes</strong> offers 15+ free WordPress themes and 16+ premium WordPress themes carefully crafted with creativity.</p>
|
17 |
-
</div>
|
18 |
|
19 |
</div>
|
1 |
<div class="aptf-single-board-wrapper" id="aptf-morewp-board" style="display:none">
|
2 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
</div>
|
inc/backend/save-settings.php
CHANGED
@@ -36,7 +36,10 @@ $aptf_settings = array('consumer_key' => $aptfl_settings_sanitized['consumer_key
|
|
36 |
'display_twitter_actions'=>isset($aptfl_settings_sanitized['display_twitter_actions'])?1:0,
|
37 |
'fallback_message'=>$aptfl_settings_sanitized['fallback_message'],
|
38 |
'display_follow_button'=>isset($aptfl_settings_sanitized['display_follow_button'])?1:0,
|
39 |
-
'
|
|
|
|
|
|
|
40 |
);
|
41 |
|
42 |
$aptf_settings = apply_filters('aptf_settings',$aptf_settings);
|
36 |
'display_twitter_actions'=>isset($aptfl_settings_sanitized['display_twitter_actions'])?1:0,
|
37 |
'fallback_message'=>$aptfl_settings_sanitized['fallback_message'],
|
38 |
'display_follow_button'=>isset($aptfl_settings_sanitized['display_follow_button'])?1:0,
|
39 |
+
'disable_image' => isset($aptfl_settings_sanitized['disable_image'])?1:0,
|
40 |
+
'image_width' => isset($aptfl_settings_sanitized['image_width']) ? $aptfl_settings_sanitized['image_width'] : '',
|
41 |
+
'disable_cache'=>isset($aptfl_settings_sanitized['disable_cache'])?1:0,
|
42 |
+
'exclude_rts_replies' => isset($aptfl_settings_sanitized['exclude_rts_replies']) ? 1 : 0
|
43 |
);
|
44 |
|
45 |
$aptf_settings = apply_filters('aptf_settings',$aptf_settings);
|
inc/backend/settings.php
CHANGED
@@ -11,7 +11,6 @@ $aptf_settings = $this->aptf_settings;
|
|
11 |
<li><a href="javascript:void(0)" id="aptf-how_to_use-trigger" class="aptf-tabs-trigger"><?php _e('How To Use', APTF_VERSION); ?></a></li>
|
12 |
<li><a href="javascript:void(0)" id="aptf-about-trigger" class="aptf-tabs-trigger"><?php _e('About', APTF_VERSION); ?></a></li>
|
13 |
<li><a href="https://wordpress.org/support/view/plugin-reviews/accesspress-twitter-feed" target="_blank"><?php _e('Give us a rating', APTF_VERSION); ?></a></li>
|
14 |
-
<li><a href="javascript:void(0)" id="aptf-morewp-trigger" class="aptf-tabs-trigger"><?php _e('More WordPress Resources', APTF_VERSION); ?></a></li>
|
15 |
<li><a href="https://accesspressthemes.com/documentation/accesspress-twitter-feed/" target="_blank" class="aptf-tabs-trigger"><?php _e('Documentation', APTF_VERSION); ?></a></li>
|
16 |
<li><a href="https://demo.accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/" target="_blank" class="aptf-tabs-trigger"><?php _e('Check Premium Versions', APTF_VERSION); ?></a></li>
|
17 |
</ul>
|
@@ -72,17 +71,17 @@ $aptf_settings = $this->aptf_settings;
|
|
72 |
</div>
|
73 |
</div>
|
74 |
<div class="aptf-promo">
|
75 |
-
<a href="https://
|
76 |
<div class="aptf-promo-actions">
|
77 |
<a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/" title="Demo" target="_blank"><input type="button" class="aptf-demo-btn" value="Demo"/></a>
|
78 |
-
<a href="https://
|
79 |
<a href='https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/' title="Plugin Information" target="_blank"><input type="button" class="aptf-demo-btn" value="Plugin Information"/></a>
|
80 |
</div>
|
81 |
|
82 |
-
<a href="https://
|
83 |
<div class="aptf-promo-actions">
|
84 |
<a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/" title="Demo" target="_blank"><input type="button" class="aptf-demo-btn" value="Demo"/></a>
|
85 |
-
<a href="https://
|
86 |
<a href='https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/' title="Plugin Information" target="_blank"><input type="button" class="aptf-demo-btn" value="Plugin Information"/></a>
|
87 |
</div>
|
88 |
</div>
|
11 |
<li><a href="javascript:void(0)" id="aptf-how_to_use-trigger" class="aptf-tabs-trigger"><?php _e('How To Use', APTF_VERSION); ?></a></li>
|
12 |
<li><a href="javascript:void(0)" id="aptf-about-trigger" class="aptf-tabs-trigger"><?php _e('About', APTF_VERSION); ?></a></li>
|
13 |
<li><a href="https://wordpress.org/support/view/plugin-reviews/accesspress-twitter-feed" target="_blank"><?php _e('Give us a rating', APTF_VERSION); ?></a></li>
|
|
|
14 |
<li><a href="https://accesspressthemes.com/documentation/accesspress-twitter-feed/" target="_blank" class="aptf-tabs-trigger"><?php _e('Documentation', APTF_VERSION); ?></a></li>
|
15 |
<li><a href="https://demo.accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/" target="_blank" class="aptf-tabs-trigger"><?php _e('Check Premium Versions', APTF_VERSION); ?></a></li>
|
16 |
</ul>
|
71 |
</div>
|
72 |
</div>
|
73 |
<div class="aptf-promo">
|
74 |
+
<a href="https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/" target="_blank"><img src="<?php echo APTF_IMAGE_DIR . '/upgrade.png' ?>"/></a>
|
75 |
<div class="aptf-promo-actions">
|
76 |
<a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/" title="Demo" target="_blank"><input type="button" class="aptf-demo-btn" value="Demo"/></a>
|
77 |
+
<a href="https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/" title="Upgrade" target="_blank"><input type="button" class="aptf-upgrade-btn" value="Upgrade"/></a>
|
78 |
<a href='https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/' title="Plugin Information" target="_blank"><input type="button" class="aptf-demo-btn" value="Plugin Information"/></a>
|
79 |
</div>
|
80 |
|
81 |
+
<a href="https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/" target="_blank"><img src="<?php echo APTF_IMAGE_DIR . '/upgrade-features.png' ?>"/></a>
|
82 |
<div class="aptf-promo-actions">
|
83 |
<a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/" title="Demo" target="_blank"><input type="button" class="aptf-demo-btn" value="Demo"/></a>
|
84 |
+
<a href="https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/" title="Upgrade" target="_blank"><input type="button" class="aptf-upgrade-btn" value="Upgrade"/></a>
|
85 |
<a href='https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/' title="Plugin Information" target="_blank"><input type="button" class="aptf-demo-btn" value="Plugin Information"/></a>
|
86 |
</div>
|
87 |
</div>
|
inc/frontend/templates/default/template-1.php
CHANGED
@@ -12,10 +12,17 @@
|
|
12 |
|
13 |
<div class="aptf-tweet-box">
|
14 |
<?php
|
15 |
-
if ($tweet->
|
16 |
-
|
17 |
-
|
|
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
// i. User_mentions must link to the mentioned user's profile.
|
20 |
if (is_array($tweet->entities->user_mentions)) {
|
21 |
foreach ($tweet->entities->user_mentions as $key => $user_mention) {
|
@@ -32,8 +39,11 @@
|
|
32 |
}
|
33 |
|
34 |
_e($the_tweet) . ' ';
|
35 |
-
|
36 |
</div><!--tweet content-->
|
|
|
|
|
|
|
37 |
<?php if (isset($aptf_settings['display_twitter_actions']) && $aptf_settings['display_twitter_actions'] == 1) { ?>
|
38 |
<!--Tweet Action -->
|
39 |
<?php include(plugin_dir_path(__FILE__) . '../tweet-actions.php'); ?>
|
12 |
|
13 |
<div class="aptf-tweet-box">
|
14 |
<?php
|
15 |
+
if ($tweet->full_text) {
|
16 |
+
//$the_tweet = ' '.$tweet->full_text . ' '; //adding an extra space to convert hast tag into links
|
17 |
+
|
18 |
+
if (!empty($tweet->retweeted_status)) {
|
19 |
|
20 |
+
$the_tweet = '@' . $tweet->retweeted_status->user->screen_name . ': ' . $tweet->retweeted_status->full_text;
|
21 |
+
}
|
22 |
+
else{
|
23 |
+
$the_tweet = $tweet->full_text;
|
24 |
+
}
|
25 |
+
$the_tweet = $this->makeClickableLinks($the_tweet);
|
26 |
// i. User_mentions must link to the mentioned user's profile.
|
27 |
if (is_array($tweet->entities->user_mentions)) {
|
28 |
foreach ($tweet->entities->user_mentions as $key => $user_mention) {
|
39 |
}
|
40 |
|
41 |
_e($the_tweet) . ' ';
|
42 |
+
?>
|
43 |
</div><!--tweet content-->
|
44 |
+
<!--Tweet Image -->
|
45 |
+
<?php include(plugin_dir_path(__FILE__) . '../tweet-media.php'); ?>
|
46 |
+
<!--Tweet Image -->
|
47 |
<?php if (isset($aptf_settings['display_twitter_actions']) && $aptf_settings['display_twitter_actions'] == 1) { ?>
|
48 |
<!--Tweet Action -->
|
49 |
<?php include(plugin_dir_path(__FILE__) . '../tweet-actions.php'); ?>
|
inc/frontend/templates/default/template-2.php
CHANGED
@@ -12,11 +12,17 @@
|
|
12 |
<?php if ($aptf_settings['display_username'] == 1) { ?><a href="http://twitter.com/<?php echo $username; ?>" class="aptf-tweet-name" target="_blank"><?php esc_attr_e($display_name); ?></a> <span class="aptf-tweet-username"><?php esc_attr_e($username); ?></span> <?php } ?>
|
13 |
<div class="clear"></div>
|
14 |
<?php
|
15 |
-
if ($tweet->
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
$the_tweet = $this->makeClickableLinks($the_tweet);
|
18 |
-
|
19 |
-
|
20 |
// i. User_mentions must link to the mentioned user's profile.
|
21 |
if (is_array($tweet->entities->user_mentions)) {
|
22 |
foreach ($tweet->entities->user_mentions as $key => $user_mention) {
|
@@ -35,6 +41,9 @@
|
|
35 |
_e($the_tweet) . ' ';
|
36 |
?>
|
37 |
</div><!--tweet content-->
|
|
|
|
|
|
|
38 |
<div class="aptf-tweet-date">
|
39 |
<p class="aptf-timestamp">
|
40 |
<a href="https://twitter.com/<?php echo $username; ?>/status/<?php echo $tweet->id_str; ?>" target="_blank"> -
|
12 |
<?php if ($aptf_settings['display_username'] == 1) { ?><a href="http://twitter.com/<?php echo $username; ?>" class="aptf-tweet-name" target="_blank"><?php esc_attr_e($display_name); ?></a> <span class="aptf-tweet-username"><?php esc_attr_e($username); ?></span> <?php } ?>
|
13 |
<div class="clear"></div>
|
14 |
<?php
|
15 |
+
if ($tweet->full_text) {
|
16 |
+
//$the_tweet = ' '.$tweet->full_text . ' '; //adding an extra space to convert hast tag into links
|
17 |
+
|
18 |
+
if (!empty($tweet->retweeted_status)) {
|
19 |
+
|
20 |
+
$the_tweet = '@' . $tweet->retweeted_status->user->screen_name . ': ' . $tweet->retweeted_status->full_text;
|
21 |
+
}
|
22 |
+
else{
|
23 |
+
$the_tweet = $tweet->full_text;
|
24 |
+
}
|
25 |
$the_tweet = $this->makeClickableLinks($the_tweet);
|
|
|
|
|
26 |
// i. User_mentions must link to the mentioned user's profile.
|
27 |
if (is_array($tweet->entities->user_mentions)) {
|
28 |
foreach ($tweet->entities->user_mentions as $key => $user_mention) {
|
41 |
_e($the_tweet) . ' ';
|
42 |
?>
|
43 |
</div><!--tweet content-->
|
44 |
+
<!--Tweet Image -->
|
45 |
+
<?php include(plugin_dir_path(__FILE__) . '../tweet-media.php'); ?>
|
46 |
+
<!--Tweet Image -->
|
47 |
<div class="aptf-tweet-date">
|
48 |
<p class="aptf-timestamp">
|
49 |
<a href="https://twitter.com/<?php echo $username; ?>/status/<?php echo $tweet->id_str; ?>" target="_blank"> -
|
inc/frontend/templates/default/template-3.php
CHANGED
@@ -18,8 +18,16 @@
|
|
18 |
|
19 |
<div class="clear"></div>
|
20 |
<?php
|
21 |
-
if ($tweet->
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
$the_tweet = $this->makeClickableLinks($the_tweet);
|
24 |
// i. User_mentions must link to the mentioned user's profile.
|
25 |
if (is_array($tweet->entities->user_mentions)) {
|
@@ -48,7 +56,9 @@
|
|
48 |
<?php
|
49 |
}
|
50 |
?>
|
51 |
-
|
|
|
|
|
52 |
<?php if (isset($aptf_settings['display_twitter_actions']) && $aptf_settings['display_twitter_actions'] == 1) { ?>
|
53 |
<!--Tweet Action -->
|
54 |
<?php include(plugin_dir_path(__FILE__) . '../tweet-actions.php'); ?>
|
18 |
|
19 |
<div class="clear"></div>
|
20 |
<?php
|
21 |
+
if ($tweet->full_text) {
|
22 |
+
//$the_tweet = ' '.$tweet->full_text . ' '; //adding an extra space to convert hast tag into links
|
23 |
+
|
24 |
+
if (!empty($tweet->retweeted_status)) {
|
25 |
+
|
26 |
+
$the_tweet = '@' . $tweet->retweeted_status->user->screen_name . ': ' . $tweet->retweeted_status->full_text;
|
27 |
+
}
|
28 |
+
else{
|
29 |
+
$the_tweet = $tweet->full_text;
|
30 |
+
}
|
31 |
$the_tweet = $this->makeClickableLinks($the_tweet);
|
32 |
// i. User_mentions must link to the mentioned user's profile.
|
33 |
if (is_array($tweet->entities->user_mentions)) {
|
56 |
<?php
|
57 |
}
|
58 |
?>
|
59 |
+
<!--Tweet Image -->
|
60 |
+
<?php include(plugin_dir_path(__FILE__) . '../tweet-media.php'); ?>
|
61 |
+
<!--Tweet Image -->
|
62 |
<?php if (isset($aptf_settings['display_twitter_actions']) && $aptf_settings['display_twitter_actions'] == 1) { ?>
|
63 |
<!--Tweet Action -->
|
64 |
<?php include(plugin_dir_path(__FILE__) . '../tweet-actions.php'); ?>
|
inc/frontend/templates/slider/template-1.php
CHANGED
@@ -18,9 +18,9 @@
|
|
18 |
|
19 |
<div class="clear"></div>
|
20 |
<?php
|
21 |
-
if ($tweet->
|
22 |
-
|
23 |
-
|
24 |
/*
|
25 |
Twitter Developer Display Requirements
|
26 |
https://dev.twitter.com/terms/display-requirements
|
@@ -31,7 +31,14 @@
|
|
31 |
iii. Links in Tweet text must be displayed using the display_url
|
32 |
field in the URL entities API response, and link to the original t.co url field.
|
33 |
*/
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
// i. User_mentions must link to the mentioned user's profile.
|
36 |
if (is_array($tweet->entities->user_mentions)) {
|
37 |
foreach ($tweet->entities->user_mentions as $key => $user_mention) {
|
@@ -59,7 +66,9 @@
|
|
59 |
<?php
|
60 |
}
|
61 |
?>
|
62 |
-
|
|
|
|
|
63 |
<!--Tweet Action -->
|
64 |
<?php include(plugin_dir_path(__FILE__) . '../tweet-actions.php'); ?>
|
65 |
<!--Tweet Action -->
|
18 |
|
19 |
<div class="clear"></div>
|
20 |
<?php
|
21 |
+
if ($tweet->full_text) {
|
22 |
+
//$the_tweet = ' '.$tweet->full_text . ' '; //adding an extra space to convert hast tag into links
|
23 |
+
//$the_tweet = $this->makeClickableLinks($the_tweet);
|
24 |
/*
|
25 |
Twitter Developer Display Requirements
|
26 |
https://dev.twitter.com/terms/display-requirements
|
31 |
iii. Links in Tweet text must be displayed using the display_url
|
32 |
field in the URL entities API response, and link to the original t.co url field.
|
33 |
*/
|
34 |
+
if (!empty($tweet->retweeted_status)) {
|
35 |
+
|
36 |
+
$the_tweet = '@' . $tweet->retweeted_status->user->screen_name . ': ' . $tweet->retweeted_status->full_text;
|
37 |
+
}
|
38 |
+
else{
|
39 |
+
$the_tweet = $tweet->full_text;
|
40 |
+
}
|
41 |
+
$the_tweet = $this->makeClickableLinks($the_tweet);
|
42 |
// i. User_mentions must link to the mentioned user's profile.
|
43 |
if (is_array($tweet->entities->user_mentions)) {
|
44 |
foreach ($tweet->entities->user_mentions as $key => $user_mention) {
|
66 |
<?php
|
67 |
}
|
68 |
?>
|
69 |
+
<!--Tweet Image -->
|
70 |
+
<?php include(plugin_dir_path(__FILE__) . '../tweet-media.php'); ?>
|
71 |
+
<!--Tweet Image -->
|
72 |
<!--Tweet Action -->
|
73 |
<?php include(plugin_dir_path(__FILE__) . '../tweet-actions.php'); ?>
|
74 |
<!--Tweet Action -->
|
inc/frontend/templates/slider/template-2.php
CHANGED
@@ -18,11 +18,17 @@
|
|
18 |
|
19 |
<div class="clear"></div>
|
20 |
<?php
|
21 |
-
if ($tweet->
|
22 |
-
|
23 |
-
$the_tweet = $this->makeClickableLinks($the_tweet);
|
24 |
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
// i. User_mentions must link to the mentioned user's profile.
|
27 |
if (is_array($tweet->entities->user_mentions)) {
|
28 |
foreach ($tweet->entities->user_mentions as $key => $user_mention) {
|
@@ -37,9 +43,6 @@
|
|
37 |
$the_tweet = str_replace(' #' . $hashtag->text . ' ', ' <a href="https://twitter.com/search?q=%23' . $hashtag->text . '&src=hash" target="_blank">#' . $hashtag->text . '</a> ', $the_tweet);
|
38 |
}
|
39 |
}
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
_e($the_tweet) . ' ';
|
44 |
?>
|
45 |
</div><!--tweet content-->
|
@@ -51,7 +54,9 @@
|
|
51 |
<?php
|
52 |
}
|
53 |
?>
|
54 |
-
|
|
|
|
|
55 |
<!--Tweet Action -->
|
56 |
<?php include(plugin_dir_path(__FILE__) . '../tweet-actions.php'); ?>
|
57 |
<!--Tweet Action -->
|
18 |
|
19 |
<div class="clear"></div>
|
20 |
<?php
|
21 |
+
if ($tweet->full_text) {
|
22 |
+
//$the_tweet = ' '.$tweet->full_text . ' '; //adding an extra space to convert hast tag into links
|
|
|
23 |
|
24 |
+
if (!empty($tweet->retweeted_status)) {
|
25 |
+
|
26 |
+
$the_tweet = '@' . $tweet->retweeted_status->user->screen_name . ': ' . $tweet->retweeted_status->full_text;
|
27 |
+
}
|
28 |
+
else{
|
29 |
+
$the_tweet = $tweet->full_text;
|
30 |
+
}
|
31 |
+
$the_tweet = $this->makeClickableLinks($the_tweet);
|
32 |
// i. User_mentions must link to the mentioned user's profile.
|
33 |
if (is_array($tweet->entities->user_mentions)) {
|
34 |
foreach ($tweet->entities->user_mentions as $key => $user_mention) {
|
43 |
$the_tweet = str_replace(' #' . $hashtag->text . ' ', ' <a href="https://twitter.com/search?q=%23' . $hashtag->text . '&src=hash" target="_blank">#' . $hashtag->text . '</a> ', $the_tweet);
|
44 |
}
|
45 |
}
|
|
|
|
|
|
|
46 |
_e($the_tweet) . ' ';
|
47 |
?>
|
48 |
</div><!--tweet content-->
|
54 |
<?php
|
55 |
}
|
56 |
?>
|
57 |
+
<!--Tweet Image -->
|
58 |
+
<?php include(plugin_dir_path(__FILE__) . '../tweet-media.php'); ?>
|
59 |
+
<!--Tweet Image -->
|
60 |
<!--Tweet Action -->
|
61 |
<?php include(plugin_dir_path(__FILE__) . '../tweet-actions.php'); ?>
|
62 |
<!--Tweet Action -->
|
inc/frontend/templates/slider/template-3.php
CHANGED
@@ -12,11 +12,17 @@
|
|
12 |
|
13 |
<div class="aptf-tweet-box">
|
14 |
<?php
|
15 |
-
if ($tweet->
|
16 |
-
|
17 |
-
$the_tweet = $this->makeClickableLinks($the_tweet);
|
18 |
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
// i. User_mentions must link to the mentioned user's profile.
|
21 |
if (is_array($tweet->entities->user_mentions)) {
|
22 |
foreach ($tweet->entities->user_mentions as $key => $user_mention) {
|
@@ -31,12 +37,12 @@
|
|
31 |
$the_tweet = str_replace(' #' . $hashtag->text . ' ', ' <a href="https://twitter.com/search?q=%23' . $hashtag->text . '&src=hash" target="_blank">#' . $hashtag->text . '</a> ', $the_tweet);
|
32 |
}
|
33 |
}
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
_e($the_tweet) . ' ';
|
38 |
?>
|
39 |
</div><!--tweet content-->
|
|
|
|
|
|
|
40 |
<?php if (isset($aptf_settings['display_twitter_actions']) && $aptf_settings['display_twitter_actions'] == 1) { ?>
|
41 |
<!--Tweet Action -->
|
42 |
<?php include(plugin_dir_path(__FILE__) . '../tweet-actions.php'); ?>
|
12 |
|
13 |
<div class="aptf-tweet-box">
|
14 |
<?php
|
15 |
+
if ($tweet->full_text) {
|
16 |
+
//$the_tweet = ' '.$tweet->full_text . ' '; //adding an extra space to convert hast tag into links
|
|
|
17 |
|
18 |
+
if (!empty($tweet->retweeted_status)) {
|
19 |
+
|
20 |
+
$the_tweet = '@' . $tweet->retweeted_status->user->screen_name . ': ' . $tweet->retweeted_status->full_text;
|
21 |
+
}
|
22 |
+
else{
|
23 |
+
$the_tweet = $tweet->full_text;
|
24 |
+
}
|
25 |
+
$the_tweet = $this->makeClickableLinks($the_tweet);
|
26 |
// i. User_mentions must link to the mentioned user's profile.
|
27 |
if (is_array($tweet->entities->user_mentions)) {
|
28 |
foreach ($tweet->entities->user_mentions as $key => $user_mention) {
|
37 |
$the_tweet = str_replace(' #' . $hashtag->text . ' ', ' <a href="https://twitter.com/search?q=%23' . $hashtag->text . '&src=hash" target="_blank">#' . $hashtag->text . '</a> ', $the_tweet);
|
38 |
}
|
39 |
}
|
|
|
|
|
|
|
40 |
_e($the_tweet) . ' ';
|
41 |
?>
|
42 |
</div><!--tweet content-->
|
43 |
+
<!--Tweet Image -->
|
44 |
+
<?php include(plugin_dir_path(__FILE__) . '../tweet-media.php'); ?>
|
45 |
+
<!--Tweet Image -->
|
46 |
<?php if (isset($aptf_settings['display_twitter_actions']) && $aptf_settings['display_twitter_actions'] == 1) { ?>
|
47 |
<!--Tweet Action -->
|
48 |
<?php include(plugin_dir_path(__FILE__) . '../tweet-actions.php'); ?>
|
inc/frontend/templates/tweet-media.php
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$disable_media = (isset( $aptf_settings['disable_image'] )) ? $aptf_settings['disable_image'] : 0;
|
3 |
+
$disable_media = ($disable_media == 1) ? true : false;
|
4 |
+
?>
|
5 |
+
<?php
|
6 |
+
if ( !$disable_media ) {?>
|
7 |
+
<?php
|
8 |
+
if ( isset( $tweet->extended_entities ) ) {
|
9 |
+
?>
|
10 |
+
<div class="aptf-tweet-media">
|
11 |
+
<?php
|
12 |
+
if ( count( $tweet->extended_entities->media ) > 1 ) {
|
13 |
+
$image_size = 'thumb';
|
14 |
+
} else {
|
15 |
+
$image_size = 'large';
|
16 |
+
}
|
17 |
+
|
18 |
+
//$this->print_array($tweet['extended_entities']);
|
19 |
+
foreach ( $tweet->extended_entities->media as $media ) {
|
20 |
+
?>
|
21 |
+
<div class="aptf-each-media aptf-media-<?php echo $image_size; ?>" <?php
|
22 |
+
if ( isset( $aptf_settings['image_width'] ) && $aptf_settings['image_width']!='') {
|
23 |
+
?>
|
24 |
+
style="width:<?php echo esc_attr($aptf_settings['image_width']);?>"
|
25 |
+
<?php
|
26 |
+
}
|
27 |
+
?>>
|
28 |
+
<a href="<?php echo str_replace('http://','https://',$media->media_url); ?>" data-lightbox="<?php echo $username; ?>"><img src="<?php echo str_replace('http://','https://',$media->media_url) . ':' . $image_size; ?>" style="max-width: 100%;"/></a>
|
29 |
+
</div>
|
30 |
+
<?php
|
31 |
+
// $this->print_array($media);
|
32 |
+
}
|
33 |
+
?>
|
34 |
+
</div>
|
35 |
+
<?php
|
36 |
+
}else if(isset($tweet->retweeted_status->extended_entities)){
|
37 |
+
?>
|
38 |
+
<div class="aptf-tweet-media">
|
39 |
+
<?php
|
40 |
+
if ( isset($tweet->retweeted_status->extended_entities->media) && count( $tweet->retweeted_status->extended_entities->media ) > 1 ) {
|
41 |
+
$image_size = 'thumb';
|
42 |
+
} else {
|
43 |
+
$image_size = 'large';
|
44 |
+
}
|
45 |
+
|
46 |
+
//$this->print_array($tweet['extended_entities']);
|
47 |
+
foreach ( $tweet->retweeted_status->extended_entities->media as $media ) {
|
48 |
+
?>
|
49 |
+
<div class="aptf-each-media aptf-media-<?php echo $image_size; ?>" <?php
|
50 |
+
if ( isset( $aptf_settings['image_width'] ) && $aptf_settings['image_width']!='') {
|
51 |
+
?>
|
52 |
+
style="width:<?php echo esc_attr($aptf_settings['image_width']);?>"
|
53 |
+
<?php
|
54 |
+
}
|
55 |
+
?>>
|
56 |
+
<a href="<?php echo str_replace('http://','https://',$media->media_url); ?>" data-lightbox="<?php echo $username; ?>"><img src="<?php echo str_replace('http://','https://',$media->media_url) . ':' . $image_size; ?>" style="max-width: 100%;"/></a>
|
57 |
+
</div>
|
58 |
+
<?php
|
59 |
+
//$this->print_array($media);
|
60 |
+
}
|
61 |
+
?>
|
62 |
+
</div>
|
63 |
+
<?php
|
64 |
+
}
|
65 |
+
}
|
66 |
+
?>
|
js/frontend.js
CHANGED
@@ -9,9 +9,9 @@ function aptf_popitup(url) {
|
|
9 |
//All the frontend js for the plugin
|
10 |
|
11 |
$('.aptf-tweets-slider-wrapper').each(function(){
|
12 |
-
var controls = $(this).
|
13 |
-
var auto = $(this).
|
14 |
-
var slide_duration = $(this).
|
15 |
$(this).bxSlider({
|
16 |
auto:auto,
|
17 |
controls:controls,
|
9 |
//All the frontend js for the plugin
|
10 |
|
11 |
$('.aptf-tweets-slider-wrapper').each(function(){
|
12 |
+
var controls = $(this).data('slideControls');
|
13 |
+
var auto = $(this).data('autoSlide');
|
14 |
+
var slide_duration = $(this).data('slideDuration');
|
15 |
$(this).bxSlider({
|
16 |
auto:auto,
|
17 |
controls:controls,
|
oauth/OAuth.php
CHANGED
@@ -9,6 +9,7 @@ if (!class_exists('OAuthException')) {
|
|
9 |
}
|
10 |
}
|
11 |
|
|
|
12 |
class OAuthConsumer {
|
13 |
public $key;
|
14 |
public $secret;
|
@@ -23,7 +24,9 @@ class OAuthConsumer {
|
|
23 |
return "OAuthConsumer[key=$this->key,secret=$this->secret]";
|
24 |
}
|
25 |
}
|
|
|
26 |
|
|
|
27 |
class OAuthToken {
|
28 |
// access tokens and request tokens
|
29 |
public $key;
|
@@ -53,11 +56,13 @@ class OAuthToken {
|
|
53 |
return $this->to_string();
|
54 |
}
|
55 |
}
|
|
|
56 |
|
57 |
/**
|
58 |
* A class for implementing a Signature Method
|
59 |
* See section 9 ("Signing Requests") in the spec
|
60 |
*/
|
|
|
61 |
abstract class OAuthSignatureMethod {
|
62 |
/**
|
63 |
* Needs to return the name of the Signature Method (ie HMAC-SHA1)
|
@@ -90,6 +95,7 @@ abstract class OAuthSignatureMethod {
|
|
90 |
return $built == $signature;
|
91 |
}
|
92 |
}
|
|
|
93 |
|
94 |
/**
|
95 |
* The HMAC-SHA1 signature method uses the HMAC-SHA1 signature algorithm as defined in [RFC2104]
|
@@ -98,6 +104,7 @@ abstract class OAuthSignatureMethod {
|
|
98 |
* character (ASCII code 38) even if empty.
|
99 |
* - Chapter 9.2 ("HMAC-SHA1")
|
100 |
*/
|
|
|
101 |
class OAuthSignatureMethod_HMAC_SHA1 extends OAuthSignatureMethod {
|
102 |
function get_name() {
|
103 |
return "HMAC-SHA1";
|
@@ -118,12 +125,14 @@ class OAuthSignatureMethod_HMAC_SHA1 extends OAuthSignatureMethod {
|
|
118 |
return base64_encode(hash_hmac('sha1', $base_string, $key, true));
|
119 |
}
|
120 |
}
|
|
|
121 |
|
122 |
/**
|
123 |
* The PLAINTEXT method does not provide any security protection and SHOULD only be used
|
124 |
* over a secure channel such as HTTPS. It does not use the Signature Base String.
|
125 |
* - Chapter 9.4 ("PLAINTEXT")
|
126 |
*/
|
|
|
127 |
class OAuthSignatureMethod_PLAINTEXT extends OAuthSignatureMethod {
|
128 |
public function get_name() {
|
129 |
return "PLAINTEXT";
|
@@ -151,6 +160,7 @@ class OAuthSignatureMethod_PLAINTEXT extends OAuthSignatureMethod {
|
|
151 |
return $key;
|
152 |
}
|
153 |
}
|
|
|
154 |
|
155 |
/**
|
156 |
* The RSA-SHA1 signature method uses the RSASSA-PKCS1-v1_5 signature algorithm as defined in
|
@@ -160,6 +170,7 @@ class OAuthSignatureMethod_PLAINTEXT extends OAuthSignatureMethod {
|
|
160 |
* specification.
|
161 |
* - Chapter 9.3 ("RSA-SHA1")
|
162 |
*/
|
|
|
163 |
abstract class OAuthSignatureMethod_RSA_SHA1 extends OAuthSignatureMethod {
|
164 |
public function get_name() {
|
165 |
return "RSA-SHA1";
|
@@ -218,7 +229,9 @@ abstract class OAuthSignatureMethod_RSA_SHA1 extends OAuthSignatureMethod {
|
|
218 |
return $ok == 1;
|
219 |
}
|
220 |
}
|
|
|
221 |
|
|
|
222 |
class OAuthRequest {
|
223 |
private $parameters;
|
224 |
private $http_method;
|
@@ -479,7 +492,9 @@ class OAuthRequest {
|
|
479 |
return md5($mt . $rand); // md5s look nicer than numbers
|
480 |
}
|
481 |
}
|
|
|
482 |
|
|
|
483 |
class OAuthServer {
|
484 |
protected $timestamp_threshold = 300; // in seconds, five minutes
|
485 |
protected $version = '1.0'; // hi blaine
|
@@ -690,7 +705,9 @@ class OAuthServer {
|
|
690 |
}
|
691 |
|
692 |
}
|
|
|
693 |
|
|
|
694 |
class OAuthDataStore {
|
695 |
function lookup_consumer($consumer_key) {
|
696 |
// implement me
|
@@ -716,7 +733,9 @@ class OAuthDataStore {
|
|
716 |
}
|
717 |
|
718 |
}
|
|
|
719 |
|
|
|
720 |
class OAuthUtil {
|
721 |
public static function urlencode_rfc3986($input) {
|
722 |
if (is_array($input)) {
|
@@ -872,3 +891,4 @@ class OAuthUtil {
|
|
872 |
return implode('&', $pairs);
|
873 |
}
|
874 |
}
|
|
9 |
}
|
10 |
}
|
11 |
|
12 |
+
if(!class_exists('OAuthConsumer')){
|
13 |
class OAuthConsumer {
|
14 |
public $key;
|
15 |
public $secret;
|
24 |
return "OAuthConsumer[key=$this->key,secret=$this->secret]";
|
25 |
}
|
26 |
}
|
27 |
+
}
|
28 |
|
29 |
+
if(!class_exists('OAuthToken')){
|
30 |
class OAuthToken {
|
31 |
// access tokens and request tokens
|
32 |
public $key;
|
56 |
return $this->to_string();
|
57 |
}
|
58 |
}
|
59 |
+
}
|
60 |
|
61 |
/**
|
62 |
* A class for implementing a Signature Method
|
63 |
* See section 9 ("Signing Requests") in the spec
|
64 |
*/
|
65 |
+
if(!class_exists('OAuthSignatureMethod')){
|
66 |
abstract class OAuthSignatureMethod {
|
67 |
/**
|
68 |
* Needs to return the name of the Signature Method (ie HMAC-SHA1)
|
95 |
return $built == $signature;
|
96 |
}
|
97 |
}
|
98 |
+
}
|
99 |
|
100 |
/**
|
101 |
* The HMAC-SHA1 signature method uses the HMAC-SHA1 signature algorithm as defined in [RFC2104]
|
104 |
* character (ASCII code 38) even if empty.
|
105 |
* - Chapter 9.2 ("HMAC-SHA1")
|
106 |
*/
|
107 |
+
if(!class_exists('OAuthSignatureMethod_HMAC_SHA1')){
|
108 |
class OAuthSignatureMethod_HMAC_SHA1 extends OAuthSignatureMethod {
|
109 |
function get_name() {
|
110 |
return "HMAC-SHA1";
|
125 |
return base64_encode(hash_hmac('sha1', $base_string, $key, true));
|
126 |
}
|
127 |
}
|
128 |
+
}
|
129 |
|
130 |
/**
|
131 |
* The PLAINTEXT method does not provide any security protection and SHOULD only be used
|
132 |
* over a secure channel such as HTTPS. It does not use the Signature Base String.
|
133 |
* - Chapter 9.4 ("PLAINTEXT")
|
134 |
*/
|
135 |
+
if(!class_exists('OAuthSignatureMethod_PLAINTEXT')){
|
136 |
class OAuthSignatureMethod_PLAINTEXT extends OAuthSignatureMethod {
|
137 |
public function get_name() {
|
138 |
return "PLAINTEXT";
|
160 |
return $key;
|
161 |
}
|
162 |
}
|
163 |
+
}
|
164 |
|
165 |
/**
|
166 |
* The RSA-SHA1 signature method uses the RSASSA-PKCS1-v1_5 signature algorithm as defined in
|
170 |
* specification.
|
171 |
* - Chapter 9.3 ("RSA-SHA1")
|
172 |
*/
|
173 |
+
if(!class_exists('OAuthSignatureMethod_RSA_SHA1')){
|
174 |
abstract class OAuthSignatureMethod_RSA_SHA1 extends OAuthSignatureMethod {
|
175 |
public function get_name() {
|
176 |
return "RSA-SHA1";
|
229 |
return $ok == 1;
|
230 |
}
|
231 |
}
|
232 |
+
}
|
233 |
|
234 |
+
if(!class_exists('OAuthRequest')){
|
235 |
class OAuthRequest {
|
236 |
private $parameters;
|
237 |
private $http_method;
|
492 |
return md5($mt . $rand); // md5s look nicer than numbers
|
493 |
}
|
494 |
}
|
495 |
+
}
|
496 |
|
497 |
+
if(!class_exists('OAuthServer')){
|
498 |
class OAuthServer {
|
499 |
protected $timestamp_threshold = 300; // in seconds, five minutes
|
500 |
protected $version = '1.0'; // hi blaine
|
705 |
}
|
706 |
|
707 |
}
|
708 |
+
}
|
709 |
|
710 |
+
if(!class_exists('OAuthDataStore')){
|
711 |
class OAuthDataStore {
|
712 |
function lookup_consumer($consumer_key) {
|
713 |
// implement me
|
733 |
}
|
734 |
|
735 |
}
|
736 |
+
}
|
737 |
|
738 |
+
if(!class_exists('OAuthUtil')){
|
739 |
class OAuthUtil {
|
740 |
public static function urlencode_rfc3986($input) {
|
741 |
if (is_array($input)) {
|
891 |
return implode('&', $pairs);
|
892 |
}
|
893 |
}
|
894 |
+
}
|
oauth/twitteroauth.php
CHANGED
@@ -4,19 +4,15 @@
|
|
4 |
* Abraham Williams (abraham@abrah.am) http://abrah.am
|
5 |
*
|
6 |
* The first PHP Library to support OAuth for Twitter's REST API.
|
7 |
-
* Modified for compatibility with other plugins which could provide OAuthConsumer by Liam Gladdy, 2014.
|
8 |
*/
|
9 |
|
10 |
/* Load OAuth lib. You can find it at http://oauth.net */
|
11 |
-
|
12 |
-
require_once('OAuth.php');
|
13 |
-
} else {
|
14 |
-
define('THR_USING_EXISTING_LIBRARY_OAUTH',true);
|
15 |
-
}
|
16 |
|
17 |
/**
|
18 |
* Twitter OAuth class
|
19 |
*/
|
|
|
20 |
class TwitterOAuth {
|
21 |
/* Contains the last HTTP status code returned. */
|
22 |
public $http_code;
|
@@ -25,9 +21,9 @@ class TwitterOAuth {
|
|
25 |
/* Set up the API root URL. */
|
26 |
public $host = "https://api.twitter.com/1.1/";
|
27 |
/* Set timeout default. */
|
28 |
-
public $timeout =
|
29 |
/* Set connect timeout. */
|
30 |
-
public $connecttimeout =
|
31 |
/* Verify SSL Cert. */
|
32 |
public $ssl_verifypeer = FALSE;
|
33 |
/* Respons format. */
|
@@ -37,7 +33,7 @@ class TwitterOAuth {
|
|
37 |
/* Contains the last HTTP headers returned. */
|
38 |
public $http_info;
|
39 |
/* Set the useragnet. */
|
40 |
-
public $useragent = '
|
41 |
/* Immediately retry the API call if the response was not successful. */
|
42 |
//public $retry = TRUE;
|
43 |
|
@@ -146,7 +142,7 @@ class TwitterOAuth {
|
|
146 |
function get($url, $parameters = array()) {
|
147 |
$response = $this->oAuthRequest($url, 'GET', $parameters);
|
148 |
if ($this->format === 'json' && $this->decode_json) {
|
149 |
-
return json_decode($response
|
150 |
}
|
151 |
return $response;
|
152 |
}
|
@@ -157,7 +153,7 @@ class TwitterOAuth {
|
|
157 |
function post($url, $parameters = array()) {
|
158 |
$response = $this->oAuthRequest($url, 'POST', $parameters);
|
159 |
if ($this->format === 'json' && $this->decode_json) {
|
160 |
-
return json_decode($response
|
161 |
}
|
162 |
return $response;
|
163 |
}
|
@@ -168,7 +164,7 @@ class TwitterOAuth {
|
|
168 |
function delete($url, $parameters = array()) {
|
169 |
$response = $this->oAuthRequest($url, 'DELETE', $parameters);
|
170 |
if ($this->format === 'json' && $this->decode_json) {
|
171 |
-
return json_decode($response
|
172 |
}
|
173 |
return $response;
|
174 |
}
|
@@ -207,6 +203,12 @@ class TwitterOAuth {
|
|
207 |
curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);
|
208 |
curl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));
|
209 |
curl_setopt($ci, CURLOPT_HEADER, FALSE);
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
|
211 |
switch ($method) {
|
212 |
case 'POST':
|
@@ -244,3 +246,4 @@ class TwitterOAuth {
|
|
244 |
return strlen($header);
|
245 |
}
|
246 |
}
|
|
4 |
* Abraham Williams (abraham@abrah.am) http://abrah.am
|
5 |
*
|
6 |
* The first PHP Library to support OAuth for Twitter's REST API.
|
|
|
7 |
*/
|
8 |
|
9 |
/* Load OAuth lib. You can find it at http://oauth.net */
|
10 |
+
require_once('OAuth.php');
|
|
|
|
|
|
|
|
|
11 |
|
12 |
/**
|
13 |
* Twitter OAuth class
|
14 |
*/
|
15 |
+
if(!class_exists('TwitterOAuth')){
|
16 |
class TwitterOAuth {
|
17 |
/* Contains the last HTTP status code returned. */
|
18 |
public $http_code;
|
21 |
/* Set up the API root URL. */
|
22 |
public $host = "https://api.twitter.com/1.1/";
|
23 |
/* Set timeout default. */
|
24 |
+
public $timeout = 30;
|
25 |
/* Set connect timeout. */
|
26 |
+
public $connecttimeout = 30;
|
27 |
/* Verify SSL Cert. */
|
28 |
public $ssl_verifypeer = FALSE;
|
29 |
/* Respons format. */
|
33 |
/* Contains the last HTTP headers returned. */
|
34 |
public $http_info;
|
35 |
/* Set the useragnet. */
|
36 |
+
public $useragent = 'TwitterOAuth v0.2.0-beta2';
|
37 |
/* Immediately retry the API call if the response was not successful. */
|
38 |
//public $retry = TRUE;
|
39 |
|
142 |
function get($url, $parameters = array()) {
|
143 |
$response = $this->oAuthRequest($url, 'GET', $parameters);
|
144 |
if ($this->format === 'json' && $this->decode_json) {
|
145 |
+
return json_decode($response);
|
146 |
}
|
147 |
return $response;
|
148 |
}
|
153 |
function post($url, $parameters = array()) {
|
154 |
$response = $this->oAuthRequest($url, 'POST', $parameters);
|
155 |
if ($this->format === 'json' && $this->decode_json) {
|
156 |
+
return json_decode($response);
|
157 |
}
|
158 |
return $response;
|
159 |
}
|
164 |
function delete($url, $parameters = array()) {
|
165 |
$response = $this->oAuthRequest($url, 'DELETE', $parameters);
|
166 |
if ($this->format === 'json' && $this->decode_json) {
|
167 |
+
return json_decode($response);
|
168 |
}
|
169 |
return $response;
|
170 |
}
|
203 |
curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);
|
204 |
curl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));
|
205 |
curl_setopt($ci, CURLOPT_HEADER, FALSE);
|
206 |
+
if (defined('WP_PROXY_HOST')){
|
207 |
+
curl_setopt($ci, CURLOPT_PROXY, WP_PROXY_HOST);
|
208 |
+
}
|
209 |
+
if (defined('WP_PROXY_PORT')){
|
210 |
+
curl_setopt($ci, CURLOPT_PROXYPORT, WP_PROXY_PORT);
|
211 |
+
}
|
212 |
|
213 |
switch ($method) {
|
214 |
case 'POST':
|
246 |
return strlen($header);
|
247 |
}
|
248 |
}
|
249 |
+
}
|
readme.txt
CHANGED
@@ -3,15 +3,15 @@ Contributors: Access Keys
|
|
3 |
Tags: twitter, twitter feeds, twitter slider, twitter feeds slider, twitter plugin, twitter feed plugin, twitter tweets, tweets, twitter tweet plugin, recent tweets widget, recent tweets plugin, recent tweet feeds
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
Display real-time Twitter feeds on your website. Update your website visitors with your latest Tweets.
|
12 |
|
13 |
== Description ==
|
14 |
-
[
|
15 |
|
16 |
<strong>WP TFeed</strong> is a FREE Twitter plugin for WordPress. You can use this to display real time Twitter feeds on any where on your webiste by using shortcode or widgets. Display tweets as a feed or in slider. It just takes a few minute to set it up and use. Start strong Twitter integration right on your website and increase your social reach to next level.
|
17 |
|
@@ -62,7 +62,6 @@ Display real-time Twitter feeds on your website. Update your website visitors wi
|
|
62 |
|
63 |
= Some Useful Links =
|
64 |
* <strong>Support Forum Link</strong>: http://accesspressthemes.com/support/
|
65 |
-
* <strong>Website Link</strong>: http://accesspressthemes.com/
|
66 |
* <strong>Youtube channel link</strong>: https://www.youtube.com/watch?v=TjZNcVG3fDE
|
67 |
* <strong>Facebook link</strong>: https://www.facebook.com/AccessPressThemes
|
68 |
|
@@ -78,24 +77,6 @@ For complete information and documentation regarding plugin,please visit below l
|
|
78 |
|
79 |
[Demo](http://accesspressthemes.com/demo/wordpress-plugins/accesspress-twitter-feed/)
|
80 |
|
81 |
-
== More Resources ==
|
82 |
-
Themes Compatible With Our Plugin :
|
83 |
-
|
84 |
-
WP TFeed works best with every WordPress theme. Its even more remarkable when used with popular themes of ours or any other being compatible to almost all of the themes.
|
85 |
-
|
86 |
-
AND IF THIS PLUGIN HAS IMPRESSED YOU, THEN YOU WOULD ENJOY OUR OTHER PROJECTS TOO. DO CHECK THESE OUT :
|
87 |
-
|
88 |
-
[WPAll Club](https://wpallclub.com/) - A complete WordPress resources club. WordPress tutorials, blogs, curated free and premium themes and plugins, WordPress deals, offers, hosting info and more.
|
89 |
-
|
90 |
-
[Premium WordPress Themes](https://themeforest.net/user/accesskeys/portfolio) - 6 premium WordPress themes well suited for all sort of websites. Professional, well coded and highly configurable themes for you.
|
91 |
-
|
92 |
-
[Premium WordPress Plugins](https://codecanyon.net/user/accesskeys/portfolio) - 45+ premium WordPress plugins of many different types. High user ratings, great quality and best sellers in CodeCanyon marketplace.
|
93 |
-
|
94 |
-
[AccessPress Themes](https://accesspressthemes.com/) - AccessPress Themes has 50+ beautiful and elegant, fully responsive, multipurpose themes to meet your need for free and commercial basis.
|
95 |
-
|
96 |
-
[8Degree Themes](https://8degreethemes.com/) - 8Degree Themes offers 15+ free WordPress themes and 16+ premium WordPress themes carefully crafted with creativity.
|
97 |
-
|
98 |
-
|
99 |
== Installation ==
|
100 |
1. Unzip accesspress-twitter-feed.zip
|
101 |
1. Upload all the files to the /wp-content/plugins/accesspress-twitter-feed
|
@@ -125,6 +106,10 @@ Once you install the plugin , you can check some general documentation about how
|
|
125 |
|
126 |
|
127 |
== Changelog ==
|
|
|
|
|
|
|
|
|
128 |
= 1.6.2 =
|
129 |
* Minor bug fixes
|
130 |
* WordPress Version test upto 5.3
|
3 |
Tags: twitter, twitter feeds, twitter slider, twitter feeds slider, twitter plugin, twitter feed plugin, twitter tweets, tweets, twitter tweet plugin, recent tweets widget, recent tweets plugin, recent tweet feeds
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 5.4.2
|
7 |
+
Stable tag: 1.6.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
Display real-time Twitter feeds on your website. Update your website visitors with your latest Tweets.
|
12 |
|
13 |
== Description ==
|
14 |
+
[Documentation](https://accesspressthemes.com/documentation/accesspress-twitter-feed/) | [Support](https://accesspressthemes.com/support) | [Demo](http://demo.accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed/) | [Premium Version](https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/)
|
15 |
|
16 |
<strong>WP TFeed</strong> is a FREE Twitter plugin for WordPress. You can use this to display real time Twitter feeds on any where on your webiste by using shortcode or widgets. Display tweets as a feed or in slider. It just takes a few minute to set it up and use. Start strong Twitter integration right on your website and increase your social reach to next level.
|
17 |
|
62 |
|
63 |
= Some Useful Links =
|
64 |
* <strong>Support Forum Link</strong>: http://accesspressthemes.com/support/
|
|
|
65 |
* <strong>Youtube channel link</strong>: https://www.youtube.com/watch?v=TjZNcVG3fDE
|
66 |
* <strong>Facebook link</strong>: https://www.facebook.com/AccessPressThemes
|
67 |
|
77 |
|
78 |
[Demo](http://accesspressthemes.com/demo/wordpress-plugins/accesspress-twitter-feed/)
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
== Installation ==
|
81 |
1. Unzip accesspress-twitter-feed.zip
|
82 |
1. Upload all the files to the /wp-content/plugins/accesspress-twitter-feed
|
106 |
|
107 |
|
108 |
== Changelog ==
|
109 |
+
= 1.6.3 =
|
110 |
+
* Added retweets and replies feature
|
111 |
+
* Added image on feeds along with chosen size
|
112 |
+
|
113 |
= 1.6.2 =
|
114 |
* Minor bug fixes
|
115 |
* WordPress Version test upto 5.3
|