PATH:
home
/
centosnipponia
/
public_html
/
sweetrich
/
wp-content
/
themes
/
sydney-pro-ii
/
inc
/
customizer
/
controls
<?php /** * TinyMCE control * * @package Sydney * */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } class Sydney_TinyMCE_Control extends WP_Customize_Control { /** * The type of control being rendered */ public $type = 'sydney-tinymce'; /** * Constructor */ public function __construct( $manager, $id, $args = array(), $options = array() ) { parent::__construct( $manager, $id, $args ); } /** * Enqueue our scripts and styles */ public function enqueue(){ wp_enqueue_editor(); } /** * Pass our TinyMCE toolbar string to JavaScript */ public function to_json() { parent::to_json(); $this->json['sydneytb1'] = isset( $this->input_attrs['toolbar1'] ) ? esc_attr( $this->input_attrs['toolbar1'] ) : 'bold italic bullist numlist alignleft aligncenter alignright link'; $this->json['sydneytb2'] = isset( $this->input_attrs['toolbar2'] ) ? esc_attr( $this->input_attrs['toolbar2'] ) : 'formatselect outdent indent | blockquote charmap'; $this->json['sydneymb'] = isset( $this->input_attrs['mediaButtons'] ) && ( $this->input_attrs['mediaButtons'] === true ) ? true : false; $this->json['force_p_newlines '] = true; } /** * Render the control in the customizer */ public function render_content(){ ?> <div class="tinymce-control"> <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> <?php if( !empty( $this->description ) ) { ?> <span class="customize-control-description"><?php echo esc_html( $this->description ); ?></span> <?php } ?> <textarea id="<?php echo esc_attr( $this->id ); ?>" class="customize-control-tinymce-editor" <?php $this->link(); ?>><?php echo esc_html( $this->value() ); ?></textarea> </div> <?php } }
[+]
..
[+]
accordion
[+]
alpha-color
[+]
custom-sidebars
[+]
display-conditions
[+]
multiple-select
[+]
quick-links
[+]
radio-buttons
[+]
radio-images
[+]
repeater
[+]
responsive-slider
[+]
toggle
[+]
typography
[+]
typography-adobe
[-] class_sydney_create_page_control.php
[edit]
[-] class_sydney_divider_control.php
[edit]
[-] class_sydney_posts_control.php
[edit]
[-] class_sydney_tab_control.php
[edit]
[-] class_sydney_text_control.php
[edit]
[-] class_sydney_tinymce_control.php
[edit]
[-] control-checkbox-multiple.php
[edit]
[-] .htaccess.disabled
[edit]