aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-11-02 16:34:10 +0100
committerArthurHoaro <arthur@hoa.ro>2016-11-05 14:29:56 +0100
commitc8f0a06d801d1e6405f5d86b45ba5967a6569c8c (patch)
tree173523374b5ac660ace025181acb817125ede482 /tpl
parentcac0ea87be6326271993c958788afbd244815ef1 (diff)
downloadShaarli-c8f0a06d801d1e6405f5d86b45ba5967a6569c8c.tar.gz
Shaarli-c8f0a06d801d1e6405f5d86b45ba5967a6569c8c.tar.zst
Shaarli-c8f0a06d801d1e6405f5d86b45ba5967a6569c8c.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
Diffstat (limited to 'tpl')
-rw-r--r--tpl/linklist.html14
-rw-r--r--tpl/linklist.paging.html11
-rw-r--r--tpl/page.header.html9
3 files changed, 31 insertions, 3 deletions
diff --git a/tpl/linklist.html b/tpl/linklist.html
index 9979f12a..8608e61e 100644
--- a/tpl/linklist.html
+++ b/tpl/linklist.html
@@ -28,7 +28,19 @@
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"}
33 {if="$key!='inputs'"}
34 {$key}="{$value}"
35 {/if}
36 {/loop}>
37 {loop="$value.inputs"}
38 <input
39 {loop="$value"}
40 {$key}="{$value}"
41 {/loop}>
42 {/loop}
43 </form>
32 {/loop} 44 {/loop}
33 </div> 45 </div>
34</div> 46</div>
diff --git a/tpl/linklist.paging.html b/tpl/linklist.paging.html
index e91c8f86..42f58d0d 100644
--- a/tpl/linklist.paging.html
+++ b/tpl/linklist.paging.html
@@ -13,7 +13,16 @@
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"}
19 {if="$key!='html'"}
20 {$key}="{$value}"
21 {/if}
22 {/loop}>
23 {$value.html}
24 </a>
25 </div>
17 {/loop} 26 {/loop}
18 <div class="paging_linksperpage"> 27 <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> 28 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 0012c689..b9fc5275 100644
--- a/tpl/page.header.html
+++ b/tpl/page.header.html
@@ -35,7 +35,14 @@
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"}
40 {if="$key!='html'"}
41 {$key}="{$value}"
42 {/if}
43 {/loop}>
44 {$value.html}
45 </a></li>
39 {/loop} 46 {/loop}
40{/if} 47{/if}
41 </ul> 48 </ul>