* @version 05/22/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_Remove_Quicktags extends Add_Quicktag_Settings { // post types for the settings private static $post_types_for_js; // default buttons from WP Core private static $core_quicktags = 'strong,em,link,block,del,ins,img,ul,ol,li,code,more,close,fullscreen'; // Transient string private static $addquicktag_core_quicktags = 'addquicktag_core_quicktags'; /** * Handler for the action 'init'. Instantiates this class. * * @access public * @since 2.0.0 * @return \Add_Quicktag|\Add_Quicktag_Remove_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_Remove_Quicktags */ private function __construct() { add_action( 'addquicktag_settings_form_page', array( $this, 'get_remove_quicktag_area' ) ); } /** * Add settings area * * @param $options */ public function get_remove_quicktag_area( $options ) { if ( ! isset( $options['core_buttons'] ) ) { $options['core_buttons'] = array(); } ?>

get_textdomain() ); ?>

Currently a Beta option, to validate and only usable global on each post type. Please give me hints, feedback via the support possibilities, like Github Issues or WP Support Forum.', $this->get_textdomain() ); ?>

$value ) { if ( array_key_exists( $value, $options['core_buttons'] ) ) { $checked = ' checked="checked"'; } else { $checked = ''; } // same style as in editor if ( 'strong' === $value ) { $text = 'b'; $style = ' style="font-weight: bold;"'; } else if ( 'em' === $value ) { $text = 'i'; $style = ' style="font-style: italic;"'; } else if ( 'link' === $value ) { $text = $value; $style = ' style="text-decoration: underline;"'; } else if ( 'del' === $value ) { $text = $value; $style = ' style="text-decoration: line-through;"'; } else if ( 'block' === $value ) { $text = 'b-quote'; $style = ''; } else { $text = $value; $style = ''; } echo ''; } // Convert new buttons array back into a comma-separated string $core_qt = implode( ',', $core_buttons ); ?>
'; echo ' ' . $value . '