-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy patharchive.html
More file actions
55 lines (34 loc) · 2.19 KB
/
archive.html
File metadata and controls
55 lines (34 loc) · 2.19 KB
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
<!--
* Content is enclosed in <div id="app-content-wrapper"><div id="app-screen"></div></div>
* Subhead: is added by add-custom-data.php in the theme's php folder / It expects that the post has a subhead custom field
* Handler for image loading error: displayDefaultImage() added in functions.js as a template's parameter
-->
<div id="content" class="content list-template">
<% if(posts.length){ %>
<% _.each( posts, function( post ){ %>
<div class="content-item has-ripple-feedback">
<a href="<%= TemplateTags.getPostLink(post.id) %>">
<% if ( post.subhead ) { %>
<div class="subhead"><%= post.subhead %></div>
<% } %>
<h2><span><%= post.title %></span></h2>
<% if( post.thumbnail && post.thumbnail.src && post.thumbnail.src.length ){ %>
<img class="content-thumbnail" src="<%= post.thumbnail.src %>" onerror="displayDefaultImage(this);" />
<% } %>
</a>
<% if( TemplateTags.addonIsActive( 'wpak-addon-favorites' ) && TemplateTags.isComponentTypeLoaded( 'favorites' ) ) { %>
<div class="favorite-toggle <%= WpakFavorites.getIsFavoriteClass( post.id ) %>" <%= TemplateTags.getPostDataAttributes( post.id ) %>>
<svg class="favorite-star" viewBox="0 0 512 512"><path d="M458 210.409l-145.267-12.476L256 64l-56.743 133.934L54 210.409l110.192 95.524L131.161 448 256 372.686 380.83 448l-33.021-142.066L458 210.409zM272.531 345.286L256 335.312l-16.53 9.973-59.988 36.191 15.879-68.296 4.369-18.79-14.577-12.637-52.994-45.939 69.836-5.998 19.206-1.65 7.521-17.75 27.276-64.381 27.27 64.379 7.52 17.751 19.208 1.65 69.846 5.998-52.993 45.939-14.576 12.636 4.367 18.788 15.875 68.299-59.984-36.189z"/></svg>
</div>
<% } %>
</div>
<% }); %>
<% if( TemplateTags.displayGetMoreLink() ){ %>
<div class="get-more-button-wrapper">
<button type="button" id="get-more-button" class="get-more-button has-ripple-feedback ripple-small">More (<%= TemplateTags.getMoreLinkNbLeft() %>)</button>
</div>
<% } %>
<% }else{ %>
<div class='content-message'>No post found</div>
<% } %>
</div>