AccessPress Instagram Feed - Version 3.0.2

Version Description

  • Few CSS Refinement
  • Session Used Removed.
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 AccessPress Instagram Feed
Version 3.0.2
Comparing to
See all releases

Code changes from version 3.0.1 to 3.0.2

accesspress-instagram-feed.php CHANGED
@@ -1,10 +1,9 @@
1
- <?php
2
- defined( 'ABSPATH' ) or die( "No script kiddies please!" );
3
  /*
4
  Plugin name: AccessPress Instagram Feed
5
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-instagram-feed/
6
  Description: A plugin to add various instagram widgets with dynamic configuration options.
7
- Version: 3.0.1
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain:accesspress-instagram-feed
@@ -14,7 +13,7 @@ License: GPLv2 or later
14
 
15
  //Decleration of the necessary constants for plugin
16
  if( !defined( 'APIF_VERSION' ) ) {
17
- define( 'APIF_VERSION', '3.0.1' );
18
  }
19
 
20
  if( !defined( 'APIF_IMAGE_DIR' ) ) {
@@ -62,7 +61,7 @@ if( !class_exists( 'IF_Class' ) ) {
62
  $this->apif_settings = get_option( 'apif_settings' );
63
  register_activation_hook( __FILE__, array($this, 'load_default_settings') ); //loads default settings for the plugin while activating the plugin
64
  add_action( 'init', array($this, 'plugin_text_domain') ); //loads text domain for translation ready
65
- add_action( 'init', array($this, 'session_init') ); //starts the session
66
  add_action( 'admin_menu', array($this, 'add_if_menu') ); //adds plugin menu in wp-admin
67
  add_action( 'admin_enqueue_scripts', array($this, 'register_admin_assets') ); //registers admin assests such as js and css
68
  add_action( 'wp_enqueue_scripts', array($this, 'register_frontend_assets') ); //registers js and css for frontend
@@ -104,11 +103,11 @@ if( !class_exists( 'IF_Class' ) ) {
104
  /**
105
  * Starts the session
106
  */
107
- function session_init() {
108
- if( !session_id() && !headers_sent() ) {
109
- session_start();
110
- }
111
- }
112
  /**
113
  * Returns Default Settings
114
  */
1
+ <?php defined( 'ABSPATH' ) or die( "No script kiddies please!" );
 
2
  /*
3
  Plugin name: AccessPress Instagram Feed
4
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-instagram-feed/
5
  Description: A plugin to add various instagram widgets with dynamic configuration options.
6
+ Version: 3.0.2
7
  Author: AccessPress Themes
8
  Author URI: http://accesspressthemes.com
9
  Text Domain:accesspress-instagram-feed
13
 
14
  //Decleration of the necessary constants for plugin
15
  if( !defined( 'APIF_VERSION' ) ) {
16
+ define( 'APIF_VERSION', '3.0.2' );
17
  }
18
 
19
  if( !defined( 'APIF_IMAGE_DIR' ) ) {
61
  $this->apif_settings = get_option( 'apif_settings' );
62
  register_activation_hook( __FILE__, array($this, 'load_default_settings') ); //loads default settings for the plugin while activating the plugin
63
  add_action( 'init', array($this, 'plugin_text_domain') ); //loads text domain for translation ready
64
+ //add_action( 'init', array($this, 'session_init') ); //starts the session
65
  add_action( 'admin_menu', array($this, 'add_if_menu') ); //adds plugin menu in wp-admin
66
  add_action( 'admin_enqueue_scripts', array($this, 'register_admin_assets') ); //registers admin assests such as js and css
67
  add_action( 'wp_enqueue_scripts', array($this, 'register_frontend_assets') ); //registers js and css for frontend
103
  /**
104
  * Starts the session
105
  */
106
+ // function session_init() {
107
+ // if( !session_id() && !headers_sent() ) {
108
+ // session_start();
109
+ // }
110
+ // }
111
  /**
112
  * Returns Default Settings
113
  */
inc/backend/main-page.php CHANGED
@@ -32,7 +32,11 @@ $apif_settings = get_option( 'apif_settings' );
32
  <div class="apsc-title"><?php _e('AccessPress Instagram Feed', 'accesspress-instagram-feed'); ?></div>
33
  </div>
34
 
