Consulter le code

Create content-single.php

Ivan FELICITE a écrit le 06/05/2018 23:59:52
Affichage de 1 fichier(s) changé(s)
1 1
new file mode 100644
... ...
@@ -0,0 +1,71 @@
0
+<?php 
1
+global $virtue_sidebar;
2
+if( virtue_display_sidebar() ) {
3
+	$virtue_sidebar = true;
4
+} else {
5
+	$virtue_sidebar = false;
6
+}
7
+do_action( 'virtue_single_post_begin' ); 
8
+?>
9
+<div id="content" class="container">
10
+	<div class="row single-article" itemscope itemtype="http://schema.org/BlogPosting">
11
+		<div class="main <?php echo esc_attr( virtue_main_class() ); ?>" role="main">
12
+		<?php while ( have_posts() ) : the_post();
13
+
14
+		do_action( 'virtue_single_post_before' ); 
15
+
16
+		?>
17
+			<article <?php post_class(); ?>>
18
+			<?php
19
+			/**
20
+			* @hooked virtue_single_post_headcontent - 10
21
+			* @hooked virtue_single_post_meta_date - 20
22
+			*/
23
+			do_action( 'virtue_single_post_before_header' );
24
+			?>
25
+				<header>
26
+
27
+				<?php 
28
+				/**
29
+				* @hooked virtue_post_header_title - 20
30
+				* @hooked virtue_post_header_meta - 30
31
+				*/
32
+				do_action( 'virtue_single_post_header' );
33
+				?>
34
+				
35
+				</header>
36
+
37
+				<div class="entry-content" itemprop="articleBody">
38
+					<?php
39
+					do_action( 'virtue_single_post_content_before' );
40
+                        
41
+						the_content(); 
42
+                      
43
+					do_action( 'virtue_single_post_content_after' );
44
+					?>
45
+				</div>
46
+
47
+				<footer class="single-footer">
48
+				<?php 
49
+					/**
50
+					* @hooked virtue_post_footer_pagination - 10
51
+					* @hooked virtue_post_footer_tags - 20
52
+					* @hooked virtue_post_footer_meta - 30
53
+					* @hooked virtue_post_nav - 40
54
+					*/
55
+					do_action( 'virtue_single_post_footer' );
56
+					?>
57
+				</footer>
58
+			</article>
59
+			<?php
60
+			/**
61
+			* @hooked virtue_post_authorbox - 20
62
+			* @hooked virtue_post_bottom_carousel - 30
63
+			* @hooked virtue_post_comments - 40
64
+			*/
65
+			do_action( 'virtue_single_post_after' );
66
+			
67
+			endwhile; ?>
68
+		</div>
69
+		<?php 
70
+		do_action( 'virtue_single_post_end' );