Enjoy Instagram feed on website with WordPress Widget and Shortcode - Version 4.0.5

Version Description

  • Fix App authorization url
Download this release

Release Info

Developer mediabeta
Plugin Icon 128x128 Enjoy Instagram feed on website with WordPress Widget and Shortcode
Version 4.0.5
Comparing to
See all releases

Code changes from version 4.0.4 to 4.0.5

enjoyinstagram.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
- /*
3
- Plugin Name: Enjoy Plugin for Instagram
4
- Plugin URI: http://www.mediabeta.com/enjoy-instagram/
5
- Description: Instagram Responsive Images Gallery and Carousel, works with Shortcodes and Widgets.
6
- Version: 4.0.4
7
- Author: Mediabeta Srl
8
- Author URI: http://www.mediabeta.com/team/
9
- */
10
 
11
- ! defined( 'ENJOYINSTAGRAM_VERSION' ) && define( 'ENJOYINSTAGRAM_VERSION', '4.0.4' );
12
  ! defined( 'ENJOYINSTAGRAM_FILE' ) && define( 'ENJOYINSTAGRAM_FILE', __FILE__ );
13
  ! defined( 'ENJOYINSTAGRAM_URL' ) && define( 'ENJOYINSTAGRAM_URL', plugin_dir_url( __FILE__ ) );
14
  ! defined( 'ENJOYINSTAGRAM_DIR' ) && define( 'ENJOYINSTAGRAM_DIR', plugin_dir_path( __FILE__ ) );
@@ -24,7 +24,7 @@ register_activation_hook( __FILE__, 'enjoyinstagram_require_activation_class' );
24
  add_action( 'plugins_loaded', 'enjoyinstagram_init_plugin' );
