X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=tpl%2Fdefault%2Fpicwall.html;h=9a0b10dc6084e2e3ac7e29d0fa562a6728c56426;hb=bede8e1b633d720d6a7d1b05ba367811f3ac2b87;hp=4e227e3744038cd440fed8e89e8d3564ce87e6db;hpb=9977c418d6d0de9e22e4ec276e7d476e184b5d01;p=github%2Fshaarli%2FShaarli.git diff --git a/tpl/default/picwall.html b/tpl/default/picwall.html index 4e227e37..9a0b10dc 100644 --- a/tpl/default/picwall.html +++ b/tpl/default/picwall.html @@ -1,44 +1,65 @@ -{include="includes"} - + + {include="includes"} - - -
- {loop="$plugin_start_zone"} - {$value} - {/loop} +{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} -
-
- {loop="$linksToDisplay"} -
- {$value.thumbnail}{$value.title} - {loop="$value.picwall_plugin"} - {$value} - {/loop} -
- {/loop} -
-
+
+
+
+ {$countPics=count($linksToDisplay)} +

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

-
+
+ {loop="$plugin_start_zone"} + {$value} + {/loop} +
-
- {loop="$plugin_end_zone"} - {$value} - {/loop} -
+
+ {loop="$linksToDisplay"} +
+ {ignore}RainTPL hack: put the 2 src on two different line to avoid path replace bug{/ignore} + thumbnail + {$value.title} + {loop="$value.picwall_plugin"} + {$value} + {/loop} +
+ {/loop} +
+
-{include="page.footer"} +
+ {loop="$plugin_end_zone"} + {$value} + {/loop} +
+
+
+
+{/if} - +{include="page.footer"} + +