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:
This commit is contained in:
ArthurHoaro 2016-12-01 11:38:21 +01:00
parent 849d1650c1
commit ba0fd80732
10 changed files with 130 additions and 27 deletions

View file

@ -28,7 +28,17 @@
<input type="submit" value="Search" class="bigbutton">
</form>
{loop="$plugins_header.fields_toolbar"}
{$value}
<form
{loop="$value.attr"}
{$key}="{$value}"
{/loop}>
{loop="$value.inputs"}
<input
{loop="$value"}
{$key}="{$value}"
{/loop}>
{/loop}
</form>
{/loop}
</div>
</div>

View file

@ -13,7 +13,14 @@
</div>
{/if}
{loop="$action_plugin"}
{$value}
<div class="paging_privatelinks">
<a
{loop="$value.attr"}
{$key}="{$value}"
{/loop}>
{$value.html}
</a>
</div>
{/loop}
<div class="paging_linksperpage">
Links per page: <a href="?linksperpage=20">20</a> <a href="?linksperpage=50">50</a> <a href="?linksperpage=100">100</a>

View file

@ -35,7 +35,12 @@
<li><a href="?do=picwall{$searchcrits}">Picture wall</a></li>
<li><a href="?do=daily">Daily</a></li>
{loop="$plugins_header.buttons_toolbar"}
{$value}
<li><a
{loop="$value.attr"}
{$key}="{$value}"
{/loop}>
{$value.html}
</a></li>
{/loop}
{/if}
</ul>