John August. Author: Nima Yousefi Author URI: http://equinox-of-insanity.com Version: 1.2 This plugin uses the function found in the file "scrippetize.php" to create the formatted HTML. ****************************************************************************/ require('scrippetize.php'); add_filter('post_text', 'build_scrippet', 1, 1); add_action('bb_head', 'add_scrippet_css'); add_action('bb_admin_menu_generator', 'add_scrippets_admin_panel'); function build_scrippet($text) { $settings = bb_get_option('scrippet_options'); $wrap_before = ''; $wrap_after = ''; if($settings['border_style'] == 'Drop Shadow') { $wrap_before = "
\n
\n"; $wrap_after = "
\n
\n"; } $text = scrippetize($text, $wrap_before, $wrap_after); // see scrippetize.php for details return $text; } // Options & Admin Stuff $default_options = array('width' => '400', 'bg_color' => '#FFFFFC', 'text_color' => '#000000', 'border_style' => 'Simple', 'alignment' => 'Left'); if(!bb_get_option('scrippet_options')) { bb_update_option('scrippet_options', $default_options); // create the defaults } function add_scrippet_css($u) { // add the base CSS echo '' . "\n"; // now modify CSS if necessary $settings = bb_get_option('scrippet_options'); echo "\n\n\n\n"; // close the div.scrippet CSS block if($settings['border_style'] == 'Drop Shadow') { $shadow_width = $settings['width'] + 50; echo '' . "\n"; echo "\n\n"; } echo "\n\n"; if (stristr($_SERVER['HTTP_USER_AGENT'], 'iPhone')) { // need to modify the font to work with the iPhone echo "\n\n"; } if (stristr($_SERVER['HTTP_USER_AGENT'], 'Windows')) { // need to modify the font to work better on Windows echo "\n\n"; } } function scrippets_options_panel() { global $default_options; $settings = bb_get_option('scrippet_options'); $cs_home = bb_get_option('uri') . '/bb-plugins/bb-scrippets/colorselector'; ?>

Scrippets Options

These are the Scrippet options that you can modify. If you'd like to return the options to their default state click the reset button in the bottom right corner of the page.

" method="post" id="scrippets_form">
Default:
Defines the width of the Scrippet box in pixels.
Default:
Default:
The alignment of the Scrippet box on the page.

Default: .

Default: