aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-12-01 11:38:21 +0100
committerArthurHoaro <arthur@hoa.ro>2016-12-01 11:38:21 +0100
commitba0fd80732acbff0fcda57a0b31e4edfaa337001 (patch)
tree34eab231241e1c7b72f5b069fa132bdcedc830e0 /tpl
parent849d1650c1af853162b749af896c20bb25d4a4e8 (diff)
downloadShaarli-ba0fd80732acbff0fcda57a0b31e4edfaa337001.tar.gz
Shaarli-ba0fd80732acbff0fcda57a0b31e4edfaa337001.tar.zst
Shaarli-ba0fd80732acbff0fcda57a0b31e4edfaa337001.zip
Improve theme dependent plugin placeholders:
- buttons_toolbar: now expect links represented by an array instead of HTML content - fields_toolbar: now expect a form represented by an array instead of HTML content - action_plugin: now expect links represented by an array instead of HTML content Default templates updated accordingly mprove theme dependent plugin placeholders:
Diffstat (limited to 'tpl')
-rw-r--r--tpl/linklist.html12
-rw-r--r--tpl/linklist.paging.html9
-rw-r--r--tpl/page.header.html7
3 files changed, 25 insertions, 3 deletions
diff --git a/tpl/linklist.html b/tpl/linklist.html
index ddfd729a..3fe86deb 100644
--- a/tpl/linklist.html
+++ b/tpl/linklist.html
@@ -28,7 +28,17 @@
28 <input type="submit" value="Search" class="bigbutton"> 28 <input type="submit" value="Search" class="bigbutton">
29 </form> 29 </form>
30 {loop="$plugins_header.fields_toolbar"} 30 {loop="$plugins_header.fields_toolbar"}
31 {$value} 31 <form
32 {loop="$value.attr"}
33 {$key}="{$value}"
34 {/loop}>
35 {loop="$value.inputs"}
36 <input
37 {loop="$value"}
38 {$key}="{$value}"
39 {/loop}>
40 {/loop}
41 </form>
32 {/loop} 42 {/loop}
33 </div> 43 </div>
34</div> 44</div>
diff --git a/tpl/linklist.paging.html b/tpl/linklist.paging.html
index e91c8f86..86019c01 100644
--- a/tpl/linklist.paging.html
+++ b/tpl/linklist.paging.html
@@ -13,7 +13,14 @@
13 </div> 13 </div>
14{/if} 14{/if}
15 {loop="$action_plugin"} 15 {loop="$action_plugin"}
16 {$value} 16 <div class="paging_privatelinks">
17 <a
18 {loop="$value.attr"}
19 {$key}="{$value}"
20 {/loop}>
21 {$value.html}
22 </a>
23 </div>
17 {/loop} 24 {/loop}
18 <div class="paging_linksperpage"> 25 <div class="paging_linksperpage">
19 Links per page: <a href="?linksperpage=20">20</a> <a href="?linksperpage=50">50</a> <a href="?linksperpage=100">100</a> 26 Links per page: <a href="?linksperpage=20">20</a> <a href="?linksperpage=50">50</a> <a href="?linksperpage=100">100</a>
diff --git a/tpl/page.header.html b/tpl/page.header.html
index eac2ed4a..cce61ec4 100644
--- a/tpl/page.header.html
+++ b/tpl/page.header.html
@@ -35,7 +35,12 @@
35 <li><a href="?do=picwall{$searchcrits}">Picture wall</a></li> 35 <li><a href="?do=picwall{$searchcrits}">Picture wall</a></li>
36 <li><a href="?do=daily">Daily</a></li> 36 <li><a href="?do=daily">Daily</a></li>
37 {loop="$plugins_header.buttons_toolbar"} 37 {loop="$plugins_header.buttons_toolbar"}
38 {$value} 38 <li><a
39 {loop="$value.attr"}
40 {$key}="{$value}"
41 {/loop}>
42 {$value.html}
43 </a></li>
39 {/loop} 44 {/loop}
40{/if} 45{/if}
41 </ul> 46 </ul>