Social Icons WordPress Plugin – AccessPress Social Icons - Version 1.7.3

Version Description

  • Added Documentation and other informational links to the plugin.
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Icons WordPress Plugin – AccessPress Social Icons
Version 1.7.3
Comparing to
See all releases

Code changes from version 1.7.2 to 1.7.3

accesspress-social-icons.php CHANGED
@@ -4,14 +4,13 @@ defined('ABSPATH') or die("No script kiddies please!");
4
  * Plugin Name:AccessPress Social Icons
5
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/
6
  * Description: A plugin to add social icons in your site wherever you want dynamically with handful of configurable settings.
7
- * Version:1.7.2
8
  * Author:AccessPress Themes
9
  * Author URI:http://accesspressthemes.com/
10
  * Text Domain: accesspress-social-icons
11
  * Domain Path: /languages/
12
  * License:GPLv2 or later
13
  * */
14
-
15
  /**
16
  * Register of widgets
17
  * */
@@ -40,8 +39,50 @@ if (!class_exists('APS_Class')) {
40
  add_action('wp_ajax_nopriv_get_theme_icons', array($this, 'no_permission')); //ajax action for unathenticate admin ajax call
41
  add_action('widgets_init', array($this, 'register_aps_widget')); //register aps widget
42
  add_filter('apsi_image_url',array($this,'check_url'));
 
 
 
 
43
 
44
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  /**
47
  * Declartion of necessary constants for plugin
@@ -85,7 +126,7 @@ if (!class_exists('APS_Class')) {
85
  }
86
  if(!defined('APS_VERSION'))
87
  {
88
- define('APS_VERSION','1.7.2');
89
  }
90
  }
91
 
@@ -107,6 +148,8 @@ if (!class_exists('APS_Class')) {
107
  add_submenu_page('aps-social', __('How to use','accesspress-social-icons'), __('How to use','accesspress-social-icons'), 'manage_options', 'aps-social-how-to-use', array($this, 'how_to_use'));
108
  add_submenu_page('aps-social', __('About','accesspress-social-icons'), __('About','accesspress-social-icons'), 'manage_options', 'aps-about', array($this, 'about'));
109
  add_submenu_page('aps-social', __('More WordPress Resources','accesspress-social-icons'), __('More WordPress Resources','accesspress-social-icons'), 'manage_options', 'aps-more-wp-resources', array($this, 'wp_resources'));
 
 
110
  }
111
 
112
  //plugin's main page
4
  * Plugin Name:AccessPress Social Icons
5
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/
6
  * Description: A plugin to add social icons in your site wherever you want dynamically with handful of configurable settings.
7
+ * Version: 1.7.3
8
  * Author:AccessPress Themes
9
  * Author URI:http://accesspressthemes.com/
10
  * Text Domain: accesspress-social-icons
11
  * Domain Path: /languages/
12
  * License:GPLv2 or later
13
  * */
 
14
  /**
15
  * Register of widgets
16
  * */
39
  add_action('wp_ajax_nopriv_get_theme_icons', array($this, 'no_permission')); //ajax action for unathenticate admin ajax call
40
  add_action('widgets_init', array($this, 'register_aps_widget')); //register aps widget
41
  add_filter('apsi_image_url',array($this,'check_url'));
42
+
43
+ add_action( 'admin_init', array( $this, 'redirect_to_site' ), 1 );
44
+ add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
45
+ add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ) );
46
 
47
  }
