'.get_option('2mb_autocode_topstring').''.$content; } else { $content = do_shortcode(get_option('2mb_autocode_topstring')).$content; } } if((is_single() || get_option('2mb_autocode_bottomhome') == 1) && $count2 == 0) { if(get_option('2mb_autocode_bottomtype') == 1) { $content = $content.do_shortcode(exec(get_option('2mb_autocode_bottomstring'))); } else if(get_option('2mb_autocode_bottomtype') == 2) { $content = $content.'
'.get_option('2mb_autocode_bottomstring').'';
}
else {
$content = $content.do_shortcode(get_option('2mb_autocode_bottomstring'));
}
}
return $content;
}
add_action('admin_menu', 'twomb_autocode_init_admin_menu');
function twomb_autocode_init_admin_menu() {
add_options_page('Autocode Options', 'Autocode', 'manage_options', 'twomb-autocode-settings', 'twomb_autocode_options');
}
function twomb_autocode_options() {
if(!current_user_can( 'manage_options')) {
wp_die( 'You do not have rights to access this page.');
}
?>
Do you like this plugin? Does it make your life just a little bit easier -- we hope! If it does, please consider donating to help our plugin effort along. Any amount helps. We'll love you forever ;-)
Enter your settings below, then click save to save your changes.