Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Commit ef2b089

Browse files
committed
whitespace
1 parent e95b616 commit ef2b089

3 files changed

Lines changed: 89 additions & 48 deletions

File tree

‎single-dhrees-project.php‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
/**
3+
* The template for displaying all single posts.
4+
*
5+
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
6+
*
7+
* @package _s
8+
*/
9+
10+
get_header(); ?>
11+
12+
<div id="primary" class="content-area">
13+
<div class="single-page single-project"></div>
14+
<main id="main" class="site-main" role="main">
15+
16+
<!-- Post content -->
17+
<div class="single-page-wrapper">
18+
<?php while ( have_posts() ) : the_post(); ?>
19+
20+
<div class="featured-project-container">
21+
<div class="featured-project-image-container">
22+
<img class="featured-project-image" src="<?php the_post_thumbnail_url('original'); ?>" />
23+
</div>
24+
<div class="project-full-text-container">
25+
<div class="featured-project-title">
26+
<?php the_title(); ?>
27+
</div>
28+
<div class="author">
29+
<?php echo get_post_meta($post->ID, 'project-author', true); ?>
30+
</div>
31+
<?php echo the_content();
32+
endwhile; // End of the loop. ?>
33+
</div>
34+
</div>
35+
36+
</div>
37+
</main><!-- #main -->
38+
</div><!-- #primary -->
39+
40+
<?php
41+
get_footer();

‎single-event.php‎

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,32 @@
99

1010
get_header(); ?>
1111

12-
<div id="primary" class="content-area">
13-
<div class="single-page single-project"></div>
14-
<main id="main" class="site-main" role="main">
12+
<div id="primary" class="content-area">
13+
<div class="single-page single-project"></div>
14+
<main id="main" class="site-main" role="main">
1515

16-
<!-- Post content -->
17-
<div class="single-page-wrapper">
18-
<?php while ( have_posts() ) : the_post(); ?>
16+
<!-- Post content -->
17+
<div class="single-page-wrapper">
18+
<?php while ( have_posts() ) : the_post(); ?>
1919

20-
<div class="featured-project-container">
21-
<div class="featured-project-image-container">
22-
<img class="featured-project-image" src="<?php the_post_thumbnail_url('original'); ?>" />
20+
<div class="featured-project-container">
21+
<div class="featured-project-image-container">
22+
<img class="featured-project-image" src="<?php the_post_thumbnail_url('original'); ?>" />
23+
</div>
24+
<div class="project-full-text-container">
25+
<div class="featured-project-title">
26+
<?php the_title(); ?>
2327
</div>
24-
<div class="project-full-text-container">
25-
<div class="featured-project-title">
26-
<?php the_title(); ?>
27-
</div>
28-
<div class="author">
29-
<?php echo get_post_meta($post->ID, 'event-author', true); ?>
30-
</div>
31-
<?php echo the_content(); ?>
32-
</div> <!--.project-full-text-container-->
33-
<?php endwhile; ?>
34-
</div><!--.featured-project-container-->
35-
</div>
36-
</main><!-- #main -->
37-
</div><!-- #primary -->
28+
<div class="author">
29+
<?php echo get_post_meta($post->ID, 'event-author', true); ?>
30+
</div>
31+
<?php echo the_content(); ?>
32+
</div> <!--.project-full-text-container-->
33+
<?php endwhile; ?>
34+
</div><!--.featured-project-container-->
35+
</div>
36+
</main><!-- #main -->
37+
</div><!-- #primary -->
3838

3939
<?php
4040
get_footer();

‎single-generic.php‎

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,31 @@
99

1010
get_header(); ?>
1111

12-
<div id="primary" class="content-area">
13-
<div class="single-page single-project"></div>
14-
<main id="main" class="site-main" role="main">
15-
<div class="single-page-wrapper">
16-
<?php
17-
while ( have_posts() ) : the_post();
18-
19-
echo '<div class="post-author">';
20-
echo get_post_meta($post->ID, 'project-author', true);
21-
echo '</div>';
22-
23-
get_template_part( 'template-parts/content', get_post_format() );
24-
25-
the_post_navigation();
26-
27-
// If comments are open or we have at least one comment, load up the comment template.
28-
if ( comments_open() || get_comments_number() ) :
29-
comments_template();
30-
endif;
31-
32-
endwhile; // End of the loop.
33-
?>
34-
</div>
35-
</main><!-- #main -->
36-
</div><!-- #primary -->
12+
<div id="primary" class="content-area">
13+
<div class="single-page single-project"></div>
14+
<main id="main" class="site-main" role="main">
15+
<div class="single-page-wrapper">
16+
<?php
17+
while ( have_posts() ) : the_post();
18+
19+
echo '<div class="post-author">';
20+
echo get_post_meta($post->ID, 'project-author', true);
21+
echo '</div>';
22+
23+
get_template_part( 'template-parts/content', get_post_format() );
24+
25+
the_post_navigation();
26+
27+
// If comments are open or we have at least one comment, load up the comment template.
28+
if ( comments_open() || get_comments_number() ) :
29+
comments_template();
30+
endif;
31+
32+
endwhile; // End of the loop.
33+
?>
34+
</div>
35+
</main><!-- #main -->
36+
</div><!-- #primary -->
3737

3838
<?php
3939
get_footer();

0 commit comments

Comments
 (0)