Version Description
2018-12-31 * UPDATED: Code Optimization * UPDATED: Added plugin settings link, and update documentation. * Compatible with WordPress 5.0.2
Download this release
Release Info
Developer | 99robots |
Plugin | Header Footer Code Manager |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.9 to 1.1.0
- 99robots-header-footer-code-manager.php +68 -2
- readme.txt +14 -5
99robots-header-footer-code-manager.php
CHANGED
@@ -3,22 +3,88 @@
|
|
3 |
* Plugin Name: Header Footer Code Manager
|
4 |
* Plugin URI: https://99robots.com/products
|
5 |
* Description: Header Footer Code Manager by 99 Robots is a quick and simple way for you to add tracking code snippets, conversion pixels, or other scripts required by third party services for analytics, tracking, marketing, or chat functions. For detailed documentation, please visit the plugin's <a href="https://99robots.com/"> official page</a>.
|
6 |
-
* Version: 1.0
|
7 |
* Author: 99robots
|
8 |
* Author URI: https://99robots.com/
|
9 |
* Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
10 |
* Text Domain: 99robots-header-footer-code-manager
|
11 |
* Domain Path: /languages
|
12 |
*/
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
// If this file is called directly, abort.
|
15 |
if ( ! defined( 'WPINC' ) ) {
|
16 |
die;
|
17 |
}
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
global $hfcm_db_version;
|
20 |
$hfcm_db_version = '1.1';
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
// function to create the DB / Options / Defaults
|
23 |
function hfcm_options_install() {
|
24 |
|
3 |
* Plugin Name: Header Footer Code Manager
|
4 |
* Plugin URI: https://99robots.com/products
|
5 |
* Description: Header Footer Code Manager by 99 Robots is a quick and simple way for you to add tracking code snippets, conversion pixels, or other scripts required by third party services for analytics, tracking, marketing, or chat functions. For detailed documentation, please visit the plugin's <a href="https://99robots.com/"> official page</a>.
|
6 |
+
* Version: 1.1.0
|
7 |
* Author: 99robots
|
8 |
* Author URI: https://99robots.com/
|
9 |
* Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
10 |
* Text Domain: 99robots-header-footer-code-manager
|
11 |
* Domain Path: /languages
|
12 |
*/
|
13 |
+
?>
|
14 |
+
<style media="screen">
|
15 |
+
.hfcm-review-stars{
|
16 |
+
text-decoration: none;
|
17 |
+
}
|
18 |
+
.hfcm-review-stars span{
|
19 |
+
font-size: 16px;
|
20 |
+
width: 16px;
|
21 |
+
height: 16px;
|
22 |
+
margin-top: 2px;
|
23 |
+
}
|
24 |
+
.hfcm-dismiss-alert{
|
25 |
+
position: static !important;
|
26 |
+
float: right;
|
27 |
+
top: 0 !important;
|
28 |
+
right: 0 !important;
|
29 |
+
padding: 0 15px 10px 28px !important;
|
30 |
+
margin-top: -10px !important;
|
31 |
+
font-size: 13px;
|
32 |
+
line-height: 1.23076923;
|
33 |
+
text-decoration: none;
|
34 |
+
}
|
35 |
+
.hfcm-dismiss-alert:before{
|
36 |
+
position: relative;
|
37 |
+
top: 18px;
|
38 |
+
left: -20px;
|
39 |
+
}
|
40 |
+
#hfcm-message{
|
41 |
+
position: relative;
|
42 |
+
}
|
43 |
+
</style>
|
44 |
+
<?php
|
45 |
// If this file is called directly, abort.
|
46 |
if ( ! defined( 'WPINC' ) ) {
|
47 |
die;
|
48 |
}
|
49 |
|
50 |
+
// Create the Admin Notice
|
51 |
+
function hfcm_review_push_notice() {
|
52 |
+
$user_id = get_current_user_id();
|
53 |
+
// Check if current user has already dismissed it
|
54 |
+
if ( !get_user_meta( $user_id, 'hfcm_plugin_notice_dismissed' ) ) {
|
55 |
+
?>
|
56 |
+
<div id="hfcm-message" class="notice notice-success">
|
57 |
+
<a class="hfcm-dismiss-alert notice-dismiss" href="?hfcm-admin-notice-dismissed">Dismiss</a>
|
58 |
+
<p><?php _e( 'Hey there! You’ve been using the <strong>Header Footer Code Manager</strong> plugin for a while now. If you like the plugin, please support our awesome development and support team by leaving a <a class="hfcm-review-stars" href="https://wordpress.org/support/plugin/header-footer-code-manager/reviews/"><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span></a> rating. <a href="https://wordpress.org/support/plugin/header-footer-code-manager/reviews/">Rate it!</a> It’ll mean the world to us and keep this plugin free and constantly updated. <a href="https://wordpress.org/support/plugin/header-footer-code-manager/reviews/">Leave A Review</a>', '99robots-header-footer-code-manager' ); ?></p>
|
59 |
+
</div>
|
60 |
+
<?php
|
61 |
+
}
|
62 |
+
}
|
63 |
+
add_action( 'admin_notices', 'hfcm_review_push_notice' );
|
64 |
+
|
65 |
+
// Check if current user has already dismissed it
|
66 |
+
function hfcm_plugin_notice_dismissed() {
|
67 |
+
$user_id = get_current_user_id();
|
68 |
+
// Checking if user clicked on the Dismiss button
|
69 |
+
if ( isset( $_GET['hfcm-admin-notice-dismissed'] ) ){
|
70 |
+
add_user_meta( $user_id, 'hfcm_plugin_notice_dismissed', 'true', true );
|
71 |
+
}
|
72 |
+
}
|
73 |
+
add_action( 'admin_init', 'hfcm_plugin_notice_dismissed' );
|
74 |
+
|
75 |
+
/*****/
|
76 |
global $hfcm_db_version;
|
77 |
$hfcm_db_version = '1.1';
|
78 |
|
79 |
+
// Adding A settings link for the plugin on the Settings Page
|
80 |
+
add_filter('plugin_action_links_'.plugin_basename(__FILE__), 'hfcm_add_plugin_page_settings_link');
|
81 |
+
function hfcm_add_plugin_page_settings_link( $links ) {
|
82 |
+
$links = array_merge(array('<a href="' .
|
83 |
+
admin_url( 'admin.php?page=hfcm-list' ) .
|
84 |
+
'">' . __('Settings') . '</a>'), $links);
|
85 |
+
return $links;
|
86 |
+
}
|
87 |
+
|
88 |
// function to create the DB / Options / Defaults
|
89 |
function hfcm_options_install() {
|
90 |
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: 99robots, charliepatel
|
3 |
Tags: header, footer, code manager, snippet, functions.php, tracking, google analytics, adsense, verification, pixel
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 1.0
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
Donate link: https://99robots.com
|
@@ -85,13 +85,17 @@ NOTE: If using this plugin on a multisite network, please make sure that the plu
|
|
85 |
|
86 |
== Screenshots ==
|
87 |
|
88 |
-
1.
|
89 |
-
2.
|
|
|
90 |
http://www.99robots.com/docs/header-footer-code-manager
|
91 |
-
|
92 |
|
93 |
== Frequently Asked Questions ==
|
94 |
|
|
|
|
|
|
|
95 |
= Q. I have a question =
|
96 |
A. Since this is a free plugin, please ask all questions on the support forum here on WordPress.org. We will try to respond to every question within 48 hours.
|
97 |
|
@@ -103,6 +107,11 @@ A. If your script is not supported, just let us know and we'll look into it imme
|
|
103 |
|
104 |
== Changelog ==
|
105 |
|
|
|
|
|
|
|
|
|
|
|
106 |
= 1.0.9 = 2018-10-09
|
107 |
* UPDATED: Code Optimization
|
108 |
|
2 |
Contributors: 99robots, charliepatel
|
3 |
Tags: header, footer, code manager, snippet, functions.php, tracking, google analytics, adsense, verification, pixel
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 5.0.2
|
6 |
+
Stable tag: 1.1.0
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
Donate link: https://99robots.com
|
85 |
|
86 |
== Screenshots ==
|
87 |
|
88 |
+
1. HFCM Settings
|
89 |
+
2. Dashboard - All Snippets
|
90 |
+
3. Add New Snippet - Read the documentation at:
|
91 |
http://www.99robots.com/docs/header-footer-code-manager
|
92 |
+
4. Choose where you want your snippet to be displayed
|
93 |
|
94 |
== Frequently Asked Questions ==
|
95 |
|
96 |
+
= Q. Where are this plugin’s Settings located? =
|
97 |
+
A. After activating the plugin, you can click on settings link under the plugin name OR you can click the HFCM tab on the left side navigation. From there, you can add, edit, remove, and review code snippets.
|
98 |
+
|
99 |
= Q. I have a question =
|
100 |
A. Since this is a free plugin, please ask all questions on the support forum here on WordPress.org. We will try to respond to every question within 48 hours.
|
101 |
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
+
= 1.1.0 = 2018-12-31
|
111 |
+
* UPDATED: Code Optimization
|
112 |
+
* UPDATED: Added plugin settings link, and update documentation.
|
113 |
+
* Compatible with WordPress 5.0.2
|
114 |
+
|
115 |
= 1.0.9 = 2018-10-09
|
116 |
* UPDATED: Code Optimization
|
117 |
|