Passed
Push — master ( 868a3b...e38433 )
by Warwick
03:41
created
templates/content-widget-special.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@  discard block
 block discarded – undo
14 14
 $tour_operator = tour_operator();
15 15
 
16 16
 if ( $has_single ) {
17
-	$permalink = get_the_permalink();
17
+     $permalink = get_the_permalink();
18 18
 } elseif ( ! is_post_type_archive( 'special' ) ) {
19
-	$has_single = true;
20
-	$permalink = get_post_type_archive_link( 'special' ) . '#special-' . $post->post_name;
19
+     $has_single = true;
20
+     $permalink = get_post_type_archive_link( 'special' ) . '#special-' . $post->post_name;
21 21
 }
22 22
 ?>
23 23
 <article <?php post_class(); ?>>
@@ -37,43 +37,43 @@  discard block
 block discarded – undo
37 37
 		</h4>
38 38
 
39 39
 		<?php
40
-			// if ( empty( $disable_text ) ) {
41
-			// 	lsx_to_tagline( '<p class="lsx-to-widget-tagline text-center">', '</p>' );
42
-			// }
43
-		?>
40
+               // if ( empty( $disable_text ) ) {
41
+               // 	lsx_to_tagline( '<p class="lsx-to-widget-tagline text-center">', '</p>' );
42
+               // }
43
+          ?>
44 44
 
45 45
 		<div class="lsx-to-widget-meta-data">
46 46
 			<?php
47
-				$meta_class = 'lsx-to-meta-data lsx-to-meta-data-';
47
+                    $meta_class = 'lsx-to-meta-data lsx-to-meta-data-';
48 48
 
49
-				lsx_to_price( '<span class="' . $meta_class . 'price"><span class="lsx-to-meta-data-key">' . esc_html__( 'From price', 'to-specials' ) . ':</span> ', '</span>' );
50
-				lsx_to_connected_tours( '<span class="' . $meta_class . 'tours"><span class="lsx-to-meta-data-key">' . __( 'Tours', 'to-specials' ) . ':</span> ', '</span>' );
51
-				lsx_to_connected_accommodation( '<span class="' . $meta_class . 'accommodations"><span class="lsx-to-meta-data-key">' . __( 'Accommodation', 'to-specials' ) . ':</span> ', '</span>' );
52
-				the_terms( get_the_ID(), 'travel-style', '<span class="' . $meta_class . 'style"><span class="lsx-to-meta-data-key">' . __( 'Travel Style', 'to-specials' ) . ':</span> ', ', ', '</span>' );
53
-				the_terms( get_the_ID(), 'special-type', '<span class="' . $meta_class . 'special"><span class="lsx-to-meta-data-key">' . __( 'Type', 'to-specials' ) . ':</span> ', ', ', '</span>' );
54
-				lsx_to_connected_destinations( '<span class="' . $meta_class . 'destinations"><span class="lsx-to-meta-data-key">' . __( 'Destinations', 'to-specials' ) . ':</span> ', '</span>' );
55
-				lsx_to_specials_validity( '<span class="' . $meta_class . 'valid-from"><span class="lsx-to-meta-data-key">' . __( 'Booking Validity', 'to-specials' ) . ':</span> ', '</span>' );
49
+                    lsx_to_price( '<span class="' . $meta_class . 'price"><span class="lsx-to-meta-data-key">' . esc_html__( 'From price', 'to-specials' ) . ':</span> ', '</span>' );
50
+                    lsx_to_connected_tours( '<span class="' . $meta_class . 'tours"><span class="lsx-to-meta-data-key">' . __( 'Tours', 'to-specials' ) . ':</span> ', '</span>' );
51
+                    lsx_to_connected_accommodation( '<span class="' . $meta_class . 'accommodations"><span class="lsx-to-meta-data-key">' . __( 'Accommodation', 'to-specials' ) . ':</span> ', '</span>' );
52
+                    the_terms( get_the_ID(), 'travel-style', '<span class="' . $meta_class . 'style"><span class="lsx-to-meta-data-key">' . __( 'Travel Style', 'to-specials' ) . ':</span> ', ', ', '</span>' );
53
+                    the_terms( get_the_ID(), 'special-type', '<span class="' . $meta_class . 'special"><span class="lsx-to-meta-data-key">' . __( 'Type', 'to-specials' ) . ':</span> ', ', ', '</span>' );
54
+                    lsx_to_connected_destinations( '<span class="' . $meta_class . 'destinations"><span class="lsx-to-meta-data-key">' . __( 'Destinations', 'to-specials' ) . ':</span> ', '</span>' );
55
+                    lsx_to_specials_validity( '<span class="' . $meta_class . 'valid-from"><span class="lsx-to-meta-data-key">' . __( 'Booking Validity', 'to-specials' ) . ':</span> ', '</span>' );
56 56
 
