-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsingle-projects.php
86 lines (81 loc) · 3.56 KB
/
single-projects.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
/**
* The template for displaying single project
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package cavatina
*/
get_header();
?>
<!-- Aside -->
<aside class="o-page__col c-aside c-aside--mobile-hide js-aside">
<div class="c-aside__content">
<div class="c-aside__wrapper">
<div class="c-aside__context">
<span class="c-aside__title"><?php esc_html_e( 'Project', 'cavatina' ); ?></span>
</div>
</div>
</div>
</aside>
<!-- Main content-->
<main class="o-page__main js-page__main">
<div class="o-page__col c-content">
<article id="post-<?php the_ID(); ?>" <?php post_class( 'c-single' ); ?>>
<div class="c-single__context" data-simplebar data-simplebar-auto-hide="false">
<div class="c-single__context__holder" id="wrapper">
<?php the_title( '<h1 class="c-single__title">', '</h1>' ); ?>
<ul class="c-single__meta">
<li>
<?php echo '<span>'. esc_html( cavatina_get_category() ) .'</span>'; ?>
</li>
<!-- bullet is here (single meta before) -->
<li>
<?php echo '<span><a href="'. esc_url( get_permalink() ) .'">'.esc_html( get_the_date( "M Y" ) ).'</a></span>'; ?>
</li>
</ul>
<div class="c-single__text">
<?php
the_content(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'cavatina' ),
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post( get_the_title() )
)
);
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'cavatina' ),
'after' => '</div>',
)
);
?>
</div>
</div>
</div>
<div class="c-single__carousel c-single__carousel--mobile">
<?php the_title( '<h2 class="c-single__title">', '</h2>' ); ?>
<ul class="c-single__meta">
<li>
<?php echo '<span>'. esc_html( cavatina_get_category() ).'</span>'; ?>
</li>
<li>
<?php echo '<span><a href="'. esc_url( get_permalink() ) .'">'.esc_html( get_the_date( "M Y" ) ).'</a></span>'; ?>
</li>
</ul>
<div class="c-carousel__single__slider js-single__slider">
<?php cavatina_get_slider( get_the_ID() ); ?>
</div>
</div>
</article><!-- #post-<?php the_ID(); ?> -->
<!--Single-->
</div>
</main><!-- #main -->
<?php get_footer();?>