AccessPress Twitter Feed – Twitter Feed for WordPress - Version 1.3.3

Version Description

  • Updated text domain to match plugin's slug
Download this release

Release Info

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

Code changes from version 1.3.2 to 1.3.3

accesspress-twitter-feed.php CHANGED
@@ -4,10 +4,10 @@ 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.3.2
8
  * Author: AccessPress Themes
9
  * Author URI: http://accesspressthemes.com
10
- * Text Domain: ap-twitter-feed
11
  * Domain Path: /languages/
12
  * License: GPL
13
  */
@@ -24,11 +24,11 @@ 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.3.2');
28
  }
29
 
30
  if (!defined('APTF_TD')) {
31
- define('APTF_TD', 'ap-twitter-feed');
32
  }
33
  include_once('inc/backend/widget.php');
34
  include_once('inc/backend/slider-widget.php');
@@ -63,7 +63,7 @@ if (!class_exists('APTF_Class')) {
63
  *
64
  */
65
  function load_text_domain() {
66
- load_plugin_textdomain(APTF_TD, false, basename(dirname(__FILE__)) . '/languages');
67
  }
68
 
69
  /**
@@ -90,7 +90,7 @@ if (!class_exists('APTF_Class')) {
90
  * Adds plugin's menu in the admin section
91
  */
92
  function add_plugin_admin_menu() {
93
- add_menu_page(__('AccessPress Twitter Feed', APTF_TD), __('AccessPress Twitter Feed', APTF_TD), 'manage_options', 'ap-twitter-feed', array($this, 'main_setting_page'), 'dashicons-twitter');
94
  }
95
 
96
  /**
@@ -162,7 +162,7 @@ if (!class_exists('APTF_Class')) {
162
  if (!empty($_GET) && wp_verify_nonce($_GET['_wpnonce'], 'aptf-restore-nonce')) {
163
  $aptf_settings = $this->get_default_settings();
164
  update_option('aptf_settings', $aptf_settings);
165
- $_SESSION['aptf_msg'] = __('Default Settings Restored Successfully.', APTF_TD);
166
  wp_redirect(admin_url() . 'admin.php?page=ap-twitter-feed');
167
  } else {
168
  die('No script kiddies please!');
@@ -196,7 +196,7 @@ if (!class_exists('APTF_Class')) {
196
  */
197
  function aptf_delete_cache() {
198
  delete_transient('aptf_tweets');
199
- $_SESSION['aptf_msg'] = __('Cache Deleted Successfully.', APTF_TD);
200
  wp_redirect(admin_url() . 'admin.php?page=ap-twitter-feed');
201
  }
202
 
@@ -233,37 +233,37 @@ if (!class_exists('APTF_Class')) {
233
 
234
  if ($years >= 1) {
235
  if($years == 1){
236
- $date = $years . __(' year ago', APTF_TD);
237
  }
238
  else
239
  {
240
- $date = $years . __(' year ago', APTF_TD);
241
  }
242
 
243
  } elseif ($days >= 1) {
244
  if($days == 1){
245
- $date = $days . __(' day ago', APTF_TD);
246
  }
247
  else
248
  {
249
- $date = $days . __(' days ago', APTF_TD);
250
  }
251
 
252
  } elseif ($hours >= 1) {
253
  if($hours == 1){
254
- $date = $hours . __(' hour ago', APTF_TD);
255
  }
256
  else
257
  {
258
- $date = $hours . __(' hours ago', APTF_TD);
259
  }
260
 
261
  } elseif ($minutes > 1) {
262
- $date = $minutes . __(' minutes ago', APTF_TD);
263
 
264
 
265
  } else {
266
- $date = __("1 minute ago", APTF_TD);
267
  }
268
  break;
269
  default:
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.3.3
8
  * Author: AccessPress Themes
9
  * Author URI: http://accesspressthemes.com
10
+ * Text Domain: accesspress-twitter-feed
11
  * Domain Path: /languages/
12
  * License: GPL
13
  */
24
  define('APTF_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
25
  }
26
  if (!defined('APTF_VERSION')) {
27
+ define('APTF_VERSION', '1.3.3');
28
  }
29
 
30
  if (!defined('APTF_TD')) {
31
+ define('APTF_TD', 'accesspress-twitter-feed');
32
  }
33
  include_once('inc/backend/widget.php');
34
  include_once('inc/backend/slider-widget.php');
63
  *
64
  */
65
  function load_text_domain() {
66
+ load_plugin_textdomain('accesspress-twitter-feed', false, basename(dirname(__FILE__)) . '/languages');
67
  }
68
 
69
  /**
90
  * Adds plugin's menu in the admin section
91
  */
92
  function add_plugin_admin_menu() {
93
+ add_menu_page(__('AccessPress Twitter Feed', 'accesspress-twitter-feed'), __('AccessPress Twitter Feed', 'accesspress-twitter-feed'), 'manage_options', 'ap-twitter-feed', array($this, 'main_setting_page'), 'dashicons-twitter');
94
  }
95
 
96
  /**
162
  if (!empty($_GET) && wp_verify_nonce($_GET['_wpnonce'], 'aptf-restore-nonce')) {
163
  $aptf_settings = $this->get_default_settings();
164
  update_option('aptf_settings', $aptf_settings);
165
+ $_SESSION['aptf_msg'] = __('Default Settings Restored Successfully.', 'accesspress-twitter-feed');
166
  wp_redirect(admin_url() . 'admin.php?page=ap-twitter-feed');
167
  } else {
168
  die('No script kiddies please!');
196
  */
197
  function aptf_delete_cache() {
198
  delete_transient('aptf_tweets');
199
+ $_SESSION['aptf_msg'] = __('Cache Deleted Successfully.', 'accesspress-twitter-feed');
200
  wp_redirect(admin_url() . 'admin.php?page=ap-twitter-feed');
201
  }
202
 
233
 
234
  if ($years >= 1) {
235
  if($years == 1){
236
+ $date = $years . __(' year ago', 'accesspress-twitter-feed');
237
  }
238
  else
239
  {
240
+ $date = $years . __(' year ago', 'accesspress-twitter-feed');
241
  }
242
 
243
  } elseif ($days >= 1) {
244
  if($days == 1){
245
+ $date = $days . __(' day ago', 'accesspress-twitter-feed');
246
  }
247
  else
248
  {
249
+ $date = $days . __(' days ago', 'accesspress-twitter-feed');
250
  }
251
 
252
  } elseif ($hours >= 1) {
253
  if($hours == 1){
254
+ $date = $hours . __(' hour ago', 'accesspress-twitter-feed');
255
  }
256
  else
257
  {
258
+ $date = $hours . __(' hours ago', 'accesspress-twitter-feed');
259
  }
260
 
261
  } elseif ($minutes > 1) {
262
+ $date = $minutes . __(' minutes ago', 'accesspress-twitter-feed');
263
 
264
 
265
  } else {
266
+ $date = __("1 minute ago", 'accesspress-twitter-feed');
267
  }
268
  break;
269
  default:
inc/backend/boards/about.php CHANGED
@@ -1,5 +1,5 @@
1
  <div class="aptf-single-board-wrapper" id="aptf-about-board" style="display: none">
2
- <h3><?php _e('About', APTF_TD); ?></h3>
3
 
4
  <p><strong>AccessPress Twitter Feed </strong> - is a FREE WordPress Plugin by AccessPress Themes. </p>
5
 
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><strong>AccessPress Twitter Feed </strong> - is a FREE WordPress Plugin by AccessPress Themes. </p>
5
 
inc/backend/boards/how-to-use.php CHANGED
@@ -1,5 +1,5 @@
1
  <div class="aptf-single-board-wrapper" id="aptf-how_to_use-board" style="display:none">
2
- <h3><?php _e('How to use', APTF_TD); ?></h3>
3
  <p>There are two methods to display your Twitter Feeds in your site using AccessPress Twitter Feed Plugin.</p>
4
  <h4>Normal Feeds</h4>
5
  <p>For displaying Twitter Feeds in normal manner, you can use <br><br/>[ap-twitter-feed]<br/><br/> shortcode or AccessPress Twitter Feed Widget in any registered widget area from Appearance Widget Section.You can also pass template parameter in the shortcode such as <br/>
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>There are two methods to display your Twitter Feeds in your site using AccessPress Twitter Feed Plugin.</p>
4
  <h4>Normal Feeds</h4>
5
  <p>For displaying Twitter Feeds in normal manner, you can use <br><br/>[ap-twitter-feed]<br/><br/> shortcode or AccessPress Twitter Feed Widget in any registered widget area from Appearance Widget Section.You can also pass template parameter in the shortcode such as <br/>
inc/backend/boards/main-settings.php CHANGED
@@ -1,63 +1,63 @@
1
  <div class="aptf-single-board-wrapper" id="aptf-settings-board">
2
- <h3><?php _e('Settings', APTF_TD); ?></h3>
3
  <div class="aptf-option-wrapper">
4
  <label>Twitter Consumer Key</label>
5
  <div class="aptf-option-field">
6
  <input type="text" name="consumer_key" value="<?php echo esc_attr($aptf_settings['consumer_key']); ?>"/>
7
- <div class="aptf-option-note"><?php _e('Please create an app on Twitter through this link:', APTF_TD); ?><a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps</a><?php _e(' and get this information.', APTF_TD); ?></div>
8
  </div>
9
  </div>
10
  <div class="aptf-option-wrapper">
11
  <label>Twitter Consumer Secret</label>
12
  <div class="aptf-option-field">
13
  <input type="text" name="consumer_secret" value="<?php echo esc_attr($aptf_settings['consumer_secret']); ?>"/>
14
- <div class="aptf-option-note"><?php _e('Please create an app on Twitter through this link:', APTF_TD); ?><a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps</a><?php _e(' and get this information.', APTF_TD); ?></div>
15
  </div>
16
  </div>
17
  <div class="aptf-option-wrapper">
18
  <label>Twitter Access Token</label>
19
  <div class="aptf-option-field">
20
  <input type="text" name="access_token" value="<?php echo esc_attr($aptf_settings['access_token']); ?>"/>
21
- <div class="aptf-option-note"><?php _e('Please create an app on Twitter through this link:', APTF_TD); ?><a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps</a><?php _e(' and get this information.', APTF_TD); ?></div>
22
  </div>
23
  </div>
24
  <div class="aptf-option-wrapper">
25
  <label>Twitter Access Token Secret</label>
26
  <div class="aptf-option-field">
27
  <input type="text" name="access_token_secret" value="<?php echo esc_attr($aptf_settings['access_token_secret']); ?>"/>
28
- <div class="aptf-option-note"><?php _e('Please create an app on Twitter through this link:', APTF_TD); ?><a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps</a><?php _e(' and get this information.', APTF_TD); ?></div>
29
  </div>
30
  </div>
31
  <div class="aptf-option-wrapper">
32
- <label><?php _e('Twitter Username',APTF_TD);?></label>
33
  <div class="aptf-option-field">
34
  <input type="text" name="twitter_username" value="<?php echo isset($aptf_settings['twitter_username']) ? $aptf_settings['twitter_username'] : ''; ?>" placeholder="e.g: @apthemes"/>
35
- <div class="aptf-option-note"><?php _e('Please enter the username of twitter account from which the feeds need to be fetched.For example:@apthemes', APTF_TD); ?></div>
36
  </div>
37
  </div>
38
  <div class="aptf-option-wrapper">
39
- <label><?php _e('Twitter Account Name',APTF_TD);?></label>
40
  <div class="aptf-option-field">
41
  <input type="text" name="twitter_account_name" value="<?php echo isset($aptf_settings['twitter_account_name']) ? $aptf_settings['twitter_account_name'] : ''; ?>" placeholder="e.g: AccessPress Themes"/>
42
- <div class="aptf-option-note"><?php _e('Please enter the account name to be displayed.For example:AccessPress Themes', APTF_TD); ?></div>
43
  </div>
44
  </div>
45
  <div class="aptf-option-wrapper">
46
  <label>Cache Period</label>
47
  <div class="aptf-option-field">
48
  <input type="text" name="cache_period" value="<?php echo esc_attr($aptf_settings['cache_period']); ?>" placeholder="e.g: 60"/>
49
- <div class="aptf-option-note"><?php _e('Please enter the time period in minutes in which the feeds should be fetched.Default is 60 Minutes', APTF_TD); ?></div>
50
  </div>
51
  </div>
52
  <div class="aptf-option-wrapper">
53
- <label><?php _e('Total Number of Feed', APTF_TD); ?></label>
54
  <div class="aptf-option-field">
55
  <input type="number" name="total_feed" value="<?php echo isset($aptf_settings['total_feed']) ? esc_attr($aptf_settings['total_feed']) : ''; ?>" placeholder="e.g: 5"/>
56
- <div class="aptf-option-note"><?php _e('Please enter the number of feeds to be fetched.Default number of feeds is 5.And please don\'t forget to delete cache once you change the number of tweets using delete cache button below.', APTF_TD); ?></div>
57
  </div>
58
  </div>
59
  <div class="aptf-option-wrapper">
60
- <label><?php _e('Feeds Template', APTF_TD); ?></label>
61
  <div class="aptf-option-field">
62
  <?php for ($i = 1; $i <= 3; $i++) {
63
  ?>
@@ -69,39 +69,39 @@
69
  </div>
70
  </div>
71
  <div class="aptf-option-wrapper">
72
- <label><?php _e('Time Format', APTF_TD); ?></label>
73
  <div class="aptf-option-field">
74
- <label><input type="radio" name="time_format" value="full_date" <?php checked($aptf_settings['time_format'],'full_date');?>/><?php _e('Full Date and Time: <span>e.g March 10, 2001, 5:16 pm</span>', APTF_TD); ?></label>
75
- <label><input type="radio" name="time_format" value="date_only" <?php checked($aptf_settings['time_format'],'date_only');?>/><?php _e('Date only: <span>e.g March 10, 2001</span>', APTF_TD); ?></label>
76
- <label><input type="radio" name="time_format" value="elapsed_time" <?php checked($aptf_settings['time_format'],'elapsed_time');?>/><?php _e('Elapsed Time: <span>e.g 12 hours ago</span>', APTF_TD); ?></label>
77
  </div>
78
  </div>
79
  <div class="aptf-option-wrapper">
80
- <label><?php _e('Display Username', APTF_TD); ?></label>
81
  <div class="aptf-option-field">
82
  <input type="checkbox" name="display_username" value="1" <?php checked($aptf_settings['display_username'],true);?>/>
83
- <div class="aptf-option-note"><?php _e('Check if you want to show your username in each tweet', APTF_TD); ?></div>
84
  </div>
85
  </div>
86
  <div class="aptf-option-wrapper">
87
- <label><?php _e('Display Twitter Actions(Reply, Retweet, Favorite)', APTF_TD); ?></label>
88
  <div class="aptf-option-field">
89
  <input type="checkbox" name="display_twitter_actions" value="1" <?php checked($aptf_settings['display_twitter_actions'],true);?>/>
90
- <div class="aptf-option-note"><?php _e('Check if you want to display twitter actions', APTF_TD); ?></div>
91
  </div>
92
  </div>
93
  <div class="aptf-option-wrapper">
94
- <label><?php _e('Fallback Unavailable Message', APTF_TD); ?></label>
95
  <div class="aptf-option-field">
96
  <input type="text" name="fallback_message" value="<?php echo isset($aptf_settings['fallback_message']) ? esc_attr($aptf_settings['fallback_message']) : ''; ?>"/>
97
- <div class="aptf-option-note"><?php _e('Please enter the message to display if the twitter API is unavailable sometime.', APTF_TD); ?></div>
98
  </div>
99
  </div>
100
  <div class="aptf-option-wrapper">
101
- <label><?php _e('Display Twitter Follow Button', APTF_TD); ?></label>
102
  <div class="aptf-option-field">
103
  <input type="checkbox" name="display_follow_button" value="1" <?php checked($aptf_settings['display_follow_button'],true);?>/>
104
- <div class="aptf-option-note"><?php _e('Check if you want to display twitter follow button at the end of the feeds', APTF_TD); ?></div>
105
  </div>
106
  </div>
107
  <div class="aptf-option-wrapper">
1
  <div class="aptf-single-board-wrapper" id="aptf-settings-board">
2
+ <h3><?php _e('Settings', 'accesspress-twitter-feed'); ?></h3>
3
  <div class="aptf-option-wrapper">
4
  <label>Twitter Consumer Key</label>
5
  <div class="aptf-option-field">
6
  <input type="text" name="consumer_key" value="<?php echo esc_attr($aptf_settings['consumer_key']); ?>"/>
7
+ <div class="aptf-option-note"><?php _e('Please create an app on Twitter through this link:', 'accesspress-twitter-feed'); ?><a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps</a><?php _e(' and get this information.', 'accesspress-twitter-feed'); ?></div>
8
  </div>
9
  </div>
10
  <div class="aptf-option-wrapper">
11
  <label>Twitter Consumer Secret</label>
12
  <div class="aptf-option-field">
13
  <input type="text" name="consumer_secret" value="<?php echo esc_attr($aptf_settings['consumer_secret']); ?>"/>
14
+ <div class="aptf-option-note"><?php _e('Please create an app on Twitter through this link:', 'accesspress-twitter-feed'); ?><a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps</a><?php _e(' and get this information.', 'accesspress-twitter-feed'); ?></div>
15
  </div>
16
  </div>
17
  <div class="aptf-option-wrapper">
18
  <label>Twitter Access Token</label>
19
  <div class="aptf-option-field">
20
  <input type="text" name="access_token" value="<?php echo esc_attr($aptf_settings['access_token']); ?>"/>
21
+ <div class="aptf-option-note"><?php _e('Please create an app on Twitter through this link:', 'accesspress-twitter-feed'); ?><a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps</a><?php _e(' and get this information.', 'accesspress-twitter-feed'); ?></div>
22
  </div>
23
  </div>
24
  <div class="aptf-option-wrapper">
25
  <label>Twitter Access Token Secret</label>
26
  <div class="aptf-option-field">
27
  <input type="text" name="access_token_secret" value="<?php echo esc_attr($aptf_settings['access_token_secret']); ?>"/>
28
+ <div class="aptf-option-note"><?php _e('Please create an app on Twitter through this link:', 'accesspress-twitter-feed'); ?><a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps</a><?php _e(' and get this information.', 'accesspress-twitter-feed'); ?></div>
29
  </div>
30
  </div>
31
  <div class="aptf-option-wrapper">
32
+ <label><?php _e('Twitter Username','accesspress-twitter-feed');?></label>
33
  <div class="aptf-option-field">
34
  <input type="text" name="twitter_username" value="<?php echo isset($aptf_settings['twitter_username']) ? $aptf_settings['twitter_username'] : ''; ?>" placeholder="e.g: @apthemes"/>
35
+ <div class="aptf-option-note"><?php _e('Please enter the username of twitter account from which the feeds need to be fetched.For example:@apthemes', 'accesspress-twitter-feed'); ?></div>
36
  </div>
37
  </div>
38
  <div class="aptf-option-wrapper">
39
+ <label><?php _e('Twitter Account Name','accesspress-twitter-feed');?></label>
40
  <div class="aptf-option-field">
41
  <input type="text" name="twitter_account_name" value="<?php echo isset($aptf_settings['twitter_account_name']) ? $aptf_settings['twitter_account_name'] : ''; ?>" placeholder="e.g: AccessPress Themes"/>
42
+ <div class="aptf-option-note"><?php _e('Please enter the account name to be displayed.For example:AccessPress Themes', 'accesspress-twitter-feed'); ?></div>
43
  </div>
44
  </div>
45
  <div class="aptf-option-wrapper">
46
  <label>Cache Period</label>
47
  <div class="aptf-option-field">
48
  <input type="text" name="cache_period" value="<?php echo esc_attr($aptf_settings['cache_period']); ?>" placeholder="e.g: 60"/>
49
+ <div class="aptf-option-note"><?php _e('Please enter the time period in minutes in which the feeds should be fetched.Default is 60 Minutes', 'accesspress-twitter-feed'); ?></div>
50
  </div>
51
  </div>
52
  <div class="aptf-option-wrapper">
53
+ <label><?php _e('Total Number of Feed', 'accesspress-twitter-feed'); ?></label>
54
  <div class="aptf-option-field">
55
  <input type="number" name="total_feed" value="<?php echo isset($aptf_settings['total_feed']) ? esc_attr($aptf_settings['total_feed']) : ''; ?>" placeholder="e.g: 5"/>
56
+ <div class="aptf-option-note"><?php _e('Please enter the number of feeds to be fetched.Default number of feeds is 5.And please don\'t forget to delete cache once you change the number of tweets using delete cache button below.', 'accesspress-twitter-feed'); ?></div>
57
  </div>
58
  </div>
59
  <div class="aptf-option-wrapper">
60
+ <label><?php _e('Feeds Template', 'accesspress-twitter-feed'); ?></label>
61
  <div class="aptf-option-field">
62
  <?php for ($i = 1; $i <= 3; $i++) {
63
  ?>
69
  </div>
70
  </div>
71
  <div class="aptf-option-wrapper">
72
+ <label><?php _e('Time Format', 'accesspress-twitter-feed'); ?></label>
73
  <div class="aptf-option-field">
74
+ <label><input type="radio" name="time_format" value="full_date" <?php checked($aptf_settings['time_format'],'full_date');?>/><?php _e('Full Date and Time: <span>e.g March 10, 2001, 5:16 pm</span>', 'accesspress-twitter-feed'); ?></label>
75
+ <label><input type="radio" name="time_format" value="date_only" <?php checked($aptf_settings['time_format'],'date_only');?>/><?php _e('Date only: <span>e.g March 10, 2001</span>', 'accesspress-twitter-feed'); ?></label>
76
+ <label><input type="radio" name="time_format" value="elapsed_time" <?php checked($aptf_settings['time_format'],'elapsed_time');?>/><?php _e('Elapsed Time: <span>e.g 12 hours ago</span>', 'accesspress-twitter-feed'); ?></label>
77
  </div>
78
  </div>
79
  <div class="aptf-option-wrapper">
80
+ <label><?php _e('Display Username', 'accesspress-twitter-feed'); ?></label>
81
  <div class="aptf-option-field">
82
  <input type="checkbox" name="display_username" value="1" <?php checked($aptf_settings['display_username'],true);?>/>
83
+ <div class="aptf-option-note"><?php _e('Check if you want to show your username in each tweet', 'accesspress-twitter-feed'); ?></div>
84
  </div>
85
  </div>
86
  <div class="aptf-option-wrapper">
87
+ <label><?php _e('Display Twitter Actions(Reply, Retweet, Favorite)', 'accesspress-twitter-feed'); ?></label>
88
  <div class="aptf-option-field">
89
  <input type="checkbox" name="display_twitter_actions" value="1" <?php checked($aptf_settings['display_twitter_actions'],true);?>/>
90
+ <div class="aptf-option-note"><?php _e('Check if you want to display twitter actions', 'accesspress-twitter-feed'); ?></div>
91
  </div>
92
  </div>
93
  <div class="aptf-option-wrapper">
94
+ <label><?php _e('Fallback Unavailable Message', 'accesspress-twitter-feed'); ?></label>
95
  <div class="aptf-option-field">
96
  <input type="text" name="fallback_message" value="<?php echo isset($aptf_settings['fallback_message']) ? esc_attr($aptf_settings['fallback_message']) : ''; ?>"/>
97
+ <div class="aptf-option-note"><?php _e('Please enter the message to display if the twitter API is unavailable sometime.', 'accesspress-twitter-feed'); ?></div>
98
  </div>
99
  </div>
100
  <div class="aptf-option-wrapper">
101
+ <label><?php _e('Display Twitter Follow Button', 'accesspress-twitter-feed'); ?></label>
102
  <div class="aptf-option-field">
103
  <input type="checkbox" name="display_follow_button" value="1" <?php checked($aptf_settings['display_follow_button'],true);?>/>
104
+ <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>
105
  </div>
106
  </div>
107
  <div class="aptf-option-wrapper">
inc/backend/header.php CHANGED
@@ -1,10 +1,10 @@
1
  <div class="aptf-header-wrapper">
2
  <div class="apsc-logo">
3
- <img src="<?php echo APTF_IMAGE_DIR; ?>/logo.png" alt="<?php esc_attr_e('AccessPress Twitter FEED', APTF_TD); ?>" />
4
  </div>
5
 
6
  <div class="apsc-socials">
7
- <p><?php _e('Follow us for new updates', APTF_TD) ?></p>
8
  <div class="ap-social-bttns">
9
 
10
  <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&amp;width&amp;layout=button&amp;action=like&amp;show_faces=false&amp;share=false&amp;height=35&amp;appId=1411139805828592" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:20px; width:50px " allowTransparency="true"></iframe>
@@ -22,5 +22,5 @@
22
 
23
  </div>
24
  </div>
25
- <div class="apsc-title"><?php _e('AccessPress Twitter Feed', APTF_TD); ?></div>
26
  </div>
1
  <div class="aptf-header-wrapper">
2
  <div class="apsc-logo">
3
+ <img src="<?php echo APTF_IMAGE_DIR; ?>/logo.png" alt="<?php esc_attr_e('AccessPress Twitter FEED', 'accesspress-twitter-feed'); ?>" />
4
  </div>
5
 
6
  <div class="apsc-socials">
7
+ <p><?php _e('Follow us for new updates', 'accesspress-twitter-feed') ?></p>
8
  <div class="ap-social-bttns">
9
 
10
  <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&amp;width&amp;layout=button&amp;action=like&amp;show_faces=false&amp;share=false&amp;height=35&amp;appId=1411139805828592" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:20px; width:50px " allowTransparency="true"></iframe>
22
 
23
  </div>
24
  </div>
25
+ <div class="apsc-title"><?php _e('AccessPress Twitter Feed', 'accesspress-twitter-feed'); ?></div>
26
  </div>
inc/backend/save-settings.php CHANGED
@@ -35,6 +35,6 @@ $aptf_settings = array('consumer_key' => $consumer_key,
35
  'display_follow_button'=>isset($display_follow_button)?1:0
36
  );
37
  update_option('aptf_settings', $aptf_settings);
38
- $_SESSION['aptf_msg'] = __('Settings Saved Successfully',APTF_TD);
39
  wp_redirect(admin_url().'admin.php?page=ap-twitter-feed');
40
 
35
  'display_follow_button'=>isset($display_follow_button)?1:0
36
  );
37
  update_option('aptf_settings', $aptf_settings);
38
+ $_SESSION['aptf_msg'] = __('Settings Saved Successfully','accesspress-twitter-feed');
39
  wp_redirect(admin_url().'admin.php?page=ap-twitter-feed');
40
 
inc/backend/settings.php CHANGED
@@ -42,9 +42,9 @@ $aptf_settings = $this->aptf_settings;
42
  wp_nonce_field('aptf_action_nonce', 'aptf_nonce_field');
43
  $restore_nonce = wp_create_nonce('aptf-restore-nonce');
44
  ?>
45
- <input type="submit" name="aptf_settings_submit" value="<?php _e('Save Settings', APTF_TD); ?>" class="button button-primary"/>
46
- <a href="<?php echo admin_url() . 'admin-post.php?action=aptf_restore_settings&_wpnonce=' . $restore_nonce; ?>" onclick="return confirm('<?php _e('Are you sure you want to restore default settings?', APTF_TD) ?>');"><input type="button" value="<?php _e('Restore Default Settings', APTF_TD); ?>" class="button button-primary"/></a>
47
- <a href="<?php echo admin_url() . 'admin-post.php?action=aptf_delete_cache'; ?>" onclick="return confirm('<?php _e('Are you sure you want to delete cache?', APTF_TD) ?>');"><input type="button" value="<?php _e('Delete Cache', APTF_TD); ?>" class="button button-primary"/></a>
48
  </form>
49
  </div>
50
  </div>
42
  wp_nonce_field('aptf_action_nonce', 'aptf_nonce_field');
43
  $restore_nonce = wp_create_nonce('aptf-restore-nonce');
44
  ?>
45
+ <input type="submit" name="aptf_settings_submit" value="<?php _e('Save Settings', 'accesspress-twitter-feed'); ?>" class="button button-primary"/>
46
+ <a href="<?php echo admin_url() . 'admin-post.php?action=aptf_restore_settings&_wpnonce=' . $restore_nonce; ?>" onclick="return confirm('<?php _e('Are you sure you want to restore default settings?', 'accesspress-twitter-feed') ?>');"><input type="button" value="<?php _e('Restore Default Settings', 'accesspress-twitter-feed'); ?>" class="button button-primary"/></a>
47
+ <a href="<?php echo admin_url() . 'admin-post.php?action=aptf_delete_cache'; ?>" onclick="return confirm('<?php _e('Are you sure you want to delete cache?', 'accesspress-twitter-feed') ?>');"><input type="button" value="<?php _e('Delete Cache', 'accesspress-twitter-feed'); ?>" class="button button-primary"/></a>
48
  </form>
49
  </div>
50
  </div>
inc/backend/slider-widget.php CHANGED
@@ -11,8 +11,8 @@ class APTF_Slider_Widget extends WP_Widget {
11
  function __construct() {
12
  parent::__construct(
13
  'aptf_slider_widget', // Base ID
14
- __('AccessPress Tweets Slider', APTF_TD), // Name
15
- array('description' => __('AccessPress Tweets Slider Widget', APTF_TD)) // Args
16
  );
17
  }
18
 
@@ -56,23 +56,23 @@ class APTF_Slider_Widget extends WP_Widget {
56
 
57
  ?>
58
  <p>
59
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:', APTF_TD); ?></label>
60
  <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>"/>
61
  </p>
62
  <p>
63
- <label for="<?php echo $this->get_field_id('controls'); ?>"><?php _e('Slider Controls:', APTF_TD); ?></label>
64
  <input class="widefat" id="<?php echo $this->get_field_id('controls'); ?>" name="<?php echo $this->get_field_name('controls'); ?>" type="checkbox" value="1" <?php checked($controls,true);?>/>
65
  </p>
66
  <p>
67
- <label for="<?php echo $this->get_field_id('slide_duration'); ?>"><?php _e('Slide Duration:', APTF_TD); ?></label>
68
  <input class="widefat" id="<?php echo $this->get_field_id('slide_duration'); ?>" name="<?php echo $this->get_field_name('slide_duration'); ?>" type="text" placeholder="e.g: 1000" value="<?php echo $slide_duration;?>"/>
69
  </p>
70
  <p>
71
- <label for="<?php echo $this->get_field_id('auto_slide'); ?>"><?php _e('Auto Slide:', APTF_TD); ?></label>
72
  <input class="widefat" id="<?php echo $this->get_field_id('auto_slide'); ?>" name="<?php echo $this->get_field_name('auto_slide'); ?>" type="checkbox" value="1" <?php checked($auto_slide,true);?>/>
73
  </p>
74
  <p>
75
- <label for="<?php echo $this->get_field_id('template'); ?>"><?php _e('Template:', APTF_TD); ?></label>
76
  <select class="widefat" id="<?php echo $this->get_field_id('template'); ?>" name="<?php echo $this->get_field_name('template'); ?>" >
77
  <?php for($i=1;$i<=3;$i++){
78
  ?>
@@ -82,7 +82,7 @@ class APTF_Slider_Widget extends WP_Widget {
82
  </select>
83
  </p>
84
  <p>
85
- <label for="<?php echo $this->get_field_id('follow_button'); ?>"><?php _e('Display Follow Button:', APTF_TD); ?></label>
86
  <input class="widefat" id="<?php echo $this->get_field_id('follow_button'); ?>" name="<?php echo $this->get_field_name('follow_button'); ?>" type="checkbox" value="1" <?php checked($follow_button,true);?>/>
87
  </p>
88
  <?php
11
  function __construct() {
12
  parent::__construct(
13
  'aptf_slider_widget', // Base ID
14
+ __('AccessPress Tweets Slider', 'accesspress-twitter-feed'), // Name
15
+ array('description' => __('AccessPress Tweets Slider Widget', 'accesspress-twitter-feed')) // Args
16
  );
17
  }
18
 
56
 
57
  ?>
58
  <p>
59
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:', 'accesspress-twitter-feed'); ?></label>
60
  <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>"/>
61
  </p>
62
  <p>
63
+ <label for="<?php echo $this->get_field_id('controls'); ?>"><?php _e('Slider Controls:', 'accesspress-twitter-feed'); ?></label>
64
  <input class="widefat" id="<?php echo $this->get_field_id('controls'); ?>" name="<?php echo $this->get_field_name('controls'); ?>" type="checkbox" value="1" <?php checked($controls,true);?>/>
65
  </p>
66
  <p>
67
+ <label for="<?php echo $this->get_field_id('slide_duration'); ?>"><?php _e('Slide Duration:', 'accesspress-twitter-feed'); ?></label>
68
  <input class="widefat" id="<?php echo $this->get_field_id('slide_duration'); ?>" name="<?php echo $this->get_field_name('slide_duration'); ?>" type="text" placeholder="e.g: 1000" value="<?php echo $slide_duration;?>"/>
69
  </p>
70
  <p>
71
+ <label for="<?php echo $this->get_field_id('auto_slide'); ?>"><?php _e('Auto Slide:', 'accesspress-twitter-feed'); ?></label>
72
  <input class="widefat" id="<?php echo $this->get_field_id('auto_slide'); ?>" name="<?php echo $this->get_field_name('auto_slide'); ?>" type="checkbox" value="1" <?php checked($auto_slide,true);?>/>
73
  </p>
74
  <p>
75
+ <label for="<?php echo $this->get_field_id('template'); ?>"><?php _e('Template:', 'accesspress-twitter-feed'); ?></label>
76
  <select class="widefat" id="<?php echo $this->get_field_id('template'); ?>" name="<?php echo $this->get_field_name('template'); ?>" >
77
  <?php for($i=1;$i<=3;$i++){
78
  ?>
82
  </select>
83
  </p>
84
  <p>
85
+ <label for="<?php echo $this->get_field_id('follow_button'); ?>"><?php _e('Display Follow Button:', 'accesspress-twitter-feed'); ?></label>
86
  <input class="widefat" id="<?php echo $this->get_field_id('follow_button'); ?>" name="<?php echo $this->get_field_name('follow_button'); ?>" type="checkbox" value="1" <?php checked($follow_button,true);?>/>
87
  </p>
88
  <?php
inc/backend/widget.php CHANGED
@@ -11,8 +11,8 @@ class APTF_Widget extends WP_Widget {
11
  function __construct() {
12
  parent::__construct(
13
  'aptf_widget', // Base ID
14
- __('AccessPress Twitter Feeds', APTF_TD), // Name
15
- array('description' => __('AccessPress Twitter Feed Widget', APTF_TD)) // Args
16
  );
17
  }
18
 
@@ -54,11 +54,11 @@ class APTF_Widget extends WP_Widget {
54
 
55
  ?>
56
  <p>
57
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:', APTF_TD); ?></label>
58
  <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>"/>
59
  </p>
60
  <p>
61
- <label for="<?php echo $this->get_field_id('template'); ?>"><?php _e('Template:', APTF_TD); ?></label>
62
  <select class="widefat" id="<?php echo $this->get_field_id('template'); ?>" name="<?php echo $this->get_field_name('template'); ?>" >
63
  <option value="">Default</option>
64
  <?php for($i=1;$i<=3;$i++){
@@ -69,7 +69,7 @@ class APTF_Widget extends WP_Widget {
69
  </select>
70
  </p>
71
  <p>
72
- <label for="<?php echo $this->get_field_id('follow_button'); ?>"><?php _e('Display Follow Button:', APTF_TD); ?></label>
73
  <input class="widefat" id="<?php echo $this->get_field_id('follow_button'); ?>" name="<?php echo $this->get_field_name('follow_button'); ?>" type="checkbox" value="1" <?php checked($follow_button,true);?>/>
74
  </p>
75
  <?php
11
  function __construct() {
12
  parent::__construct(
13
  'aptf_widget', // Base ID
14
+ __('AccessPress Twitter Feeds', 'accesspress-twitter-feed'), // Name
15
+ array('description' => __('AccessPress Twitter Feed Widget', 'accesspress-twitter-feed')) // Args
16
  );
17
  }
18
 
54
 
55
  ?>
56
  <p>
57
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:', 'accesspress-twitter-feed'); ?></label>
58
  <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>"/>
59
  </p>
60
  <p>
61
+ <label for="<?php echo $this->get_field_id('template'); ?>"><?php _e('Template:', 'accesspress-twitter-feed'); ?></label>
62
  <select class="widefat" id="<?php echo $this->get_field_id('template'); ?>" name="<?php echo $this->get_field_name('template'); ?>" >
63
  <option value="">Default</option>
64
  <?php for($i=1;$i<=3;$i++){
69
  </select>
70
  </p>
71
  <p>
72
+ <label for="<?php echo $this->get_field_id('follow_button'); ?>"><?php _e('Display Follow Button:', 'accesspress-twitter-feed'); ?></label>
73
  <input class="widefat" id="<?php echo $this->get_field_id('follow_button'); ?>" name="<?php echo $this->get_field_name('follow_button'); ?>" type="checkbox" value="1" <?php checked($follow_button,true);?>/>
74
  </p>
75
  <?php
inc/frontend/shortcode.php CHANGED
@@ -19,7 +19,7 @@ if(isset($atts['follow_button'])){
19
 
20
  }
21
  if(isset($tweets->errors)){
22
- $fallback_message = ($aptf_settings['fallback_message']=='')?__('Something went wrong with the twitter.',APTF_TD):$aptf_settings['fallback_message'];
23
  ?>
24
  <p><?php echo $fallback_message;?></p>
25
  <?php
19
 
20
  }
21
  if(isset($tweets->errors)){
22
+ $fallback_message = ($aptf_settings['fallback_message']=='')?__('Something went wrong with the twitter.','accesspress-twitter-feed'):$aptf_settings['fallback_message'];
23
  ?>
24
  <p><?php echo $fallback_message;?></p>
25
  <?php
inc/frontend/slider-shortcode.php CHANGED
@@ -17,7 +17,7 @@ if(isset($atts['follow_button'])){
17
  }
18
  if(isset($tweets->errors)){
19
  //$this->print_array($tweets);
20
- $fallback_message = ($aptf_settings['fallback_message']=='')?__('Something went wrong with the twitter.',APTF_TD):$aptf_settings['fallback_message'];
21
  ?>
22
  <p><?php echo $fallback_message;?></p>
23
  <?php
17
  }
18
  if(isset($tweets->errors)){
19
  //$this->print_array($tweets);
20
+ $fallback_message = ($aptf_settings['fallback_message']=='')?__('Something went wrong with the twitter.','accesspress-twitter-feed'):$aptf_settings['fallback_message'];
21
  ?>
22
  <p><?php echo $fallback_message;?></p>
23
  <?php
inc/frontend/templates/default/template-1.php CHANGED
@@ -61,7 +61,7 @@
61
  } else {
62
  ?>
63
 
64
- <p><a href="http://twitter.com/'<?php echo $username; ?> " target="_blank"><?php _e('Click here to read ' . $username . '\'S Twitter feed', APTF_TD); ?></a></p>
65
  <?php
66
  }
67
  ?>
61
  } else {
62
  ?>
63
 
64
+ <p><a href="http://twitter.com/'<?php echo $username; ?> " target="_blank"><?php _e('Click here to read ' . $username . '\'S Twitter feed', 'accesspress-twitter-feed'); ?></a></p>
65
  <?php
66
  }
67
  ?>
inc/frontend/templates/default/template-2.php CHANGED
@@ -54,7 +54,7 @@
54
  } else {
55
  ?>
56
 
57
- <p><a href="http://twitter.com/'<?php echo $username; ?> " target="_blank"><?php _e('Click here to read ' . $username . '\'S Twitter feed', APTF_TD); ?></a></p>
58
  <?php
59
  }
60
  ?>
54
  } else {
55
  ?>
56
 
57
+ <p><a href="http://twitter.com/'<?php echo $username; ?> " target="_blank"><?php _e('Click here to read ' . $username . '\'S Twitter feed', 'accesspress-twitter-feed'); ?></a></p>
58
  <?php
59
  }
60
  ?>
inc/frontend/templates/default/template-3.php CHANGED
@@ -54,7 +54,7 @@
54
  } else {
55
  ?>
56
 
57
- <p><a href="http://twitter.com/'<?php echo $username; ?> " target="_blank"><?php _e('Click here to read ' . $username . '\'S Twitter feed', APTF_TD); ?></a></p>
58
  <?php
59
  }
60
  ?>
54
  } else {
55
  ?>
56
 
57
+ <p><a href="http://twitter.com/'<?php echo $username; ?> " target="_blank"><?php _e('Click here to read ' . $username . '\'S Twitter feed', 'accesspress-twitter-feed'); ?></a></p>
58
  <?php
59
  }
60
  ?>
inc/frontend/templates/slider/template-1.php CHANGED
@@ -64,7 +64,7 @@
64
  } else {
65
  ?>
66
 
67
- <p><a href="http://twitter.com/'<?php echo $username; ?> " class="aptf-tweet-name" target="_blank"><?php _e('Click here to read ' . $username . '\'S Twitter feed', APTF_TD); ?></a></p>
68
  <?php
69
  }
70
  ?>
64
  } else {
65
  ?>
66
 
67
+ <p><a href="http://twitter.com/'<?php echo $username; ?> " class="aptf-tweet-name" target="_blank"><?php _e('Click here to read ' . $username . '\'S Twitter feed', 'accesspress-twitter-feed'); ?></a></p>
68
  <?php
69
  }
70
  ?>
inc/frontend/templates/slider/template-2.php CHANGED
@@ -63,7 +63,7 @@
63
  } else {
64
  ?>
65
 
66
- <p><a href="http://twitter.com/'<?php echo $username; ?> " class="aptf-tweet-name" target="_blank"><?php _e('Click here to read ' . $username . '\'S Twitter feed', APTF_TD); ?></a></p>
67
  <?php
68
  }
69
  ?>
63
  } else {
64
  ?>
65
 
66
+ <p><a href="http://twitter.com/'<?php echo $username; ?> " class="aptf-tweet-name" target="_blank"><?php _e('Click here to read ' . $username . '\'S Twitter feed', 'accesspress-twitter-feed'); ?></a></p>
67
  <?php
68
  }
69
  ?>
inc/frontend/templates/slider/template-3.php CHANGED
@@ -72,7 +72,7 @@
72
  } else {
73
  ?>
74
 
75
- <p><a href="http://twitter.com/'<?php echo $username; ?> " target="_blank"><?php _e('Click here to read ' . $username . '\'S Twitter feed', APTF_TD); ?></a></p>
76
  <?php
77
  }
78
  ?>
72
  } else {
73
  ?>
74
 
75
+ <p><a href="http://twitter.com/'<?php echo $username; ?> " target="_blank"><?php _e('Click here to read ' . $username . '\'S Twitter feed', 'accesspress-twitter-feed'); ?></a></p>
76
  <?php
77
  }
78
  ?>
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.3
7
- Stable tag: 1.3.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -107,6 +107,9 @@ Once you install the plugin , you can check some general documentation about how
107
 
108
 
109
  == Changelog ==
 
 
 
110
  = 1.3.2 =
111
  * Updated style for backend notes
112
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.3
7
+ Stable tag: 1.3.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
107
 
108
 
109
  == Changelog ==
110
+ = 1.3.3 =
111
+ * Updated text domain to match plugin's slug
112
+
113
  = 1.3.2 =
114
  * Updated style for backend notes
115