57
-				if ( function_exists( 'lsx_to_connected_activities' ) ) {
58
-					lsx_to_connected_activities( '<span class="' . $meta_class . 'activities"><span class="lsx-to-meta-data-key">' . __( 'Activites', 'to-specials' ) . ':</span> ', '</span>' );
59
-				}
60
-			?>
57
+                    if ( function_exists( 'lsx_to_connected_activities' ) ) {
58
+                         lsx_to_connected_activities( '<span class="' . $meta_class . 'activities"><span class="lsx-to-meta-data-key">' . __( 'Activites', 'to-specials' ) . ':</span> ', '</span>' );
59
+                    }
60
+               ?>
61 61
 		</div>
62 62
 
63 63
 		<?php
64
-		ob_start();
65
-		lsx_to_widget_entry_content_top();
66
-		the_excerpt();
67
-		lsx_to_widget_entry_content_bottom();
68
-		$excerpt = ob_get_clean();
64
+          ob_start();
65
+          lsx_to_widget_entry_content_top();
66
+          the_excerpt();
67
+          lsx_to_widget_entry_content_bottom();
68
+          $excerpt = ob_get_clean();
69 69
 
70
-		if ( empty( $disable_text ) && ! empty( $excerpt ) ) {
71
-			echo wp_kses_post( $excerpt );
72
-		} elseif ( $has_single && true !== $disable_view_more && '1' !== $disable_view_more ) {
73
-			?>
70
+          if ( empty( $disable_text ) && ! empty( $excerpt ) ) {
71
+               echo wp_kses_post( $excerpt );
72
+          } elseif ( $has_single && true !== $disable_view_more && '1' !== $disable_view_more ) {
73
+               ?>
74 74
 			<p class="moretag-wrapper"><a href="<?php echo esc_url( $permalink ); ?>" class="moretag"><?php esc_html_e( 'View more', 'tour-operator' ); ?></a></p>
75 75
 			<?php
76
-		}
77
-		?>
76
+          }
77
+          ?>
78 78
 	</div>
79 79
 </article>
Please login to merge, or discard this patch.
templates/content-special-type.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@  discard block
 block discarded – undo
8 8
 ?>
9 9
 
10 10
 <?php
11
-	$description = term_description();
12
-	if ( ! empty( $description ) ) :
11
+     $description = term_description();
12
+     if ( ! empty( $description ) ) :
13 13
 ?>
14 14
 
15 15
 	<div class="lsx-to-archive-header row">
@@ -21,14 +21,14 @@  discard block
 block discarded – undo
21 21
 			<div class="col-xs-12 col-sm-12 col-md-6">
22 22
 				<div class="lsx-to-contact-widget">
23 23
 					<?php
24
-						if ( function_exists( 'lsx_to_has_team_member' ) && lsx_to_has_team_member() ) {
25
-							lsx_to_team_member_panel( '<div class="lsx-to-contact">', '</div>' );
26
-						} else {
27
-							lsx_to_enquiry_contact( '<div class="lsx-to-contact">', '</div>' );
28
-						}
24
+                              if ( function_exists( 'lsx_to_has_team_member' ) && lsx_to_has_team_member() ) {
25
+                                   lsx_to_team_member_panel( '<div class="lsx-to-contact">', '</div>' );
26
+                              } else {
27
+                                   lsx_to_enquiry_contact( '<div class="lsx-to-contact">', '</div>' );
28
+                              }
29 29
 
30
-						lsx_to_enquire_modal();
31
-					?>
30
+                              lsx_to_enquire_modal();
31
+                         ?>
32 32
 				</div>
33 33
 			</div>
34 34
 		<?php endif ?>
Please login to merge, or discard this patch.
to-specials.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
 // If this file is called directly, abort.
16 16
 if ( ! defined( 'WPINC' ) ) {
17
-	die;
17
+     die;
18 18
 }
19 19
 
20 20
 define('LSX_TO_SPECIALS_PATH',  plugin_dir_path( __FILE__ ) );
