Version Description
- Added Documentation and other informational links to the plugin.
Download this release
Release Info
Developer | Access Keys |
Plugin | ![]() |
Version | 3.1.0 |
Comparing to | |
See all releases |
Code changes from version 3.0.9 to 3.1.0
- accesspress-instagram-feed.php +44 -2
- inc/backend/boards/about.php +20 -0
- readme.txt +4 -1
accesspress-instagram-feed.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin name: AccessPress Feeds For Instagram
|
4 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-instagram-feed/
|
5 |
Description: Display feeds of your instagram using shortcode and widgets.
|
6 |
-
Version: 3.0
|
7 |
Author: AccessPress Themes
|
8 |
Author URI: http://accesspressthemes.com
|
9 |
Text Domain: accesspress-instagram-feed
|
@@ -13,7 +13,7 @@ License: GPLv2 or later
|
|
13 |
|
14 |
//Decleration of the necessary constants for plugin
|
15 |
if( !defined( 'APIF_VERSION' ) ) {
|
16 |
-
define( 'APIF_VERSION', '3.0
|
17 |
}
|
18 |
|
19 |
if( !defined( 'APIF_IMAGE_DIR' ) ) {
|
@@ -63,6 +63,9 @@ if( !class_exists( 'IF_Class' ) ) {
|
|
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
|
68 |
add_action( 'admin_post_apif_settings_action', array($this, 'apif_settings_action') ); //recieves the posted values from settings form
|
@@ -74,6 +77,43 @@ if( !class_exists( 'IF_Class' ) ) {
|
|
74 |
add_shortcode( 'ap_instagram_grid_rotator', array($this, 'ap_instagram_grid_rotator') );
|
75 |
add_action( 'widgets_init', array($this, 'register_apif_widget') ); //registers the widget
|
76 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
/**
|
78 |
* Plugin Translation
|
79 |
*/
|
@@ -95,6 +135,8 @@ if( !class_exists( 'IF_Class' ) ) {
|
|
95 |
*/
|
96 |
function add_if_menu() {
|
97 |
add_menu_page( __( 'AccessPress Feeds For Instagram', 'accesspress-instagram-feed' ), __( 'AccessPress Feeds For Instagram', 'accesspress-instagram-feed' ), 'manage_options', 'if-instagram-feed', array($this, 'main_page'), APIF_IMAGE_DIR . '/sc-icon.png' );
|
|
|
|
|
98 |
}
|
99 |
//plugins backend admin page
|
100 |
function main_page() {
|
3 |
Plugin name: AccessPress Feeds For Instagram
|
4 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-instagram-feed/
|
5 |
Description: Display feeds of your instagram using shortcode and widgets.
|
6 |
+
Version: 3.1.0
|
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.1.0' );
|
17 |
}
|
18 |
|
19 |
if( !defined( 'APIF_IMAGE_DIR' ) ) {
|
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_init', array( $this, 'redirect_to_site' ), 1 );
|
67 |
+
add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
|
68 |
+
add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ) );
|
69 |
add_action( 'admin_enqueue_scripts', array($this, 'register_admin_assets') ); //registers admin assests such as js and css
|
70 |
add_action( 'wp_enqueue_scripts', array($this, 'register_frontend_assets') ); //registers js and css for frontend
|
71 |
add_action( 'admin_post_apif_settings_action', array($this, 'apif_settings_action') ); //recieves the posted values from settings form
|
77 |
add_shortcode( 'ap_instagram_grid_rotator', array($this, 'ap_instagram_grid_rotator') );
|
78 |
add_action( 'widgets_init', array($this, 'register_apif_widget') ); //registers the widget
|
79 |
}
|
80 |
+
|
81 |
+
function plugin_row_meta( $links, $file ){
|
82 |
+
if ( strpos( $file, 'accesspress-instagram-feed.php' ) !== false ) {
|
83 |
+
$new_links = array(
|
84 |
+
'demo' => '<a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-instagram-feeds/" target="_blank"><span class="dashicons dashicons-welcome-view-site"></span>Live Demo</a>',
|
85 |
+
'doc' => '<a href="https://accesspressthemes.com/documentation/documentationplugin-instruction-accesspress-instagram-feeds/" target="_blank"><span class="dashicons dashicons-media-document"></span>Documentation</a>',
|
86 |
+
'support' => '<a href="http://accesspressthemes.com/support" target="_blank"><span class="dashicons dashicons-admin-users"></span>Support</a>',
|
87 |
+
'pro' => '<a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-instagram-feed-pro%2F14291754" target="_blank"><span class="dashicons dashicons-cart"></span>Premium version</a>'
|
88 |
+
);
|
89 |
+
$links = array_merge( $links, $new_links );
|
90 |
+
}
|
91 |
+
return $links;
|
92 |
+
}
|
93 |
+
|
94 |
+
|
95 |
+
function admin_footer_text( $text ){
|
96 |
+
if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'if-instagram-feed') {
|
97 |
+
$link = 'https://wordpress.org/support/plugin/accesspress-instagram-feed/reviews/#new-post';
|
98 |
+
$pro_link = 'https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-instagram-feed-pro%2F14291754';
|
99 |
+
$text = 'Enjoyed AccessPress Instagram Feed? <a href="' . $link . '" target="_blank">Please leave us a ★★★★★ rating</a> We really appreciate your support! | Try premium version of <a href="' . $pro_link . '" target="_blank">AccessPress Instagram Feeds Pro</a> - more features, more power!';
|
100 |
+
return $text;
|
101 |
+
} else {
|
102 |
+
return $text;
|
103 |
+
}
|
104 |
+
}
|
105 |
+
|
106 |
+
function redirect_to_site(){
|
107 |
+
if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'apif-doclinks' ) {
|
108 |
+
wp_redirect( 'https://accesspressthemes.com/documentation/documentationplugin-instruction-accesspress-instagram-feeds/' );
|
109 |
+
exit();
|
110 |
+
}
|
111 |
+
if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'apif-premium' ) {
|
112 |
+
wp_redirect( 'https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-instagram-feed-pro%2F14291754' );
|
113 |
+
exit();
|
114 |
+
}
|
115 |
+
}
|
116 |
+
|
117 |
/**
|
118 |
* Plugin Translation
|
119 |
*/
|
135 |
*/
|
136 |
function add_if_menu() {
|
137 |
add_menu_page( __( 'AccessPress Feeds For Instagram', 'accesspress-instagram-feed' ), __( 'AccessPress Feeds For Instagram', 'accesspress-instagram-feed' ), 'manage_options', 'if-instagram-feed', array($this, 'main_page'), APIF_IMAGE_DIR . '/sc-icon.png' );
|
138 |
+
add_submenu_page('if-instagram-feed', __( 'Documentation','accesspress-instagram-feed' ), __( 'Documentation', 'accesspress-instagram-feed' ), 'manage_options', 'apif-doclinks', '__return_false', null, 9 );
|
139 |
+
add_submenu_page('if-instagram-feed', __( 'Check Premium Version', 'accesspress-instagram-feed' ), __( 'Check Premium Version', 'accesspress-instagram-feed' ), 'manage_options', 'apif-premium', '__return_false', null, 9 );
|
140 |
}
|
141 |
//plugins backend admin page
|
142 |
function main_page() {
|
inc/backend/boards/about.php
CHANGED
@@ -13,6 +13,26 @@
|
|
13 |
|
14 |
All you have to do is either use a widget or shortcode to display your instagram feed right on your website in your chosen location.
|
15 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
<div class="halfseperator"></div>
|
17 |
|
18 |
<h3>Themes Compatible with the Plugin :</h3>
|
13 |
|
14 |
All you have to do is either use a widget or shortcode to display your instagram feed right on your website in your chosen location.
|
15 |
</p>
|
16 |
+
<p><strong><?php _e('Please visit our product page for more details here:', 'accesspress-instagram-feed'); ?></strong>
|
17 |
+
<br />
|
18 |
+
<a href="https://accesspressthemes.com/wordpress-plugins/accesspress-instagram-feed/" target="_blank">Product Page</a>
|
19 |
+
</p>
|
20 |
+
<div class="wpmdia-halfseperator"></div>
|
21 |
+
<p><strong><?php _e('Please visit our demo page here:', 'accesspress-instagram-feed'); ?></strong>
|
22 |
+
<br />
|
23 |
+
<a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-instagram-feeds/" target="_blank">Demo</a>
|
24 |
+
</p>
|
25 |
+
<div class="wpmdia-halfseperator"></div>
|
26 |
+
<p><strong><?php _e('Plugin documentation can be found here:', 'accesspress-instagram-feed'); ?></strong>
|
27 |
+
<br />
|
28 |
+
<a href="https://accesspressthemes.com/documentation/documentationplugin-instruction-accesspress-instagram-feeds/" target="_blank">Documentation</a>
|
29 |
+
</p>
|
30 |
+
<div class="wpmdia-halfseperator"></div>
|
31 |
+
<p><strong><?php _e('For premium upgrade, please go here:', 'accesspress-instagram-feed'); ?></strong>
|
32 |
+
<br />
|
33 |
+
<a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-instagram-feed-pro%2F14291754" target="_blank" class="wpmm-upgrade-btn" target="_blank">Upgrade To Pro</a>
|
34 |
+
</p>
|
35 |
+
|
36 |
<div class="halfseperator"></div>
|
37 |
|
38 |
<h3>Themes Compatible with the Plugin :</h3>
|
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: 5.0
|
7 |
-
Stable tag: 3.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -156,6 +156,9 @@ Once you install the plugin , you can check some general documentation about how
|
|
156 |
5. Backend Display Settings Section
|
157 |
|
158 |
== Changelog ==
|
|
|
|
|
|
|
159 |
= 3.0.9 =
|
160 |
* Refinement : Backend CSS refinement done
|
161 |
* Only Plugin Name has been changed.Other Plugin settings will not be affected on this update.
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 5.0
|
7 |
+
Stable tag: 3.1.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
156 |
5. Backend Display Settings Section
|
157 |
|
158 |
== Changelog ==
|
159 |
+
= 3.1.0 =
|
160 |
+
* Added Documentation and other informational links to the plugin.
|
161 |
+
|
162 |
= 3.0.9 =
|
163 |
* Refinement : Backend CSS refinement done
|
164 |
* Only Plugin Name has been changed.Other Plugin settings will not be affected on this update.
|