Changeset 2533133
- Timestamp:
- 05/17/2021 03:57:39 PM (5 years ago)
- Location:
- magic-conversation-for-gravity-forms/trunk
- Files:
-
- 6 edited
-
main.php (modified) (11 diffs)
-
plugin-index.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
yakker-gravityforms/class-gfyakkeraddon.php (modified) (4 diffs)
-
yakker-gravityforms/css/my_styles.css (modified) (1 diff)
-
yakker-gravityforms/gfyakkeraddon.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
magic-conversation-for-gravity-forms/trunk/main.php
r2424672 r2533133 977 977 wp_editor( '', $this->editor_id, array( 978 978 'media_buttons' => true, 979 'textarea_name' => $this->editor_id 979 'textarea_name' => $this->editor_id, 980 'editor_class' => 'mcfgf-wp_editor wysiwyg_exclude' 980 981 )); 981 982 } 982 983 else { 983 984 ?> 984 <textarea id="<?php echo $this->editor_id; ?>" class="fieldwidth-3 fieldheight-2 "></textarea>985 <textarea id="<?php echo $this->editor_id; ?>" class="fieldwidth-3 fieldheight-2 wysiwyg_exclude"></textarea> 985 986 <?php } ?> 986 987 </div> … … 1044 1045 jQuery('#<?php echo $this->editor_id; ?>').bind('input propertychange', function() { 1045 1046 SetFieldProperty('<?php echo $this->editor_id; ?>', jQuery(this).val()); 1047 // console.log('update content on change2021',field_name, jQuery(this).val()); 1046 1048 }); 1047 1049 … … 1207 1209 var editor_mcfgf_woocommerce_product_template_selected = null; 1208 1210 var editor_mcfgf_woocommerce_product_template_normal = null; 1209 $("#field_settings").on("click", 'a[href="#mcfgf_tab_yakker"]', function(){1211 jQuery("#field_settings").on("click", 'a[href="#mcfgf_tab_yakker"]', function(){ 1210 1212 console.log('mcfgf_tab_yakker clicked'); 1211 1213 if(editor_mcfgf_woocommerce_product_template_selected!=null) { … … 1240 1242 1241 1243 gform.addAction( 'gform_post_load_field_settings', function( field_form_arr ) { 1242 // console.log(' gform_post_load_field_settings');1244 // console.log('mcfgf: gform_post_load_field_settings'); 1243 1245 var field = field_form_arr[0]; 1244 1246 … … 1255 1257 if(window.tinymce) { 1256 1258 switchEditors.go( editor_id, 'tmce' ); 1257 1259 // console.log('mcfgf: tmce', editor_id); 1258 1260 // $('#field_settings').removeClass('init_wp_editor'); 1259 1261 … … 1265 1267 tinyMCE.get(editor_id).onChange.add(function(ed, l) { 1266 1268 1267 $('#'+editor_id).val(ed.getContent());1268 current_field[field_name] = $('#'+editor_id).val();1269 jQuery('#'+editor_id).val(ed.getContent()); 1270 current_field[field_name] = jQuery('#'+editor_id).val(); 1269 1271 // console.log('editor change', ed, l, current_field[field_name], field_name); 1270 1272 }); … … 1747 1749 } 1748 1750 1751 private function __gform_field_advanced_settings_25($position, $form_id) { 1752 ?> 1753 </ul> 1754 <button tabindex="0" id="mcfgf_tab_yakker_tab_toggle" class="panel-block-tabs__toggle"> 1755 <?php esc_html_e( 'Conversation', 'mcfgf' ); ?> 1756 </button> 1757 <ul id="mcfgf_tab_yakker" class="panel-block-tabs__body panel-block-tabs__body--settings"> 1758 <?php 1759 } 1760 1749 1761 function gform_field_advanced_settings($position, $form_id){ 1750 1762 //TODO: flannian 2017-12-5 put tooltip settings into tab 1751 1763 if ( $position == -1 ) { 1764 if(version_compare( GFForms::$version, '2.5-beta-1', '>=' )) { 1765 $this->__gform_field_advanced_settings_25($position, $form_id); 1766 } else { 1752 1767 ?> 1753 1768 </ul> … … 1757 1772 <!-- <li class="label_setting field_setting"> --> 1758 1773 <?php 1774 } 1759 1775 // } 1760 1776 // } … … 1815 1831 line-height: 23px; 1816 1832 }*/ 1833 1834 <?php if(version_compare( GFForms::$version, '2.5-beta-1', '>=' )): ?> 1835 .mcfgf_questions .all-merge-tags{ 1836 position: absolute; 1837 right: 0px; 1838 top: -40px; 1839 } 1840 .mcfgf_questions .all-merge-tags #gf_merge_tag_list { 1841 right: 0px; 1842 } 1843 <?php endif; ?> 1817 1844 </style> 1818 1845 <script type="text/javascript"> … … 1830 1857 'media_buttons' => true, 1831 1858 'textarea_name' => $this->editor_id, 1832 'editor_class' => 'merge-tag-support mt-wp_editor '1859 'editor_class' => 'merge-tag-support mt-wp_editor wysiwyg_exclude' 1833 1860 )); 1834 1861 … … 1840 1867 else { 1841 1868 ?> 1842 <textarea id="<?php echo $this->editor_id; ?>" class="fieldwidth-3 fieldheight-2 merge-tag-support"></textarea>1869 <textarea id="<?php echo $this->editor_id; ?>" class="fieldwidth-3 fieldheight-2 wysiwyg_exclude merge-tag-support"></textarea> 1843 1870 <?php } ?> 1844 1871 </div> -
magic-conversation-for-gravity-forms/trunk/plugin-index.php
r2424672 r2533133 2 2 /* 3 3 * Plugin Name: Magic Conversation For Gravity Forms 4 * Version: 3.0.8 04 * Version: 3.0.81 5 5 * Description: Turn your Gravity Forms into Conversation Form 6 6 * Author: Magic Conversation … … 15 15 16 16 if ( ! defined( 'ABSPATH' ) ) exit; 17 define('MCFGFP_VER', '3.0.8 0.466');17 define('MCFGFP_VER', '3.0.81.473'); 18 18 $mcfgfBaseDir = dirname(__FILE__); 19 19 -
magic-conversation-for-gravity-forms/trunk/readme.txt
r2424672 r2533133 5 5 Requires at least: 3.2 6 6 Tested up to: 5.5 7 Stable tag: 3.0.8 07 Stable tag: 3.0.81 8 8 Stable tag: trunk 9 9 License: GPLv2 or later … … 117 117 118 118 == Changelog == 119 120 Version v3.0.81 121 Added support of GravityForms 2.5. 119 122 120 123 Version v3.0.80 -
magic-conversation-for-gravity-forms/trunk/yakker-gravityforms/class-gfyakkeraddon.php
r2355109 r2533133 390 390 'label' => esc_html__( 'Welcome Page Template', 'yakkeraddon' ), 391 391 'type' => 'textarea', 392 'allow_html' => true, 392 393 'name' => 'welcome_page_template', 393 394 'tooltip' => esc_html__( 'Setup a webcome page template.', 'yakkeraddon' ), 394 'class' => ' largemerge-tag-support mt-position-right',395 'callback' => array( $this, 'render_submission_data_model' ),395 'class' => 'medium merge-tag-support mt-position-right', 396 // 'callback' => array( $this, 'render_submission_data_model' ), 396 397 // 'save_callback' => array( $this, 'after_save_json_model' ), 397 398 // 'feedback_callback' => array( $this, 'is_valid_json_model' ), … … 557 558 'label' => esc_html__( 'JSON Submission Data Template', 'yakkeraddon' ), 558 559 'type' => 'textarea', 560 'allow_html' => true, 559 561 'name' => 'submission_data_model', 560 562 'tooltip' => esc_html__( 'Setup a json model with Merged Tags to convert form data to your REST API data format.', 'yakkeraddon' ), 561 563 'class' => 'medium merge-tag-support mt-position-right', 562 'callback' => array( $this, 'render_submission_data_model' ),563 //'save_callback' => array( $this, 'after_save_json_model' ),564 // 'callback' => array( $this, 'render_submission_data_model' ), 565 'save_callback' => array( $this, 'after_save_json_model' ), 564 566 // 'feedback_callback' => array( $this, 'is_valid_json_model' ), 565 567 ), … … 832 834 } 833 835 836 public function after_save_json_model($field, $field_value) { 837 // $_POST['_gaddon_setting_'.$field['name']] = json_encode($_POST['_gaddon_setting_'.$field['name']]); 838 $field_value = json_encode($field_value); 839 return $field_value; 840 } 841 834 842 835 843 public function render_submission_data_model ($field) { … … 837 845 // $field['value'] = base64_decode($field['value']); 838 846 // $this->settings_textarea($field); 839 $echo = true;847 $echo = false; 840 848 $field['type'] = 'textarea'; //making sure type is set to textarea 841 849 $attributes = $this->get_field_attributes( $field ); -
magic-conversation-for-gravity-forms/trunk/yakker-gravityforms/css/my_styles.css
r2355109 r2533133 14 14 margin-right: 22px 15 15 } 16 17 .gform-settings-input__container .CodeMirror-wrap { 18 width: 100%; 19 } 20 21 .gform-settings-input__container #iframe_height { 22 width: 70px; 23 } -
magic-conversation-for-gravity-forms/trunk/yakker-gravityforms/gfyakkeraddon.php
r2424672 r2533133 1 1 <?php 2 define( 'GF_YAKKER_ADDON_VERSION', '2.1.3 0' );2 define( 'GF_YAKKER_ADDON_VERSION', '2.1.32' ); 3 3 4 4 add_action( 'gform_loaded', array( 'GF_Yakker_AddOn_Bootstrap', 'load' ), 5 );
Note: See TracChangeset
for help on using the changeset viewer.