\n"; $js .= "\taffburner_sid = \"" . $sid . "\";\n"; $js .= "\taffburner_ad_dimension = \"" . $size . "\";\n"; $js .= "\taffburner_ad_type = \"" . $type . "\";\n"; $js .= "\n"; $js .= "\n"; return $js; } /* * Generate javascript for each dimension */ function display_text_160x600() { return affburner_js("text", "160x600", get_option('affburner_sid')); } function display_text_125x125() { return affburner_js("text", "125x125", get_option('affburner_sid')); } function display_text_250x250() { return affburner_js("text", "250x250", get_option('affburner_sid')); } function display_text_468x60() { return affburner_js("text", "468x60", get_option('affburner_sid')); } function display_text_728x90() { return affburner_js("text", "728x90", get_option('affburner_sid')); } function display_graphic_88x31() { return affburner_js("graphic", "88x31", get_option('affburner_sid')); } function display_graphic_120x90() { return affburner_js("graphic", "120x90", get_option('affburner_sid')); } function display_graphic_160x600() { return affburner_js("graphic", "160x600", get_option('affburner_sid')); } function display_graphic_120x600() { return affburner_js("graphic", "120x600", get_option('affburner_sid')); } function display_graphic_125x125() { return affburner_js("graphic", "125x125", get_option('affburner_sid')); } function display_graphic_250x250() { return affburner_js("graphic", "250x250", get_option('affburner_sid'));; } function display_graphic_300x250() { return affburner_js("graphic", "300x250", get_option('affburner_sid')); } function display_graphic_234x60() { return affburner_js("graphic", "234x60", get_option('affburner_sid')); } function display_graphic_468x60() { return affburner_js("graphic", "468x60", get_option('affburner_sid')); } function display_graphic_728x90() { return affburner_js("graphic", "728x90", get_option('affburner_sid')); } /* * Show navigation tabs in admin settings */ function admin_tabs($tabs, $current=NULL){ if(is_null($current)){ if(isset($_GET['tab'])){ $current = $_GET['tab']; } } $content = ''; $content .= ''; return $content; } /* * Display settings page */ function affburner_shortcodes_options_page() { wp_register_style( 'table-style', plugins_url('stylesheet.css', __FILE__) ); global $shortcode_tags; $my_plugin_tabs = array( 'Settings' => 'Settings', ); echo admin_tabs($my_plugin_tabs); if ( !empty( $_POST)) { $sid = $_POST['sid']; if(empty($sid)) { echo '
SID cannot be empty
'; } else { echo '

SID saved, shortcodes are ready for use!

'; update_option('affburner_sid', $sid); } } if (empty($_GET['tab']) || $_GET['tab']=='Settings') { ?>

Affburner shortcodes for Wordpress settings

If you don't have an Affburner-account you can register it for free here
If you wish to check your earnings, please login

">
SID:
Your unique site identifier.

Available shortcodes

The shortcodes below are now availble for use.

Text ad shortcodes

[affburner_text_160x600] Display a text advertisement with a width of 160 and a height of 600 (Vertical)
[affburner_text_468x60] Display a text advertisement with a width of 468 and a height of 60 (Horizontal)
[affburner_text_728x90] Display a text advertisement with a width of 728 and a height of 90 (Vertical)
[affburner_text_125x125] Display a text advertisement with a width of 125 and a height of 125 (Square)
[affburner_text_250x250] Display a text advertisement with a width of 250 and a height of 250 (Square)

Graphic ad shortcodes

[affburner_graphic_88x31] Display a graphic advertisement with a width of 80 and a height of 31 (Horizontal)
[affburner_graphic_120x90] Display a graphic advertisement with a width of 120 and a height of 90 (Horizontal)
[affburner_graphic_160x600] Display a graphic advertisement with a width of 160 and a height of 600 (Vertical)
[affburner_graphic_120x600] Display a graphic advertisement with a width of 120 and a height of 600 (Vertical)
[affburner_graphic_125x125] Display a graphic advertisement with a width of 125 and a height of 125 (Square)
[affburner_graphic_250x250] Display a graphic advertisement with a width of 120 and a height of 600 (Vertical)
[affburner_graphic_300x250] Display a graphic advertisement with a width of 300 and a height of 250 (Square)
[affburner_graphic_234x60] Display a graphic advertisement with a width of 234 and a height of 60 (Vertical)
[affburner_graphic_468x60] Display a graphic advertisement with a width of 468 and a height of 260 (Vertical)
[affburner_graphic_728x90] Display a graphic advertisement with a width of 728 and a height of 90 (Vertical)