Get all pro-features and take your blog to next level. Author: BlashO Version: 2.1 Author URI: https://www.blasho.com/ */ add_action('admin_init', 'AffiLinker_Operations'); add_action('admin_menu', 'AffiLinker_CreateMenu'); add_filter('the_content', 'AffiLinker_InsertAffiliateLinks'); add_filter('get_comment', 'AffiLinker_InsertAffiliateLinksToComment'); $link = ''; $linkformat = ''; $linkformat4comm = ''; $linknofollow = ''; $linklink_target = ''; $linkhead = ''; $linkclass = ''; $afflt = array('AffiLinker Pro-Features, take to the next level', 'AffiLinker - General Settings'); function AffiLinker_create_ad_widget() { register_widget('AffiLinkerWidget'); } class AffiLinkerWidget extends WP_Widget { function AffiLinkerWidget() { //Constructor parent::WP_Widget(false, $name = 'AffiLinker Cloud', array( 'description' => 'Widget to create list/cloud of Affiliate links.' )); } function widget($args, $instance) { extract($args); echo $before_widget; $affl_underline_options_array = array( "", "text-decoration: none; border-bottom:1px dotted;", "text-decoration: none; border-bottom:2px dotted;", "text-decoration: none; border-bottom:1px dashed;", "text-decoration: none; border-bottom:2px dashed;", "text-decoration: none; border-bottom:1px solid red;", "text-decoration: none; border-bottom:2px solid red;", "text-decoration: none; border-bottom:3px double;", "text-decoration: none; border-bottom:4px double;", "text-decoration: underline overline;"); $family_array = array( "Default Font", "Arial", "Arial Black", "Comic", "Comic Sans MS", "Courier", "Courier New", "Franklin Gothic", "Georgia", "Helvetica", "Impact", "Lucida Sans", "Microsoft Sans Serif", "Monaco", "MV Boli", "Tahoma", "Times", "Times New Roman", "Trebuchet MS", "Verdana"); $affl_widget_title = get_option("affl_widget_title"); $affl_widget_title = esc_attr($instance['affl_widget_title']); $affl_widget_title = $affl_widget_title ? $affl_widget_title : 'AffiLinker Cloud'; $affl_link_term = get_option("affl_link_term"); echo "\n" . $before_title; echo $affl_widget_title; echo $after_title; global $wpdb; $table_name = $wpdb->prefix . "affilinker_db"; $myrows = $wpdb->get_results("SELECT * FROM " . $table_name); $affl_widget_no_keywords_counter = 0; $affl_widget_interactive_opt = esc_attr($instance['affl_widget_interactive_opt']); $affl_widget_interactive_opt = $affl_widget_interactive_opt ? $affl_widget_interactive_opt : '0'; $affl_widget_avoid_dup = esc_attr($instance['affl_widget_avoid_dup']); $affl_widget_avoid_dup = affl_widget_avoid_dup ? $affl_widget_avoid_dup : '0'; $affl_widget_no_keywords = esc_attr($instance['affl_widget_no_keywords']); $affl_widget_no_keywords = $affl_widget_no_keywords ? $affl_widget_no_keywords : '10'; $affl_widget_type = esc_attr($instance['affl_widget_type']); $affl_widget_type = $affl_widget_type ? $affl_widget_type : '21'; $affl_widget_font_startpx = esc_attr($instance['affl_widget_font_startpx']); $affl_widget_font_startpx = $affl_widget_font_startpx ? $affl_widget_font_startpx : '10'; $affl_widget_font_endpx = esc_attr($instance['affl_widget_font_endpx']); $affl_widget_font_endpx = $affl_widget_font_endpx ? $affl_widget_font_endpx : '25'; $affl_widget_no_keywords = esc_attr($instance['affl_widget_no_keywords']); $affl_widget_no_keywords = $affl_widget_no_keywords ? $affl_widget_no_keywords : '10'; if ($affl_widget_type == 20) echo '
';
echo 'Currently, you are using the free version of AffiLinker.
Comes with 60-day money back guarantee!
Note: Currently, with this free version you can manage 6 affiliate links (supports unlimited keywords & unlimited conversions) only. '; echo ' |
';
echo 'You are using all the pro-features of AffiLinker.
Good Luck!
';
echo ' |
|
';
if (get_option("affl_updav") == 0)
{
echo ' You are already using the latest version of AffiLinker'; } else if (get_option("affl_updav") == 100) { echo ' There is a new version of AffiLinker here'; } echo ' |