= $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", 'AffiliateLinkProtect'), $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! Without further configuration this plugin will hide all parameters in all external/internal links of your blog which is fine for most situations.', 'AffiliateLinkProtect').'

'.__( 'To become more specific you may use the following fields:', 'AffiliateLinkProtect').'

'; settings_fields( 'AffiliateLinkProtect' ); do_settings_sections( 'AffiliateLinkProtect' ); echo '

'.__( 'Add this parameter (e.g. "&alp=1") to specific links that shall be protected - leave empty for all links', 'AffiliateLinkProtect').'

'.__( 'comma separated list of parameters to hide - leave empty to hide all parameters', 'AffiliateLinkProtect').'

'; submit_button(); echo '

'.__( 'How it works', 'AffiliateLinkProtect').'

'.__( 'When a blog page is displayed this plugin saves all links in the page to memory and displays the urls on "mouse over" without parameters.', 'AffiliateLinkProtect').'

'.__( 'As soon as a link is clicked the user is directed to the internally saved link including all parameters', 'AffiliateLinkProtect').'.

'; } 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'); } ?>