From 485b168a9677d160b0c0426e4f282b9bd0c632c1 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 26 Jan 2020 11:15:15 +0100 Subject: Process picwall rendering through Slim controller + UT --- tpl/default/page.header.html | 2 +- tpl/default/picwall.html | 83 ++++++++++++++++++++------------------------ tpl/vintage/page.header.html | 2 +- 3 files changed, 40 insertions(+), 47 deletions(-) (limited to 'tpl') diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html index 69e2fcd7..116265a5 100644 --- a/tpl/default/page.header.html +++ b/tpl/default/page.header.html @@ -34,7 +34,7 @@ {if="$thumbnails_enabled"}
  • - {'Picture wall'|t} + {'Picture wall'|t}
  • {/if}
  • diff --git a/tpl/default/picwall.html b/tpl/default/picwall.html index da5101db..5343abd6 100644 --- a/tpl/default/picwall.html +++ b/tpl/default/picwall.html @@ -5,58 +5,51 @@ {include="page.header"} -{if="!$thumbnails_enabled"} -
    -
    - {'Picture wall unavailable (thumbnails are disabled).'|t} -
    -
    -{else} - {if="count($linksToDisplay)===0 && $is_logged_in"} -
    -
    - {'There is no cached thumbnail. Try to synchronize them.'|t} -
    + +{if="count($linksToDisplay)===0 && $is_logged_in"} +
    +
    + {'There is no cached thumbnail. Try to synchronize them.'|t}
    - {/if} +
    +{/if} -
    -
    -
    - {$countPics=count($linksToDisplay)} -

    {'Picture Wall'|t} - {$countPics} {'pics'|t}

    +
    +
    +
    + {$countPics=count($linksToDisplay)} +

    {'Picture Wall'|t} - {$countPics} {'pics'|t}

    -
    - {loop="$plugin_start_zone"} - {$value} - {/loop} -
    +
    + {loop="$plugin_start_zone"} + {$value} + {/loop} +
    -
    - {loop="$linksToDisplay"} -
    - {ignore}RainTPL hack: put the 2 src on two different line to avoid path replace bug{/ignore} - - {$value.title} - {loop="$value.picwall_plugin"} - {$value} - {/loop} -
    - {/loop} -
    -
    +
    + {loop="$linksToDisplay"} +
    + {ignore}RainTPL hack: put the 2 src on two different line to avoid path replace bug{/ignore} + + {$value.title} + {loop="$value.picwall_plugin"} + {$value} + {/loop} +
    + {/loop} +
    +
    -
    - {loop="$plugin_end_zone"} - {$value} - {/loop} -
    +
    + {loop="$plugin_end_zone"} + {$value} + {/loop}
    -
    -{/if} +
    +
    {include="page.footer"} diff --git a/tpl/vintage/page.header.html b/tpl/vintage/page.header.html index f1869a04..ce938421 100644 --- a/tpl/vintage/page.header.html +++ b/tpl/vintage/page.header.html @@ -32,7 +32,7 @@
  • ATOM Feed
  • {/if}
  • Tag cloud
  • -
  • Picture wall
  • +
  • Picture wall
  • Daily
  • {loop="$plugins_header.buttons_toolbar"}