Changeset 3081802
- Timestamp:
- 05/06/2024 08:59:38 AM (2 years ago)
- Location:
- firmafy
- Files:
-
- 13 edited
- 1 copied
-
assets/screenshot-5.png (modified) (1 prop) (previous)
-
assets/screenshot-6.png (modified) (1 prop) (previous)
-
assets/screenshot-7.png (modified) (1 prop) (previous)
-
tags/1.2.1 (copied) (copied from firmafy/trunk)
-
tags/1.2.1/firmafy.php (modified) (2 diffs)
-
tags/1.2.1/includes/class-firmafy-admin-widgets.php (modified) (1 diff)
-
tags/1.2.1/includes/class-helpers-firmafy.php (modified) (3 diffs)
-
tags/1.2.1/includes/forms/class-gravityforms.php (modified) (3 diffs)
-
tags/1.2.1/readme.txt (modified) (2 diffs)
-
trunk/firmafy.php (modified) (2 diffs)
-
trunk/includes/class-firmafy-admin-widgets.php (modified) (1 diff)
-
trunk/includes/class-helpers-firmafy.php (modified) (3 diffs)
-
trunk/includes/forms/class-gravityforms.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
firmafy/assets/screenshot-5.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
firmafy/assets/screenshot-6.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
firmafy/assets/screenshot-7.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
firmafy/tags/1.2.1/firmafy.php
r3050518 r3081802 4 4 * Plugin URI: https://firmafy.com 5 5 * Description: Validate legally your forms in WordPress. 6 * Version: 1.2. 06 * Version: 1.2.1 7 7 * Author: Firmafy 8 8 * Author URI: https://firmafy.com … … 24 24 defined( 'ABSPATH' ) || die( 'No script kiddies please!' ); 25 25 26 define( 'FIRMAFY_VERSION', '1.2. 0' );26 define( 'FIRMAFY_VERSION', '1.2.1' ); 27 27 define( 'FIRMAFY_PLUGIN', __FILE__ ); 28 28 define( 'FIRMAFY_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); -
firmafy/tags/1.2.1/includes/class-firmafy-admin-widgets.php
r3050518 r3081802 61 61 */ 62 62 public function metabox_show_order( $post ) { 63 $order = wc_get_order( $post->get_id() ); 63 $order_id = method_exists( $post, 'get_id' ) ? $post->get_id() : $post->ID; 64 $order = wc_get_order( $order_id ); 64 65 $sign_csv = $order->get_meta( '_firmafy_csv' ); 65 66 $sign_status = $order->get_meta( '_firmafy_status' ); -
firmafy/tags/1.2.1/includes/class-helpers-firmafy.php
r3050518 r3081802 374 374 $pdf_content = $html2pdf->Output( $filename, 'S' ); 375 375 } catch ( Html2PdfException $e ) { //phpcs:ignore 376 //error377 376 $formatter = new ExceptionFormatter( $e ); //phpcs:ignore 378 377 error_log( 'Unexpected Error!<br>Can not load PDF this time! ' . $formatter->getHtmlMessage() ); … … 393 392 $result_api = $this->api_post( $settings, 'request', $query ); 394 393 394 if ( 'error' === $result_api['status'] ) { 395 $result_api['message'] = isset( $result_api['data'] ) ? $result_api['data'] : ''; 396 } 395 397 return $result_api; 396 398 } … … 464 466 $content = str_replace( '{referencia}', $post_id, $content ); 465 467 468 // Page Break. 469 //$content = str_replace( '<!--nextpage-->', '<pagebreak>', $content ); 470 466 471 return $content; 467 472 } -
firmafy/tags/1.2.1/includes/forms/class-gravityforms.php
r3050518 r3081802 181 181 // Normal WAY. 182 182 foreach ( $field_maps as $var_key => $field_id ) { 183 $field = RGFormsModel::get_field( $form, $field_id ); 184 183 $field = RGFormsModel::get_field( $form, $field_id ); 184 $field_type = RGFormsModel::get_input_type( $field ); 185 185 186 if ( isset( $field['type'] ) && GFCommon::is_product_field( $field['type'] ) && rgar( $field, 'enablePrice' ) ) { 186 $ary = explode( '|', $entry[ $field_id ] );187 $product_name = count( $ary) > 0 ? $ary[0] : '';188 $merge_vars[] = array( 189 'name' => $var_key,187 $ary = explode( '|', $entry[ $field_id ] ); 188 $product_name = count( $ary ) > 0 ? $ary[0] : ''; 189 $merge_vars[] = array( 190 'name' => $var_key, 190 191 'value' => $product_name, 191 192 ); 192 } elseif ( $field && RGFormsModel::get_input_type( $field ) == 'checkbox') {193 } elseif ( $field && 'checkbox' === $field_type ) { 193 194 $value = ''; 194 195 foreach ( $field['inputs'] as $input ) { … … 205 206 'value' => $value, 206 207 ); 207 } elseif ( $field && RGFormsModel::get_input_type( $field ) == 'multiselect') {208 } elseif ( $field && 'multiselect' === $field_type ) { 208 209 $value = apply_filters( 'firmafy_field_value', rgar( $entry, $field_id ), $form['id'], $field_id, $entry ); 209 210 $value = str_replace( ',', '|', $value ); … … 213 214 'value' => $value, 214 215 ); 215 } elseif ( $field && RGFormsModel::get_input_type( $field ) == 'textarea') {216 } elseif ( $field && 'textarea' === $field_type ) { 216 217 $value = apply_filters( 'firmafy_field_value', rgar( $entry, $field_id ), $form['id'], $field_id, $entry ); 217 218 $value = str_replace( array( "\r", "\n" ), ' ', $value ); 219 $merge_vars[] = array( 220 'name' => $var_key, 221 'value' => $value, 222 ); 223 } elseif ( $field && 'name' === $field_type ) { 224 $value = rgar( $entry, $field_id . '.3' ); 225 $value .= ' ' . rgar( $entry, $field_id . '.6' ); 218 226 $merge_vars[] = array( 219 227 'name' => $var_key, -
firmafy/tags/1.2.1/readme.txt
r3050518 r3081802 5 5 Requires PHP: 5.6 6 6 Tested up to: 6.5 7 Stable tag: 1.2. 08 Version: 1.2. 07 Stable tag: 1.2.1 8 Version: 1.2.1 9 9 License: GPL2 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 91 91 92 92 == Changelog == 93 = 1.2.1 = 94 * Added: Support Gravity Forms Field name. 95 * Fix: Prevents error in order widget for HPOS. 96 93 97 = 1.2.0 = 94 98 * Added Self signers for company users. -
firmafy/trunk/firmafy.php
r3050518 r3081802 4 4 * Plugin URI: https://firmafy.com 5 5 * Description: Validate legally your forms in WordPress. 6 * Version: 1.2. 06 * Version: 1.2.1 7 7 * Author: Firmafy 8 8 * Author URI: https://firmafy.com … … 24 24 defined( 'ABSPATH' ) || die( 'No script kiddies please!' ); 25 25 26 define( 'FIRMAFY_VERSION', '1.2. 0' );26 define( 'FIRMAFY_VERSION', '1.2.1' ); 27 27 define( 'FIRMAFY_PLUGIN', __FILE__ ); 28 28 define( 'FIRMAFY_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); -
firmafy/trunk/includes/class-firmafy-admin-widgets.php
r3050518 r3081802 61 61 */ 62 62 public function metabox_show_order( $post ) { 63 $order = wc_get_order( $post->get_id() ); 63 $order_id = method_exists( $post, 'get_id' ) ? $post->get_id() : $post->ID; 64 $order = wc_get_order( $order_id ); 64 65 $sign_csv = $order->get_meta( '_firmafy_csv' ); 65 66 $sign_status = $order->get_meta( '_firmafy_status' ); -
firmafy/trunk/includes/class-helpers-firmafy.php
r3050518 r3081802 374 374 $pdf_content = $html2pdf->Output( $filename, 'S' ); 375 375 } catch ( Html2PdfException $e ) { //phpcs:ignore 376 //error377 376 $formatter = new ExceptionFormatter( $e ); //phpcs:ignore 378 377 error_log( 'Unexpected Error!<br>Can not load PDF this time! ' . $formatter->getHtmlMessage() ); … … 393 392 $result_api = $this->api_post( $settings, 'request', $query ); 394 393 394 if ( 'error' === $result_api['status'] ) { 395 $result_api['message'] = isset( $result_api['data'] ) ? $result_api['data'] : ''; 396 } 395 397 return $result_api; 396 398 } … … 464 466 $content = str_replace( '{referencia}', $post_id, $content ); 465 467 468 // Page Break. 469 //$content = str_replace( '<!--nextpage-->', '<pagebreak>', $content ); 470 466 471 return $content; 467 472 } -
firmafy/trunk/includes/forms/class-gravityforms.php
r3050518 r3081802 181 181 // Normal WAY. 182 182 foreach ( $field_maps as $var_key => $field_id ) { 183 $field = RGFormsModel::get_field( $form, $field_id ); 184 183 $field = RGFormsModel::get_field( $form, $field_id ); 184 $field_type = RGFormsModel::get_input_type( $field ); 185 185 186 if ( isset( $field['type'] ) && GFCommon::is_product_field( $field['type'] ) && rgar( $field, 'enablePrice' ) ) { 186 $ary = explode( '|', $entry[ $field_id ] );187 $product_name = count( $ary) > 0 ? $ary[0] : '';188 $merge_vars[] = array( 189 'name' => $var_key,187 $ary = explode( '|', $entry[ $field_id ] ); 188 $product_name = count( $ary ) > 0 ? $ary[0] : ''; 189 $merge_vars[] = array( 190 'name' => $var_key, 190 191 'value' => $product_name, 191 192 ); 192 } elseif ( $field && RGFormsModel::get_input_type( $field ) == 'checkbox') {193 } elseif ( $field && 'checkbox' === $field_type ) { 193 194 $value = ''; 194 195 foreach ( $field['inputs'] as $input ) { … … 205 206 'value' => $value, 206 207 ); 207 } elseif ( $field && RGFormsModel::get_input_type( $field ) == 'multiselect') {208 } elseif ( $field && 'multiselect' === $field_type ) { 208 209 $value = apply_filters( 'firmafy_field_value', rgar( $entry, $field_id ), $form['id'], $field_id, $entry ); 209 210 $value = str_replace( ',', '|', $value ); … … 213 214 'value' => $value, 214 215 ); 215 } elseif ( $field && RGFormsModel::get_input_type( $field ) == 'textarea') {216 } elseif ( $field && 'textarea' === $field_type ) { 216 217 $value = apply_filters( 'firmafy_field_value', rgar( $entry, $field_id ), $form['id'], $field_id, $entry ); 217 218 $value = str_replace( array( "\r", "\n" ), ' ', $value ); 219 $merge_vars[] = array( 220 'name' => $var_key, 221 'value' => $value, 222 ); 223 } elseif ( $field && 'name' === $field_type ) { 224 $value = rgar( $entry, $field_id . '.3' ); 225 $value .= ' ' . rgar( $entry, $field_id . '.6' ); 218 226 $merge_vars[] = array( 219 227 'name' => $var_key, -
firmafy/trunk/readme.txt
r3050518 r3081802 5 5 Requires PHP: 5.6 6 6 Tested up to: 6.5 7 Stable tag: 1.2. 08 Version: 1.2. 07 Stable tag: 1.2.1 8 Version: 1.2.1 9 9 License: GPL2 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 91 91 92 92 == Changelog == 93 = 1.2.1 = 94 * Added: Support Gravity Forms Field name. 95 * Fix: Prevents error in order widget for HPOS. 96 93 97 = 1.2.0 = 94 98 * Added Self signers for company users.
Note: See TracChangeset
for help on using the changeset viewer.