= $install_date && empty($optn) ) {
add_action( 'admin_notices', 'AffiliateLinkProtect_review_admin_notice' );
}
}
function AffiliateLinkProtect_review_admin_notice() {
echo '
';
$reviewurl = 'https://wordpress.org/support/plugin/affiliate-link-protect/reviews#new-post';
$nobugurl = get_admin_url() . '?AffiliateLinkProtect_remove_notice=1';
printf(__( "You have been using
Affiliate Link Protect for a while ... do you like it? If so, please
leave us a review with your feedback!
Leave A Review already Done", 'affiliate-link-protect'), $reviewurl , $nobugurl );
echo "
";
}
function AffiliateLinkProtect_remove_review_notice() {
$nobug = "";
if (isset( $_GET['AffiliateLinkProtect_remove_notice'] ) ) {
$nobug = esc_attr( $_GET['AffiliateLinkProtect_remove_notice'] );
}
if (1 == $nobug ) {
update_option( 'AffiliateLinkProtect_remove_notice', "1" );
}
}
add_action( 'admin_init', 'AffiliateLinkProtect_remove_review_notice', 5 );
// Admin Configuration Page
function AffiliateLinkProtectAdminPage(){
update_option( 'AffiliateLinkProtect_remove_notice', "" );
echo '
Affiliate Link Protect
'.__( 'Hide your affiliate parameters from all links on your blog!', 'affiliate-link-protect').'
'.__( 'To become more specific you may use the following fields:', 'affiliate-link-protect').'
'.__( 'How it works', 'affiliate-link-protect').'
'.__( 'When a blog page is displayed this plugin saves specific links in the page to memory and displays the urls on "mouse over" without parameters.', 'affiliate-link-protect').'
'.__( 'As soon as a link is clicked the user is directed to the internally saved link including all parameters', 'affiliate-link-protect').'.
';
}
function AffiliateLinkProtect_settings () {
register_setting( 'AffiliateLinkProtect', 'alp_param' );
register_setting( 'AffiliateLinkProtect', 'alp_elimi_paras' );
register_setting( 'AffiliateLinkProtect', 'alp_count' );
}
function AffiliateLinkProtect_menu(){
add_options_page( 'Affiliate Link Protect', 'Affiliate Link Protect', 'manage_options', 'AffiliateLinkProtect', 'AffiliateLinkProtectAdminPage');
}
?>