Skip to content

Commit 7e05f95

Browse files
author
Eddie Machado
committed
Merge pull request eddiemachado-zz#486 from Silex/master
Replace HTML comments by PHP comments
2 parents 405349e + 7ce8215 commit 7e05f95

15 files changed

Lines changed: 95 additions & 95 deletions

404.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,32 @@
1212

1313
<h1><?php _e( 'Epic 404 - Article Not Found', 'bonestheme' ); ?></h1>
1414

15-
</header> <!-- end article header -->
15+
</header> <?php // end article header ?>
1616

1717
<section class="entry-content">
1818

1919
<p><?php _e( 'The article you were looking for was not found, but maybe try looking again!', 'bonestheme' ); ?></p>
2020

21-
</section> <!-- end article section -->
21+
</section> <?php // end article section ?>
2222

2323
<section class="search">
2424

2525
<p><?php get_search_form(); ?></p>
2626

27-
</section> <!-- end search section -->
27+
</section> <?php // end search section ?>
2828

2929
<footer class="article-footer">
3030

3131
<p><?php _e( 'This is the 404.php template.', 'bonestheme' ); ?></p>
3232

33-
</footer> <!-- end article footer -->
33+
</footer> <?php // end article footer ?>
3434

35-
</article> <!-- end article -->
35+
</article> <?php // end article ?>
3636

37-
</div> <!-- end #main -->
37+
</div> <?php // end #main ?>
3838

39-
</div> <!-- end #inner-content -->
39+
</div> <?php // end #inner-content ?>
4040

41-
</div> <!-- end #content -->
41+
</div> <?php // end #content ?>
4242

4343
<?php get_footer(); ?>

archive-custom_type.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@
1919
printf( __( 'Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>.', 'bonestheme' ), get_the_time( 'Y-m-j' ), get_the_time( __( 'F jS, Y', 'bonestheme' ) ), bones_get_the_author_posts_link());
2020
?></p>
2121

22-
</header> <!-- end article header -->
22+
</header> <?php // end article header ?>
2323

2424
<section class="entry-content clearfix">
2525

2626
<?php the_excerpt(); ?>
2727

28-
</section> <!-- end article section -->
28+
</section> <?php // end article section ?>
2929

3030
<footer class="article-footer">
3131

32-
</footer> <!-- end article footer -->
32+
</footer> <?php // end article footer ?>
3333

34-
</article> <!-- end article -->
34+
</article> <?php // end article ?>
3535

3636
<?php endwhile; ?>
3737

@@ -62,12 +62,12 @@
6262

6363
<?php endif; ?>
6464

65-
</div> <!-- end #main -->
65+
</div> <?php // end #main ?>
6666

6767
<?php get_sidebar(); ?>
6868

69-
</div> <!-- end #inner-content -->
69+
</div> <?php // end #inner-content ?>
7070

71-
</div> <!-- end #content -->
71+
</div> <?php // end #content ?>
7272

7373
<?php get_footer(); ?>

