inline_shortcodes = Mfn_Builder_Fields::get_inline_shortcode(); } } /** * Render */ public function render( $meta = false, $vb = false, $js = false ) { $cm = ''; // theme options: CSS, JS $editor = ''; // builder: basic (bold, i, etc), full (media, shortcodes) | HTML $class = ''; $placeholder = ''; $preview = ''; // codemirror if( ! empty( $this->field['cm'] ) ){ $cm = $this->field['cm']; } // editor if( ! empty( $this->field['editor'] ) ){ $editor = $this->field['editor']; } if( $cm || $editor ){ $class = 'html-editor'; } // user settings if ( 'false' == get_user_option( 'syntax_highlighting' ) ){ $class .= ' disabled'; } // placeholder if( ! empty( $this->field['placeholder'] ) ){ $placeholder = $this->field['placeholder']; } if( ! empty( $this->field['std'] ) ){ $placeholder = $this->field['std']; } // preview if ( ! empty( $this->field['preview'] ) ){ $preview = 'preview-'. $this->field['preview']; } // rank math field type if ( ! empty( $this->field['rm'] ) ){ $preview .= ' rm-'. $this->field['rm']; } // output ----- if( $vb && empty( $this->field['editor'] ) && empty( $this->field['cm'] )){ if( $js ){ echo ''; }else{ echo ''; } if( !empty($this->field['dynamic_data']) ) { echo Mfn_Options_field::dynamic_data_options($this->field['dynamic_data']); } }else{ echo '