35
- <?php if(isset($_SESSION['apif_message'])){?><div class="apsc-success-message"><p><?php echo $_SESSION['apif_message'];unset($_SESSION['apif_message']);?></p></div><?php }?>
 
 
 
 
36
 
37
  <div class="apsc-boards-wrapper">
38
  <ul class="apsc-settings-tabs">
32
  <div class="apsc-title"><?php _e('AccessPress Instagram Feed', 'accesspress-instagram-feed'); ?></div>
33
  </div>
34
 
35
+ <?php if(isset($_GET['message']) && $_GET['message'] == 1){ ?>
36
+ <div class="apsc-success-message">
37
+ <p><?php _e('Settings Saved Successfully.', 'accesspress-instagram-feed');?></p>
38
+ </div>
39
+ <?php }?>
40
 
41
  <div class="apsc-boards-wrapper">
42
  <ul class="apsc-settings-tabs">
inc/backend/save-settings.php CHANGED
@@ -1,5 +1,6 @@
1
  <?php
2
  defined('ABSPATH') or die( "No script kiddies please!" );
 
3
  foreach( $_POST['instagram'] as $key=>$val ){
4
  $$key = sanitize_text_field($val);
5
  }
@@ -11,6 +12,5 @@ $apif_settings['followmetext'] = isset($followmetext) ? $followmetext:'';
11
  $apif_settings['user_id'] = $user_id;
12
  $apif_settings['active'] = isset($active) ? $active : ' ';
13
  update_option( 'apif_settings', $apif_settings);
14
- $_SESSION['apif_message'] = __( 'Settings Saved Successfully','accesspress-instagram-feed' );
15
- wp_redirect( admin_url().'admin.php?page=if-instagram-feed' );
16
  exit();
1
  <?php
2
  defined('ABSPATH') or die( "No script kiddies please!" );
3
+ $_POST = array_map( 'stripslashes_deep', $_POST );
4
  foreach( $_POST['instagram'] as $key=>$val ){
5
  $$key = sanitize_text_field($val);
6
  }
12
  $apif_settings['user_id'] = $user_id;
13
  $apif_settings['active'] = isset($active) ? $active : ' ';
14
  update_option( 'apif_settings', $apif_settings);
15
+ wp_redirect(admin_url('admin.php?page=if-instagram-feed&message=1'));
 
16
  exit();
