Version Description
- Added new constant "_FILE".
- Added a function that runs during the plugin activation. Now the date of the first activation of the plugin is recorded in the database.
Download this release
Release Info
Developer | Arthur Gareginyan |
Plugin | Social Media Follow Buttons Bar |
Version | 4.35 |
Comparing to | |
See all releases |
Code changes from version 4.34 to 4.35
- inc/php/core.php +21 -0
- readme.txt +5 -1
- social-media-buttons-toolbar.php +2 -1
inc/php/core.php
CHANGED
@@ -87,3 +87,24 @@ function spacexchimp_p005_admin_footer_text() {
|
|
87 |
add_filter( 'admin_footer_text', 'spacexchimp_p005_new_admin_footer_text', 11 );
|
88 |
}
|
89 |
add_action( 'current_screen', 'spacexchimp_p005_admin_footer_text' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
add_filter( 'admin_footer_text', 'spacexchimp_p005_new_admin_footer_text', 11 );
|
88 |
}
|
89 |
add_action( 'current_screen', 'spacexchimp_p005_admin_footer_text' );
|
90 |
+
|
91 |
+
/**
|
92 |
+
* Runs during the plugin activation
|
93 |
+
*/
|
94 |
+
function spacexchimp_p005_activation() {
|
95 |
+
|
96 |
+
// Read the plugin service information from the database and put it into an array
|
97 |
+
$info = get_option( SPACEXCHIMP_P005_SETTINGS . '_service_info' );
|
98 |
+
|
99 |
+
// Make the "$info" array if the plugin service information in the database is not exist
|
100 |
+
if ( ! is_array( $info ) ) $info = array();
|
101 |
+
|
102 |
+
// Get the activation date of the plugin from the database
|
103 |
+
$activation_date = !empty( $info['activation_date'] ) ? $info['activation_date'] : '';
|
104 |
+
|
105 |
+
if ( $activation_date == '' ) {
|
106 |
+
$info['activation_date'] = time();
|
107 |
+
update_option( SPACEXCHIMP_P005_SETTINGS . '_service_info', $info );
|
108 |
+
}
|
109 |
+
}
|
110 |
+
register_activation_hook( SPACEXCHIMP_P005_FILE, 'spacexchimp_p005_activation' );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: icon, icon set, button, social, media, social button, social media, social
|
|
4 |
Donate link: https://www.spacexchimp.com/donate.html
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 4.
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -279,6 +279,10 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
|
|
279 |
|
280 |
== Changelog ==
|
281 |
|
|
|
|
|
|
|
|
|
282 |
= 4.34 =
|
283 |
* Added auto-versioning of the CSS and JavaScript files to avoid cache issues.
|
284 |
|
4 |
Donate link: https://www.spacexchimp.com/donate.html
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 4.35
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
279 |
|
280 |
== Changelog ==
|
281 |
|
282 |
+
= 4.35 =
|
283 |
+
* Added new constant "_FILE".
|
284 |
+
* Added a function that runs during the plugin activation. Now the date of the first activation of the plugin is recorded in the database.
|
285 |
+
|
286 |
= 4.34 =
|
287 |
* Added auto-versioning of the CSS and JavaScript files to avoid cache issues.
|
288 |
|
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: Space X-Chimp
|
7 |
* Author URI: https://www.spacexchimp.com
|
8 |
-
* Version: 4.
|
9 |
* License: GPL3
|
10 |
* Text Domain: social-media-buttons-toolbar
|
11 |
* Domain Path: /languages/
|
@@ -55,6 +55,7 @@ function spacexchimp_p005_define_constants( $constant_name, $value ) {
|
|
55 |
if ( !defined( $constant_name ) )
|
56 |
define( $constant_name, $value );
|
57 |
}
|
|
|
58 |
spacexchimp_p005_define_constants( 'DIR', dirname( plugin_basename( __FILE__ ) ) );
|
59 |
spacexchimp_p005_define_constants( 'BASE', plugin_basename( __FILE__ ) );
|
60 |
spacexchimp_p005_define_constants( 'URL', plugin_dir_url( __FILE__ ) );
|
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: Space X-Chimp
|
7 |
* Author URI: https://www.spacexchimp.com
|
8 |
+
* Version: 4.35
|
9 |
* License: GPL3
|
10 |
* Text Domain: social-media-buttons-toolbar
|
11 |
* Domain Path: /languages/
|
55 |
if ( !defined( $constant_name ) )
|
56 |
define( $constant_name, $value );
|
57 |
}
|
58 |
+
spacexchimp_p005_define_constants( 'FILE', __FILE__ );
|
59 |
spacexchimp_p005_define_constants( 'DIR', dirname( plugin_basename( __FILE__ ) ) );
|
60 |
spacexchimp_p005_define_constants( 'BASE', plugin_basename( __FILE__ ) );
|
61 |
spacexchimp_p005_define_constants( 'URL', plugin_dir_url( __FILE__ ) );
|