Version Description
- Fixed the issue due tof which the 'Space X-Chimp' sub menu item in the brand menu item was displayed.
- Added branded footer text on the plugin's settings page.
Download this release
Release Info
Developer | Arthur Gareginyan |
Plugin | Social Media Follow Buttons Bar |
Version | 4.22 |
Comparing to | |
See all releases |
Code changes from version 4.21 to 4.22
- inc/php/core.php +35 -0
- readme.txt +5 -1
- social-media-buttons-toolbar.php +1 -1
inc/php/core.php
CHANGED
@@ -79,6 +79,20 @@ function spacexchimp_p005_register_submenu_page() {
|
|
79 |
}
|
80 |
add_action( 'admin_menu', 'spacexchimp_p005_register_submenu_page' );
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
/**
|
83 |
* Register settings
|
84 |
*/
|
@@ -87,3 +101,24 @@ function spacexchimp_p005_register_settings() {
|
|
87 |
register_setting( SPACEXCHIMP_P005_SETTINGS . '_settings_group_si', SPACEXCHIMP_P005_SETTINGS . '_service_info' );
|
88 |
}
|
89 |
add_action( 'admin_init', 'spacexchimp_p005_register_settings' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
}
|
80 |
add_action( 'admin_menu', 'spacexchimp_p005_register_submenu_page' );
|
81 |
|
82 |
+
/**
|
83 |
+
* Remove the 'Space X-Chimp' sub menu item in the brand menu item
|
84 |
+
*/
|
85 |
+
function spacexchimp_p005_remove_submenu_item() {
|
86 |
+
|
87 |
+
// Read global variable
|
88 |
+
global $submenu;
|
89 |
+
|
90 |
+
if ( isset( $submenu['spacexchimp'] ) ) {
|
91 |
+
unset( $submenu['spacexchimp'][0] );
|
92 |
+
}
|
93 |
+
}
|
94 |
+
add_action( 'admin_menu', 'spacexchimp_p005_remove_submenu_item' );
|
95 |
+
|
96 |
/**
|
97 |
* Register settings
|
98 |
*/
|
101 |
register_setting( SPACEXCHIMP_P005_SETTINGS . '_settings_group_si', SPACEXCHIMP_P005_SETTINGS . '_service_info' );
|
102 |
}
|
103 |
add_action( 'admin_init', 'spacexchimp_p005_register_settings' );
|
104 |
+
|
105 |
+
/**
|
106 |
+
* Branded footer text on the plugin's settings page
|
107 |
+
*/
|
108 |
+
function spacexchimp_p005_admin_footer_text() {
|
109 |
+
|
110 |
+
// Get current screen data
|
111 |
+
$current_screen = get_current_screen();
|
112 |
+
|
113 |
+
// Return if the page is not a settings page of this plugin
|
114 |
+
$settings_page = 'space-x-chimp_page_spacexchimp/' . SPACEXCHIMP_P005_SLUG;
|
115 |
+
if ( $settings_page != $current_screen->id ) return;
|
116 |
+
|
117 |
+
// Filter footer text
|
118 |
+
function spacexchimp_p005_new_admin_footer_text() {
|
119 |
+
$year = date('Y');
|
120 |
+
return "Copyright © " . $year . " <a href='https://www.spacexchimp.com' target='_blank'>Space X-Chimp</a> Studio | Click <a href='https://www.spacexchimp.com/store.html' target='_blank'>here</a> to see my other products.";
|
121 |
+
}
|
122 |
+
add_filter( 'admin_footer_text', 'spacexchimp_p005_new_admin_footer_text', 11 );
|
123 |
+
}
|
124 |
+
add_action( 'current_screen', 'spacexchimp_p005_admin_footer_text' );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: icon, icon set, button, social, media, social button, social media, social
|
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 4.
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -251,6 +251,10 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
|
|
251 |
|
252 |
== Changelog ==
|
253 |
|
|
|
|
|
|
|
|
|
254 |
= 4.21 =
|
255 |
* The hard coded HTML radio options are replaced with the PHP function that dynamically creates radio.
|
256 |
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 4.22
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
251 |
|
252 |
== Changelog ==
|
253 |
|
254 |
+
= 4.22 =
|
255 |
+
* Fixed the issue due tof which the 'Space X-Chimp' sub menu item in the brand menu item was displayed.
|
256 |
+
* Added branded footer text on the plugin's settings page.
|
257 |
+
|
258 |
= 4.21 =
|
259 |
* The hard coded HTML radio options are replaced with the PHP function that dynamically creates radio.
|
260 |
|
social-media-buttons-toolbar.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Easily add the smart bar with social media follow buttons (not share, only link to your profiles) to any place of your WordPress website.
|
6 |
* Author: Arthur Gareginyan
|
7 |
* Author URI: https://www.arthurgareginyan.com
|
8 |
-
* Version: 4.
|
9 |
* License: GPL3
|
10 |
* Text Domain: social-media-buttons-toolbar
|
11 |
* Domain Path: /languages/
|
5 |
* Description: Easily add the smart bar with social media follow buttons (not share, only link to your profiles) to any place of your WordPress website.
|
6 |
* Author: Arthur Gareginyan
|
7 |
* Author URI: https://www.arthurgareginyan.com
|
8 |
+
* Version: 4.22
|
9 |
* License: GPL3
|
10 |
* Text Domain: social-media-buttons-toolbar
|
11 |
* Domain Path: /languages/
|