archive.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,21 @@
5252
printf(__( 'Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(__( 'F jS, Y', 'bonestheme' )), bones_get_the_author_posts_link(), get_the_category_list(', '));
5353
?></p>
5454

55-
</header> <!-- end article header -->
55+
</header> <?php // end article header ?>
5656

5757
<section class="entry-content clearfix">
5858

5959
<?php the_post_thumbnail( 'bones-thumb-300' ); ?>
6060

6161
<?php the_excerpt(); ?>
6262

63-
</section> <!-- end article section -->
63+
</section> <?php // end article section ?>
6464

6565
<footer class="article-footer">
6666

67-
</footer> <!-- end article footer -->
67+
</footer> <?php // end article footer ?>
6868

69-
</article> <!-- end article -->
69+
</article> <?php // end article ?>
7070

7171
<?php endwhile; ?>
7272

@@ -97,12 +97,12 @@
9797

9898
<?php endif; ?>
9999

100-
</div> <!-- end #main -->
100+
</div> <?php // end #main ?>
101101

102102
<?php get_sidebar(); ?>
103103

104-
</div> <!-- end #inner-content -->
104+
</div> <?php // end #inner-content ?>
105105

106-
</div> <!-- end #content -->
106+
</div> <?php // end #content ?>
107107

108108
<?php get_footer(); ?>

comments.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
?>
1818

19-
<!-- You can start editing here. -->
19+
<?php // You can start editing here. ?>
2020

2121
<?php if ( have_comments() ) : ?>
2222
<h3 id="comments" class="h2"><?php comments_number( __( '<span>No</span> Responses', 'bonestheme' ), __( '<span>One</span> Response', 'bonestheme' ), _n( '<span>%</span> Response', '<span>%</span> Responses', get_comments_number(), 'bonestheme' ) );?> to &#8220;<?php the_title(); ?>&#8221;</h3>
@@ -42,11 +42,11 @@
4242
<?php else : // this is displayed if there are no comments so far ?>
4343

4444
<?php if ( comments_open() ) : ?>
45-
<!-- If comments are open, but there are no comments. -->
45+
<?php // If comments are open, but there are no comments. ?>
4646

4747
<?php else : // comments are closed ?>
4848

49-
<!-- If comments are closed. -->
49+
<?php // If comments are closed. ?>
5050
<!--p class="nocomments"><?php _e( 'Comments are closed.', 'bonestheme' ); ?></p-->
5151

5252
<?php endif; ?>

footer.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88

99
<p class="source-org copyright">&copy; <?php echo date('Y'); ?> <?php bloginfo( 'name' ); ?>.</p>
1010

11-
</div> <!-- end #inner-footer -->
11+
</div> <?php // end #inner-footer ?>
1212

13-
</footer> <!-- end footer -->
13+
</footer> <?php // end footer ?>
1414

15-
</div> <!-- end #container -->
15+
</div> <?php // end #container ?>
1616

17-
<!-- all js scripts are loaded in library/bones.php -->
17+
<?php // all js scripts are loaded in library/bones.php ?>
1818
<?php wp_footer(); ?>
1919

2020
</body>
2121

22-
</html> <!-- end page. what a ride! -->
22+
</html> <?php // end page. what a ride! ?>

functions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ function bones_comments( $comment, $args, $depth ) {
124124
echo get_avatar($comment,$size='32',$default='<path_to_url>' );
125125
*/
126126
?>
127-
<!-- custom gravatar call -->
127+
<?php // custom gravatar call ?>
128128
<?php
129129
// create variable
130130
$bgauthemail = get_comment_author_email();
131131
?>
132132
<img data-gravatar="http://www.gravatar.com/avatar/<?php echo md5( $bgauthemail ); ?>?s=32" class="load-gravatar avatar avatar-48 photo" height="32" width="32" src="<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif" />
133-
<!-- end custom gravatar call -->
133+
<?php // end custom gravatar call ?>
134134
<?php printf(__( '<cite class="fn">%s</cite>', 'bonestheme' ), get_comment_author_link()) ?>
135135
<time datetime="<?php echo comment_time('Y-m-j'); ?>"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php comment_time(__( 'F jS, Y', 'bonestheme' )); ?> </a></time>
136136
<?php edit_comment_link(__( '(Edit)', 'bonestheme' ),' ','') ?>
@@ -145,7 +145,7 @@ function bones_comments( $comment, $args, $depth ) {
145145
</section>
146146
<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
147147
</article>
148-
<!-- </li> is added by WordPress automatically -->
148+
<?php // </li> is added by WordPress automatically ?>
149149
<?php
150150
} // don't remove this bracket!
151151

header.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,34 @@
88
<head>
99
<meta charset="utf-8">
1010

11-
<!-- Google Chrome Frame for IE -->
11+
<?php // Google Chrome Frame for IE ?>
1212
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
1313

1414
<title><?php wp_title(''); ?></title>
1515

16-
<!-- mobile meta (hooray!) -->
16+
<?php // mobile meta (hooray!) ?>
1717
<meta name="HandheldFriendly" content="True">
1818
<meta name="MobileOptimized" content="320">
1919
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
2020

21-
<!-- icons & favicons (for more: http://www.jonathantneal.com/blog/understand-the-favicon/) -->
21+
<?php // icons & favicons (for more: http://www.jonathantneal.com/blog/understand-the-favicon/) ?>
2222
<link rel="apple-touch-icon" href="<?php echo get_template_directory_uri(); ?>/library/images/apple-icon-touch.png">
2323
<link rel="icon" href="<?php echo get_template_directory_uri(); ?>/favicon.png">
2424
<!--[if IE]>
2525
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico">
2626
<![endif]-->
27-
<!-- or, set /favicon.ico for IE10 win -->
27+
<?php // or, set /favicon.ico for IE10 win ?>
2828
<meta name="msapplication-TileColor" content="#f01d4f">
2929
<meta name="msapplication-TileImage" content="<?php echo get_template_directory_uri(); ?>/library/images/win8-tile-icon.png">
3030

3131
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
3232

33-
<!-- wordpress head functions -->
33+
<?php // wordpress head functions ?>
3434
<?php wp_head(); ?>
35-
<!-- end of wordpress head -->
35+
<?php // end of wordpress head ?>
3636

37-
<!-- drop Google Analytics Here -->
38-
<!-- end analytics -->
37+
<?php // drop Google Analytics Here ?>
38+
<?php // end analytics ?>
3939

4040
</head>
4141

@@ -47,17 +47,17 @@
4747

4848
<div id="inner-header" class="wrap clearfix">
4949

50-
<!-- to use a image just replace the bloginfo('name') with your img src and remove the surrounding <p> -->
50+
<?php // to use a image just replace the bloginfo('name') with your img src and remove the surrounding <p> ?>
5151
<p id="logo" class="h1"><a href="<?php echo home_url(); ?>" rel="nofollow"><?php bloginfo('name'); ?></a></p>
5252

53-
<!-- if you'd like to use the site description you can un-comment it below -->
53+
<?php // if you'd like to use the site description you can un-comment it below ?>
5454
<?php // bloginfo('description'); ?>
5555

5656

5757
<nav role="navigation">
5858
<?php bones_main_nav(); ?>
5959
</nav>
6060

61-
</div> <!-- end #inner-header -->
61+
</div> <?php // end #inner-header ?>
6262

63-
</header> <!-- end header -->
63+
</header> <?php // end header ?>

index.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@
1717
printf( __( 'Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), bones_get_the_author_posts_link(), get_the_category_list(', '));
1818
?></p>
1919

20-
</header> <!-- end article header -->
20+
</header> <?php // end article header ?>
2121

2222
<section class="entry-content clearfix">
2323
<?php the_content(); ?>
24-
</section> <!-- end article section -->
24+
</section> <?php // end article section ?>
2525

2626
<footer class="article-footer">
2727
<p class="tags"><?php the_tags( '<span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '' ); ?></p>
2828

29-
</footer> <!-- end article footer -->
29+
</footer> <?php // end article footer ?>
3030

3131
<?php // comments_template(); // uncomment if you want to use them ?>
3232

33-
</article> <!-- end article -->
33+
</article> <?php // end article ?>
3434

3535
<?php endwhile; ?>
3636

@@ -61,12 +61,12 @@
6161

6262
<?php endif; ?>
6363

64-
</div> <!-- end #main -->
64+
</div> <?php // end #main ?>
6565

6666
<?php get_sidebar(); ?>
6767

68-
</div> <!-- end #inner-content -->
68+
</div> <?php // end #inner-content ?>
6969

70-
</div> <!-- end #content -->
70+
</div> <?php // end #content ?>
7171

7272
<?php get_footer(); ?>

page-custom.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@
2424
?></p>
2525

2626

27-
</header> <!-- end article header -->
27+
</header> <?php // end article header ?>
2828

2929
<section class="entry-content clearfix" itemprop="articleBody">
3030
<?php the_content(); ?>
31-
</section> <!-- end article section -->
31+
</section> <?php // end article section ?>
3232

3333
<footer class="article-footer">
3434
<p class="clearfix"><?php the_tags( '<span class="tags">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '' ); ?></p>
3535

36-
</footer> <!-- end article footer -->
36+
</footer> <?php // end article footer ?>
3737

3838
<?php comments_template(); ?>
3939

40-
</article> <!-- end article -->
40+
</article> <?php // end article ?>
4141

4242
<?php endwhile; else : ?>
4343

@@ -55,12 +55,12 @@
5555

5656
<?php endif; ?>
5757

58-
</div> <!-- end #main -->
58+
</div> <?php // end #main ?>
5959

6060
<?php get_sidebar(); ?>
6161

62-
</div> <!-- end #inner-content -->
62+
</div> <?php // end #inner-content ?>
6363

64-
</div> <!-- end #content -->
64+
</div> <?php // end #content ?>
6565

6666
<?php get_footer(); ?>

page.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@
1818
?></p>
1919

2020

21-
</header> <!-- end article header -->
21+
</header> <?php // end article header ?>
2222

2323
<section class="entry-content clearfix" itemprop="articleBody">
2424
<?php the_content(); ?>
25-
</section> <!-- end article section -->
25+
</section> <?php // end article section ?>
2626

2727
<footer class="article-footer">
2828
<?php the_tags( '<span class="tags">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '' ); ?>
2929

30-
</footer> <!-- end article footer -->
30+
</footer> <?php // end article footer ?>
3131

3232
<?php comments_template(); ?>
3333

34-
</article> <!-- end article -->
34+
</article> <?php // end article ?>
3535

3636
<?php endwhile; else : ?>
3737

@@ -49,12 +49,12 @@
4949

5050
<?php endif; ?>
5151

52-
</div> <!-- end #main -->
52+
</div> <?php // end #main ?>
5353

5454
<?php get_sidebar(); ?>
5555

56-
</div> <!-- end #inner-content -->
56+
</div> <?php // end #inner-content ?>
5757

58-
</div> <!-- end #content -->
58+
</div> <?php // end #content ?>
5959

6060
<?php get_footer(); ?>

0 commit comments

Comments
 (0)