48
+
49
+ function admin_footer_text( $text ){
50
+ if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'aps-social'
51
+ || $_GET[ 'page' ] == 'aps-social-add' || $_GET[ 'page' ] == 'aps-about' || $_GET[ 'page' ] == 'aps-social-how-to-use'
52
+ || $_GET[ 'page' ] == 'aps-more-wp-resources' || $_GET[ 'page' ] == 'aps-social-how-to-use') {
53
+ $link = 'https://wordpress.org/support/plugin/accesspress-social-icons/reviews/#new-post';
54
+ $pro_link = 'https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-icons-pro%2F9700839';
55
+ $text = 'Enjoyed AccessPress Social Icons? <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 Social Icons Pro</a> - more features, more power!';
56
+ return $text;
57
+ } else {
58
+ return $text;
59
+ }
60
+ }
61
+
62
+ function redirect_to_site(){
63
+ if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'aps-doclinks' ) {
64
+ wp_redirect( 'https://accesspressthemes.com/documentation/documentationplugin-instruction-accesspress-social-icons/' );
65
+ exit();
66
+ }
67
+ if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'aps-premium' ) {
68
+ wp_redirect( 'https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-icons-pro%2F9700839' );
69
+ exit();
70
+ }
71
+ }
72
+
73
+ function plugin_row_meta( $links, $file ){
74
+ if ( strpos( $file, 'accesspress-social-icons.php' ) !== false ) {
75
+ $new_links = array(
76
+ 'demo' => '<a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-icons" target="_blank"><span class="dashicons dashicons-welcome-view-site"></span>Live Demo</a>',
77
+ 'doc' => '<a href="https://accesspressthemes.com/documentation/documentationplugin-instruction-accesspress-social-icons/" target="_blank"><span class="dashicons dashicons-media-document"></span>Documentation</a>',
78
+ 'support' => '<a href="http://accesspressthemes.com/support" target="_blank"><span class="dashicons dashicons-admin-users"></span>Support</a>',
79
+ 'pro' => '<a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-icons-pro%2F9700839" target="_blank"><span class="dashicons dashicons-cart"></span>Premium version</a>'
80
+ );
81
+ $links = array_merge( $links, $new_links );
82
+ }
83
+ return $links;
84
+ }
85
+
86
 