25
  function enjoyinstagram_init_plugin(){
26
 
27
- load_plugin_textdomain( 'enjoyinstagram', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
28
 
29
  // common file
30
  require_once( 'includes/functions.enjoyinstagram.php' );
1
  <?php
2
+ /**
3
+ * Plugin Name: Enjoy Plugin for Instagram
4
+ * Description: Instagram Responsive Images Gallery and Carousel, works with Shortcodes and Widgets.
5
+ * Version: 4.0.5
6
+ * Author: Mediabeta Srl
7
+ * Text Domain: enjoy-instagram-instagram-responsive-images-gallery-and-carousel
8
+ * Author URI: http://www.mediabeta.com/team/
9
+ */
10
 
11
+ ! defined( 'ENJOYINSTAGRAM_VERSION' ) && define( 'ENJOYINSTAGRAM_VERSION', '4.0.5' );
12
  ! defined( 'ENJOYINSTAGRAM_FILE' ) && define( 'ENJOYINSTAGRAM_FILE', __FILE__ );
13
  ! defined( 'ENJOYINSTAGRAM_URL' ) && define( 'ENJOYINSTAGRAM_URL', plugin_dir_url( __FILE__ ) );
14
  ! defined( 'ENJOYINSTAGRAM_DIR' ) && define( 'ENJOYINSTAGRAM_DIR', plugin_dir_path( __FILE__ ) );
24
  add_action( 'plugins_loaded', 'enjoyinstagram_init_plugin' );
25
  function enjoyinstagram_init_plugin(){
26
 
27
+ load_plugin_textdomain( 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
28
 
29
  // common file
30
  require_once( 'includes/functions.enjoyinstagram.php' );
includes/class.enjoyinstagram-admin.php CHANGED
@@ -74,8 +74,8 @@ class EnjoyInstagram_Admin {
74
  protected function init(){
75
  // init tabs
76
  $this->_tabs = apply_filters( 'enjoyinstagram_plugin_admin_tabs', array(
77
- 'enjoyinstagram_general_settings' => __( 'Profile', 'enjoyinstagram' ),
78
- 'enjoyinstagram_advanced_settings' => __( 'Settings', 'enjoyinstagram' )
79
  ) );
80
 
81
  if( file_exists( ENJOYINSTAGRAM_DIR . 'plugin-options/options.php' ) ) {
@@ -122,8 +122,8 @@ class EnjoyInstagram_Admin {
122
  */
123
  public function add_admin_menus() {
124
  add_options_page(
125
- __( 'Enjoy Plugin for Instagram', 'enjoyinstagram' ),
126
- __( 'Enjoy Plugin for Instagram', 'enjoyinstagram' ),
127
  'manage_options',
128
  $this->_options_page,
129
  array( $this, 'output_options_page' ) );
@@ -137,9 +137,9 @@ class EnjoyInstagram_Admin {
137
  * @return string
138
  */
139
  public function settings_link( $links ){
140
- $links[] = '<a href="options-general.php?page=' .$this->_options_page.'">' . __( 'Settings', 'enjoyinstagram' ) . '</a>';
141
- $links[] = '<a href="widgets.php">' . __( 'Widgets', 'enjoyinstagram' ) . '</a>';
142
- $links[] = '<a href="http://www.mediabeta.com/enjoy-instagram/">' . __( 'Premium Version', 'enjoyinstagram' ) . '</a>';
143
 
144
  return $links;
145
  }
@@ -222,9 +222,7 @@ class EnjoyInstagram_Admin {
222
  if( ! isset( $_GET['access_token'] ) || ! isset( $_GET['page'] ) || $_GET['page'] != $this->_options_page ){
223
  return;
224
  }
225
-
226
-
227
-
228
  $user = EnjoyInstagram_Api_Connection()->get_user_info( $_GET['access_token'] );
229
  if( empty( $user ) ) {
230
  return;
@@ -277,7 +275,7 @@ class EnjoyInstagram_Admin {
277
  public function get_instagram_login_url(){
278
  $return_url = admin_url("options-general.php?page={$this->_options_page}");
279
  $state_url = admin_url("options-general.php?page-{$this->_options_page}");
280
- return "https://instagram.com/oauth/authorize/?client_id=cac0b53396ee466293d81c8fb86835fe&scope=public_content&redirect_uri=http://www.mediabetaprojects.com/put_access_token.php&response_type=token&state={$state_url}";
281
  }
282
  }
283
 
74
  protected function init(){
75
  // init tabs
76
  $this->_tabs = apply_filters( 'enjoyinstagram_plugin_admin_tabs', array(
77
+ 'enjoyinstagram_general_settings' => __( 'Profile', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ),
78
+ 'enjoyinstagram_advanced_settings' => __( 'Settings', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' )
79
  ) );
80
 
81
  if( file_exists( ENJOYINSTAGRAM_DIR . 'plugin-options/options.php' ) ) {
122
  */
123
  public function add_admin_menus() {
124
  add_options_page(
125
+ __( 'Enjoy Plugin for Instagram', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ),
126
+ __( 'Enjoy Plugin for Instagram', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ),
127
  'manage_options',
128
  $this->_options_page,
129
  array( $this, 'output_options_page' ) );
137
  * @return string
138
  */
139
  public function settings_link( $links ){
140
+ $links[] = '<a href="options-general.php?page=' .$this->_options_page.'">' . __( 'Settings', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ) . '</a>';
141
+ $links[] = '<a href="widgets.php">' . __( 'Widgets', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ) . '</a>';
142
+ $links[] = '<a href="http://www.mediabeta.com/enjoy-instagram/">' . __( 'Premium Version', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ) . '</a>';
143
 
144
  return $links;
145
  }
222
  if( ! isset( $_GET['access_token'] ) || ! isset( $_GET['page'] ) || $_GET['page'] != $this->_options_page ){
223
  return;
224
  }
225
+
 
 
226
  $user = EnjoyInstagram_Api_Connection()->get_user_info( $_GET['access_token'] );
227
  if( empty( $user ) ) {
228
  return;
275
  public function get_instagram_login_url(){
276
  $return_url = admin_url("options-general.php?page={$this->_options_page}");
277
  $state_url = admin_url("options-general.php?page-{$this->_options_page}");
278
+ return "https://instagram.com/oauth/authorize/?client_id=cac0b53396ee466293d81c8fb86835fe&scope=public_content&hl=en&redirect_uri=http://www.mediabetaprojects.com/put_access_token.php&response_type=token&state={$state_url}";
279
  }
280
  }
281
 
includes/tinymce/shortcode-tinymce-window.php CHANGED
@@ -16,7 +16,7 @@ global $wp_scripts;
16
 
17
  <html xmlns="http://www.w3.org/1999/xhtml">
18
  <head>
19
- <title><?php _e( 'EnjoyInstagram', 'enjoyinstagram' ); ?></title>
20
  <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
21
  <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
22
  <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
@@ -29,24 +29,24 @@ global $wp_scripts;
29
  <form name="enjoyinstagram" action="#">
30
  <table border="0" cellpadding="4" cellspacing="0" style="margin:0 auto;">
31
  <tr>
32
- <td colspan="2"><?php _e( 'Insert Enjoy Plugin for Instagram Shortcode', 'enjoyinstagram' ); ?></td>
33
  </tr>
34
  <tr>
35
  <td colspan="2" style="height:100px;">
36
  <input type="radio" name="newshortcode" id="id_shortcode_carousel" value="enjoyinstagram_mb" checked/>
37
- <label for="id_shortcode_carousel" ><?php _e( 'Carousel View', 'enjoyinstagram' ); ?></label>
38
  <br />
39
  <input type="radio" name="newshortcode" id="id_shortcode_grid" value="enjoyinstagram_mb_grid"/>
40
- <label for="id_shortcode_grid" ><?php _e( 'Grid View', 'enjoyinstagram' ); ?></label>
41
  </td>
42
  </tr>
43
  <tr>
44
  <td style="text-align:center;">
45
- <input type="submit" id="insert" name="insert" value="<?php _e("Insert", 'enjoyinstagram'); ?>"
46
  onClick="insertenjoyinstagramshortcode();" />
47
  </td>
48
  <td style="text-align:center;">
49
- <input type="button" id="cancel" name="cancel" value="<?php _e("Cancel", 'enjoyinstagram'); ?>"
50
  onClick="tinyMCEPopup.close();" />
51
  </td>
52
  </tr>
16
 
17
  <html xmlns="http://www.w3.org/1999/xhtml">
18
  <head>
19
+ <title><?php _e( 'EnjoyInstagram', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?></title>
20
  <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
21
  <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
22
  <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
29
  <form name="enjoyinstagram" action="#">
30
  <table border="0" cellpadding="4" cellspacing="0" style="margin:0 auto;">
31
  <tr>
32
+ <td colspan="2"><?php _e( 'Insert Enjoy Plugin for Instagram Shortcode', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?></td>
33
  </tr>
34
  <tr>
35
  <td colspan="2" style="height:100px;">
36
  <input type="radio" name="newshortcode" id="id_shortcode_carousel" value="enjoyinstagram_mb" checked/>
37
+ <label for="id_shortcode_carousel" ><?php _e( 'Carousel View', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?></label>
38
  <br />
39
  <input type="radio" name="newshortcode" id="id_shortcode_grid" value="enjoyinstagram_mb_grid"/>
40
+ <label for="id_shortcode_grid" ><?php _e( 'Grid View', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?></label>
41
  </td>
42
  </tr>
43
  <tr>
44
  <td style="text-align:center;">
45
+ <input type="submit" id="insert" name="insert" value="<?php _e("Insert", 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>"
46
  onClick="insertenjoyinstagramshortcode();" />
47
  </td>
48
  <td style="text-align:center;">
49
+ <input type="button" id="cancel" name="cancel" value="<?php _e("Cancel", 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>"
50
  onClick="tinyMCEPopup.close();" />
51
  </td>
52
  </tr>
includes/tinymce/tinymce.php CHANGED
@@ -90,7 +90,7 @@ final class tinymce_enjoyinstagram_button {
90
  */
91
  public function ajax_tinymce() {
92
  if( ! current_user_can('edit_pages') || ! current_user_can('edit_posts') ) {
93
- wp_die( __( 'You are not allowed to be here', 'enjoyinstagram' ) );
94
  }
95
 
96
  include_once( 'shortcode-tinymce-window.php');
90
  */
91
  public function ajax_tinymce() {
92
  if( ! current_user_can('edit_pages') || ! current_user_can('edit_posts') ) {
93
+ wp_die( __( 'You are not allowed to be here', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ) );
94
  }
95
 
96
  include_once( 'shortcode-tinymce-window.php');
includes/widgets/widgets.php CHANGED
@@ -17,8 +17,8 @@ class Slider_Widget extends WP_Widget {
17
  public function __construct() {
18
  parent::__construct(
19
  'Slider_Widget', // Base ID
20
- __('EnjoyInstagram - Carousel', 'enjoyinstagram'), // Name
21
- array( 'description' => __( 'EnjoyInstagram Widget for Carousel View', 'enjoyinstagram' ), ) // Args
22
  );
23
  }
24
 
@@ -51,7 +51,7 @@ class Slider_Widget extends WP_Widget {
51
  */
52
  public function form( $instance ) {
53
 
54
- $title = isset( $instance['title'] ) ? $instance['title'] : __( 'EnjoyInstagram', 'enjoyinstagram' );
55
  $instance = wp_parse_args( (array) $instance, array(
56
  'number_images_in_slide' => '4',
57
  'navigation_y_n' => 'false',
@@ -60,12 +60,12 @@ class Slider_Widget extends WP_Widget {
60
  ?>
61
 
62
  <p>
63
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _ex( 'Title:', 'option label', 'enjoyinstagram' ); ?></label>
64
  <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 ); ?>">
65
  </p>
66
  <p>
67
  <label for="<?php echo $this->get_field_id( 'number_images_in_slide' ); ?>">
68
- <?php _ex( 'Images displayed at a time', 'option label', 'enjoyinstagram' ); ?>:
69
  </label><br />
70
  <select name="<?php echo $this->get_field_name( 'number_images_in_slide' ); ?>" id="<?php echo $this->get_field_id( 'number_images_in_slide' ); ?>">
71
  <?php for ($i = 1; $i <= 10; $i++) : ?>
@@ -77,23 +77,23 @@ class Slider_Widget extends WP_Widget {
77
  </p>
78
  <p>
79
  <label for="<?php echo $this->get_field_id( 'navigation_y_n' ); ?>">
80
- <?php _ex( 'Navigation buttons', 'option label', 'enjoyinstagram' ); ?>:
81
  </label><br />
82
  <select name="<?php echo $this->get_field_name( 'navigation_y_n' ); ?>" id="<?php echo $this->get_field_id( 'navigation_y_n' ); ?>">
83
  <option value="true" <?php selected( 'true', $instance['navigation_y_n'] ); ?>>
84
- <?php _e( 'Yes', 'enjoyinstagram' ); ?>
85
  </option>
86
  <option value="false" <?php selected( 'false', $instance['navigation_y_n'] ); ?>>
87
- <?php _e( 'No', 'enjoyinstagram' ); ?>
88
  </option>
89
  </select>
90
  </p>
91
  <p>
92
- <?php _e( 'Show pics', 'enjoyinstagram' ); ?>: <br />
93
  <input type="radio" name="<?php echo $this->get_field_name( 'user_or_hashtag' ); ?>" <?php checked( 'user', $instance['user_or_hashtag'] ); ?> value="user">
94
- <?php _e( 'of Your Profile', 'enjoyinstagram' ); ?><br>
95
  <input type="radio" name="<?php echo $this->get_field_name( 'user_or_hashtag' ); ?>" <?php checked( 'hashtag', $instance['user_or_hashtag'] ); ?> value="hashtag">
96
- <?php _e( 'by Hashtag', 'enjoyinstagram' ); ?><br>
97
  </p>
98
  <?php
99
  }
17
  public function __construct() {
18
  parent::__construct(
19
  'Slider_Widget', // Base ID
20
+ __('EnjoyInstagram - Carousel', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'), // Name
21
+ array( 'description' => __( 'EnjoyInstagram Widget for Carousel View', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ), ) // Args
22
  );
23
  }
24
 
51
  */
52
  public function form( $instance ) {
53
 
54
+ $title = isset( $instance['title'] ) ? $instance['title'] : __( 'EnjoyInstagram', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' );
55
  $instance = wp_parse_args( (array) $instance, array(
56
  'number_images_in_slide' => '4',
57
  'navigation_y_n' => 'false',
60
  ?>
61
 
62
  <p>
63
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _ex( 'Title:', 'option label', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?></label>
64
  <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 ); ?>">
65
  </p>
66
  <p>
67
  <label for="<?php echo $this->get_field_id( 'number_images_in_slide' ); ?>">
68
+ <?php _ex( 'Images displayed at a time', 'option label', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?>:
69
  </label><br />
70
  <select name="<?php echo $this->get_field_name( 'number_images_in_slide' ); ?>" id="<?php echo $this->get_field_id( 'number_images_in_slide' ); ?>">
71
  <?php for ($i = 1; $i <= 10; $i++) : ?>
77
  </p>
78
  <p>
79
  <label for="<?php echo $this->get_field_id( 'navigation_y_n' ); ?>">
80
+ <?php _ex( 'Navigation buttons', 'option label', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?>:
81
  </label><br />
82
  <select name="<?php echo $this->get_field_name( 'navigation_y_n' ); ?>" id="<?php echo $this->get_field_id( 'navigation_y_n' ); ?>">
83
  <option value="true" <?php selected( 'true', $instance['navigation_y_n'] ); ?>>
84
+ <?php _e( 'Yes', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?>
85
  </option>
86
  <option value="false" <?php selected( 'false', $instance['navigation_y_n'] ); ?>>
87
+ <?php _e( 'No', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?>
88
  </option>
89
  </select>
90
  </p>
91
  <p>
92
+ <?php _e( 'Show pics', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?>: <br />
93
  <input type="radio" name="<?php echo $this->get_field_name( 'user_or_hashtag' ); ?>" <?php checked( 'user', $instance['user_or_hashtag'] ); ?> value="user">
94
+ <?php _e( 'of Your Profile', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?><br>
95
  <input type="radio" name="<?php echo $this->get_field_name( 'user_or_hashtag' ); ?>" <?php checked( 'hashtag', $instance['user_or_hashtag'] ); ?> value="hashtag">
96
+ <?php _e( 'by Hashtag', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?><br>
97
  </p>
98
  <?php
99
  }
includes/widgets/widgets_grid.php CHANGED
@@ -18,8 +18,8 @@ class Grid_Widget extends WP_Widget {
18
  public function __construct() {
19
  parent::__construct(
20
  'Grid_Widget', // Base ID
21
- __('EnjoyInstagram - Grid', 'enjoyinstagram'), // Name
22
- array( 'description' => __( 'EnjoyInstagram Widget for Grid View', 'enjoyinstagram' ), ) // Args
23
  );
24
  }
25
 
@@ -51,7 +51,7 @@ class Grid_Widget extends WP_Widget {
51
  */
52
  public function form( $instance ) {
53
 
54
- $title = isset( $instance['title'] ) ? $instance['title'] : __( 'EnjoyInstagram', 'enjoyinstagram' );
55
  $instance = wp_parse_args( (array) $instance, array(
56
  'number_cols_in_grid' => '4',
57
  'number_rows_in_grid' => '2',
@@ -60,12 +60,12 @@ class Grid_Widget extends WP_Widget {
60
 
61
  ?>
62
  <p>
63
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _ex( 'Title:', 'option label', 'enjoyinstagram' ); ?></label>
64
  <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 ); ?>">
65
  </p>
66
  <p>
67
  <label for="<?php echo $this->get_field_id( 'number_cols_in_grid' ); ?>">
68
- <?php _ex( 'Number of Columns', 'option label', 'enjoyinstagram' ); ?>:
69
  </label><br>
70
  <select name="<?php echo $this->get_field_name( 'number_cols_in_grid' ); ?>" id="<?php echo $this->get_field_id( 'number_cols_in_grid' ); ?>">
71
  <?php for ($i = 1; $i <= 10; $i++) : ?>
@@ -77,7 +77,7 @@ class Grid_Widget extends WP_Widget {
77
  </p>
78
  <p>
79
  <label for="<?php echo $this->get_field_id( 'number_rows_in_grid' ); ?>">
80
- <?php _ex( 'Number of Rows', 'option label', 'enjoyinstagram' ); ?>:
81
  </label><br>
82
  <select name="<?php echo $this->get_field_name( 'number_rows_in_grid' ); ?>" id="<?php echo $this->get_field_id( 'number_rows_in_grid' ); ?>">
83
  <?php for ($i = 1; $i <= 10; $i++) : ?>
@@ -88,11 +88,11 @@ class Grid_Widget extends WP_Widget {
88
  </select>
89
  </p>
90
  <p>
91
- <?php _e( 'Show pics', 'enjoyinstagram' ); ?>: <br />
92
  <input type="radio" name="<?php echo $this->get_field_name( 'user_or_hashtag_in_grid' ); ?>" <?php checked( 'user', $instance['user_or_hashtag_in_grid'] ); ?> value="user">
93
- <?php _e( 'of Your Profile', 'enjoyinstagram' ); ?><br>
94
  <input type="radio" name="<?php echo $this->get_field_name( 'user_or_hashtag_in_grid' ); ?>" <?php checked( 'hashtag', $instance['user_or_hashtag_in_grid'] ); ?> value="hashtag">
95
- <?php _e( 'by Hashtag', 'enjoyinstagram' ); ?><br>
96
  </p>
97
  <?php
98
  }
18
  public function __construct() {
19
  parent::__construct(
20
  'Grid_Widget', // Base ID
21
+ __('EnjoyInstagram - Grid', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'), // Name
22
+ array( 'description' => __( 'EnjoyInstagram Widget for Grid View', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ), ) // Args
23
  );
24
  }
25
 
51
  */
52
  public function form( $instance ) {
53
 
54
+ $title = isset( $instance['title'] ) ? $instance['title'] : __( 'EnjoyInstagram', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' );
55
  $instance = wp_parse_args( (array) $instance, array(
56
  'number_cols_in_grid' => '4',
57
  'number_rows_in_grid' => '2',
60
 
61
  ?>
62
  <p>
63
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _ex( 'Title:', 'option label', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?></label>
64
  <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 ); ?>">
65
  </p>
66
  <p>
67
  <label for="<?php echo $this->get_field_id( 'number_cols_in_grid' ); ?>">
68
+ <?php _ex( 'Number of Columns', 'option label', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?>:
69
  </label><br>
70
  <select name="<?php echo $this->get_field_name( 'number_cols_in_grid' ); ?>" id="<?php echo $this->get_field_id( 'number_cols_in_grid' ); ?>">
71
  <?php for ($i = 1; $i <= 10; $i++) : ?>
77
  </p>
78
  <p>
79
  <label for="<?php echo $this->get_field_id( 'number_rows_in_grid' ); ?>">
80
+ <?php _ex( 'Number of Rows', 'option label', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?>:
81
  </label><br>
82
  <select name="<?php echo $this->get_field_name( 'number_rows_in_grid' ); ?>" id="<?php echo $this->get_field_id( 'number_rows_in_grid' ); ?>">
83
  <?php for ($i = 1; $i <= 10; $i++) : ?>
88
  </select>
89
  </p>
90
  <p>
91
+ <?php _e( 'Show pics', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?>: <br />
92
  <input type="radio" name="<?php echo $this->get_field_name( 'user_or_hashtag_in_grid' ); ?>" <?php checked( 'user', $instance['user_or_hashtag_in_grid'] ); ?> value="user">
93
+ <?php _e( 'of Your Profile', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?><br>
94
  <input type="radio" name="<?php echo $this->get_field_name( 'user_or_hashtag_in_grid' ); ?>" <?php checked( 'hashtag', $instance['user_or_hashtag_in_grid'] ); ?> value="hashtag">
95
+ <?php _e( 'by Hashtag', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?><br>
96
  </p>
97
  <?php
98
  }
languages/enjoy-instagram-instagram-responsive-images-gallery-and-carousel-es_ES.mo ADDED
Binary file
languages/enjoy-instagram-instagram-responsive-images-gallery-and-carousel-es_ES.po ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Enjoy Instagram Premium\n"
4
+ "POT-Creation-Date: 2019-02-22 18:56+0100\n"
5
+ "PO-Revision-Date: 2019-02-22 18:56+0100\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "Language: es\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 2.1.1\n"
13
+ "X-Poedit-Basepath: ..\n"
14
+ "Plural-Forms: nplurals=2; plural=n!=1;\n"
15
+ "X-Poedit-KeywordsList: _e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
16
+ "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;__\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+ "X-Poedit-SearchPath-0: .\n"
19
+
20
+ #: includes/class.enjoyinstagram-admin.php:77
21
+ msgid "Profile"
22
+ msgstr "Perfil"
23
+
24
+ #: includes/class.enjoyinstagram-admin.php:78
25
+ #: includes/class.enjoyinstagram-admin.php:140
26
+ msgid "Settings"
27
+ msgstr "Ajustes"
28
+
29
+ #: includes/class.enjoyinstagram-admin.php:125
30
+ #: includes/class.enjoyinstagram-admin.php:126
31
+ msgid "Enjoy Plugin for Instagram"
32
+ msgstr "Enjoy Plugin for Instagram"
33
+
34
+ #: includes/class.enjoyinstagram-admin.php:141
35
+ msgid "Widgets"
36
+ msgstr "Widgets"
37
+
38
+ #: includes/class.enjoyinstagram-admin.php:142
39
+ msgid "Premium Version"
40
+ msgstr "Versión premium"
41
+
42
+ #: includes/tinymce/shortcode-tinymce-window.php:19
43
+ #: includes/widgets/widgets.php:54 includes/widgets/widgets_grid.php:54
44
+ msgid "EnjoyInstagram"
45
+ msgstr "EnjoyInstagram"
46
+
47
+ #: includes/tinymce/shortcode-tinymce-window.php:32
48
+ msgid "Insert Enjoy Plugin for Instagram Shortcode"
49
+ msgstr "Insertar Enjoy Plugin for Instagram Shortcode"
50
+
51
+ #: includes/tinymce/shortcode-tinymce-window.php:37
52
+ #: templates/admin/enjoyinstagram-advanced-settings.php:187
53
+ #: templates/admin/enjoyinstagram-general-settings.php:42
54
+ msgid "Carousel View"
55
+ msgstr "Vista Carrusel"
56
+
57
+ #: includes/tinymce/shortcode-tinymce-window.php:40
58
+ #: templates/admin/enjoyinstagram-advanced-settings.php:188
59
+ #: templates/admin/enjoyinstagram-general-settings.php:43
60
+ msgid "Grid View"
61
+ msgstr "Vista Cuadrícula"
62
+
63
+ #: includes/tinymce/shortcode-tinymce-window.php:45
64
+ msgid "Insert"
65
+ msgstr "Insertar"
66
+
67
+ #: includes/tinymce/shortcode-tinymce-window.php:49
68
+ msgid "Cancel"
69
+ msgstr "Cancelar"
70
+
71
+ #: includes/tinymce/tinymce.php:93
72
+ msgid "You are not allowed to be here"
73
+ msgstr "No se te permite estar aquí"
74
+
75
+ #: includes/widgets/widgets.php:20
76
+ msgid "EnjoyInstagram - Carousel"
77
+ msgstr "EnjoyInstagram - Carrusel"
78
+
79
+ #: includes/widgets/widgets.php:21
80
+ msgid "EnjoyInstagram Widget for Carousel View"
81
+ msgstr "Widget EnjoyInstagram para Vista de carrusel"
82
+
83
+ #: includes/widgets/widgets.php:63 includes/widgets/widgets_grid.php:63
84
+ msgctxt "option label"
85
+ msgid "Title:"
86
+ msgstr "Título:"
87
+
88
+ #: includes/widgets/widgets.php:68
89
+ #: templates/admin/enjoyinstagram-advanced-settings.php:87
90
+ msgctxt "option label"
91
+ msgid "Images displayed at a time"
92
+ msgstr "Imágenes mostradas a la vez"
93
+
94
+ #: includes/widgets/widgets.php:80
95
+ #: templates/admin/enjoyinstagram-advanced-settings.php:104
96
+ msgctxt "option label"
97
+ msgid "Navigation buttons"
98
+ msgstr "Botones de navegacion"
99
+
100
+ #: includes/widgets/widgets.php:84
101
+ #: templates/admin/enjoyinstagram-advanced-settings.php:111
102
+ msgid "Yes"
103
+ msgstr "Sí"
104
+
105
+ #: includes/widgets/widgets.php:87
106
+ #: templates/admin/enjoyinstagram-advanced-settings.php:114
107
+ msgid "No"
108
+ msgstr "No"
109
+
110
+ #: includes/widgets/widgets.php:92 includes/widgets/widgets_grid.php:91
111
+ #: templates/admin/enjoyinstagram-advanced-settings.php:40
112
+ msgid "Show pics"
113
+ msgstr "Mostrar fotos"
114
+
115
+ #: includes/widgets/widgets.php:94 includes/widgets/widgets_grid.php:93
116
+ msgid "of Your Profile"
117
+ msgstr "de Tu Perfil"
118
+
119
+ #: includes/widgets/widgets.php:96 includes/widgets/widgets_grid.php:95
120
+ msgid "by Hashtag"
121
+ msgstr "por Hashtag"
122
+
123
+ #: includes/widgets/widgets_grid.php:21
124
+ msgid "EnjoyInstagram - Grid"
125
+ msgstr "EnjoyInstagram - Cuadrícula"
126
+
127
+ #: includes/widgets/widgets_grid.php:22
128
+ msgid "EnjoyInstagram Widget for Grid View"
129
+ msgstr "Widget EnjoyInstagram para Vista en cuadrícula"
130
+
131
+ #: includes/widgets/widgets_grid.php:68
132
+ #: templates/admin/enjoyinstagram-advanced-settings.php:137
133
+ msgctxt "option label"
134
+ msgid "Number of Columns"
135
+ msgstr "Número de columnas"
136
+
137
+ #: includes/widgets/widgets_grid.php:80
138
+ #: templates/admin/enjoyinstagram-advanced-settings.php:154
139
+ msgctxt "option label"
140
+ msgid "Number of Rows"
141
+ msgstr "Número de filas"
142
+
143
+ #: templates/admin/enjoyinstagram-advanced-settings.php:34
144
+ msgid "Inclusion mode"
145
+ msgstr "Modo de inclusión"
146
+
147
+ #: templates/admin/enjoyinstagram-advanced-settings.php:46
148
+ msgctxt "option label"
149
+ msgid "of Your Profile"
150
+ msgstr "de Tu Perfil"
151
+
152
+ #: templates/admin/enjoyinstagram-advanced-settings.php:50
153
+ msgctxt "option label"
154
+ msgid "by Hashtag"
155
+ msgstr "por Hashtag"
156
+
157
+ #: templates/admin/enjoyinstagram-advanced-settings.php:64
158
+ msgctxt "option description"
159
+ msgid "insert a hashtag without '#'"
160
+ msgstr "inserta un hashtag sin '#'"
161
+
162
+ #: templates/admin/enjoyinstagram-advanced-settings.php:80
163
+ msgid "Carousel settings"
164
+ msgstr "Configuraciones de carrusel"
165
+
166
+ #: templates/admin/enjoyinstagram-advanced-settings.php:130
167
+ msgid "Grid view settings"
168
+ msgstr "Configuración de vista de cuadrícula"
169
+
170
+ #: templates/admin/enjoyinstagram-advanced-settings.php:173
171
+ msgid "<strong>Free version</strong>: Only 20 images allowed."
172
+ msgstr "<strong>Versión gratuita </strong>: solo se permiten 20 imágenes."
173
+
174
+ #: templates/admin/enjoyinstagram-advanced-settings.php:177
175
+ msgid "Save Settings"
176
+ msgstr "Guardar ajustes"
177
+
178
+ #: templates/admin/enjoyinstagram-advanced-settings.php:186
179
+ #: templates/admin/enjoyinstagram-general-settings.php:41
180
+ msgid "Shortocodes to use"
181
+ msgstr "Shortcode para usar"
182
+
183
+ #: templates/admin/enjoyinstagram-general-settings.php:14
184
+ msgid "Your Instagram Profile"
185
+ msgstr "Tu perfil de Instagram"
186
+
187
+ #: templates/admin/enjoyinstagram-general-settings.php:22
188
+ msgid "Unlink Profile"
189
+ msgstr "Desvincular perfil"
190
+
191
+ #: templates/admin/enjoyinstagram-general-settings.php:30
192
+ #, php-format
193
+ msgid "Customize the plugin with our <a href=\"%s\">settings</a> tab."
194
+ msgstr ""
195
+ "Personalice el complemento con nuestra <a href=\"%s\"> configuración </a> "
196
+ "tab."
197
+
198
+ #: templates/admin/enjoyinstagram-general-settings.php:49
199
+ #, php-format
200
+ msgid ""
201
+ "Thank you for you choice! <strong>Enjoy Plugin for Instagram - Responsive "
202
+ "gallery</strong> is a plugin lovingly developed for you by <a href=\"%s\" "
203
+ "target=\"_blank\"> Mediabeta</a>."
204
+ msgstr ""
205
+ "Gracias por tu elección! <strong>Enjoy Plugin for Instagram - Responsive "
206
+ "gallery</strong> es un complemento desarrollado con mucho cariño por <a href="
207
+ "\"%s\" target=\"_blank\"> Mediabeta</a>."
208
+
209
+ #: templates/admin/enjoyinstagram-general-settings.php:52
210
+ #, php-format
211
+ msgid ""
212
+ "By using this plugin, you are agreeing to the <a href=\"%s\" target=\"_blank"
213
+ "\">Instagram API Terms of Use</a>."
214
+ msgstr ""
215
+ "Al usar este complemento, usted acepta los <a href=\"%s\" target=\"_blank"
216
+ "\">Términos de uso de la API de Instagram </a>."
217
+
218
+ #: templates/admin/enjoyinstagram-general-settings.php:56
219
+ msgid "Connect your Account"
220
+ msgstr "Conecte su cuenta"
221
+
222
+ #: templates/admin/settings.php:40
223
+ msgid "Buy me a coffee!"
224
+ msgstr "¡Ofréceme un café!"
225
+
226
+ #: templates/admin/settings.php:41
227
+ msgid ""
228
+ "If you liked our work please consider to make a kind donation through Paypal."
229
+ msgstr ""
230
+ "Si le gustó nuestro trabajo, por favor considere hacer una donación amable a "
231
+ "través de Paypal."
232
+
233
+ #: templates/admin/settings.php:56
234
+ #, php-format
235
+ msgid ""
236
+ "Discover interesting OFFERS and UPDATES for <a href=\"%s\"> Premium Version</"
237
+ "a> !"
238
+ msgstr ""
239
+ "¡Descubra las OFERTAS y ACTUALIZACIONES interesantes para <a href=\"%s"
240
+ "\">Versión Premium</a> !"
241
+
242
+ #: templates/admin/settings.php:60
243
+ #, php-format
244
+ msgid ""
245
+ "Visit Now <a href=\"%s\">ENJOY INSTAGRAM PREMIUM</a> to verify if a Coupon-"
246
+ "Code is ready for you!"
247
+ msgstr ""
248
+ "Visite ahora<a href=\"%s\">ENJOY INSTAGRAM PREMIUM</a> para verificar si hay "
249
+ "un Código de cupón listo para usted!"
languages/{enjoyinstagram.pot → enjoy-instagram-instagram-responsive-images-gallery-and-carousel.pot} RENAMED
File without changes
readme.txt CHANGED
@@ -1,21 +1,21 @@
1
- === Enjoy Instagram feed on website with WordPress Widget and Shortcode ===
2
  Contributors: mediabeta
3
  Donate link: https://www.google.com/url?q=https%3A%2F%2Fwww.paypal.com%2Fcgi-bin%2Fwebscr%3Fcmd%3D_s-xclick%26hosted_button_id%3D8MXZ37DWHAX46&sa=D&sntz=1&usg=AFQjCNFHixLdowdc2AAEXDYmM9tQBl-TXQ
4
- Tags: Instagram, Instagram feed, Instagram grid, Instagram carousel, Widget Instagram, Embed Instagram, Embed Instagram feed, Instagram feed on website, responsive carousel, WordPress carousel, Instagram gallery, Instagram WordPress, Instagram pictures
5
- Requires at least: 3.0.1
6
- Tested up to: 5.0
7
- Version: 4.0.4
8
- Stable tag: 4.0.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
12
- Instagram feed on website by hashtag and profile with shortcodes on posts, pages. Instagram widgets on sidebar.
13
 
14
  == Description ==
15
 
16
  = Enjoy Instagram allows to display Instagram feed based on hashtag and public Instagram account with carousel and grid view. =
17
 
18
- Only one plugin to publish, with shortcode and widget, Instagram pictures and Instagram videos in your pages, posts and sidebars.
19
  Each Instagram photo can be shown in Carousel and Grid mode with Lightbox effect.
20
  Enjoy Instagram is responsive and optimized for mobile devices.
21
 
@@ -27,12 +27,13 @@ Once you have installed our plugin Enjoy Instagram, thanks to the presence of En
27
 
28
  = Enjoy Instagram Basic Features =
29
 
30
- * Hashtag-based Instagram feed to show pictures by Instagram hashtag
31
- * Profile-based Instagram feed to show pictures by Instagram profiles
32
  * Instagram video visualization
 
33
  * Instagram Carousel feed and Instagram Grid feed to add with Shortcode
34
  * Shortcode button in the editor page and post
35
- * Widget for sidebars to publish Instagram feed with carousel and grid visualization
36
 
37
  * Pictures Transition for carousel: one picture / more pictures at a time
38
  * Option for activating Navigation in carousel view (yes/no)
@@ -87,6 +88,13 @@ For Lightbox you can set:
87
  * to Show Likes Count
88
  * to Show author
89
 
 
 
 
 
 
 
 
90
  = For Instagram Carousel feed view you can set: =
91
  * images displayed at a time
92
  * animation in / animation out
@@ -192,6 +200,8 @@ In the Setting section yon can customize grid and/or Carousel view
192
 
193
  == Changelog ==
194
 
 
 
195
  = 4.0.4 =
196
  * Fix carousel auto play
197
  = 4.0.3 =
1
+ === Enjoy Instagram feed with Widget and Shortcode on Wordpress website ===
2
  Contributors: mediabeta
3
  Donate link: https://www.google.com/url?q=https%3A%2F%2Fwww.paypal.com%2Fcgi-bin%2Fwebscr%3Fcmd%3D_s-xclick%26hosted_button_id%3D8MXZ37DWHAX46&sa=D&sntz=1&usg=AFQjCNFHixLdowdc2AAEXDYmM9tQBl-TXQ
4
+ Tags: Instagram, Instagram feed, Instagram Widget, Instagram grid, Instagram carousel, Embed Instagram, Embed Instagram feed, Instagram feed on website, responsive carousel, WordPress carousel, Instagram gallery, Instagram WordPress, Instagram pictures
5
+ Requires at least: 4.0
6
+ Tested up to: 5.1
7
+ Version: 4.0.5
8
+ Stable tag: 4.0.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
12
+ Instagram feed on website by hashtag and profile. Instagram widget and shortcodes on posts, pages, sidebar.
13
 
14
  == Description ==
15
 
16
  = Enjoy Instagram allows to display Instagram feed based on hashtag and public Instagram account with carousel and grid view. =
17
 
18
+ Only one plugin to publish, with widget and shortcode, Instagram pictures and Instagram videos in your pages, posts and sidebars.
19
  Each Instagram photo can be shown in Carousel and Grid mode with Lightbox effect.
20
  Enjoy Instagram is responsive and optimized for mobile devices.
21
 
27
 
28
  = Enjoy Instagram Basic Features =
29
 
30
+ * Hashtag-based Instagram feed to show photos by Instagram hashtag
31
+ * Profile-based Instagram feed to show photos by Instagram profiles
32
  * Instagram video visualization
33
+ * Instagram Widget for sidebars to publish Instagram feed with carousel and grid visualization
34
  * Instagram Carousel feed and Instagram Grid feed to add with Shortcode
35
  * Shortcode button in the editor page and post
36
+
37
 
38
  * Pictures Transition for carousel: one picture / more pictures at a time
39
  * Option for activating Navigation in carousel view (yes/no)
88
  * to Show Likes Count
89
  * to Show author
90
 
91
+ <strong>Instagram Widget feature</strong>
92
+ Instagram Widget is one feature of Enjoy Instagram plugin for WordPress.
93
+ Once you installed it, you will be able to use Carousel and Grid widget in the dedicated Section.
94
+
95
+ You will have only to drag the widget “Enjoy Instagram” in the sidebar you want to customize. To arrange the Widget within the Sidebar, click, drag and drop the widget in the order you want.
96
+ [DEMO for Instagram Widget on website WordPress](https://www.mediabetaprojects.com/enjoy-instagram-premium/widget-instagram-on-your-website-how-to/)
97
+
98
  = For Instagram Carousel feed view you can set: =
99
  * images displayed at a time
100
  * animation in / animation out
200
 
201
  == Changelog ==
202
 
203
+ = 4.0.5 =
204
+ * Fix App authorization url
205
  = 4.0.4 =
206
  * Fix carousel auto play
207
  = 4.0.3 =
templates/admin/enjoyinstagram-advanced-settings.php CHANGED
@@ -31,23 +31,23 @@ if (!defined('ABSPATH')) {
31
  <tr valign="top">
32
  <th scope="row" style="align:left;">
33
  <span class="highlighted">
34
- <?php _e('Inclusion mode', 'enjoyinstagram'); ?>:
35
  </span>
36
  </th>
37
  <td>
38
  <div class="ei_block">
39
  <div class="ei_settings_float_block">
40
- <?php _e('Show pics', 'enjoyinstagram'); ?>:
41
  </div>
42
  <div class="ei_settings_float_block">
43
  <input type="radio"
44
  name="enjoyinstagram_user_or_hashtag" <?php checked('user', get_option('enjoyinstagram_user_or_hashtag', 'user')) ?>
45
  value="user">
46
- <?php _ex('of Your Profile', 'option label', 'enjoyinstagram'); ?><br/><br/>
47
  <input type="radio"
48
  name="enjoyinstagram_user_or_hashtag" <?php checked('hashtag', get_option('enjoyinstagram_user_or_hashtag', 'user')) ?>
49
  value="hashtag">
50
- <?php _ex('by Hashtag', 'option label', 'enjoyinstagram'); ?><br/>
51
  </div>
52
  <div class="ei_settings_float_block">
53
  <div id="enjoyinstagram_user_or_hashtag_user"
@@ -61,7 +61,7 @@ if (!defined('ABSPATH')) {
61
  #<input type="text" id="enjoyinstagram_hashtag" required
62
  value="<?php echo get_option('enjoyinstagram_hashtag'); ?>"
63
  name="enjoyinstagram_hashtag"/>
64
- <span class="description"><?php _ex("insert a hashtag without '#'", 'option description', 'enjoyinstagram'); ?></span>
65
  </div>
66
  </div>
67
  </div>
@@ -77,14 +77,14 @@ if (!defined('ABSPATH')) {
77
  <tr valign="top">
78
  <th scope="row" style="align:left;">
79
  <span class="highlighted">
80
- <?php _e('Carousel settings', 'enjoyinstagram'); ?>:
81
  </span>
82
  </th>
83
  <td>
84
  <div class="ei_block">
85
  <div class="ei_settings_float_block ei_fixed">
86
  <label for="enjoyinstagram_carousel_items_number">
87
- <?php _ex('Images displayed at a time', 'option label', 'enjoyinstagram'); ?>:
88
  </label>
89
  </div>
90
  <div class="ei_settings_float_block">
@@ -101,17 +101,17 @@ if (!defined('ABSPATH')) {
101
  <div class="ei_block">
102
  <div class="ei_settings_float_block ei_fixed">
103
  <label for="enjoyinstagram_carousel_navigation">
104
- <?php _ex('Navigation buttons', 'option label', 'enjoyinstagram'); ?>:
105
  </label>
106
  </div>
107
  <div class="ei_settings_float_block">
108
  <select name="enjoyinstagram_carousel_navigation" class="ei_sel"
109
  id="enjoyinstagram_carousel_navigation">
110
  <option value="true" <?php selected('true', get_option('enjoyinstagram_carousel_navigation', 'false')); ?>>
111
- <?php _e('Yes', 'enjoyinstagram'); ?>
112
  </option>
113
  <option value="false" <?php selected('false', get_option('enjoyinstagram_carousel_navigation', 'false')); ?>>
114
- <?php _e('No', 'enjoyinstagram'); ?>
115
  </option>
116
  </select>
117
  </div>
@@ -127,14 +127,14 @@ if (!defined('ABSPATH')) {
127
  <tr valign="top">
128
  <th scope="row" style="align:left;">
129
  <span class="highlighted">
130
- <?php _e('Grid view settings', 'enjoyinstagram'); ?>:
131
  </span>
132
  </th>
133
  <td>
134
  <div class="ei_block">
135
  <div class="ei_settings_float_block ei_fixed">
136
  <label for="enjoyinstagram_grid_cols">
137
- <?php _ex('Number of Columns', 'option label', 'enjoyinstagram'); ?>:
138
  </label>
139
  </div>
140
  <div class="ei_settings_float_block">
@@ -151,7 +151,7 @@ if (!defined('ABSPATH')) {
151
  <div class="ei_block">
152
  <div class="ei_settings_float_block ei_fixed">
153
  <label for="enjoyinstagram_grid_rows">
154
- <?php _ex('Number of Rows', 'option label', 'enjoyinstagram'); ?>:
155
  </label>
156
  </div>
157
  <div class="ei_settings_float_block">
@@ -170,11 +170,11 @@ if (!defined('ABSPATH')) {
170
  </table>
171
  <hr/>
172
  <p>
173
- <?php _e('<strong>Free version</strong>: Only 20 images allowed.', 'enjoyinstagram'); ?>
174
  </p>
175
  <input type="submit" class="button-primary" id="button_enjoyinstagram_advanced"
176
  name="button_enjoyinstagram_advanced"
177
- value="<?php _e('Save Settings', 'enjoyinstagram'); ?>">
178
  </form>
179
  <div class="wrap" style="
180
  float: left;
@@ -183,8 +183,8 @@ if (!defined('ABSPATH')) {
183
  padding: 20px;
184
  margin-top: 20px;
185
  border: 2px solid green;">
186
- <h3><?php _e('Shortocodes to use', 'enjoyinstagram'); ?>:</h3>
187
- <b>[enjoyinstagram_mb]</b> -> <?php _e('Carousel View', 'enjoyinstagram'); ?><br/>
188
- <b>[enjoyinstagram_mb_grid]</b> -> <?php _e('Grid View', 'enjoyinstagram'); ?>
189
  </div>
190
 
31
  <tr valign="top">
32
  <th scope="row" style="align:left;">
33
  <span class="highlighted">
34
+ <?php _e('Inclusion mode', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>:
35
  </span>
36
  </th>
37
  <td>
38
  <div class="ei_block">
39
  <div class="ei_settings_float_block">
40
+ <?php _e('Show pics', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>:
41
  </div>
42
  <div class="ei_settings_float_block">
43
  <input type="radio"
44
  name="enjoyinstagram_user_or_hashtag" <?php checked('user', get_option('enjoyinstagram_user_or_hashtag', 'user')) ?>
45
  value="user">
46
+ <?php _ex('of Your Profile', 'option label', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?><br/><br/>
47
  <input type="radio"
48
  name="enjoyinstagram_user_or_hashtag" <?php checked('hashtag', get_option('enjoyinstagram_user_or_hashtag', 'user')) ?>
49
  value="hashtag">
50
+ <?php _ex('by Hashtag', 'option label', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?><br/>
51
  </div>
52
  <div class="ei_settings_float_block">
53
  <div id="enjoyinstagram_user_or_hashtag_user"
61
  #<input type="text" id="enjoyinstagram_hashtag" required
62
  value="<?php echo get_option('enjoyinstagram_hashtag'); ?>"
63
  name="enjoyinstagram_hashtag"/>
64
+ <span class="description"><?php _ex("insert a hashtag without '#'", 'option description', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?></span>
65
  </div>
66
  </div>
67
  </div>
77
  <tr valign="top">
78
  <th scope="row" style="align:left;">
79
  <span class="highlighted">
80
+ <?php _e('Carousel settings', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>:
81
  </span>
82
  </th>
83
  <td>
84
  <div class="ei_block">
85
  <div class="ei_settings_float_block ei_fixed">
86
  <label for="enjoyinstagram_carousel_items_number">
87
+ <?php _ex('Images displayed at a time', 'option label', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>:
88
  </label>
89
  </div>
90
  <div class="ei_settings_float_block">
101
  <div class="ei_block">
102
  <div class="ei_settings_float_block ei_fixed">
103
  <label for="enjoyinstagram_carousel_navigation">
104
+ <?php _ex('Navigation buttons', 'option label', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>:
105
  </label>
106
  </div>
107
  <div class="ei_settings_float_block">
108
  <select name="enjoyinstagram_carousel_navigation" class="ei_sel"
109
  id="enjoyinstagram_carousel_navigation">
110
  <option value="true" <?php selected('true', get_option('enjoyinstagram_carousel_navigation', 'false')); ?>>
111
+ <?php _e('Yes', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>
112
  </option>
113
  <option value="false" <?php selected('false', get_option('enjoyinstagram_carousel_navigation', 'false')); ?>>
114
+ <?php _e('No', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>
115
  </option>
116
  </select>
117
  </div>
127
  <tr valign="top">
128
  <th scope="row" style="align:left;">
129
  <span class="highlighted">
130
+ <?php _e('Grid view settings', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>:
131
  </span>
132
  </th>
133
  <td>
134
  <div class="ei_block">
135
  <div class="ei_settings_float_block ei_fixed">
136
  <label for="enjoyinstagram_grid_cols">
137
+ <?php _ex('Number of Columns', 'option label', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>:
138
  </label>
139
  </div>
140
  <div class="ei_settings_float_block">
151
  <div class="ei_block">
152
  <div class="ei_settings_float_block ei_fixed">
153
  <label for="enjoyinstagram_grid_rows">
154
+ <?php _ex('Number of Rows', 'option label', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>:
155
  </label>
156
  </div>
157
  <div class="ei_settings_float_block">
170
  </table>
171
  <hr/>
172
  <p>
173
+ <?php _e('<strong>Free version</strong>: Only 20 images allowed.', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>
174
  </p>
175
  <input type="submit" class="button-primary" id="button_enjoyinstagram_advanced"
176
  name="button_enjoyinstagram_advanced"
177
+ value="<?php _e('Save Settings', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>">
178
  </form>
179
  <div class="wrap" style="
180
  float: left;
183
  padding: 20px;
184
  margin-top: 20px;
185
  border: 2px solid green;">
186
+ <h3><?php _e('Shortocodes to use', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>:</h3>
187
+ <b>[enjoyinstagram_mb]</b> -> <?php _e('Carousel View', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?><br/>
188
+ <b>[enjoyinstagram_mb_grid]</b> -> <?php _e('Grid View', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>
189
  </div>
190
 
templates/admin/enjoyinstagram-general-settings.php CHANGED
@@ -11,7 +11,7 @@ $user_token = get_option('enjoyinstagram_access_token', '');
11
 
12
  if ($user_token) : ?>
13
  <div>
14
- <h2><?php _e('Your Instagram Profile', 'enjoyinstagram'); ?></h2>
15
  <hr/>
16
 
17
  <div id="enjoy_user_profile">
@@ -19,7 +19,7 @@ if ($user_token) : ?>
19
  <form method="post">
20
  <input type="hidden" name="action" value="enjoyinstagram_remove_user">
21
  <input type="submit" id="button_logout"
22
- value="<?php _e( 'Unlink Profile', 'enjoyinstagram' ); ?>" class="button-primary ei_top"/>
23
  </form>
24
  </div>
25
 
@@ -27,7 +27,7 @@ if ($user_token) : ?>
27
  <h3><?php echo get_option('enjoyinstagram_user_username'); ?></h3>
28
  <p><i><?php echo get_option('enjoyinstagram_user_bio'); ?></i></p>
29
  <hr/>
30
- <?php printf(__('Customize the plugin with our <a href="%s">settings</a> tab.', 'enjoyinstagram'), EnjoyInstagram_Admin()->get_tab_url('enjoyinstagram_advanced_settings')); ?>
31
  <hr/>
32
  </div>
33
  </div>
@@ -38,22 +38,22 @@ if ($user_token) : ?>
38
  padding: 20px;
39
  margin-top: 20px;
40
  border: 2px solid green;">
41
- <h3><?php _e('Shortocodes to use', 'enjoyinstagram'); ?>:</h3>
42
- <b>[enjoyinstagram_mb]</b> -> <?php _e('Carousel View', 'enjoyinstagram'); ?><br/>
43
- <b>[enjoyinstagram_mb_grid]</b> -> <?php _e('Grid View', 'enjoyinstagram'); ?>
44
  </div>
45
 
46
  <?php else : ?>
47
 
48
  <p style="font-size:14px;">
49
- <?php printf(__('Thank you for you choice! <strong>Enjoy Plugin for Instagram - Responsive gallery</strong> is a plugin lovingly developed for you by <a href="%s" target="_blank"> Mediabeta</a>.', 'enjoyinstagram'), 'http://www.mediabeta.com'); ?>
50
  </p>
51
  <p style="font-size:14px;">
52
- <?php printf(__('By using this plugin, you are agreeing to the <a href="%s" target="_blank">Instagram API Terms of Use</a>.', 'enjoyinstagram'), 'http://instagram.com/about/legal/terms/api/'); ?>
53
  </p>
54
 
55
  <a href="<?php echo EnjoyInstagram_Admin()->get_instagram_login_url() ?>" class="button-primary">
56
- <?php _e('Connect your Account', 'enjoyinstagram'); ?>
57
  </a>
58
 
59
  <?php endif; ?>
11
 
12
  if ($user_token) : ?>
13
  <div>
14
+ <h2><?php _e('Your Instagram Profile', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?></h2>
15
  <hr/>
16
 
17
  <div id="enjoy_user_profile">
19
  <form method="post">
20
  <input type="hidden" name="action" value="enjoyinstagram_remove_user">
21
  <input type="submit" id="button_logout"
22
+ value="<?php _e( 'Unlink Profile', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?>" class="button-primary ei_top"/>
23
  </form>
24
  </div>
25
 
27
  <h3><?php echo get_option('enjoyinstagram_user_username'); ?></h3>
28
  <p><i><?php echo get_option('enjoyinstagram_user_bio'); ?></i></p>
29
  <hr/>
30
+ <?php printf(__('Customize the plugin with our <a href="%s">settings</a> tab.', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'), EnjoyInstagram_Admin()->get_tab_url('enjoyinstagram_advanced_settings')); ?>
31
  <hr/>
32
  </div>
33
  </div>
38
  padding: 20px;
39
  margin-top: 20px;
40
  border: 2px solid green;">
41
+ <h3><?php _e('Shortocodes to use', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>:</h3>
42
+ <b>[enjoyinstagram_mb]</b> -> <?php _e('Carousel View', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?><br/>
43
+ <b>[enjoyinstagram_mb_grid]</b> -> <?php _e('Grid View', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>
44
  </div>
45
 
46
  <?php else : ?>
47
 
48
  <p style="font-size:14px;">
49
+ <?php printf(__('Thank you for you choice! <strong>Enjoy Plugin for Instagram - Responsive gallery</strong> is a plugin lovingly developed for you by <a href="%s" target="_blank"> Mediabeta</a>.', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'), 'http://www.mediabeta.com'); ?>
50
  </p>
51
  <p style="font-size:14px;">
52
+ <?php printf(__('By using this plugin, you are agreeing to the <a href="%s" target="_blank">Instagram API Terms of Use</a>.', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'), 'http://instagram.com/about/legal/terms/api/'); ?>
53
  </p>
54
 
55
  <a href="<?php echo EnjoyInstagram_Admin()->get_instagram_login_url() ?>" class="button-primary">
56
+ <?php _e('Connect your Account', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel'); ?>
57
  </a>
58
 
59
  <?php endif; ?>
templates/admin/settings.php CHANGED
@@ -37,8 +37,8 @@ if( ! defined( 'ABSPATH' ) ) {
37
 
38
  <div id="buy_me_a_coffee" style="background:url(<?php echo ENJOYINSTAGRAM_ASSETS_URL . '/images/buymeacoffee.png'; ?>)#fff no-repeat; ">
39
  <div class="pad_coffee">
40
- <span class="coffee_title"><?php _e( 'Buy me a coffee!', 'enjoyinstagram' ); ?></span>
41
- <p><span><?php _e( 'If you liked our work please consider to make a kind donation through Paypal.', 'enjoyinstagram' ); ?></span></p>
42
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
43
  <input type="hidden" name="cmd" value="_s-xclick">
44
  <input type="hidden" name="hosted_button_id" value="8MXZ37DWHAX46">
@@ -53,11 +53,11 @@ if( ! defined( 'ABSPATH' ) ) {
53
  <div id="premium_release">
54
  <div class="pad_premium_release">
55
  <span class="coffee_title">
56
- <?php printf( __( 'Discover interesting OFFERS and UPDATES for <a href="%s"> Premium Version</a> !', 'enjoyinstagram' ), 'http://www.mediabetaprojects.com/enjoy-instagram-premium/coupon-code-enjoy-instagram-premium/' ); ?>
57
  </span>
58
  <p>
59
  <span style="color:#900; font-weight: bold;">
60
- <?php printf( __( 'Visit Now <a href="%s">ENJOY INSTAGRAM PREMIUM</a> to verify if a Coupon-Code is ready for you!', 'enjoyinstagram' ), 'http://www.mediabetaprojects.com/enjoy-instagram-premium/coupon-code-enjoy-instagram-premium/' ); ?>
61
  </span>
62
  </p>
63
  </div>
37
 
38
  <div id="buy_me_a_coffee" style="background:url(<?php echo ENJOYINSTAGRAM_ASSETS_URL . '/images/buymeacoffee.png'; ?>)#fff no-repeat; ">
39
  <div class="pad_coffee">
40
+ <span class="coffee_title"><?php _e( 'Buy me a coffee!', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?></span>
41
+ <p><span><?php _e( 'If you liked our work please consider to make a kind donation through Paypal.', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ); ?></span></p>
42
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
43
  <input type="hidden" name="cmd" value="_s-xclick">
44
  <input type="hidden" name="hosted_button_id" value="8MXZ37DWHAX46">
53
  <div id="premium_release">
54
  <div class="pad_premium_release">
55
  <span class="coffee_title">
56
+ <?php printf( __( 'Discover interesting OFFERS and UPDATES for <a href="%s"> Premium Version</a> !', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ), 'http://www.mediabetaprojects.com/enjoy-instagram-premium/coupon-code-enjoy-instagram-premium/' ); ?>
57
  </span>
58
  <p>
59
  <span style="color:#900; font-weight: bold;">
60
+ <?php printf( __( 'Visit Now <a href="%s">ENJOY INSTAGRAM PREMIUM</a> to verify if a Coupon-Code is ready for you!', 'enjoy-instagram-instagram-responsive-images-gallery-and-carousel' ), 'http://www.mediabetaprojects.com/enjoy-instagram-premium/coupon-code-enjoy-instagram-premium/' ); ?>
61
  </span>
62
  </p>
63
  </div>