AccessPress Twitter Feed – Twitter Feed for WordPress - Version 1.1.2

Version Description

  • Done some code cleanup for default templates
  • Fixed div structure for date format
Download this release

Release Info

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

Code changes from version 1.1.1 to 1.1.2

accesspress-twitter-feed.php CHANGED
@@ -4,7 +4,7 @@ defined('ABSPATH') or die('No script kiddies please!');
4
  * Plugin Name: AccessPress Twitter Feed
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.1.1
8
  * Author: AccessPress Themes
9
  * Author URI: http://accesspressthemes.com
10
  * Text Domain: ap-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.1.1');
28
  }
29
 
30
  if (!defined('APTF_TD')) {
4
  * Plugin Name: AccessPress Twitter Feed
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.1.2
8
  * Author: AccessPress Themes
9
  * Author URI: http://accesspressthemes.com
10
  * Text Domain: ap-twitter-feed
24
  define('APTF_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
25
  }
26
  if (!defined('APTF_VERSION')) {
27
+ define('APTF_VERSION', '1.1.2');
28
  }
29
 
30
  if (!defined('APTF_TD')) {
inc/frontend/templates/default/template-1.php CHANGED
@@ -15,17 +15,7 @@
15
  <?php
16
  if ($tweet->text) {
17
  $the_tweet = ' '.$tweet->text . ' '; //adding an extra space to convert hast tag into links
18
- /*
19
- Twitter Developer Display Requirements
20
- https://dev.twitter.com/terms/display-requirements
21
-
22
- 2.b. Tweet Entities within the Tweet text must be properly linked to their appropriate home on Twitter. For example:
23
- i. User_mentions must link to the mentioned user's profile.
24
- ii. Hashtags must link to a twitter.com search with the hashtag as the query.
25
- iii. Links in Tweet text must be displayed using the display_url
26
- field in the URL entities API response, and link to the original t.co url field.
27
- */
28
-
29
  // i. User_mentions must link to the mentioned user's profile.
30
  if (is_array($tweet->entities->user_mentions)) {
31
  foreach ($tweet->entities->user_mentions as $key => $user_mention) {
@@ -61,29 +51,12 @@
61
  </div>
62
  <?php if ($aptf_settings['display_username'] == 1) { ?><a href="http://twitter.com/<?php echo $username; ?>" class="aptf-tweet-name" target="_blank"><?php echo $username; ?></a> <?php } ?>
63
  <div class="aptf-tweet-date">
64
- <?php
65
- // 3. Tweet Actions
66
- // Reply, Retweet, and Favorite action icons must always be visible for the user to interact with the Tweet. These actions must be implemented using Web Intents or with the authenticated Twitter API.
67
- // No other social or 3rd party actions similar to Follow, Reply, Retweet and Favorite may be attached to a Tweet.
68
- // get the sprite or images from twitter's developers resource and update your stylesheet
69
- // echo '
70
- // <div class="twitter_intents">
71
- // <p><a class="reply" href="https://twitter.com/intent/tweet?in_reply_to='.$tweet['id_str'].'">Reply</a></p>
72
- // <p><a class="retweet" href="https://twitter.com/intent/retweet?tweet_id='.$tweet['id_str'].'">Retweet</a></p>
73
- // <p><a class="favorite" href="https://twitter.com/intent/favorite?tweet_id='.$tweet['id_str'].'">Favorite</a></p>
74
- // </div>';
75
- // 4. Tweet Timestamp
76
- // The Tweet timestamp must always be visible and include the time and date. e.g., “3:00 PM - 31 May 12”.
77
- // 5. Tweet Permalink
78
- // The Tweet timestamp must always be linked to the Tweet permalink.
79
- ?>
80
-
81
  <p class="aptf-timestamp">
82
  <a href="https://twitter.com/<?php echo $username; ?>/status/<?php echo $tweet->id_str; ?>" target="_blank"> -
83
  <?php echo $this->get_date_format($tweet->created_at, $aptf_settings['time_format']); ?>
84
  </a>
85
  </p>
86
-
87
  <?php
88
  } else {
89
  ?>
@@ -92,7 +65,7 @@
92
  <?php
93
  }
94
  ?>
95
- </div><!--tweet_date-->
96
 
97
 
98
 
15
  <?php
16
  if ($tweet->text) {
17
  $the_tweet = ' '.$tweet->text . ' '; //adding an extra space to convert hast tag into links
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) {
51
  </div>
52
  <?php if ($aptf_settings['display_username'] == 1) { ?><a href="http://twitter.com/<?php echo $username; ?>" class="aptf-tweet-name" target="_blank"><?php echo $username; ?></a> <?php } ?>
53
  <div class="aptf-tweet-date">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  <p class="aptf-timestamp">
55
  <a href="https://twitter.com/<?php echo $username; ?>/status/<?php echo $tweet->id_str; ?>" target="_blank"> -
56
  <?php echo $this->get_date_format($tweet->created_at, $aptf_settings['time_format']); ?>
57
  </a>
58
  </p>
59
+ </div><!--tweet_date-->
60
  <?php
61
  } else {
62
  ?>
65
  <?php
66
  }
67
  ?>
68
+
69
 
70
 
71
 
inc/frontend/templates/default/template-2.php CHANGED
@@ -15,17 +15,7 @@
15
  <?php
16
  if ($tweet->text) {
17
  $the_tweet = $tweet->text . ' '; //adding an extra space to convert hast tag into links
18
- /*
19
- Twitter Developer Display Requirements
20
- https://dev.twitter.com/terms/display-requirements
21
-
22
- 2.b. Tweet Entities within the Tweet text must be properly linked to their appropriate home on Twitter. For example:
23
- i. User_mentions must link to the mentioned user's profile.
24
- ii. Hashtags must link to a twitter.com search with the hashtag as the query.
25
- iii. Links in Tweet text must be displayed using the display_url
26
- field in the URL entities API response, and link to the original t.co url field.
27
- */
28
-
29
  // i. User_mentions must link to the mentioned user's profile.
30
  if (is_array($tweet->entities->user_mentions)) {
31
  foreach ($tweet->entities->user_mentions as $key => $user_mention) {
@@ -59,7 +49,7 @@
59
  <?php echo $this->get_date_format($tweet->created_at, $aptf_settings['time_format']); ?>
60
  </a>
61
  </p>
62
-
63
  <?php
64
  } else {
65
  ?>
@@ -68,7 +58,7 @@
68
  <?php
69
  }
70
  ?>
71
- </div><!--tweet_date-->
72
  <?php if (isset($aptf_settings['display_twitter_actions']) && $aptf_settings['display_twitter_actions'] == 1) { ?>
73
  <!--Tweet Action -->
74
  <?php include(plugin_dir_path(__FILE__) . '../tweet-actions.php'); ?>
15
  <?php
16
  if ($tweet->text) {
17
  $the_tweet = $tweet->text . ' '; //adding an extra space to convert hast tag into links
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) {
49
  <?php echo $this->get_date_format($tweet->created_at, $aptf_settings['time_format']); ?>
50
  </a>
51
  </p>
52
+ </div><!--tweet_date-->
53
  <?php
54
  } else {
55
  ?>
58
  <?php
59
  }
60
  ?>
61
+
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/default/template-3.php CHANGED
@@ -21,17 +21,7 @@
21
  <?php
22
  if ($tweet->text) {
23
  $the_tweet = $tweet->text . ' '; //adding an extra space to convert hast tag into links
24
- /*
25
- Twitter Developer Display Requirements
26
- https://dev.twitter.com/terms/display-requirements
27
-
28
- 2.b. Tweet Entities within the Tweet text must be properly linked to their appropriate home on Twitter. For example:
29
- i. User_mentions must link to the mentioned user's profile.
30
- ii. Hashtags must link to a twitter.com search with the hashtag as the query.
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) {
21
  <?php
22
  if ($tweet->text) {
23
  $the_tweet = $tweet->text . ' '; //adding an extra space to convert hast tag into links
24
+
 
 
 
 
 
 
 
 
 
 
25
  // i. User_mentions must link to the mentioned user's profile.
26
  if (is_array($tweet->entities->user_mentions)) {
27
  foreach ($tweet->entities->user_mentions as $key => $user_mention) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: twitter, twitter feeds, twitter slider, twitter feeds slider, twitter plug
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
- Stable tag: 1.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -16,7 +16,7 @@ Display real-time Twitter feeds on your website. Update your website visitors wi
16
 
17
 
18
 
19
- = Features: =
20
 
21
  * <strong>Fetch latest tweets from any account</strong>
22
  * <strong>Configurable number of tweets to display</strong>
@@ -32,6 +32,30 @@ Display real-time Twitter feeds on your website. Update your website visitors wi
32
  - Dedicated email, forum support
33
  * <strong>Free updates</strong>
34
  - Get free updates for lifetime.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
 
37
  = Some Useful Links =
@@ -83,6 +107,10 @@ Once you install the plugin , you can check some general documentation about how
83
 
84
 
85
  == Changelog ==
 
 
 
 
86
  = 1.1.1 =
87
  * Added Promo Banner in sidebar
88
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
+ Stable tag: 1.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
16
 
17
 
18
 
19
+ = Free Features: =
20
 
21
  * <strong>Fetch latest tweets from any account</strong>
22
  * <strong>Configurable number of tweets to display</strong>
32
  - Dedicated email, forum support
33
  * <strong>Free updates</strong>
34
  - Get free updates for lifetime.
35
+
36
+ = Premium Features: =
37
+ ★ Multiple Twitter Accounts Support
38
+
39
+ ★ Beautifully designed 12 themes to select from
40
+
41
+ ★ Tweets Media(Image) Embeds Support
42
+
43
+ ★ Twitter Timeline layout included
44
+
45
+ ★ Slider mode available with more configurable options
46
+
47
+ ★ Ticker mode available with various configurable options
48
+
49
+ ★ Advanced Caching option to prevent frequent API calls
50
+
51
+ ★ Super support – get support via email/support forum/online chat
52
+
53
+ ★ And many more...
54
+
55
+
56
+ = Premium Upgrade =
57
+ * For premium upgrade, please go [here](https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed-pro/)
58
+
59
 
60
 
61
  = Some Useful Links =
107
 
108
 
109
  == Changelog ==
110
+ = 1.1.2 =
111
+ * Done some code cleanup for default templates
112
+ * Fixed div structure for date format
113
+
114
  = 1.1.1 =
115
  * Added Promo Banner in sidebar
116