AccessPress Twitter Feed – Twitter Feed for WordPress - Version 1.6.4

Version Description

  • Checked compatibility with the latest wp version
  • Added new setting to display retweeted image
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 AccessPress Twitter Feed – Twitter Feed for WordPress
Version 1.6.4
Comparing to
See all releases

Code changes from version 1.6.3 to 1.6.4

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.3
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.3');
28
  }
29
 
30
  if (!defined('APTF_TD')) {
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.4
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.4');
28
  }
29
 
30
  if (!defined('APTF_TD')) {
inc/frontend/templates/default/template-1.php CHANGED
@@ -41,6 +41,8 @@
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 -->
41
  _e($the_tweet) . ' ';
42
  ?>
43
  </div><!--tweet content-->
44
+
45
+
46
  <!--Tweet Image -->
47
  <?php include(plugin_dir_path(__FILE__) . '../tweet-media.php'); ?>
48
  <!--Tweet Image -->
inc/frontend/templates/tweet-media.php CHANGED
@@ -62,5 +62,34 @@ if ( !$disable_media ) {?>
62
  </div>
63
  <?php
64
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  }
66
  ?>
62
  </div>
63
  <?php
64
  }
65
+ else if(isset($tweet->quoted_status->extended_entities)){
66
+ ?>
67
+ <div class="aptf-tweet-media">
68
+ <?php
69
+ if ( isset($tweet->quoted_status->extended_entities->media) && count( $tweet->quoted_status->extended_entities->media ) > 1 ) {
70
+ $image_size = 'thumb';
71
+ } else {
72
+ $image_size = 'large';
73
+ }
74
+
75
+ //$this->print_array($tweet['extended_entities']);
76
+ foreach ( $tweet->quoted_status->extended_entities->media as $media ) {
77
+ ?>
78
+ <div class="aptf-each-media aptf-media-<?php echo $image_size; ?>" <?php
79
+ if ( isset( $aptf_settings['image_width'] ) && $aptf_settings['image_width']!='') {
80
+ ?>
81
+ style="width:<?php echo esc_attr($aptf_settings['image_width']);?>"
82
+ <?php
83
+ }
84
+ ?>>
85
+ <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>
86
+ </div>
87
+ <?php
88
+ //$this->print_array($media);
89
+ }
90
+ ?>
91
+ </div>
92
+ <?php
93
+ }
94
  }
95
  ?>
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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.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
 
@@ -106,6 +106,10 @@ Once you install the plugin , you can check some general documentation about how
106
 
107
 
108
  == Changelog ==
 
 
 
 
109
  = 1.6.3 =
110
  * Added retweets and replies feature
111
  * Added image on feeds along with chosen size
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.5
7
+ Stable tag: 1.6.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
106
 
107
 
108
  == Changelog ==
109
+ = 1.6.4 =
110
+ * Checked compatibility with the latest wp version
111
+ * Added new setting to display retweeted image
112
+
113
  = 1.6.3 =
114
  * Added retweets and replies feature
115
  * Added image on feeds along with chosen size