87
  /**
88
  * Declartion of necessary constants for plugin
126
  }
127
  if(!defined('APS_VERSION'))
128
  {
129
+ define('APS_VERSION','1.7.3');
130
  }
131
  }
132
 
148
  add_submenu_page('aps-social', __('How to use','accesspress-social-icons'), __('How to use','accesspress-social-icons'), 'manage_options', 'aps-social-how-to-use', array($this, 'how_to_use'));
149
  add_submenu_page('aps-social', __('About','accesspress-social-icons'), __('About','accesspress-social-icons'), 'manage_options', 'aps-about', array($this, 'about'));
150
  add_submenu_page('aps-social', __('More WordPress Resources','accesspress-social-icons'), __('More WordPress Resources','accesspress-social-icons'), 'manage_options', 'aps-more-wp-resources', array($this, 'wp_resources'));
151
+ add_submenu_page( 'aps-social', __( 'Documentation','accesspress-social-icons'), __( 'Documentation', 'accesspress-social-icons' ), 'manage_options', 'aps-doclinks', '__return_false', null, 9 );
152
+ add_submenu_page( 'aps-social', __( 'Check Premium Version', 'accesspress-social-icons' ), __( 'Check Premium Version', 'accesspress-social-icons' ), 'manage_options', 'aps-premium', '__return_false', null, 9 );
153
  }
154
 
155
  //plugin's main page
icon-sets/png/set1/Thumbs.db DELETED
Binary file
icon-sets/png/set10/Thumbs.db DELETED
Binary file
icon-sets/png/set11/Thumbs.db DELETED
Binary file
icon-sets/png/set12/Thumbs.db DELETED
Binary file
icon-sets/png/set2/Thumbs.db DELETED
Binary file
icon-sets/png/set3/Thumbs.db DELETED
Binary file
icon-sets/png/set4/Thumbs.db DELETED
Binary file
icon-sets/png/set5/Thumbs.db DELETED
Binary file
icon-sets/png/set6/Thumbs.db DELETED
Binary file
icon-sets/png/set7/Thumbs.db DELETED
Binary file
icon-sets/png/set8/Thumbs.db DELETED
Binary file
icon-sets/png/set9/Thumbs.db DELETED
Binary file
inc/backend/about.php CHANGED
@@ -15,17 +15,17 @@
15
  <div class="halfseperator"></div>
16
  <p><strong>Please visit our product page for more details here:</strong>
17
  <br />
18
- <a href="https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/" target="_blank">https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/</a>
19
  </p>
20
  <div class="halfseperator"></div>
21
  <p><strong>Plugin documentation can be found here:</strong>
22
  <br />
23
- <a href="https://accesspressthemes.com/documentation/documentationplugin-instruction-accesspress-social-icons/" target="_blank">https://accesspressthemes.com/documentation/documentationplugin-instruction-accesspress-social-icons/</a>
24
  </p>
25
  <div class="halfseperator"></div>
26
  <p><strong>If you'd like to buy premium version of this plugin please check here:</strong>
27
  <br />
28
- <a href="https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons-pro/" target="_blank">https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons-pro/ </a>
29
  </p>
30
  <p>&nbsp;</p>
31
  <h3 class="sub-title">More from AccessPress themes </h3>
15
  <div class="halfseperator"></div>
16
  <p><strong>Please visit our product page for more details here:</strong>
17
  <br />
18
+ <a href="https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/" target="_blank">Product Page</a>
19
  </p>
20
  <div class="halfseperator"></div>
21
  <p><strong>Plugin documentation can be found here:</strong>
22
  <br />
23
+ <a href="https://accesspressthemes.com/documentation/documentationplugin-instruction-accesspress-social-icons/" target="_blank">Visit Documentation Page</a>
24
  </p>
25
  <div class="halfseperator"></div>
26
  <p><strong>If you'd like to buy premium version of this plugin please check here:</strong>
27
  <br />
28
+ <a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-icons-pro%2F9700839" target="_blank">Upgrade To Pro </a>
29
  </p>
30
  <p>&nbsp;</p>
31
  <h3 class="sub-title">More from AccessPress themes </h3>
inc/backend/promobar.php CHANGED
@@ -5,7 +5,7 @@
5
  <div class="aps-demo-links">
6
  <div class="aps-btn-group">
7
  <a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-icons-pro/" target="_blank" class="aps-btn aps-btn-default aps-btn-demo">DEMO</a>
8
- <a href="http://codecanyon.net/item/accesspress-social-icons-pro/9700839?ref=AccessKeys" target="_blank" class="aps-btn aps-btn-default aps-btn-upgrade">UPGRADE</a>
9
  </div>
10
  </div>
11
  <div>
@@ -14,7 +14,7 @@
14
  <div class="aps-demo-links">
15
  <div class="aps-btn-group">
16
  <a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-icons-pro/" target="_blank" class="aps-btn aps-btn-default aps-btn-demo">DEMO</a>
17
- <a href="http://codecanyon.net/item/accesspress-social-icons-pro/9700839?ref=AccessKeys" target="_blank" class="aps-btn aps-btn-default aps-btn-upgrade">UPGRADE</a>
18
  </div>
19
  </div>
20
  <div class="aps-enquiry-block">
5
  <div class="aps-demo-links">
6
  <div class="aps-btn-group">
7
  <a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-icons-pro/" target="_blank" class="aps-btn aps-btn-default aps-btn-demo">DEMO</a>
8
+ <a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-icons-pro%2F9700839" target="_blank" class="aps-btn aps-btn-default aps-btn-upgrade">UPGRADE</a>
9
  </div>
10
  </div>
11
  <div>
14
  <div class="aps-demo-links">
15
  <div class="aps-btn-group">
16
  <a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-icons-pro/" target="_blank" class="aps-btn aps-btn-default aps-btn-demo">DEMO</a>
17
+ <a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-icons-pro%2F9700839" target="_blank" class="aps-btn aps-btn-default aps-btn-upgrade">UPGRADE</a>
18
  </div>
19
  </div>
20
  <div class="aps-enquiry-block">
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: social icon, social icons, social media, social icon widget, social icons
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.5
6
  Tested up to: 5.0
7
- Stable tag: 1.7.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -150,6 +150,9 @@ Once you install the plugin , you can check some general documentation about how
150
  4. Backend Lcon Sets Listing
151
 
152
  == Changelog ==
 
 
 
153
  = 1.7.2 =
154
  * Compatiblity check with WordPress version 5.0
155
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.5
6
  Tested up to: 5.0
7
+ Stable tag: 1.7.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
150
  4. Backend Lcon Sets Listing
151
 
152
  == Changelog ==
153
+ = 1.7.3 =
154
+ * Added Documentation and other informational links to the plugin.
155
+
156
  = 1.7.2 =
157
  * Compatiblity check with WordPress version 5.0
158