* @since 01/26/2014 */ if ( ! function_exists( 'add_action' ) ) { echo "Hi there! I'm just a part of plugin, not much I can do when called directly."; exit; } /** * Class Add_Quicktag_Code_Quicktags */ class Add_Quicktag_Code_Quicktags extends Add_Quicktag_Settings { /** * Post types for the settings * * @var */ private static $post_types_for_js; /** * Static var for textdomain * * @var string */ public static $textdomain = ''; /** * Handler for the action 'init'. Instantiates this class. * * @access public * @since 2.0.0 * @return \Add_Quicktag|\Add_Quicktag_Code_Quicktags|\Add_Quicktag_Settings $instance */ public static function get_object() { static $instance; if ( NULL === $instance ) { $instance = new self(); } return $instance; } /** * Constructor, init on defined hooks of WP and include second class * * @access public * @since 0.0.2 * @uses register_activation_hook, register_uninstall_hook, add_action * @return \Add_Quicktag_Code_Quicktags */ private function __construct() { self::$textdomain = parent::get_textdomain(); add_action( 'addquicktag_settings_form_page', array( $this, 'get_code_quicktag_area' ) ); } /** * Add settings area * * @param $options */ public function get_code_quicktag_area( $options ) { if ( ! isset( $options['code_buttons'] ) ) { $options['code_buttons'] = array(); } $checked_enhanced_code = $checked_ende_coding = ''; if ( array_key_exists( 'enhanced_code', $options['code_buttons'] ) ) { $checked_enhanced_code = ' checked="checked"'; } if ( array_key_exists( 'ende_coding', $options['code_buttons'] ) ) { $checked_ende_coding = ' checked="checked"'; } ?>

get_textdomain() ); ?>

'; ?> Add a pull down menu for different languages before the default code button and include this as class inside the code tag. Also add a pre button for preformatted text.', self::$textdomain ); ?>
'; ?>