Easy Twitter Feed Widget Plugin - Version 0.9

Version Description

  • December 20, 2017 =

  • Update: Redirect to welcome screen upon plugin activation is dropped.

  • Update: Double slash fixed in wp_enqueue_script.

  • Update: Fixed text domain.

  • Update: POT file updated.

  • Update: Readme file updated.

Download this release

Release Info

Developer designorbital
Plugin Icon 128x128 Easy Twitter Feed Widget Plugin
Version 0.9
Comparing to
See all releases

Code changes from version 0.8 to 0.9

easy-twitter-feed-widget.php CHANGED
@@ -7,7 +7,7 @@ Author: DesignOrbital.com
7
  Author URI: https://designorbital.com
8
  Text Domain: do-etfw
9
  Domain Path: /languages/
10
- Version: 0.8
11
  License: GPL v3
12
 
13
  Easy Twitter Feed Widget Plugin
@@ -58,16 +58,6 @@ function do_etfw_load_textdomain() {
58
  }
59
  add_action( 'plugins_loaded', 'do_etfw_load_textdomain' );
60
 
61
- // Redirect to welcome screen upon plugin activation.
62
- function do_etfw_activation_redirect( $plugin ) {
63
-
64
- if ( $plugin === DO_ETFW_BASENAME ) {
65
- exit( wp_redirect( add_query_arg( array( 'page' => 'do-etfw-options' ), admin_url( 'options-general.php' ) ) ) );
66
- }
67
-
68
- }
69
- add_action( 'activated_plugin', 'do_etfw_activation_redirect' );
70
-
71
  /**
72
  * Custom functions.
73
  */
7
  Author URI: https://designorbital.com
8
  Text Domain: do-etfw
9
  Domain Path: /languages/
10
+ Version: 0.9
11
  License: GPL v3
12
 
13
  Easy Twitter Feed Widget Plugin
58
  }
59
  add_action( 'plugins_loaded', 'do_etfw_load_textdomain' );
60
 
 
 
 
 
 
 
 
 
 
 
61
  /**
62
  * Custom functions.
63
  */
inc/settings-page.php CHANGED
@@ -1,5 +1,5 @@
1
  <div class="wrap do-etfw-admin-wrapper">
2
- <h1><?php printf( '%1$s', esc_html__( 'Easy Twitter Feed Widget Plugin Settings', 'etfw' ) ); ?></h1>
3
 
4
  <div class="settings-container">
5
  <div class="settings-col settings-col-options">
@@ -10,14 +10,14 @@
10
  <?php settings_fields( 'do_etfw_options_group' ); ?>
11
 
12
  <h2 class="nav-tab-wrapper">
13
- <a class="nav-tab nav-tab-active" id="configuration-tab" href="#configuration"><?php esc_html_e( 'Configuration', 'etfw' ); ?></a>
14
  </h2>
15
 
16
  <section id="configuration" class="nav-tab-section">
17
  <?php do_settings_sections( 'do_etfw_section_config_page' ); ?>
18
  </section>
19
 
20
- <input type="submit" class="button button-primary" value="<?php esc_html_e( 'Save Changes', 'etfw' ); ?>">
21
  </form>
22
 
23
  </div><!-- .options-wrapper -->
@@ -28,15 +28,15 @@
28
 
29
  <div class="card-wrapper">
30
  <div class="card-wrapper-inside">
31
- <h2 class="title"><?php esc_html_e( 'Get 30% Discount', 'etfw' ); ?></h2>
32
  <?php
33
  printf( '<p>%1$s</p> <p><code>%2$s</code></p> <p><a href="%3$s" class="button button-primary" target="_blank">%4$s</a></p> <p><a href="%5$s" class="button" target="_blank">%6$s</a></p>',
34
- esc_html__( 'Get 30% discount on DesignOrbital premium WordPress themes by using the following discount code.', 'etfw' ),
35
- esc_html__( 'TWITTERWIDGET30', 'etfw' ),
36
  esc_url( 'https://designorbital.market/?utm_source=wporg-etfw&utm_medium=button&utm_campaign=designorbital' ),
37
- esc_html__( 'Premium WordPress Themes', 'etfw' ),
38
  esc_url( 'https://designorbital.com/free-wordpress-themes/?utm_source=wporg-etfw&utm_medium=button&utm_campaign=designorbital' ),
39
- esc_html__( 'Free WordPress Themes', 'etfw' )
40
  );
41
  ?>
42
  </div>
@@ -44,12 +44,12 @@
44
 
45
  <div class="card-wrapper">
46
  <div class="card-wrapper-inside">
47
- <h2 class="title"><?php esc_html_e( 'Rate the Plugin', 'etfw' ); ?></h2>
48
  <?php
49
  printf( '<p>%1$s</p> <p><a href="%2$s" target="_blank">%3$s</a></p>',
50
- esc_html__( 'Do you like the plugin?', 'etfw' ),
51
  esc_url( 'https://wordpress.org/support/plugin/easy-twitter-feed-widget/reviews/' ),
52
- esc_html__( 'Please rate it at wordpress.org!', 'etfw' )
53
  );
54
  ?>
55
  </div>
@@ -57,7 +57,7 @@
57
 
58
  <div class="card-wrapper">
59
  <div class="card-wrapper-inside">
60
- <h2 class="title"><?php esc_html_e( 'Support Us', 'etfw' ); ?></h2>
61
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
62
  <input type="hidden" name="cmd" value="_s-xclick">
63
  <input type="hidden" name="hosted_button_id" value="Z3LBGSQDYRCWA">
@@ -69,7 +69,7 @@
69
 
70
  <div class="card-wrapper">
71
  <div class="card-wrapper-inside">
72
- <h2 class="title"><?php esc_html_e( 'Follow Us', 'etfw' ); ?></h2>
73
  <p>
74
  <a href="https://www.facebook.com/designorbital" class="button" target="_blank"><?php echo esc_html__( 'Like Us On Facebook', 'do-etfw' ); ?></a>
75
  </p>
1
  <div class="wrap do-etfw-admin-wrapper">
2
+ <h1><?php printf( '%1$s', esc_html__( 'Easy Twitter Feed Widget Plugin Settings', 'do-etfw' ) ); ?></h1>
3
 
4
  <div class="settings-container">
5
  <div class="settings-col settings-col-options">
10
  <?php settings_fields( 'do_etfw_options_group' ); ?>
11
 
12
  <h2 class="nav-tab-wrapper">
13
+ <a class="nav-tab nav-tab-active" id="configuration-tab" href="#configuration"><?php esc_html_e( 'Configuration', 'do-etfw' ); ?></a>
14
  </h2>
15
 
16
  <section id="configuration" class="nav-tab-section">
17
  <?php do_settings_sections( 'do_etfw_section_config_page' ); ?>
18
  </section>
19
 
20
+ <input type="submit" class="button button-primary" value="<?php esc_html_e( 'Save Changes', 'do-etfw' ); ?>">
21
  </form>
22
 
23
  </div><!-- .options-wrapper -->
28
 
29
  <div class="card-wrapper">
30
  <div class="card-wrapper-inside">
31
+ <h2 class="title"><?php esc_html_e( 'Get 30% Discount', 'do-etfw' ); ?></h2>
32
  <?php
33
  printf( '<p>%1$s</p> <p><code>%2$s</code></p> <p><a href="%3$s" class="button button-primary" target="_blank">%4$s</a></p> <p><a href="%5$s" class="button" target="_blank">%6$s</a></p>',
34
+ esc_html__( 'Get 30% discount on DesignOrbital premium WordPress themes by using the following discount code.', 'do-etfw' ),
35
+ esc_html__( 'TWITTERWIDGET30', 'do-etfw' ),
36
  esc_url( 'https://designorbital.market/?utm_source=wporg-etfw&utm_medium=button&utm_campaign=designorbital' ),
37
+ esc_html__( 'Premium WordPress Themes', 'do-etfw' ),
38
  esc_url( 'https://designorbital.com/free-wordpress-themes/?utm_source=wporg-etfw&utm_medium=button&utm_campaign=designorbital' ),
39
+ esc_html__( 'Free WordPress Themes', 'do-etfw' )
40
  );
41
  ?>
42
  </div>
44
 
45
  <div class="card-wrapper">
46
  <div class="card-wrapper-inside">
47
+ <h2 class="title"><?php esc_html_e( 'Rate the Plugin', 'do-etfw' ); ?></h2>
48
  <?php
49
  printf( '<p>%1$s</p> <p><a href="%2$s" target="_blank">%3$s</a></p>',
50
+ esc_html__( 'Do you like the plugin?', 'do-etfw' ),
51
  esc_url( 'https://wordpress.org/support/plugin/easy-twitter-feed-widget/reviews/' ),
52
+ esc_html__( 'Please rate it at wordpress.org!', 'do-etfw' )
53
  );
54
  ?>
55
  </div>
57
 
58
  <div class="card-wrapper">
59
  <div class="card-wrapper-inside">
60
+ <h2 class="title"><?php esc_html_e( 'Support Us', 'do-etfw' ); ?></h2>
61
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
62
  <input type="hidden" name="cmd" value="_s-xclick">
63
  <input type="hidden" name="hosted_button_id" value="Z3LBGSQDYRCWA">
69
 
70
  <div class="card-wrapper">
71
  <div class="card-wrapper-inside">
72
+ <h2 class="title"><?php esc_html_e( 'Follow Us', 'do-etfw' ); ?></h2>
73
  <p>
