Changeset 2417374
- Timestamp:
- 11/12/2020 05:45:21 PM (5 years ago)
- Location:
- wysiwyg-editor-for-contact-form-7
- Files:
-
- 22 added
- 4 edited
-
tags/1.0.0 (added)
-
tags/1.0.0/assets (added)
-
tags/1.0.0/assets/js (added)
-
tags/1.0.0/assets/js/main.frontend.js (added)
-
tags/1.0.0/bootloader.php (added)
-
tags/1.0.0/contact-form-7-wysiwyg.php (added)
-
tags/1.0.0/includes (added)
-
tags/1.0.0/includes/activator.php (added)
-
tags/1.0.0/includes/autoloader.php (added)
-
tags/1.0.0/includes/modules (added)
-
tags/1.0.0/includes/modules/admin.php (added)
-
tags/1.0.0/includes/modules/frontend.php (added)
-
tags/1.0.0/includes/plugin.php (added)
-
tags/1.0.0/index.php (added)
-
tags/1.0.0/languages (added)
-
tags/1.0.0/languages/cf7-wysiwyg-en_US.mo (added)
-
tags/1.0.0/languages/cf7-wysiwyg-en_US.po (added)
-
tags/1.0.0/languages/cf7-wysiwyg.pot (added)
-
tags/1.0.0/readme.txt (added)
-
tags/1.0.0/templates (added)
-
tags/1.0.0/templates/generator.php (added)
-
tags/1.0.0/uninstall.php (added)
-
trunk/contact-form-7-wysiwyg.php (modified) (1 diff)
-
trunk/includes/autoloader.php (modified) (1 diff)
-
trunk/includes/modules/frontend.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wysiwyg-editor-for-contact-form-7/trunk/contact-form-7-wysiwyg.php
r2416820 r2417374 10 10 * Plugin URI: https://github.com/DimChtz/contact-form-7-wysiwyg 11 11 * Description: Adds WYSIWYG Editor field for Contact Form 7 12 * Version: 1.0. 012 * Version: 1.0.1 13 13 * Author: Dimitris Chatzis 14 14 * Author URI: https://github.com/DimChtz -
wysiwyg-editor-for-contact-form-7/trunk/includes/autoloader.php
r2416820 r2417374 7 7 spl_autoload_register(function($class) { 8 8 9 // Replace separators 10 $class = str_replace('\\', DIRECTORY_SEPARATOR , $class); 11 12 // Filter the class name remove base namespace 9 // Filter the class name (remove base namespace) 13 10 $class = implode('\\', array_filter(explode('\\', $class), function($token) { 14 11 return !in_array($token, ['Dimchtz', 'CF7_WYSIWYG']); 15 12 })); 13 14 // Replace separators and convert to lcase 15 $class = strtolower(str_replace('\\', DIRECTORY_SEPARATOR , $class)); 16 16 17 17 // Get the filename -
wysiwyg-editor-for-contact-form-7/trunk/includes/modules/frontend.php
r2416820 r2417374 43 43 44 44 if ( $this->instance->is_active ) { 45 add_action('wpcf7_init', [$this, 'wpcf7_init'] , 45);45 add_action('wpcf7_init', [$this, 'wpcf7_init']); 46 46 } 47 47 … … 113 113 public function wysiwyg_tag_handler($tag) { 114 114 115 $atts = array(); 115 $tag = new \WPCF7_FormTag($tag); 116 $atts = array(); 116 117 117 118 $atts['class'] = $tag->get_class_option( wpcf7_form_controls_class( $tag->type, 'wysiwyg' ) ); -
wysiwyg-editor-for-contact-form-7/trunk/readme.txt
r2416820 r2417374 6 6 Tested up to: 5.5 7 7 Requires PHP: 5.6 8 Stable Tag: 1.0. 08 Stable Tag: 1.0.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 31 31 1. Admin 32 32 2. Frontend form 33 34 == Changelog == 35 36 = 1.0.1 = 37 * Fixed autoloader issue
Note: See TracChangeset
for help on using the changeset viewer.