languages/accesspress-instagram-feed.pot DELETED
@@ -1,146 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: AccessPress Instagram Feed\n"
4
- "POT-Creation-Date: 2015-12-31 16:31+0545\n"
5
- "PO-Revision-Date: 2015-12-31 16:31+0545\n"
6
- "Last-Translator: \n"
7
- "Language-Team: AccessPress Themes <support@accesspressthemes.com>\n"
8
- "Language: English\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 1.5.7\n"
13
- "X-Poedit-KeywordsList: _e;__\n"
14
- "X-Poedit-Basepath: .\n"
15
- "X-Poedit-SearchPath-0: .\n"
16
- "X-Poedit-SearchPath-1: ..\n"
17
-
18
- #: ../accesspress-instagram-feed.php:98 ../inc/backend/main-page.php:35
19
- msgid "AccessPress Instagram Feed"
20
- msgstr ""
21
-
22
- #: ../inc/backend/main-page.php:18
23
- msgid "Follow us for new updates"
24
- msgstr ""
25
-
26
- #: ../inc/backend/main-page.php:43
27
- msgid "Instagram Profiles"
28
- msgstr ""
29
-
30
- #: ../inc/backend/main-page.php:45
31
- msgid "Display Settings"
32
- msgstr ""
33
-
34
- #: ../inc/backend/main-page.php:47
35
- msgid "How to use"
36
- msgstr ""
37
-
38
- #: ../inc/backend/main-page.php:49
39
- msgid "About"
40
- msgstr ""
41
-
42
- #: ../inc/backend/save-settings.php:31
43
- msgid "Settings Saved Successfully"
44
- msgstr ""
45
-
46
- #: ../inc/backend/widget.php:14
47
- msgid "AP : Instagram Masonry"
48
- msgstr ""
49
-
50
- #: ../inc/backend/widget.php:15
51
- msgid "AccessPress Instagram Widget"
52
- msgstr ""
53
-
54
- #: ../inc/backend/widget.php:71 ../inc/backend/widgetside.php:134
55
- msgid "Title:"
56
- msgstr ""
57
-
58
- #: ../inc/backend/widget.php:76
59
- msgid "Layout :"
60
- msgstr ""
61
-
62
- #: ../inc/backend/widgetside.php:14
63
- msgid "AP : Instagram Feeds"
64
- msgstr ""
65
-
66
- #: ../inc/backend/widgetside.php:15
67
- msgid "AccessPress Instagram Feeds"
68
- msgstr ""
69
-
70
- #: ../inc/backend/widgetside.php:139
71
- msgid "Number of Image:"
72
- msgstr ""
73
-
74
- #: ../inc/backend/widgetside.php:149
75
- msgid "Display Instagram Post :"
76
- msgstr ""
77
-
78
- #: ../inc/backend/widgetside.php:154
79
- msgid "Display Followers :"
80
- msgstr ""
81
-
82
- #: ../inc/backend/widgetside.php:159
83
- msgid "Display Instagram Following :"
84
- msgstr ""
85
-
86
- #: ../inc/backend/widgetside.php:164
87
- msgid "Display Instagram Follow Button :"
88
- msgstr ""
89
-
90
- #: ../inc/backend/boards/display-settings.php:7
91
- msgid "Image Like"
92
- msgstr ""
93
-
94
- #: ../inc/backend/boards/display-settings.php:8
95
- msgid "Show/Hide"
96
- msgstr ""
97
-
98
- #: ../inc/backend/boards/display-settings.php:14
99
- msgid "Choose Instagram Themes Layout"
100
- msgstr ""
101
-
102
- #: ../inc/backend/boards/display-settings.php:17
103
- msgid "Mosaic layout"
104
- msgstr ""
105
-
106
- #: ../inc/backend/boards/display-settings.php:21
107
- msgid "Mosaic LightBox Layout"
108
- msgstr ""
109
-
110
- #: ../inc/backend/boards/display-settings.php:25
111
- msgid "Slider Layout"
112
- msgstr ""
113
-
114
- #: ../inc/backend/boards/instagram-profiles.php:5
115
- msgid "Instagram Feed"
116
- msgstr ""
117
-
118
- #: ../inc/backend/boards/instagram-profiles.php:8
119
- msgid "Instagram Username"
120
- msgstr ""
121
-
122
- #: ../inc/backend/boards/instagram-profiles.php:11
123
- msgid "Please enter the instagram username"
124
- msgstr ""
125
-
126
- #: ../inc/backend/boards/instagram-profiles.php:15
127
- msgid "Instagram User ID"
128
- msgstr ""
129
-
130
- #: ../inc/backend/boards/instagram-profiles.php:18
131
- msgid ""
132
- "Please enter the instagram user ID.You can get this information from <a href="
133
- "\"http://www.pinceladasdaweb.com.br/instagram/access-token/\" target=\"_blank"
134
- "\">http://www.pinceladasdaweb.com.br/instagram/access-token/</a>"
135
- msgstr ""
136
-
137
- #: ../inc/backend/boards/instagram-profiles.php:22
138
- msgid "Instagram Access Token"
139
- msgstr ""
140
-
141
- #: ../inc/backend/boards/instagram-profiles.php:25
142
- msgid ""
143
- "Please enter the instagram Access Token.You can get this information from <a "
144
- "href=\"http://www.pinceladasdaweb.com.br/instagram/access-token/\" target="
145
- "\"_blank\">http://www.pinceladasdaweb.com.br/instagram/access-token/</a>"
146
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: instagram, instagram feed, instagram tag, instagram slider, instagarm mosa
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.9
7
- Stable tag: 3.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -137,6 +137,10 @@ Once you install the plugin , you can check some general documentation about how
137
  5. Backend Display Settings Section
138
 
139
  == Changelog ==
 
 
 
 
140
  = 3.0.1 =
141
  * Few CSS Refinement
142
  * Added Backend Feature on Layout Settings to fill your own custom "Follow Me" text for Masonry Layout
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.9
7
+ Stable tag: 3.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
137
  5. Backend Display Settings Section
138
 
139
  == Changelog ==
140
+ = 3.0.2 =
141
+ * Few CSS Refinement
142
+ * Session Used Removed.
143
+
144
  = 3.0.1 =
145
  * Few CSS Refinement
146
  * Added Backend Feature on Layout Settings to fill your own custom "Follow Me" text for Masonry Layout