@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | if ( ! $result && $option) { |
| 86 | 86 | if( $option == 'color_primary' ){ |
| 87 | 87 | $result = AUI_PRIMARY_COLOR; |
| 88 | - }elseif( $option == 'color_secondary' ){ |
|
| 88 | + } elseif( $option == 'color_secondary' ){ |
|
| 89 | 89 | $result = AUI_SECONDARY_COLOR; |
| 90 | 90 | } |
| 91 | 91 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | if ( $echo ) { |
| 108 | 108 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 109 | - }else{ |
|
| 109 | + } else{ |
|
| 110 | 110 | return $output; |
| 111 | 111 | } |
| 112 | 112 | |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | |
| 128 | 128 | if ( $echo ) { |
| 129 | 129 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 130 | - }else{ |
|
| 130 | + } else{ |
|
| 131 | 131 | return $output; |
| 132 | 132 | } |
| 133 | 133 | } |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | |
| 148 | 148 | if ( $echo ) { |
| 149 | 149 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 150 | - }else{ |
|
| 150 | + } else{ |
|
| 151 | 151 | return $output; |
| 152 | 152 | } |
| 153 | 153 | } |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | |
| 168 | 168 | if ( $echo ) { |
| 169 | 169 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 170 | - }else{ |
|
| 170 | + } else{ |
|
| 171 | 171 | return $output; |
| 172 | 172 | } |
| 173 | 173 | } |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | |
| 188 | 188 | if ( $echo ) { |
| 189 | 189 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 190 | - }else{ |
|
| 190 | + } else{ |
|
| 191 | 191 | return $output; |
| 192 | 192 | } |
| 193 | 193 | } |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | |
| 222 | 222 | if ( $echo ) { |
| 223 | 223 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 224 | - }else{ |
|
| 224 | + } else{ |
|
| 225 | 225 | return $output; |
| 226 | 226 | } |
| 227 | 227 | } |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | |
| 242 | 242 | if ( $echo ) { |
| 243 | 243 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 244 | - }else{ |
|
| 244 | + } else{ |
|
| 245 | 245 | return $output; |
| 246 | 246 | } |
| 247 | 247 | } |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | |
| 262 | 262 | if ( $echo ) { |
| 263 | 263 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 264 | - }else{ |
|
| 264 | + } else{ |
|
| 265 | 265 | return $output; |
| 266 | 266 | } |
| 267 | 267 | } |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | |
| 282 | 282 | if ( $echo ) { |
| 283 | 283 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 284 | - }else{ |
|
| 284 | + } else{ |
|
| 285 | 285 | return $output; |
| 286 | 286 | } |
| 287 | 287 | } |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | |
| 302 | 302 | if ( $echo ) { |
| 303 | 303 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 304 | - }else{ |
|
| 304 | + } else{ |
|
| 305 | 305 | return $output; |
| 306 | 306 | } |
| 307 | 307 | } |
@@ -138,8 +138,11 @@ |
||
| 138 | 138 | </select> |
| 139 | 139 | <?php elseif ( ! empty( $field['type'] ) && 'checkbox' === $field['type'] ) : ?> |
| 140 | 140 | <input type="checkbox" name="<?php echo esc_attr( $key ); ?>" id="<?php echo esc_attr( $key ); ?>" value="1" class="<?php echo esc_attr( $field['class'] ); ?>" <?php checked( (int) $value, 1, true ); ?> /> |
| 141 | - <?php else : ?> |
|
| 142 | - <input type="text" name="<?php echo esc_attr( $key ); ?>" id="<?php echo esc_attr( $key ); ?>" value="<?php echo esc_attr( $value ); ?>" class="<?php echo ( ! empty( $field['class'] ) ? esc_attr( $field['class'] ) : 'regular-text' ); ?>" /> |
|
| 141 | + <?php else { |
|
| 142 | + : ?> |
|
| 143 | + <input type="text" name="<?php echo esc_attr( $key ); |
|
| 144 | +} |
|
| 145 | +?>" id="<?php echo esc_attr( $key ); ?>" value="<?php echo esc_attr( $value ); ?>" class="<?php echo ( ! empty( $field['class'] ) ? esc_attr( $field['class'] ) : 'regular-text' ); ?>" /> |
|
| 143 | 146 | <?php endif; ?> |
| 144 | 147 | <p class="description"><?php echo wp_kses_post( $field['description'] ); ?></p> |
| 145 | 148 | </td> |
@@ -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 | } |
@@ -715,7 +715,7 @@ discard block |
||
| 715 | 715 | <?php |
| 716 | 716 | if(! empty( $insert_shortcode_function )){ |
| 717 | 717 | echo $insert_shortcode_function; |
| 718 | - }else{ |
|
| 718 | + } else{ |
|
| 719 | 719 | |
| 720 | 720 | /** |
| 721 | 721 | * Function for super duper insert shortcode. |
@@ -2228,7 +2228,7 @@ discard block |
||
| 2228 | 2228 | $p_pl = 'ps-'; |
| 2229 | 2229 | $p_pr = 'pe-'; |
| 2230 | 2230 | <?php |
| 2231 | - }else{ |
|
| 2231 | + } else{ |
|
| 2232 | 2232 | ?> |
| 2233 | 2233 | $aui_bs5 = false; |
| 2234 | 2234 | $p_ml = 'ml-'; |
@@ -2450,7 +2450,7 @@ discard block |
||
| 2450 | 2450 | var InnerBlocks = blockEditor.InnerBlocks; |
| 2451 | 2451 | |
| 2452 | 2452 | var term_query_type = ''; |
| 2453 | - 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 "[]";} ?>; |
|
| 2453 | + 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 "[]";} ?>; |
|
| 2454 | 2454 | const taxonomies_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}]; |
| 2455 | 2455 | const sort_by_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}]; |
| 2456 | 2456 | const MediaUpload = wp.blockEditor.MediaUpload; |
@@ -2507,9 +2507,9 @@ discard block |
||
| 2507 | 2507 | $example_inner_blocks = !empty($this->options['example']['innerBlocks']) && is_array($this->options['example']['innerBlocks']) ? 'innerBlocks: ' . wp_json_encode($this->options['example']['innerBlocks']) : ''; |
| 2508 | 2508 | if( isset( $this->options['example'] ) && $this->options['example'] === false ){ |
| 2509 | 2509 | // no preview if set to false |
| 2510 | - }elseif( !empty( $example_args ) ){ |
|
| 2510 | + } elseif( !empty( $example_args ) ){ |
|
| 2511 | 2511 | echo "example : {attributes:{".$this->array_to_attributes( $example_args )."},$viewport_width},"; |
| 2512 | - }elseif( !empty( $this->options['example'] ) ){ |
|
| 2512 | + } elseif( !empty( $this->options['example'] ) ){ |
|
| 2513 | 2513 | unset($this->options['example']['viewportWidth']); |
| 2514 | 2514 | unset($this->options['example']['innerBlocks']); |
| 2515 | 2515 | $example_atts = $this->array_to_attributes( $this->options['example'] ); |
@@ -2526,7 +2526,7 @@ discard block |
||
| 2526 | 2526 | if(!empty($example_parts)){ |
| 2527 | 2527 | echo "example : {".implode(',', $example_parts)."},"; |
| 2528 | 2528 | } |
| 2529 | - }else{ |
|
| 2529 | + } else{ |
|
| 2530 | 2530 | echo 'example : {viewportWidth: 500},'; |
| 2531 | 2531 | } |
| 2532 | 2532 | |
@@ -2596,8 +2596,7 @@ discard block |
||
| 2596 | 2596 | |
| 2597 | 2597 | if ( $args['type'] == 'notice' || $args['type'] == 'tab' ) { |
| 2598 | 2598 | continue; |
| 2599 | - } |
|
| 2600 | - elseif ( $args['type'] == 'checkbox' ) { |
|
| 2599 | + } elseif ( $args['type'] == 'checkbox' ) { |
|
| 2601 | 2600 | $type = 'boolean'; |
| 2602 | 2601 | $default = isset( $args['default'] ) && $args['default'] ? 'true' : 'false'; |
| 2603 | 2602 | } elseif ( $args['type'] == 'number' ) { |
@@ -2725,7 +2724,7 @@ discard block |
||
| 2725 | 2724 | <?php |
| 2726 | 2725 | if(!empty($this->options['block-edit-raw'])) { |
| 2727 | 2726 | echo $this->options['block-edit-raw']; // strings have to be in single quotes, may cause issues |
| 2728 | - }else{ |
|
| 2727 | + } else{ |
|
| 2729 | 2728 | ?> |
| 2730 | 2729 | |
| 2731 | 2730 | function hasSelectedInnerBlock(props) { |
@@ -2860,7 +2859,7 @@ discard block |
||
| 2860 | 2859 | $current_screen = function_exists('get_current_screen') ? get_current_screen() : ''; |
| 2861 | 2860 | if(!empty($current_screen->base) && $current_screen->base==='widgets'){ |
| 2862 | 2861 | echo 'const { deviceType } = "";'; |
| 2863 | -}else{ |
|
| 2862 | +} else{ |
|
| 2864 | 2863 | ?> |
| 2865 | 2864 | /** Get device type const. */ |
| 2866 | 2865 | const { deviceType } = wp.data.useSelect != 'undefined' ? wp.data.useSelect(select => { |
@@ -2894,7 +2893,7 @@ discard block |
||
| 2894 | 2893 | 'block_parent_name': parentBlocks.length ? parentBlocks[parentBlocks.length - 1].name : '', |
| 2895 | 2894 | 'post_id': <?php global $post; if ( isset( $post->ID ) ) { |
| 2896 | 2895 | echo $post->ID; |
| 2897 | - }else{echo '0';}?>, |
|
| 2896 | + } else{echo '0';}?>, |
|
| 2898 | 2897 | '_ajax_nonce': '<?php echo wp_create_nonce( 'super_duper_output_shortcode' );?>' |
| 2899 | 2898 | }; |
| 2900 | 2899 | |
@@ -2914,7 +2913,7 @@ discard block |
||
| 2914 | 2913 | is_fetching = false; |
| 2915 | 2914 | prev_attributes[props.clientId] = props.attributes; |
| 2916 | 2915 | <?php |
| 2917 | - }else{ |
|
| 2916 | + } else{ |
|
| 2918 | 2917 | ?> |
| 2919 | 2918 | props.setAttributes({content: env}); |
| 2920 | 2919 | is_fetching = false; |
@@ -3071,7 +3070,7 @@ discard block |
||
| 3071 | 3070 | // |
| 3072 | 3071 | |
| 3073 | 3072 | } |
| 3074 | - }else { |
|
| 3073 | + } else { |
|
| 3075 | 3074 | ?> |
| 3076 | 3075 | el(wp.components.PanelBody, { |
| 3077 | 3076 | title: '<?php esc_attr_e( "Settings", 'ayecode-connect' ); ?>', |
@@ -3097,9 +3096,9 @@ discard block |
||
| 3097 | 3096 | // If the user sets block-output array then build it |
| 3098 | 3097 | if ( ! empty( $this->options['block-output'] ) ) { |
| 3099 | 3098 | $this->block_element( $this->options['block-output'] ); |
| 3100 | - }elseif(!empty($this->options['block-edit-return'])){ |
|
| 3099 | + } elseif(!empty($this->options['block-edit-return'])){ |
|
| 3101 | 3100 | echo $this->options['block-edit-return']; |
| 3102 | - }else{ |
|
| 3101 | + } else{ |
|
| 3103 | 3102 | // if no block-output is set then we try and get the shortcode html output via ajax. |
| 3104 | 3103 | $block_edit_wrap_tag = !empty($this->options['block_edit_wrap_tag']) ? esc_attr($this->options['block_edit_wrap_tag']) : 'div'; |
| 3105 | 3104 | ?> |
@@ -3210,9 +3209,9 @@ discard block |
||
| 3210 | 3209 | ); |
| 3211 | 3210 | <?php |
| 3212 | 3211 | |
| 3213 | - }elseif(!empty($this->options['block-save-return'])){ |
|
| 3212 | + } elseif(!empty($this->options['block-save-return'])){ |
|
| 3214 | 3213 | echo 'return ' . $this->options['block-save-return']; |
| 3215 | - }elseif(!empty($this->options['nested-block'])){ |
|
| 3214 | + } elseif(!empty($this->options['nested-block'])){ |
|
| 3216 | 3215 | ?> |
| 3217 | 3216 | return el( |
| 3218 | 3217 | '', |
@@ -3222,13 +3221,13 @@ discard block |
||
| 3222 | 3221 | el('', {dangerouslySetInnerHTML: {__html: "[/<?php echo $this->options['base_id'];?>]"}}) |
| 3223 | 3222 | ); |
| 3224 | 3223 | <?php |
| 3225 | - }elseif(!empty( $this->options['block-save-return'] ) ){ |
|
| 3224 | + } elseif(!empty( $this->options['block-save-return'] ) ){ |
|
| 3226 | 3225 | echo "return ". $this->options['block-edit-return'].";"; |
| 3227 | - }elseif(isset( $this->options['block-wrap'] ) && $this->options['block-wrap'] == ''){ |
|
| 3226 | + } elseif(isset( $this->options['block-wrap'] ) && $this->options['block-wrap'] == ''){ |
|
| 3228 | 3227 | ?> |
| 3229 | 3228 | return content; |
| 3230 | 3229 | <?php |
| 3231 | - }else{ |
|
| 3230 | + } else{ |
|
| 3232 | 3231 | ?> |
| 3233 | 3232 | var block_wrap = 'div'; |
| 3234 | 3233 | if (attr.hasOwnProperty("block_wrap")) { |
@@ -3279,9 +3278,9 @@ discard block |
||
| 3279 | 3278 | $device_type_icon = ''; |
| 3280 | 3279 | if($device_type=='Desktop'){ |
| 3281 | 3280 | $device_type_icon = '<span class="dashicons dashicons-desktop" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
| 3282 | - }elseif($device_type=='Tablet'){ |
|
| 3281 | + } elseif($device_type=='Tablet'){ |
|
| 3283 | 3282 | $device_type_icon = '<span class="dashicons dashicons-tablet" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
| 3284 | - }elseif($device_type=='Mobile'){ |
|
| 3283 | + } elseif($device_type=='Mobile'){ |
|
| 3285 | 3284 | $device_type_icon = '<span class="dashicons dashicons-smartphone" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
| 3286 | 3285 | } |
| 3287 | 3286 | echo $element_require; |
@@ -3326,7 +3325,7 @@ discard block |
||
| 3326 | 3325 | |
| 3327 | 3326 | <?php |
| 3328 | 3327 | if(false){?></script><?php } |
| 3329 | - }elseif(!empty($args['row']['close'])){ |
|
| 3328 | + } elseif(!empty($args['row']['close'])){ |
|
| 3330 | 3329 | if(false){?><script><?php }?> |
| 3331 | 3330 | el( |
| 3332 | 3331 | 'div', |
@@ -3335,7 +3334,7 @@ discard block |
||
| 3335 | 3334 | }, |
| 3336 | 3335 | <?php |
| 3337 | 3336 | if(false){?></script><?php } |
| 3338 | - }else{ |
|
| 3337 | + } else{ |
|
| 3339 | 3338 | if(false){?><script><?php }?> |
| 3340 | 3339 | el( |
| 3341 | 3340 | 'div', |
@@ -3440,9 +3439,9 @@ discard block |
||
| 3440 | 3439 | $device_type_icon = ''; |
| 3441 | 3440 | if($device_type=='Desktop'){ |
| 3442 | 3441 | $device_type_icon = '<span class="dashicons dashicons-desktop" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
| 3443 | - }elseif($device_type=='Tablet'){ |
|
| 3442 | + } elseif($device_type=='Tablet'){ |
|
| 3444 | 3443 | $device_type_icon = '<span class="dashicons dashicons-tablet" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
| 3445 | - }elseif($device_type=='Mobile'){ |
|
| 3444 | + } elseif($device_type=='Mobile'){ |
|
| 3446 | 3445 | $device_type_icon = '<span class="dashicons dashicons-smartphone" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
| 3447 | 3446 | } |
| 3448 | 3447 | |
@@ -3505,7 +3504,7 @@ discard block |
||
| 3505 | 3504 | $args['type'] == 'text'; |
| 3506 | 3505 | // Save numbers as numbers and not strings |
| 3507 | 3506 | $value = "props.attributes.$key ? props.attributes.$key : ''"; |
| 3508 | - }else if ( $args['type'] == 'notice' ) { |
|
| 3507 | + } else if ( $args['type'] == 'notice' ) { |
|
| 3509 | 3508 | |
| 3510 | 3509 | $notice_message = !empty($args['desc']) ? addslashes($args['desc']) : ''; |
| 3511 | 3510 | $notice_status = !empty($args['status']) ? esc_attr($args['status']) : 'info'; |
@@ -3580,7 +3579,7 @@ discard block |
||
| 3580 | 3579 | $key: value |
| 3581 | 3580 | }); |
| 3582 | 3581 | },"; |
| 3583 | - }elseif ( $args['type'] == 'gradient' ) { |
|
| 3582 | + } elseif ( $args['type'] == 'gradient' ) { |
|
| 3584 | 3583 | $type = 'GradientPicker'; |
| 3585 | 3584 | $extra .= "gradients: [{ |
| 3586 | 3585 | name: 'Vivid cyan blue to vivid purple', |
@@ -3619,7 +3618,7 @@ discard block |
||
| 3619 | 3618 | slug: 'cool-to-warm-spectrum', |
| 3620 | 3619 | }],"; |
| 3621 | 3620 | |
| 3622 | - }elseif ( $args['type'] == 'image' ) { |
|
| 3621 | + } elseif ( $args['type'] == 'image' ) { |
|
| 3623 | 3622 | // print_r($args); |
| 3624 | 3623 | |
| 3625 | 3624 | $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,{ |
@@ -3756,8 +3755,7 @@ discard block |
||
| 3756 | 3755 | $onchange = ""; |
| 3757 | 3756 | |
| 3758 | 3757 | //$inside_elements = ",el('div',{},'file upload')"; |
| 3759 | - } |
|
| 3760 | - elseif ( $args['type'] == 'checkbox' ) { |
|
| 3758 | + } elseif ( $args['type'] == 'checkbox' ) { |
|
| 3761 | 3759 | $type = 'CheckboxControl'; |
| 3762 | 3760 | $extra .= "checked: props.attributes.$key,"; |
| 3763 | 3761 | $onchange = "props.setAttributes({ $key: ! props.attributes.$key } )"; |
@@ -3769,9 +3767,9 @@ discard block |
||
| 3769 | 3767 | |
| 3770 | 3768 | if($args['name'] == 'category' && !empty($args['post_type_linked'])){ |
| 3771 | 3769 | $options .= "options: taxonomies_".str_replace("-","_", $this->id).","; |
| 3772 | - }elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){ |
|
| 3770 | + } elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){ |
|
| 3773 | 3771 | $options .= "options: sort_by_".str_replace("-","_", $this->id).","; |
| 3774 | - }else { |
|
| 3772 | + } else { |
|
| 3775 | 3773 | |
| 3776 | 3774 | if ( ! empty( $args['options'] ) ) { |
| 3777 | 3775 | $options .= "options: ["; |
@@ -3935,7 +3933,7 @@ discard block |
||
| 3935 | 3933 | foreach ( $custom_attributes as $key => $val ) { |
| 3936 | 3934 | if(is_array($val)){ |
| 3937 | 3935 | $attributes .= $key.': {'.$this->array_to_attributes( $val, $html ).'},'; |
| 3938 | - }else{ |
|
| 3936 | + } else{ |
|
| 3939 | 3937 | $attributes .= $html ? " $key='$val' " : "'$key': '$val',"; |
| 3940 | 3938 | } |
| 3941 | 3939 | } |
@@ -3975,7 +3973,7 @@ discard block |
||
| 3975 | 3973 | |
| 3976 | 3974 | if($new_args['element']=='InnerBlocks'){ |
| 3977 | 3975 | echo "\n el( InnerBlocks, {"; |
| 3978 | - }elseif($new_args['element']=='innerBlocksProps'){ |
|
| 3976 | + } elseif($new_args['element']=='innerBlocksProps'){ |
|
| 3979 | 3977 | $element = isset($new_args['inner_element']) ? esc_attr($new_args['inner_element']) : 'div'; |
| 3980 | 3978 | // echo "\n el( 'section', wp.blockEditor.useInnerBlocksProps( blockProps, {"; |
| 3981 | 3979 | // echo $save ? "\n el( '$element', wp.blockEditor.useInnerBlocksProps.save( " : "\n el( '$element', wp.blockEditor.useInnerBlocksProps( "; |
@@ -3988,11 +3986,11 @@ discard block |
||
| 3988 | 3986 | // echo '###'; |
| 3989 | 3987 | |
| 3990 | 3988 | // echo '###'; |
| 3991 | - }elseif($new_args['element']=='BlocksProps'){ |
|
| 3989 | + } elseif($new_args['element']=='BlocksProps'){ |
|
| 3992 | 3990 | |
| 3993 | 3991 | if ( isset($new_args['if_inner_element']) ) { |
| 3994 | 3992 | $element = $new_args['if_inner_element']; |
| 3995 | - }else { |
|
| 3993 | + } else { |
|
| 3996 | 3994 | $element = isset($new_args['inner_element']) ? "'".esc_attr($new_args['inner_element'])."'" : "'div'"; |
| 3997 | 3995 | } |
| 3998 | 3996 | |
@@ -4003,7 +4001,7 @@ discard block |
||
| 4003 | 4001 | |
| 4004 | 4002 | // echo "} ),"; |
| 4005 | 4003 | |
| 4006 | - }else{ |
|
| 4004 | + } else{ |
|
| 4007 | 4005 | echo "\n el( '" . $new_args['element'] . "', {"; |
| 4008 | 4006 | } |
| 4009 | 4007 | |
@@ -4028,7 +4026,7 @@ discard block |
||
| 4028 | 4026 | |
| 4029 | 4027 | if ( $new_key === 'content' ) { |
| 4030 | 4028 | echo "'" . $this->block_props_replace( wp_slash( $new_value ) ) . "'"; |
| 4031 | - }else if ( $new_key === 'if_content' ) { |
|
| 4029 | + } else if ( $new_key === 'if_content' ) { |
|
| 4032 | 4030 | echo $this->block_props_replace( $new_value ); |
| 4033 | 4031 | } |
| 4034 | 4032 | |
@@ -4058,7 +4056,7 @@ discard block |
||
| 4058 | 4056 | |
| 4059 | 4057 | if($new_args['element']=='innerBlocksProps' || $new_args['element']=='xBlocksProps'){ |
| 4060 | 4058 | echo "))";// end content |
| 4061 | - }else{ |
|
| 4059 | + } else{ |
|
| 4062 | 4060 | echo ")";// end content |
| 4063 | 4061 | } |
| 4064 | 4062 | |
@@ -4384,7 +4382,7 @@ discard block |
||
| 4384 | 4382 | |
| 4385 | 4383 | if(empty($instance['widget_title_tag'])){ |
| 4386 | 4384 | $output = $args['before_title'] . $title . $args['after_title']; |
| 4387 | - }else{ |
|
| 4385 | + } else{ |
|
| 4388 | 4386 | $title_tag = esc_attr( $instance['widget_title_tag'] ); |
| 4389 | 4387 | |
| 4390 | 4388 | // classes |
@@ -4674,11 +4672,11 @@ discard block |
||
| 4674 | 4672 | public function get_widget_icon($icon = 'box-top', $title = ''){ |
| 4675 | 4673 | if($icon=='box-top'){ |
| 4676 | 4674 | 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>'; |
| 4677 | - }elseif($icon=='box-right'){ |
|
| 4675 | + } elseif($icon=='box-right'){ |
|
| 4678 | 4676 | 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>'; |
| 4679 | - }elseif($icon=='box-bottom'){ |
|
| 4677 | + } elseif($icon=='box-bottom'){ |
|
| 4680 | 4678 | 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>'; |
| 4681 | - }elseif($icon=='box-left'){ |
|
| 4679 | + } elseif($icon=='box-left'){ |
|
| 4682 | 4680 | 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>'; |
| 4683 | 4681 | } |
| 4684 | 4682 | } |