Settings'; array_unshift($links, $settings_link); return $links; } } add_filter("plugin_action_links_".plugin_basename(__FILE__), 'aklamatorPro_plugin_settings_link',10 ,2); /* * Activation Hook */ register_activation_hook( __FILE__, 'set_up_optionsPro' ); function set_up_optionsPro(){ add_option('aklamatorProApplicationID', ''); add_option('aklamatorProPoweredBy', ''); add_option('aklamatorProSingleWidgetID', ''); add_option('aklamatorProPageWidgetID', ''); add_option('aklamatorProSingleWidgetTitle', ''); // Ads codes add_option('aklamatorProAds', ''); add_option('aklamatorProAds2', ''); add_option('aklamatorProAds3', ''); // Custom Ads names add_option('aklamatorProAds1Name', ''); add_option('aklamatorProAds2Name', ''); add_option('aklamatorProAds3Name', ''); } /* * Uninstall Hook */ register_uninstall_hook(__FILE__, 'aklamatorPro_uninstall'); function aklamatorPro_uninstall() { if (get_option('aklamatorProApplicationID')) { delete_option('aklamatorProApplicationID'); } if (get_option('aklamatorProPoweredBy')) { delete_option('aklamatorProPoweredBy'); } if(get_options('aklamatorProSingleWidgetID')){ delete_options('aklamatorProSingleWidgetID'); } if(get_options('aklamatorProPageWidgetID')){ delete_options('aklamatorProPageWidgetID'); } if(get_options('aklamatorProSingleWidgetTitle')){ delete_options('aklamatorProSingleWidgetTitle'); } // Ads codes if(get_options('aklamatorProAds')){ delete_options('aklamatorProAds'); } if(get_options('aklamatorProAds2')){ delete_options('aklamatorProAds2'); } if(get_options('aklamatorProAds3')){ delete_options('aklamatorProAds3'); } // Custom Ad names if(get_options('aklamatorProAds1Name')){ delete_options('aklamatorProAds1Name'); } if(get_options('aklamatorProAds2Name')){ delete_options('aklamatorProAds2Name'); } if(get_options('aklamatorProAds3Name')){ delete_options('aklamatorProAds3Name'); } } if (!function_exists("bottom_of_every_postPro")) { function bottom_of_every_postPro($content) { /* we want to change `the_content` of posts, not pages and the text file must exist for this to work */ if (is_single()) { $widget_id = get_option('aklamatorProSingleWidgetID'); } elseif (is_page()) { $widget_id = get_option('aklamatorProPageWidgetID'); } else { /* if `the_content` belongs to a page or our file is missing the result of this filter is no change to `the_content` */ return $content; } $title = ""; if (get_option('aklamatorProSingleWidgetTitle') !== '') { $title .= "