@@ -3723,7 +3723,7 @@ |
||
3723 | 3723 | |
3724 | 3724 | $block_content = do_shortcode($block_content); |
3725 | 3725 | |
3726 | - }elseif(! empty($parsed_block['attrs']['sd_shortcode'])){ |
|
3726 | + } elseif(! empty($parsed_block['attrs']['sd_shortcode'])){ |
|
3727 | 3727 | $has_warp = false; |
3728 | 3728 | if($block_content && strpos(trim($block_content), '<div class="wp-block-') === 0 ){ |
3729 | 3729 | $parts = explode('></', $block_content); |
@@ -57,9 +57,12 @@ discard block |
||
57 | 57 | <div class="input-group-prepend"> |
58 | 58 | <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
59 | 59 | </div> |
60 | - <?php else : ?> |
|
60 | + <?php else { |
|
61 | + : ?> |
|
61 | 62 | <span class="input-group-text"> |
62 | - <?php echo wp_kses_post( wpinv_currency_symbol() ); ?> |
|
63 | + <?php echo wp_kses_post( wpinv_currency_symbol() ); |
|
64 | +} |
|
65 | +?> |
|
63 | 66 | </span> |
64 | 67 | <?php endif; ?> |
65 | 68 | <?php endif; ?> |
@@ -71,9 +74,12 @@ discard block |
||
71 | 74 | <div class="input-group-append"> |
72 | 75 | <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
73 | 76 | </div> |
74 | - <?php else : ?> |
|
77 | + <?php else { |
|
78 | + : ?> |
|
75 | 79 | <span class="input-group-text"> |
76 | - <?php echo wp_kses_post( wpinv_currency_symbol() ); ?> |
|
80 | + <?php echo wp_kses_post( wpinv_currency_symbol() ); |
|
81 | +} |
|
82 | +?> |
|
77 | 83 | </span> |
78 | 84 | <?php endif; ?> |
79 | 85 | <?php endif; ?> |
@@ -83,8 +89,11 @@ discard block |
||
83 | 89 | <div class="mb-3 input-group input-group-sm"> |
84 | 90 | <?php if ( empty( $aui_bs5 ) ) : ?> |
85 | 91 | <div class="input-group-prepend"><span class="input-group-text pl-0 pr-2 border-0 bg-transparent"><?php esc_html_e( 'every' ); ?></span></div> |
86 | - <?php else : ?> |
|
87 | - <span class="input-group-text ps-0 pe-2 border-0"><?php esc_html_e( 'every' ); ?></span> |
|
92 | + <?php else { |
|
93 | + : ?> |
|
94 | + <span class="input-group-text ps-0 pe-2 border-0"><?php esc_html_e( 'every' ); |
|
95 | +} |
|
96 | +?></span> |
|
88 | 97 | <?php endif; ?> |
89 | 98 | <input type="number" name="wpinv_recurring_interval" id="wpinv_recurring_interval" value="<?php echo esc_attr( $item->get_recurring_interval( 'edit' ) ); ?>" placeholder="1" class="form-control rounded-1 rounded-sm"> |
90 | 99 | </div> |
@@ -185,9 +194,12 @@ discard block |
||
185 | 194 | <div class="input-group-prepend"> |
186 | 195 | <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
187 | 196 | </div> |
188 | - <?php else : ?> |
|
197 | + <?php else { |
|
198 | + : ?> |
|
189 | 199 | <span class="input-group-text"> |
190 | - <?php echo wp_kses_post( wpinv_currency_symbol() ); ?> |
|
200 | + <?php echo wp_kses_post( wpinv_currency_symbol() ); |
|
201 | +} |
|
202 | +?> |
|
191 | 203 | </span> |
192 | 204 | <?php endif; ?> |
193 | 205 | <?php endif; ?> |
@@ -199,9 +211,12 @@ discard block |
||
199 | 211 | <div class="input-group-append"> |
200 | 212 | <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
201 | 213 | </div> |
202 | - <?php else : ?> |
|
214 | + <?php else { |
|
215 | + : ?> |
|
203 | 216 | <span class="input-group-text"> |
204 | - <?php echo wp_kses_post( wpinv_currency_symbol() ); ?> |
|
217 | + <?php echo wp_kses_post( wpinv_currency_symbol() ); |
|
218 | +} |
|
219 | +?> |
|
205 | 220 | </span> |
206 | 221 | <?php endif; ?> |
207 | 222 | <?php endif; ?> |
@@ -963,7 +963,7 @@ |
||
963 | 963 | |
964 | 964 | if ( $discount->exists() && $discount->is_recurring() ) { |
965 | 965 | $invoice->add_discount( getpaid_calculate_invoice_discount( $invoice, $discount ) ); |
966 | - } else { |
|
966 | + } else { |
|
967 | 967 | // Unset discount code. |
968 | 968 | $invoice->set_discount_code( '' ); |
969 | 969 |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | if(!empty($this->options['nested-block'])){ |
61 | 61 | if(empty($this->options['output_types'])){ |
62 | 62 | $this->options['output_types'] = array('shortcode','block'); |
63 | - }elseif (($key = array_search('widget', $this->options['output_types'])) !== false) { |
|
63 | + } elseif (($key = array_search('widget', $this->options['output_types'])) !== false) { |
|
64 | 64 | unset($this->options['output_types'][$key]); |
65 | 65 | } |
66 | 66 | } |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | <?php |
717 | 717 | if(! empty( $insert_shortcode_function )){ |
718 | 718 | echo $insert_shortcode_function; |
719 | - }else{ |
|
719 | + } else{ |
|
720 | 720 | |
721 | 721 | /** |
722 | 722 | * Function for super duper insert shortcode. |
@@ -2240,7 +2240,7 @@ discard block |
||
2240 | 2240 | $p_pl = 'ps-'; |
2241 | 2241 | $p_pr = 'pe-'; |
2242 | 2242 | <?php |
2243 | - }else{ |
|
2243 | + } else{ |
|
2244 | 2244 | ?> |
2245 | 2245 | $aui_bs5 = false; |
2246 | 2246 | $p_ml = 'ml-'; |
@@ -2468,7 +2468,7 @@ discard block |
||
2468 | 2468 | var InnerBlocks = blockEditor.InnerBlocks; |
2469 | 2469 | |
2470 | 2470 | var term_query_type = ''; |
2471 | - var post_type_rest_slugs = <?php if(! empty( $this->arguments ) && isset($this->arguments['post_type']['onchange_rest']['values'])){echo "[".json_encode($this->arguments['post_type']['onchange_rest']['values'])."]";}else{echo "[]";} ?>; |
|
2471 | + var post_type_rest_slugs = <?php if(! empty( $this->arguments ) && isset($this->arguments['post_type']['onchange_rest']['values'])){echo "[".json_encode($this->arguments['post_type']['onchange_rest']['values'])."]";} else{echo "[]";} ?>; |
|
2472 | 2472 | const taxonomies_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}]; |
2473 | 2473 | const sort_by_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}]; |
2474 | 2474 | const MediaUpload = wp.blockEditor.MediaUpload; |
@@ -2525,9 +2525,9 @@ discard block |
||
2525 | 2525 | $example_inner_blocks = !empty($this->options['example']['innerBlocks']) && is_array($this->options['example']['innerBlocks']) ? 'innerBlocks: ' . wp_json_encode($this->options['example']['innerBlocks']) : ''; |
2526 | 2526 | if( isset( $this->options['example'] ) && $this->options['example'] === false ){ |
2527 | 2527 | // no preview if set to false |
2528 | - }elseif( !empty( $example_args ) ){ |
|
2528 | + } elseif( !empty( $example_args ) ){ |
|
2529 | 2529 | echo "example : {attributes:{".$this->array_to_attributes( $example_args )."},$viewport_width},"; |
2530 | - }elseif( !empty( $this->options['example'] ) ){ |
|
2530 | + } elseif( !empty( $this->options['example'] ) ){ |
|
2531 | 2531 | unset($this->options['example']['viewportWidth']); |
2532 | 2532 | unset($this->options['example']['innerBlocks']); |
2533 | 2533 | $example_atts = $this->array_to_attributes( $this->options['example'] ); |
@@ -2544,7 +2544,7 @@ discard block |
||
2544 | 2544 | if(!empty($example_parts)){ |
2545 | 2545 | echo "example : {".implode(',', $example_parts)."},"; |
2546 | 2546 | } |
2547 | - }else{ |
|
2547 | + } else{ |
|
2548 | 2548 | echo 'example : {viewportWidth: 500},'; |
2549 | 2549 | } |
2550 | 2550 | |
@@ -2615,8 +2615,7 @@ discard block |
||
2615 | 2615 | |
2616 | 2616 | if ( $args['type'] == 'notice' || $args['type'] == 'tab' ) { |
2617 | 2617 | continue; |
2618 | - } |
|
2619 | - elseif ( $args['type'] == 'checkbox' ) { |
|
2618 | + } elseif ( $args['type'] == 'checkbox' ) { |
|
2620 | 2619 | $type = 'boolean'; |
2621 | 2620 | $default = isset( $args['default'] ) && $args['default'] ? 'true' : 'false'; |
2622 | 2621 | } elseif ( $args['type'] == 'number' ) { |
@@ -2752,7 +2751,7 @@ discard block |
||
2752 | 2751 | <?php |
2753 | 2752 | if(!empty($this->options['block-edit-raw'])) { |
2754 | 2753 | echo $this->options['block-edit-raw']; // strings have to be in single quotes, may cause issues |
2755 | - }else{ |
|
2754 | + } else{ |
|
2756 | 2755 | ?> |
2757 | 2756 | |
2758 | 2757 | function hasSelectedInnerBlock(props) { |
@@ -2887,7 +2886,7 @@ discard block |
||
2887 | 2886 | $current_screen = function_exists('get_current_screen') ? get_current_screen() : ''; |
2888 | 2887 | if(!empty($current_screen->base) && $current_screen->base==='widgets'){ |
2889 | 2888 | echo 'const { deviceType } = "";'; |
2890 | -}else{ |
|
2889 | +} else{ |
|
2891 | 2890 | ?> |
2892 | 2891 | /** Get device type const. */ |
2893 | 2892 | const wpVersion = '<?php global $wp_version; echo esc_attr($wp_version); ?>'; |
@@ -2951,7 +2950,7 @@ discard block |
||
2951 | 2950 | 'block_parent_name': parentBlocks.length ? parentBlocks[parentBlocks.length - 1].name : '', |
2952 | 2951 | 'post_id': <?php global $post; if ( isset( $post->ID ) ) { |
2953 | 2952 | echo $post->ID; |
2954 | - }else{echo '0';}?>, |
|
2953 | + } else{echo '0';}?>, |
|
2955 | 2954 | '_ajax_nonce': '<?php echo wp_create_nonce( 'super_duper_output_shortcode' );?>' |
2956 | 2955 | }; |
2957 | 2956 | |
@@ -2971,7 +2970,7 @@ discard block |
||
2971 | 2970 | is_fetching = false; |
2972 | 2971 | prev_attributes[props.clientId] = props.attributes; |
2973 | 2972 | <?php |
2974 | - }else{ |
|
2973 | + } else{ |
|
2975 | 2974 | ?> |
2976 | 2975 | props.setAttributes({content: env}); |
2977 | 2976 | is_fetching = false; |
@@ -3182,7 +3181,7 @@ discard block |
||
3182 | 3181 | // |
3183 | 3182 | |
3184 | 3183 | } |
3185 | - }else { |
|
3184 | + } else { |
|
3186 | 3185 | ?> |
3187 | 3186 | el(wp.components.PanelBody, { |
3188 | 3187 | title: '<?php esc_attr_e( "Settings", 'ayecode-connect' ); ?>', |
@@ -3208,9 +3207,9 @@ discard block |
||
3208 | 3207 | // If the user sets block-output array then build it |
3209 | 3208 | if ( ! empty( $this->options['block-output'] ) ) { |
3210 | 3209 | $this->block_element( $this->options['block-output'] ); |
3211 | - }elseif(!empty($this->options['block-edit-return'])){ |
|
3210 | + } elseif(!empty($this->options['block-edit-return'])){ |
|
3212 | 3211 | echo $this->options['block-edit-return']; |
3213 | - }else{ |
|
3212 | + } else{ |
|
3214 | 3213 | // if no block-output is set then we try and get the shortcode html output via ajax. |
3215 | 3214 | $block_edit_wrap_tag = !empty($this->options['block_edit_wrap_tag']) ? esc_attr($this->options['block_edit_wrap_tag']) : 'div'; |
3216 | 3215 | ?> |
@@ -3322,9 +3321,9 @@ discard block |
||
3322 | 3321 | ); |
3323 | 3322 | <?php |
3324 | 3323 | |
3325 | - }elseif(!empty($this->options['block-save-return'])){ |
|
3324 | + } elseif(!empty($this->options['block-save-return'])){ |
|
3326 | 3325 | echo 'return ' . $this->options['block-save-return']; |
3327 | - }elseif(!empty($this->options['nested-block'])){ |
|
3326 | + } elseif(!empty($this->options['nested-block'])){ |
|
3328 | 3327 | ?> |
3329 | 3328 | return el( |
3330 | 3329 | '', |
@@ -3334,13 +3333,13 @@ discard block |
||
3334 | 3333 | // el('', {dangerouslySetInnerHTML: {__html: "[/<?php echo $this->options['base_id'];?>]"}}) |
3335 | 3334 | ); |
3336 | 3335 | <?php |
3337 | - }elseif(!empty( $this->options['block-save-return'] ) ){ |
|
3336 | + } elseif(!empty( $this->options['block-save-return'] ) ){ |
|
3338 | 3337 | echo "return ". $this->options['block-edit-return'].";"; |
3339 | - }elseif(isset( $this->options['block-wrap'] ) && $this->options['block-wrap'] == ''){ |
|
3338 | + } elseif(isset( $this->options['block-wrap'] ) && $this->options['block-wrap'] == ''){ |
|
3340 | 3339 | ?> |
3341 | 3340 | return content; |
3342 | 3341 | <?php |
3343 | - }else{ |
|
3342 | + } else{ |
|
3344 | 3343 | ?> |
3345 | 3344 | var block_wrap = 'div'; |
3346 | 3345 | if (attr.hasOwnProperty("block_wrap")) { |
@@ -3391,9 +3390,9 @@ discard block |
||
3391 | 3390 | $device_type_icon = ''; |
3392 | 3391 | if($device_type=='Desktop'){ |
3393 | 3392 | $device_type_icon = '<span class="dashicons dashicons-desktop" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
3394 | - }elseif($device_type=='Tablet'){ |
|
3393 | + } elseif($device_type=='Tablet'){ |
|
3395 | 3394 | $device_type_icon = '<span class="dashicons dashicons-tablet" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
3396 | - }elseif($device_type=='Mobile'){ |
|
3395 | + } elseif($device_type=='Mobile'){ |
|
3397 | 3396 | $device_type_icon = '<span class="dashicons dashicons-smartphone" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
3398 | 3397 | } |
3399 | 3398 | echo $element_require; |
@@ -3438,7 +3437,7 @@ discard block |
||
3438 | 3437 | |
3439 | 3438 | <?php |
3440 | 3439 | if(false){?></script><?php } |
3441 | - }elseif(!empty($args['row']['close'])){ |
|
3440 | + } elseif(!empty($args['row']['close'])){ |
|
3442 | 3441 | if(false){?><script><?php }?> |
3443 | 3442 | el( |
3444 | 3443 | 'div', |
@@ -3447,7 +3446,7 @@ discard block |
||
3447 | 3446 | }, |
3448 | 3447 | <?php |
3449 | 3448 | if(false){?></script><?php } |
3450 | - }else{ |
|
3449 | + } else{ |
|
3451 | 3450 | if(false){?><script><?php }?> |
3452 | 3451 | el( |
3453 | 3452 | 'div', |
@@ -3552,9 +3551,9 @@ discard block |
||
3552 | 3551 | $device_type_icon = ''; |
3553 | 3552 | if($device_type=='Desktop'){ |
3554 | 3553 | $device_type_icon = '<span class="dashicons dashicons-desktop" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
3555 | - }elseif($device_type=='Tablet'){ |
|
3554 | + } elseif($device_type=='Tablet'){ |
|
3556 | 3555 | $device_type_icon = '<span class="dashicons dashicons-tablet" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
3557 | - }elseif($device_type=='Mobile'){ |
|
3556 | + } elseif($device_type=='Mobile'){ |
|
3558 | 3557 | $device_type_icon = '<span class="dashicons dashicons-smartphone" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
3559 | 3558 | } |
3560 | 3559 | |
@@ -3617,7 +3616,7 @@ discard block |
||
3617 | 3616 | $args['type'] == 'text'; |
3618 | 3617 | // Save numbers as numbers and not strings |
3619 | 3618 | $value = "props.attributes.$key ? props.attributes.$key : ''"; |
3620 | - }else if ( $args['type'] == 'notice' ) { |
|
3619 | + } else if ( $args['type'] == 'notice' ) { |
|
3621 | 3620 | |
3622 | 3621 | $notice_message = !empty($args['desc']) ? addslashes($args['desc']) : ''; |
3623 | 3622 | $notice_status = !empty($args['status']) ? esc_attr($args['status']) : 'info'; |
@@ -3692,7 +3691,7 @@ discard block |
||
3692 | 3691 | $key: value |
3693 | 3692 | }); |
3694 | 3693 | },"; |
3695 | - }elseif ( $args['type'] == 'gradient' ) { |
|
3694 | + } elseif ( $args['type'] == 'gradient' ) { |
|
3696 | 3695 | $type = 'GradientPicker'; |
3697 | 3696 | $extra .= "gradients: [{ |
3698 | 3697 | name: 'Vivid cyan blue to vivid purple', |
@@ -3731,7 +3730,7 @@ discard block |
||
3731 | 3730 | slug: 'cool-to-warm-spectrum', |
3732 | 3731 | }],"; |
3733 | 3732 | |
3734 | - }elseif ( $args['type'] == 'image' ) { |
|
3733 | + } elseif ( $args['type'] == 'image' ) { |
|
3735 | 3734 | // print_r($args); |
3736 | 3735 | |
3737 | 3736 | $img_preview = isset($args['focalpoint']) && !$args['focalpoint'] ? " props.attributes.$key && el('img', { src: props.attributes.$key,style: {maxWidth:'100%',background: '#ccc'}})," : " ( props.attributes.$key || props.attributes.{$key}_use_featured ) && el(wp.components.FocalPointPicker,{ |
@@ -3868,8 +3867,7 @@ discard block |
||
3868 | 3867 | $onchange = ""; |
3869 | 3868 | |
3870 | 3869 | //$inside_elements = ",el('div',{},'file upload')"; |
3871 | - } |
|
3872 | - elseif ( $args['type'] == 'checkbox' ) { |
|
3870 | + } elseif ( $args['type'] == 'checkbox' ) { |
|
3873 | 3871 | $type = 'CheckboxControl'; |
3874 | 3872 | $extra .= "checked: props.attributes.$key,"; |
3875 | 3873 | $onchange = "props.setAttributes({ $key: ! props.attributes.$key } )"; |
@@ -3881,9 +3879,9 @@ discard block |
||
3881 | 3879 | |
3882 | 3880 | if($args['name'] == 'category' && !empty($args['post_type_linked'])){ |
3883 | 3881 | $options .= "options: taxonomies_".str_replace("-","_", $this->id).","; |
3884 | - }elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){ |
|
3882 | + } elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){ |
|
3885 | 3883 | $options .= "options: sort_by_".str_replace("-","_", $this->id).","; |
3886 | - }else { |
|
3884 | + } else { |
|
3887 | 3885 | |
3888 | 3886 | if ( ! empty( $args['options'] ) ) { |
3889 | 3887 | $options .= "options: ["; |
@@ -4047,7 +4045,7 @@ discard block |
||
4047 | 4045 | foreach ( $custom_attributes as $key => $val ) { |
4048 | 4046 | if(is_array($val)){ |
4049 | 4047 | $attributes .= $key.': {'.$this->array_to_attributes( $val, $html ).'},'; |
4050 | - }else{ |
|
4048 | + } else{ |
|
4051 | 4049 | $attributes .= $html ? " $key='$val' " : "'$key': '$val',"; |
4052 | 4050 | } |
4053 | 4051 | } |
@@ -4088,7 +4086,7 @@ discard block |
||
4088 | 4086 | |
4089 | 4087 | if($new_args['element']=='InnerBlocks'){ |
4090 | 4088 | echo "\n el( InnerBlocks, {"; |
4091 | - }elseif($new_args['element']=='innerBlocksProps'){ |
|
4089 | + } elseif($new_args['element']=='innerBlocksProps'){ |
|
4092 | 4090 | $element = isset($new_args['inner_element']) ? esc_attr($new_args['inner_element']) : 'div'; |
4093 | 4091 | // echo "\n el( 'section', wp.blockEditor.useInnerBlocksProps( blockProps, {"; |
4094 | 4092 | // echo $save ? "\n el( '$element', wp.blockEditor.useInnerBlocksProps.save( " : "\n el( '$element', wp.blockEditor.useInnerBlocksProps( "; |
@@ -4101,11 +4099,11 @@ discard block |
||
4101 | 4099 | // echo '###'; |
4102 | 4100 | |
4103 | 4101 | // echo '###'; |
4104 | - }elseif($new_args['element']=='BlocksProps'){ |
|
4102 | + } elseif($new_args['element']=='BlocksProps'){ |
|
4105 | 4103 | |
4106 | 4104 | if ( isset($new_args['if_inner_element']) ) { |
4107 | 4105 | $element = $new_args['if_inner_element']; |
4108 | - }else { |
|
4106 | + } else { |
|
4109 | 4107 | $element = isset($new_args['inner_element']) ? "'".esc_attr($new_args['inner_element'])."'" : "'div'"; |
4110 | 4108 | } |
4111 | 4109 | |
@@ -4116,7 +4114,7 @@ discard block |
||
4116 | 4114 | |
4117 | 4115 | // echo "} ),"; |
4118 | 4116 | |
4119 | - }else{ |
|
4117 | + } else{ |
|
4120 | 4118 | echo "\n el( '" . $new_args['element'] . "', {"; |
4121 | 4119 | } |
4122 | 4120 | |
@@ -4141,7 +4139,7 @@ discard block |
||
4141 | 4139 | |
4142 | 4140 | if ( $new_key === 'content' ) { |
4143 | 4141 | echo "'" . $this->block_props_replace( wp_slash( $new_value ) ) . "'"; |
4144 | - }else if ( $new_key === 'if_content' ) { |
|
4142 | + } else if ( $new_key === 'if_content' ) { |
|
4145 | 4143 | echo $this->block_props_replace( $new_value ); |
4146 | 4144 | } |
4147 | 4145 | |
@@ -4171,7 +4169,7 @@ discard block |
||
4171 | 4169 | |
4172 | 4170 | if($new_args['element']=='innerBlocksProps' || $new_args['element']=='xBlocksProps'){ |
4173 | 4171 | echo "))";// end content |
4174 | - }else{ |
|
4172 | + } else{ |
|
4175 | 4173 | echo ")";// end content |
4176 | 4174 | } |
4177 | 4175 | |
@@ -4795,11 +4793,11 @@ discard block |
||
4795 | 4793 | public function get_widget_icon($icon = 'box-top', $title = ''){ |
4796 | 4794 | if($icon=='box-top'){ |
4797 | 4795 | return '<svg title="'.esc_attr($title).'" width="20px" height="20px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" role="img" aria-hidden="true" focusable="false"><rect x="2.714" y="5.492" width="1.048" height="9.017" fill="#555D66"></rect><rect x="16.265" y="5.498" width="1.023" height="9.003" fill="#555D66"></rect><rect x="5.518" y="2.186" width="8.964" height="2.482" fill="#272B2F"></rect><rect x="5.487" y="16.261" width="9.026" height="1.037" fill="#555D66"></rect></svg>'; |
4798 | - }elseif($icon=='box-right'){ |
|
4796 | + } elseif($icon=='box-right'){ |
|
4799 | 4797 | return '<svg title="'.esc_attr($title).'" width="20px" height="20px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" role="img" aria-hidden="true" focusable="false"><rect x="2.714" y="5.492" width="1.046" height="9.017" fill="#555D66"></rect><rect x="15.244" y="5.498" width="2.518" height="9.003" fill="#272B2F"></rect><rect x="5.518" y="2.719" width="8.964" height="0.954" fill="#555D66"></rect><rect x="5.487" y="16.308" width="9.026" height="0.99" fill="#555D66"></rect></svg>'; |
4800 | - }elseif($icon=='box-bottom'){ |
|
4798 | + } elseif($icon=='box-bottom'){ |
|
4801 | 4799 | return '<svg title="'.esc_attr($title).'" width="20px" height="20px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" role="img" aria-hidden="true" focusable="false"><rect x="2.714" y="5.492" width="1" height="9.017" fill="#555D66"></rect><rect x="16.261" y="5.498" width="1.027" height="9.003" fill="#555D66"></rect><rect x="5.518" y="2.719" width="8.964" height="0.968" fill="#555D66"></rect><rect x="5.487" y="15.28" width="9.026" height="2.499" fill="#272B2F"></rect></svg>'; |
4802 | - }elseif($icon=='box-left'){ |
|
4800 | + } elseif($icon=='box-left'){ |
|
4803 | 4801 | return '<svg title="'.esc_attr($title).'" width="20px" height="20px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" role="img" aria-hidden="true" focusable="false"><rect x="2.202" y="5.492" width="2.503" height="9.017" fill="#272B2F"></rect><rect x="16.276" y="5.498" width="1.012" height="9.003" fill="#555D66"></rect><rect x="5.518" y="2.719" width="8.964" height="0.966" fill="#555D66"></rect><rect x="5.487" y="16.303" width="9.026" height="0.995" fill="#555D66"></rect></svg>'; |
4804 | 4802 | } |
4805 | 4803 | } |
@@ -538,7 +538,7 @@ discard block |
||
538 | 538 | // custom changes |
539 | 539 | if ( $load_fse ) { |
540 | 540 | wp_add_inline_style( 'ayecode-ui-fse', self::custom_css($compatibility, true) ); |
541 | - }else{ |
|
541 | + } else{ |
|
542 | 542 | wp_add_inline_style( 'ayecode-ui', self::custom_css($compatibility) ); |
543 | 543 | } |
544 | 544 | } |
@@ -558,7 +558,7 @@ discard block |
||
558 | 558 | ob_start(); |
559 | 559 | if ( $aui_bs5 ) { |
560 | 560 | include_once( dirname( __FILE__ ) . '/inc/bs5-js.php' ); |
561 | - }else{ |
|
561 | + } else{ |
|
562 | 562 | include_once( dirname( __FILE__ ) . '/inc/bs4-js.php' ); |
563 | 563 | } |
564 | 564 | |
@@ -642,7 +642,7 @@ discard block |
||
642 | 642 | // iconpicker |
643 | 643 | if ( defined( 'FAS_ICONPICKER_JS_URL' ) ) { |
644 | 644 | wp_register_script( 'iconpicker', FAS_ICONPICKER_JS_URL, array(), $this->version ); |
645 | - }else{ |
|
645 | + } else{ |
|
646 | 646 | wp_register_script( 'iconpicker', $this->url . 'assets/js/fa-iconpicker.min.js', array(), $this->version ); |
647 | 647 | } |
648 | 648 | |
@@ -1371,9 +1371,9 @@ discard block |
||
1371 | 1371 | |
1372 | 1372 | if($compatibility===true || $compatibility===1){ |
1373 | 1373 | $compatibility = '.bsui'; |
1374 | - }elseif(!$compatibility){ |
|
1374 | + } elseif(!$compatibility){ |
|
1375 | 1375 | $compatibility = ''; |
1376 | - }else{ |
|
1376 | + } else{ |
|
1377 | 1377 | $compatibility = esc_attr($compatibility); |
1378 | 1378 | } |
1379 | 1379 | |
@@ -1659,9 +1659,9 @@ discard block |
||
1659 | 1659 | |
1660 | 1660 | if($compatibility===true || $compatibility===1){ |
1661 | 1661 | $compatibility = '.bsui'; |
1662 | - }elseif(!$compatibility){ |
|
1662 | + } elseif(!$compatibility){ |
|
1663 | 1663 | $compatibility = ''; |
1664 | - }else{ |
|
1664 | + } else{ |
|
1665 | 1665 | $compatibility = esc_attr($compatibility); |
1666 | 1666 | } |
1667 | 1667 | |
@@ -2531,7 +2531,9 @@ discard block |
||
2531 | 2531 | * @return mixed |
2532 | 2532 | */ |
2533 | 2533 | public static function minify_js($input) { |
2534 | - if(trim($input) === "") return $input; |
|
2534 | + if(trim($input) === "") { |
|
2535 | + return $input; |
|
2536 | + } |
|
2535 | 2537 | return preg_replace( |
2536 | 2538 | array( |
2537 | 2539 | // Remove comment(s) |
@@ -2563,7 +2565,9 @@ discard block |
||
2563 | 2565 | * @return mixed |
2564 | 2566 | */ |
2565 | 2567 | public static function minify_css($input) { |
2566 | - if(trim($input) === "") return $input; |
|
2568 | + if(trim($input) === "") { |
|
2569 | + return $input; |
|
2570 | + } |
|
2567 | 2571 | return preg_replace( |
2568 | 2572 | array( |
2569 | 2573 | // Remove comment(s) |
@@ -1,7 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
4 | +if ( ! defined( 'ABSPATH' ) ) { |
|
5 | + exit; |
|
6 | +} |
|
7 | +// Exit if accessed directly |
|
5 | 8 | |
6 | 9 | |
7 | 10 | class Super_Duper_Bricks_Element extends \Bricks\Element { |
@@ -80,10 +80,12 @@ |
||
80 | 80 | <tr> |
81 | 81 | <td colspan="5"><?php _e( 'No anonymization logs found.', 'invoicing' ); ?></td> |
82 | 82 | </tr> |
83 | - <?php else : ?> |
|
83 | + <?php else { |
|
84 | + : ?> |
|
84 | 85 | <?php |
85 | 86 | foreach ( $logs as $log ) : |
86 | 87 | $additional_info = json_decode( $log->additional_info, true ); |
88 | +} |
|
87 | 89 | ?> |
88 | 90 | <tr> |
89 | 91 | <td><?php echo esc_html( $log->log_id ); ?></td> |