Please login to merge, or discard this patch.
includes/post-types/config-special.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -10,46 +10,46 @@
 block discarded – undo
10 10
  */
11 11
 
12 12
 $post_type = array(
13
-	'class'               => 'LSX_TO_Specials',
14
-	'menu_icon'           => 'dashicons-star-filled',
15
-	'labels'              => array(
16
-		'name'               => esc_html__( 'Specials', 'to-specials' ),
17
-		'singular_name'      => esc_html__( 'Activity', 'to-specials' ),
18
-		'add_new'            => esc_html__( 'Add New', 'to-specials' ),
19
-		'add_new_item'       => esc_html__( 'Add New Special', 'to-specials' ),
20
-		'edit_item'          => esc_html__( 'Edit Special', 'to-specials' ),
21
-		'new_item'           => esc_html__( 'New Specials', 'to-specials' ),
22
-		'all_items'          => esc_html__( 'Specials', 'to-specials' ),
23
-		'view_item'          => esc_html__( 'View Special', 'to-specials' ),
24
-		'search_items'       => esc_html__( 'Search Specials', 'to-specials' ),
25
-		'not_found'          => esc_html__( 'No specials found', 'to-specials' ),
26
-		'not_found_in_trash' => esc_html__( 'No specials found in Trash', 'to-specials' ),
27
-		'parent_item_colon'  => '',
28
-		'menu_name'          => esc_html__( 'Specials', 'to-specials' ),
29
-	),
30
-	'public'              => true,
31
-	'publicly_queryable'  => true,
32
-	'show_ui'             => true,
33
-	'show_in_menu'        => 'tour-operator',
34
-	'menu_position'       => 70,
35
-	'query_var'           => true,
36
-	'rewrite'             => array(
37
-		'slug'       => 'special',
38
-		'with_front' => false,
39
-	),
40
-	'exclude_from_search' => false,
41
-	'capability_type'     => 'post',
42
-	'has_archive'         => 'specials',
43
-	'hierarchical'        => false,
44
-	'show_in_rest'        => true,
45
-	'supports'            => array(
46
-		'title',
47
-		'slug',
48
-		'editor',
49
-		'thumbnail',
50
-		'excerpt',
51
-		'custom-fields',
52
-	),
13
+     'class'               => 'LSX_TO_Specials',
14
+     'menu_icon'           => 'dashicons-star-filled',
15
+     'labels'              => array(
16
+          'name'               => esc_html__( 'Specials', 'to-specials' ),
17
+          'singular_name'      => esc_html__( 'Activity', 'to-specials' ),
18
+          'add_new'            => esc_html__( 'Add New', 'to-specials' ),
19
+          'add_new_item'       => esc_html__( 'Add New Special', 'to-specials' ),
20
+          'edit_item'          => esc_html__( 'Edit Special', 'to-specials' ),
21
+          'new_item'           => esc_html__( 'New Specials', 'to-specials' ),
22
+          'all_items'          => esc_html__( 'Specials', 'to-specials' ),
23
+          'view_item'          => esc_html__( 'View Special', 'to-specials' ),
24
+          'search_items'       => esc_html__( 'Search Specials', 'to-specials' ),
25
+          'not_found'          => esc_html__( 'No specials found', 'to-specials' ),
26
+          'not_found_in_trash' => esc_html__( 'No specials found in Trash', 'to-specials' ),
27
+          'parent_item_colon'  => '',
28
+          'menu_name'          => esc_html__( 'Specials', 'to-specials' ),
29
+     ),
30
+     'public'              => true,
31
+     'publicly_queryable'  => true,
32
+     'show_ui'             => true,
33
+     'show_in_menu'        => 'tour-operator',
34
+     'menu_position'       => 70,
35
+     'query_var'           => true,
36
+     'rewrite'             => array(
37
+          'slug'       => 'special',
38
+          'with_front' => false,
39
+     ),
40
+     'exclude_from_search' => false,
41
+     'capability_type'     => 'post',
42
+     'has_archive'         => 'specials',
43
+     'hierarchical'        => false,
44
+     'show_in_rest'        => true,
45
+     'supports'            => array(
46
+          'title',
47
+          'slug',
48
+          'editor',
49
+          'thumbnail',
50
+          'excerpt',
51
+          'custom-fields',
52
+     ),
53 53
 );
54 54
 
55 55
 return $post_type;
Please login to merge, or discard this patch.