aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/daily.html
blob: b5d8928ebd45f6c824c28c8cfc967e1f0ab0325d (plain) (blame)
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html>
<head>
  {include="includes"}
</head>
<body>
{include="page.header"}

<div class="pure-g">
  <div class="pure-u-lg-1-6 pure-u-1-8"></div>
  <div class="pure-u-lg-2-3 pure-u-3-4 page-form page-visitor" id="daily">
    <h2 class="window-title">
      The Daily Shaarli
      <a href="?do=dailyrss" title="1 RSS entry per day"><i class="fa fa-rss"></i></a>
    </h2>

    <div id="plugin_zone_start_daily" class="plugin_zone">
      {loop="$plugin_start_zone"}
        {$value}
      {/loop}
    </div>

    <div class="daily-about">

      <div class="pure-g">
        <div class="pure-u-lg-1-3 pure-u-1 center">
          {if="$previousday"}
            <a href="?do=daily&amp;day={$previousday}">
              <i class="fa fa-arrow-left"></i>
              Previous day
            </a>
          {/if}
        </div>
        <div class="daily-desc pure-u-lg-1-3 pure-u-1 center">
          All links of one day in a single page.
        </div>
        <div class="pure-u-lg-1-3 pure-u-1 center">
          {if="$nextday"}
            <a href="?do=daily&amp;day={$nextday}">
              Next day
              <i class="fa fa-arrow-right"></i>
            </a>
          {/if}
        </div>
      </div>
      <div>
        <h3>{function="strftime('%A %d, %B %Y', $day)"}</h3>

        <div id="plugin_zone_about_daily" class="plugin_zone">
          {loop="$daily_about_plugin"}
            {$value}
          {/loop}
        </div>
      </div>
    </div>


    {if="$linksToDisplay"}
      <div class="pure-g">
        {loop="$cols"}
          {if="isset($value[0])"}
            <div class="pure-u-lg-1-3 pure-u-1">
              {loop="value"}
                {$link=$value}
                <div class="daily-entry">
                  <div class="daily-entry-title center">
                    <a href="?{$link.linkdate|smallHash}" title="Permalink">
                      <i class="fa fa-link"></i>
                    </a>
                    <a href="{$link.real_url}">{$link.title}</a>
                  </div>
                  {$thumb=thumbnail($value.url)}
                  {if="$thumb!=false"}
                    <div class="daily-entry-thumbnail">{$thumb}</div>
                  {/if}
                  <div class="daily-entry-description">{$link.formatedDescription}</div>
                  {if="$link.tags"}
                    <div class="daily-entry-tags center">
                      {loop="link.taglist"}
                        <span class="label label-tag" title="Add tag">
                          {$value}
                        </span>
                      {/loop}
                    </div>
                  {/if}
                  <div class="dailyEntryFooter">
                    {loop="$link.link_plugin"}
                      {$value}
                    {/loop}
                  </div>
                </div>
              {/loop}
            </div>
          {/if}
        {/loop}
      </div>
    {else}
      <div class="dailyNoEntry">No articles on this day.</div>
    {/if}

    <div class="clear"></div>

    <div id="plugin_zone_end_picwall" class="plugin_zone">
      {loop="$plugin_end_zone"}
        {$value}
      {/loop}
    </div>
  </div>
</div>
{include="page.footer"}
</body>
</html>