74
  <a href="https://www.facebook.com/designorbital" class="button" target="_blank"><?php echo esc_html__( 'Like Us On Facebook', 'do-etfw' ); ?></a>
75
  </p>
inc/widget-twitter.php CHANGED
@@ -80,7 +80,7 @@ class DO_ETFW_Widget extends WP_Widget {
80
  public function enqueue_scripts() {
81
 
82
  if ( do_etfw_option( 'twitter_script' ) ) {
83
- wp_enqueue_script( 'do-etfw-twitter-widgets', DO_ETFW_URI . '/js/twitter-widgets.js', array( 'jquery' ), '1.0', true );
84
  }
85
 
86
  }
@@ -363,9 +363,9 @@ class DO_ETFW_Widget extends WP_Widget {
363
  <p>
364
  <?php
365
  printf( '%1$s <a href="%2$s" target="_blank">%3$s</a>',
366
- esc_html__( '30% discount on premium WordPress themes?', 'etfw' ),
367
  esc_url( add_query_arg( array( 'page' => 'do-etfw-options' ), admin_url( 'options-general.php' ) ) ),
368
- esc_html__( 'Get Discount Code', 'etfw' )
369
  );
370
  ?>
371
  </p>
@@ -373,9 +373,9 @@ class DO_ETFW_Widget extends WP_Widget {
373
  <p>
374
  <?php
375
  printf( '%1$s <a href="%2$s" target="_blank">%3$s</a>',
376
- esc_html__( 'Do you like the plugin?', 'etfw' ),
377
  esc_url( 'https://wordpress.org/support/plugin/easy-twitter-feed-widget/reviews/' ),
378
- esc_html__( 'Please rate it at wordpress.org!', 'etfw' )
379
  );
380
  ?>
381
  </p>
80
  public function enqueue_scripts() {
81
 
82
  if ( do_etfw_option( 'twitter_script' ) ) {
83
+ wp_enqueue_script( 'do-etfw-twitter-widgets', DO_ETFW_URI . 'js/twitter-widgets.js', array( 'jquery' ), '1.0', true );
84
  }
85
 
86
  }
363
  <p>
364
  <?php
365
  printf( '%1$s <a href="%2$s" target="_blank">%3$s</a>',
366
+ esc_html__( '30% discount on premium WordPress themes?', 'do-etfw' ),
367
  esc_url( add_query_arg( array( 'page' => 'do-etfw-options' ), admin_url( 'options-general.php' ) ) ),
368
+ esc_html__( 'Get Discount Code', 'do-etfw' )
369
  );
370
  ?>
371
  </p>
373
  <p>
374
  <?php
375
  printf( '%1$s <a href="%2$s" target="_blank">%3$s</a>',
376
+ esc_html__( 'Do you like the plugin?', 'do-etfw' ),
377
  esc_url( 'https://wordpress.org/support/plugin/easy-twitter-feed-widget/reviews/' ),
378
+ esc_html__( 'Please rate it at wordpress.org!', 'do-etfw' )
379
  );
380
  ?>
381
  </p>
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: designorbital
3
  License: GPLv3
4
  License URI: http://www.gnu.org/licenses/gpl.html
5
  Tags: twitter, twitter feed, tweet, twitter widget, feed, widget, twitter sidebar, social, social media, sidebar, plugin
6
- Requires at least: 4.6
7
- Tested up to: 4.8.1
8
- Stable tag: 0.8
9
 
10
  Add twitter feeds on your WordPress site by using the Easy Twitter Feed Widget plugin.
11
 
@@ -62,6 +62,14 @@ You can display tweets by using one of the following two methods.
62
 
63
  == Changelog ==
64
 
 
 
 
 
 
 
 
 
65
  = 0.8 - September 9, 2017 =
66
 
67
  * Enhancement: Settings page improvements.
3
  License: GPLv3
4
  License URI: http://www.gnu.org/licenses/gpl.html
5
  Tags: twitter, twitter feed, tweet, twitter widget, feed, widget, twitter sidebar, social, social media, sidebar, plugin
6
+ Requires at least: 4.7
7
+ Tested up to: 4.9.1
8
+ Stable tag: 0.9
9
 
10
  Add twitter feeds on your WordPress site by using the Easy Twitter Feed Widget plugin.
11
 
62
 
63
  == Changelog ==
64
 
65
+ = 0.9 - December 20, 2017 =
66
+
67
+ * Update: Redirect to welcome screen upon plugin activation is dropped.
68
+ * Update: Double slash fixed in `wp_enqueue_script`.
69
+ * Update: Fixed text domain.
70
+ * Update: POT file updated.
71
+ * Update: Readme file updated.
72
+
73
  = 0.8 - September 9, 2017 =
74
 
75
  * Enhancement: Settings page improvements.