forked from jayallen/melody
/
main_index.mtml
79 lines (72 loc) · 2.98 KB
/
main_index.mtml
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
<$mt:EntriesOnMainPage setvar="entries_per_page"$>
<mt:SetVarBlock name="search_link">
<$mt:CGIPath$><$mt:SearchScript$>?IncludeBlogs=<$mt:BlogID$>&template_id=<$mt:BuildTemplateID$>&limit=<$mt:Var name="entries_per_page"$>&archive_type=Index&page=
</mt:SetVarBlock>
<mt:SetVarBlock name="pagination_navigation">
<mt:If name="search_results">
<mt:IfMoreResults>
<span class="previous">
<a href="<$mt:NextLink$>">← Before</a>
</span>
</mt:IfMoreResults>
<mt:IfPreviousResults>
<span class="next">
<a href="<$mt:PreviousLink$>">After →</a>
</span>
</mt:IfPreviousResults>
<mt:Else>
<mt:If name="archive_template">
<$mt:ArchiveCount setvar="total_entries"$>
<mt:Else>
<$mt:BlogEntryCount setvar="total_entries"$>
</mt:If>
<mt:If name="total_entries" gt="$entries_per_page">
<span class="previous">
<a href="<$mt:var name="search_link"$>2">← Before</a>
</span>
</mt:If>
</mt:If>
</mt:SetVarBlock>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<title><$mt:BlogName escape="html"$> – <$mt:BlogDescription escape="html"$></title>
<meta name='robots' content='noindex,nofollow' />
<$mt:Include identifier="html_head"$>
</head>
<body>
<div class="container">
<div class="header">
<div class="search">
<form method="get" id="sform" action="<$mt:CGIPath$><$mt:SearchScript$>">
<input type="text" id="q" value="" name="search" size="15" />
<input type="hidden" name="limit" value="<$mt:EntriesInSearchResults$>"/>
<input type="hidden" name="IncludeBlogs" value="<$mt:BlogID$>"/>
</form>
</div><!-- end search -->
<h1><mt:If name="main_index"><$mt:BlogName escape="html"$><mt:Else><a href="<$mt:BlogURL$>"><$mt:BlogName escape="html"$></a></mt:If> <span><$mt:BlogDescription escape="html"$></span></h1>
</div><!-- end header -->
<div class="blogads">
<$mt:WidgetSet name="<__trans phrase="Sidebar">"$>
</div>
<mt:If tag="FlickrPhotoType" ne="Disable">
<$mt:Include identifier="flickr"$>
</mt:If>
<$mt:Date format="%Y$%m%d" setvar="today"$>
<mt:Entries limit="$entries_per_page" search_results="$isSearch">
<$mt:EntryDate format="%Y%M%d" setvar="this_entry"$>
<mt:If name="today" gt="$this_entry">
<mt:SetVarBlock name="cache_key">Listing;EntryDetails;<$mt:EntryID$></mt:SetVarBlock>
<$mt:Include identifier="entry_details" cache="1" cache_key="$cache_key" ttl="604800"$>
<mt:Else>
<$mt:Include identifier="entry_details"$>
</mt:If>
</mt:Entries>
<div class="postnoline">
<$mt:var name="pagination_navigation"$>
</div>
<br clear="all" />
<$mt:Include identifier="footer"$>
</div> <!-- end container -->
</body>
</html>