Skip to content

Commit b93798f

Browse files
committed
Some documentation
1 parent cc0a96f commit b93798f

17 files changed

+99
-25
lines changed

category.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<?php
2+
/**
3+
* category archives template part
4+
*/
5+
26
/**
37
* category archives template part
48
*
9+
* @link http://codex.wordpress.org/Template_Hierarchy
510
* @package multiloquent\template_parts
611
*/
712
get_header();

comments.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
<?php
2-
/**
2+
/**
3+
* comment form
4+
*/
5+
6+
/**
37
* comment template part.
4-
* this is a direct lift of the comments from shoestrap;
8+
* this is a direct lift of the comments from shoestrap;
59
* I personally use disqus for my comments, but this comment system was already done :D
610
* http://shoestrap.org/
7-
*
11+
*
812
* @package multiloquent\template_parts
913
*/
1014
if (post_password_required()) {
@@ -18,7 +22,7 @@
1822
<ol class="comment-list">
1923
<?php wp_list_comments(); ?>
2024
</ol>
21-
25+
2226
<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) { ?>
2327
<nav>
2428
<ul class="pager">

featuredimage.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?php
22
/**
3-
* template part to output a featured image
3+
* output the featured image, or a default image if none set
4+
*/
5+
6+
/**
7+
* template part to output a featured image or a default image if none set
48
*
59
* @package multiloquent\template_parts
610
*/

footer.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
<?php
1+
<?php
2+
/**
3+
* multiloquent theme footer
4+
*/
5+
26
/**
37
* footer template part
4-
*
8+
*
59
* @package multiloquent\template_parts
610
*/
711
?>

front-page.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
<?php
2+
/**
3+
* template for static homepage if set in options
4+
*/
5+
26
/**
37
* home page template part if static page selected as homepage
48
*
9+
* @link http://codex.wordpress.org/Template_Hierarchy
10+
*
511
* @package multiloquent\template_parts
612
*/
713

header.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<?php
2+
/**
3+
* Header template part
4+
*/
5+
26
/**
37
* header template part
4-
*
8+
*
59
* @package multiloquent\template_parts
610
*/
711
?><!DOCTYPE html>
@@ -21,4 +25,4 @@
2125
<body <?php body_class();?>>
2226
<div class="holder">
2327
<div class="wrapper">
24-
28+

home.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<?php
2+
/**
3+
* homepage when set to display blog posts on homepage
4+
*/
5+
26
/**
37
* this is the template for the home page when its set to display blog posts
48
*
9+
* @link http://codex.wordpress.org/Template_Hierarchy
510
* @package multiloquent\template_parts
611
*/
712

index.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<?php
2+
/**
3+
* fallback if no other archive pages are found
4+
*/
5+
26
/**
37
* fallback page if no other index page found
4-
*
8+
* @link http://codex.wordpress.org/Template_Hierarchy
59
* @package multiloquent\template_parts
610
*/
711

metadata.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
<?php
1+
<?php
2+
/**
3+
* generate metadata for posts
4+
*/
5+
26
/**
37
* generate the metadata snippet.
48
* used in the breadcrumbs
5-
*
9+
*
610
* @package multiloquent\template_parts
711
*/
812

navigation.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
<?php
1+
<?php
2+
/**
3+
* nav bar
4+
*/
5+
26
/**
37
* navigation template part
4-
*
8+
*
59
* @package multiloquent\template_parts
610
*/
711
?>
812
<nav role="navigation" class="navbar navbar-default navbar-fixed-top">
913
<div class="navbar-header">
10-
<a title="navigation menu" href="javascript:void(0);" class="navbar-brand sidebar-toggle"><span class="fa fa-bars"></span></a>
11-
<?php echo '<h2><a class="navbar-brand title_text" title="'. get_bloginfo('name').'" href="'. esc_url(home_url('/')) .'">'. get_bloginfo('name').'</a></h2>';?>
14+
<a title="navigation menu" href="javascript:void(0);" class="navbar-brand sidebar-toggle"><span class="fa fa-bars"></span></a>
15+
<?php echo '<h2><a class="navbar-brand title_text" title="'. get_bloginfo('name').'" href="'. esc_url(home_url('/')) .'">'. get_bloginfo('name').'</a></h2>';?>
1216
</div>
1317
</nav>

0 commit comments

Comments
 (0)