-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.php
38 lines (34 loc) · 1.13 KB
/
index.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
<?php get_header(); ?>
<div class="main">
<div class="shell">
<div class="content">
<div class="page-content">
<div class="page-entry" :class="post.class" v-for="post in posts" v-if="post.page === currentPage">
<div class="page-head">
<a :href="post.url">
<h3>{{ post.title }}</h3>
</a>
</div>
<div class="page-content">
<div class="post-thumbnail" v-if="post.thumbnail">
<img :src="post.thumbnail" alt="" class="attachment-post-thumbnail size-post-thumbnail wp-post-image">
</div>
<div v-html="post.content">
</div>
<a v-if="post.trimmed" :href="post.url"><?php _e( 'Read More »', 'vuetiful' ); ?></a>
</div>
</div>
<div class="pagination" v-if="showPagination">
<a href="#" @click.prevent="setPage( currentPage - 1)">«</a>
<a href="#" v-for="page in pages" :class="{ current: page === currentPage }" @click.prevent="setPage( page )">
{{ page }}
</a>
<a href="#" @click.prevent="setPage( currentPage + 1)">»</a>
</div>
</div>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php
get_footer();