Changeset 1694125
- Timestamp:
- 07/11/2017 03:21:10 AM (9 years ago)
- Location:
- kopa-page-builder
- Files:
-
- 67 added
- 4 edited
-
tags/2.0.8 (added)
-
tags/2.0.8/assets (added)
-
tags/2.0.8/assets/css (added)
-
tags/2.0.8/assets/css/_config.sass (added)
-
tags/2.0.8/assets/css/_grid.scss (added)
-
tags/2.0.8/assets/css/font-kpb.css (added)
-
tags/2.0.8/assets/css/font-kpb.min.css (added)
-
tags/2.0.8/assets/css/jquery-ui (added)
-
tags/2.0.8/assets/css/jquery-ui/_jquery-ui-slider.scss (added)
-
tags/2.0.8/assets/css/magnific-popup.css (added)
-
tags/2.0.8/assets/css/magnific-popup.min.css (added)
-
tags/2.0.8/assets/css/style.css (added)
-
tags/2.0.8/assets/css/style.min.css (added)
-
tags/2.0.8/assets/css/style.scss (added)
-
tags/2.0.8/assets/fonts (added)
-
tags/2.0.8/assets/fonts/font-kpb.svg (added)
-
tags/2.0.8/assets/fonts/font-kpb.ttf (added)
-
tags/2.0.8/assets/fonts/font-kpb.woff (added)
-
tags/2.0.8/assets/images (added)
-
tags/2.0.8/assets/images/placehold.png (added)
-
tags/2.0.8/assets/images/textarea.gif (added)
-
tags/2.0.8/assets/images/transp_bg.png (added)
-
tags/2.0.8/assets/js (added)
-
tags/2.0.8/assets/js/jquery.magnific-popup.js (added)
-
tags/2.0.8/assets/js/jquery.magnific-popup.min.js (added)
-
tags/2.0.8/assets/js/script.coffee (added)
-
tags/2.0.8/assets/js/script.js (added)
-
tags/2.0.8/assets/js/script.min.js (added)
-
tags/2.0.8/inc (added)
-
tags/2.0.8/inc/class-kpb-admin-assets.php (added)
-
tags/2.0.8/inc/class-kpb-ajax.php (added)
-
tags/2.0.8/inc/class-kpb-autoloader.php (added)
-
tags/2.0.8/inc/class-kpb-col.php (added)
-
tags/2.0.8/inc/class-kpb-data.php (added)
-
tags/2.0.8/inc/class-kpb-editor.php (added)
-
tags/2.0.8/inc/class-kpb-field.php (added)
-
tags/2.0.8/inc/class-kpb-layout.php (added)
-
tags/2.0.8/inc/class-kpb-minify.php (added)
-
tags/2.0.8/inc/class-kpb-row.php (added)
-
tags/2.0.8/inc/class-kpb-shortcode.php (added)
-
tags/2.0.8/inc/class-kpb-ui.php (added)
-
tags/2.0.8/inc/class-kpb-utility.php (added)
-
tags/2.0.8/inc/class-kpb-widget.php (added)
-
tags/2.0.8/inc/fields (added)
-
tags/2.0.8/inc/fields/class-kpb-field-alert.php (added)
-
tags/2.0.8/inc/fields/class-kpb-field-attachment-image.php (added)
-
tags/2.0.8/inc/fields/class-kpb-field-checkbox.php (added)
-
tags/2.0.8/inc/fields/class-kpb-field-color.php (added)
-
tags/2.0.8/inc/fields/class-kpb-field-icon.php (added)
-
tags/2.0.8/inc/fields/class-kpb-field-image.php (added)
-
tags/2.0.8/inc/fields/class-kpb-field-number.php (added)
-
tags/2.0.8/inc/fields/class-kpb-field-numeric-slider.php (added)
-
tags/2.0.8/inc/fields/class-kpb-field-radio-image.php (added)
-
tags/2.0.8/inc/fields/class-kpb-field-radio.php (added)
-
tags/2.0.8/inc/fields/class-kpb-field-select.php (added)
-
tags/2.0.8/inc/fields/class-kpb-field-text.php (added)
-
tags/2.0.8/inc/fields/class-kpb-field-textarea.php (added)
-
tags/2.0.8/inc/minifier (added)
-
tags/2.0.8/inc/minifier/class-kpb-minifier-css.php (added)
-
tags/2.0.8/inc/minifier/class-kpb-minifier-html.php (added)
-
tags/2.0.8/inc/shortcodes (added)
-
tags/2.0.8/inc/shortcodes/class-kpb-shortcode-site-url.php (added)
-
tags/2.0.8/kopa-page-builder.php (added)
-
tags/2.0.8/languages (added)
-
tags/2.0.8/languages/kopa-page-builder.pot (added)
-
tags/2.0.8/license.txt (added)
-
tags/2.0.8/readme.txt (added)
-
trunk/inc/class-kpb-widget.php (modified) (6 diffs)
-
trunk/inc/fields/class-kpb-field-icon.php (modified) (1 diff)
-
trunk/kopa-page-builder.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kopa-page-builder/trunk/inc/class-kpb-widget.php
r1509143 r1694125 151 151 152 152 $widgets = $block_info['items']; 153 153 unset($widgets['WP_Widget_Media_Video']); 154 unset($widgets['WP_Widget_Media_Image']); 155 unset($widgets['WP_Widget_Media_Audio']); 154 156 ksort( $widgets ); 155 157 … … 244 246 <?php 245 247 $widgets = $block_info['items']; 248 unset($widgets['WP_Widget_Media_Video']); 249 unset($widgets['WP_Widget_Media_Image']); 250 unset($widgets['WP_Widget_Media_Audio']); 246 251 ksort( $widgets ); 247 252 foreach ( $widgets as $class_name => $widget_info ) : … … 462 467 463 468 <div id="<?php echo "kpb-tab-widget-{$widget->id_base}"; ?>" class="kpb-tab-content"> 464 <?php $widget->form( $instance ); ?> 469 <?php 470 if ( $class_name == 'WP_Widget_Text' ) { 471 $this->form_wg_text( $instance ); 472 } else { 473 $widget->form( $instance ); 474 } 475 ?> 465 476 </div> 466 477 … … 556 567 // Create instance of current widget. 557 568 $obj = new $widget['class_name']; 558 $widget['widget'] = $obj->update( $widget['widget'], array() ); 569 570 if ( $widget['class_name'] == 'WP_Widget_Text' ) { 571 $this->update_wg_text( $widget['widget'], array() ); 572 } else { 573 $widget['widget'] = $obj->update( $widget['widget'], array() ); 574 } 559 575 560 576 // Create title for visual block. … … 611 627 612 628 ob_start(); 613 $obj->form( $widget['widget'] ); 629 if ( $widget['class_name'] == 'WP_Widget_Text' ) { 630 $this->form_wg_text( $widget['widget'] ); 631 } else { 632 $obj->form( $widget['widget'] ); 633 } 634 635 614 636 $response['form'] = $html_minifier->minify( stripslashes( ob_get_clean() ) ); 615 637 … … 620 642 exit(); 621 643 } 644 645 public function form_wg_text( $instance ) { 646 $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'text' => '' ) ); 647 $filter = isset( $instance['filter'] ) ? $instance['filter'] : 0; 648 $title = sanitize_text_field( $instance['title'] ); 649 ?> 650 <p><label for="widget-kpb-0-title"><?php _e('Title:'); ?></label> 651 <input class="widefat" id="widget-kpb-0-title" name="widget-kpb[0][title]" type="text" value="<?php echo esc_attr($title); ?>" /></p> 652 653 <p><label for="widget-kpb-0-text"><?php _e( 'Content:' ); ?></label> 654 <textarea class="widefat" rows="16" cols="20" id="widget-kpb-0-text" name="widget-kpb[0][text]"><?php echo esc_textarea( $instance['text'] ); ?></textarea></p> 655 656 <p><input id="widget-kpb-0-filter" name="widget-kpb[0][filter]" type="checkbox"<?php if ( 'on' === $filter ) echo 'checked="checked"'; ?> /> <label for="widget-kpb-0-filter"><?php _e('Automatically add paragraphs'); ?></label></p> 657 <?php 658 } 659 660 public function update_wg_text( $new_instance, $old_instance ) { 661 $instance = $old_instance; 662 $instance['title'] = sanitize_text_field( $new_instance['title'] ); 663 if ( current_user_can( 'unfiltered_html' ) ) { 664 $instance['text'] = $new_instance['text']; 665 } else { 666 $instance['text'] = wp_kses_post( $new_instance['text'] ); 667 } 668 $instance['filter'] = ! empty( $new_instance['filter'] ); 669 return $instance; 670 } 622 671 } 623 672 -
kopa-page-builder/trunk/inc/fields/class-kpb-field-icon.php
r1492305 r1694125 6 6 7 7 function display() { 8 9 $this->params['options'] = array( '' => esc_html__( '-- select icon --', 'kopa-page-builder' ) ); 10 $icons = self::get_icons(); 11 foreach ( $icons as $icon ) { 12 $this->params['options'][ $icon ] = str_replace( 'fa fa-', '', $icon ); 8 if( class_exists( 'Kopa_Framework' ) ) { 9 10 $this->params['type'] = 'icon_picker'; 11 $this->params['id'] = KPB_Utility::str_uglify( $this->params['name'] ); 12 echo kopa_form_field_icon_picker( '', '', $this->params , $this->params['value'] ); 13 14 }else { 15 16 $this->params['options'] = array( '' => esc_html__( '-- select icon --', 'kopa-page-builder' ) ); 17 $icons = self::get_icons(); 18 foreach ( $icons as $icon ) { 19 $this->params['options'][ $icon ] = str_replace( 'fa fa-', '', $icon ); 20 } 21 $cbo = new KPB_Field_Select( $this->params ); 22 $cbo->display(); 23 13 24 } 14 15 16 $cbo = new KPB_Field_Select( $this->params );17 $cbo->display();18 25 } 19 26 -
kopa-page-builder/trunk/kopa-page-builder.php
r1563250 r1694125 8 8 * Plugin Name: Kopa Page Builder 9 9 * Description: Kopa Page Builder plugin helps you create static pages by manually adding, editing or moving the widgets to the expected sidebars. Unlike the other Page Builder plugins which available on WordPress.org now, this plugin requires a deep understanding of technical knowledge and WordPress to use for your website. 10 * Version: 2.0. 710 * Version: 2.0.8 11 11 * Author: Kopa Theme 12 12 * Author URI: http://kopatheme.com/ -
kopa-page-builder/trunk/readme.txt
r1563250 r1694125 4 4 Requires at least: 4.4 5 5 Tested up to: 4.7 6 Stable tag: 2.0. 76 Stable tag: 2.0.8 7 7 8 8 == Description == … … 27 27 28 28 == Changelog == 29 30 = 2.0.8 = 31 * Inherit field "icon_picker" from plugin "Kopa Framework" 32 * Fixed Widget Text in WordPress 4.8 29 33 30 34 = 2.0.7 =
Note: See TracChangeset
for help on using the changeset viewer.