1 | <?php |
||
2 | /** |
||
3 | * Activity Archive |
||
4 | * |
||
5 | * @package tour-operator |
||
6 | * @category activity |
||
7 | */ |
||
8 | |||
9 | get_header(); ?> |
||
10 | |||
11 | <?php lsx_content_wrap_before(); ?> |
||
12 | |||
13 | <div id="primary" class="content-area col-sm-12 <?php echo esc_attr( lsx_main_class() ); ?>"> |
||
14 | |||
15 | <?php lsx_content_before(); ?> |
||
16 | |||
17 | <main id="main" class="site-main" role="main"> |
||
18 | |||
19 | <?php lsx_content_top(); ?> |
||
20 | |||
21 | <?php if ( have_posts() ) : ?> |
||
22 | |||
23 | <div class="row lsx-to-archive-items lsx-to-archive-template-<?php echo esc_attr( tour_operator()->archive_layout ); ?> lsx-to-archive-template-image-<?php echo esc_attr( tour_operator()->archive_list_layout_image_style ); ?>"> |
||
24 | |||
25 | <?php while ( have_posts() ) : the_post(); ?> |
||
26 | |||
27 | <div class="<?php echo esc_attr( lsx_to_archive_class( 'lsx-to-archive-item' ) ); ?>"> |
||
28 | <?php lsx_to_activity_content( 'content', 'activity' ); ?> |
||
29 | </div> |
||
30 | |||
31 | <?php endwhile; ?> |
||
32 | |||
33 | </div> |
||
34 | |||
35 | <?php else : ?> |
||
36 | |||
37 | <?php get_template_part( 'partials/content', 'none' ); ?> |
||
38 | |||
39 | <?php endif; ?> |
||
40 | |||
41 | <?php lsx_content_bottom(); ?> |
||
42 | |||
43 | </main><!-- #main --> |
||
44 | |||
45 | <?php lsx_content_after(); ?> |
||
46 | |||
47 | </div><!-- #primary --> |
||
48 | |||
49 | <?php lsx_content_wrap_after(); ?> |
||
50 | |||
51 | <?php //get_sidebar(); ?> |
||
0 ignored issues
–
show
|
|||
52 | |||
53 | <?php get_footer(); |
||
54 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.