Passed
Push — master ( d71df9...f5dde1 )
by Warwick
06:28 queued 02:00
created
templates/page-template-my-plan.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -32,43 +32,43 @@
 block discarded – undo
32 32
 
33 33
 					<div class="entry-content">
34 34
 						<?php
35
-						if ( function_exists( 'is_wc_endpoint_url' ) && is_wc_endpoint_url( 'edit-account' ) ) {
36
-							$classes = get_body_class();
37
-							if ( in_array( 'has-block-banner', $classes ) ) {
38
-								$blocks = parse_blocks( get_the_content() );
39
-								foreach ( $blocks as $block ) {
40
-									if ( 'lsx-blocks/lsx-banner-box' === $block['blockName'] ) {
41
-										echo wp_kses_post( $block['innerHTML'] );
42
-									}
43
-								}
44
-							} elseif ( in_array( 'has-block-cover', $classes ) ) {
45
-								$blocks = parse_blocks( get_the_content() );
46
-								foreach ( $blocks as $block ) {
47
-									//print( '<pre>' . print_r( $block, true ) . '</pre>' );
48
-									if ( 'core/cover' === $block['blockName'] ) {
49
-										echo wp_kses_post( render_block( $block ) );
50
-									}
51
-								}
52
-							} else {
53
-								$my_plan_string = esc_html__( 'My Dashboard', 'lsx-health-plan' );
54
-								echo wp_kses_post( '<div class="lsx-health-plan my-profile-block wp-block-cover alignfull"><div class="wp-block-cover__inner-container"><h2>' . $my_plan_string . '</h2></div></div>' );
55
-							}
56
-
57
-							if ( is_user_logged_in() ) {
58
-								$my_profile_string  = esc_html__( 'My Profile', 'lsx-health-plan' );
59
-								$my_profile_tagline = esc_html__( 'Update your details below', 'lsx-health-plan' );
60
-							}
61
-							echo do_shortcode( '<div id="edit-account-tab">[lsx_health_plan_my_profile_tabs]<div class="edit-account-section"><h2 class="title-lined">' . $my_profile_string . '</h2><p>' . $my_profile_tagline . '</p>[woocommerce_my_account]</div></div>' );
62
-						} else if ( function_exists( 'is_wc_endpoint_url' ) && is_wc_endpoint_url( 'lost-password' ) ) {
63
-							echo do_shortcode( '[woocommerce_my_account]' );
64
-						} else {
65
-							if ( ! function_exists( 'is_wc_endpoint_url' ) || ( function_exists( 'is_wc_endpoint_url' ) && is_user_logged_in() ) ) {
66
-								the_content();
67
-							} else {
68
-								echo do_shortcode( '[woocommerce_my_account]' );
69
-							}
70
-						}
71
-						?>
35
+                              if ( function_exists( 'is_wc_endpoint_url' ) && is_wc_endpoint_url( 'edit-account' ) ) {
36
+                                   $classes = get_body_class();
37
+                                   if ( in_array( 'has-block-banner', $classes ) ) {
38
+                                        $blocks = parse_blocks( get_the_content() );
39
+                                        foreach ( $blocks as $block ) {
40
+                                             if ( 'lsx-blocks/lsx-banner-box' === $block['blockName'] ) {
41
+                                                  echo wp_kses_post( $block['innerHTML'] );
42
+                                             }
43
+                                        }
44
+                                   } elseif ( in_array( 'has-block-cover', $classes ) ) {
45
+                                        $blocks = parse_blocks( get_the_content() );
46
+                                        foreach ( $blocks as $block ) {
47
+                                             //print( '<pre>' . print_r( $block, true ) . '</pre>' );
48
+                                             if ( 'core/cover' === $block['blockName'] ) {
49
+                                                  echo wp_kses_post( render_block( $block ) );
50
+                                             }
51
+                                        }
52
+                                   } else {
53
+                                        $my_plan_string = esc_html__( 'My Dashboard', 'lsx-health-plan' );
54
+                                        echo wp_kses_post( '<div class="lsx-health-plan my-profile-block wp-block-cover alignfull"><div class="wp-block-cover__inner-container"><h2>' . $my_plan_string . '</h2></div></div>' );
55
+                                   }
56
+
57
+                                   if ( is_user_logged_in() ) {
58
+                                        $my_profile_string  = esc_html__( 'My Profile', 'lsx-health-plan' );
59
+                                        $my_profile_tagline = esc_html__( 'Update your details below', 'lsx-health-plan' );
60
+                                   }
61
+                                   echo do_shortcode( '<div id="edit-account-tab">[lsx_health_plan_my_profile_tabs]<div class="edit-account-section"><h2 class="title-lined">' . $my_profile_string . '</h2><p>' . $my_profile_tagline . '</p>[woocommerce_my_account]</div></div>' );
62
+                              } else if ( function_exists( 'is_wc_endpoint_url' ) && is_wc_endpoint_url( 'lost-password' ) ) {
63
+                                   echo do_shortcode( '[woocommerce_my_account]' );
64
+                              } else {
65
+                                   if ( ! function_exists( 'is_wc_endpoint_url' ) || ( function_exists( 'is_wc_endpoint_url' ) && is_user_logged_in() ) ) {
66
+                                        the_content();
67
+                                   } else {
68
+                                        echo do_shortcode( '[woocommerce_my_account]' );
69
+                                   }
70
+                              }
71
+                              ?>
72 72
 					</div><!-- .entry-content -->
73 73
 
74 74
 					<?php lsx_entry_bottom(); ?>
Please login to merge, or discard this patch.