From 89bcc54ad71027aafc2651135184414bd56b8e2d Mon Sep 17 00:00:00 2001 From: vdigital Date: Thu, 2 Oct 2008 18:39:35 +0000 Subject: Random picture had double border with

Caption

. Random caption is limited to 127 characters above and 255 below. git-svn-id: http://piwigo.org/svn/trunk@2638 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/AMenuManager/menu_templates/menubar_randompic.tpl | 7 +++++-- template/yoga/theme/Sylvia/theme.css | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/AMenuManager/menu_templates/menubar_randompic.tpl b/plugins/AMenuManager/menu_templates/menubar_randompic.tpl index 20d7a0bf8..f45fd3737 100644 --- a/plugins/AMenuManager/menu_templates/menubar_randompic.tpl +++ b/plugins/AMenuManager/menu_templates/menubar_randompic.tpl @@ -4,9 +4,12 @@
{if $block->data.IMGNAME!="" and $block->data.SHOWNAME=="o"}{$block->data.IMGNAME}
{/if} - {if $block->data.IMGCOMMENT!="" and $block->data.SHOWCOMMENT=="o"}{$block->data.IMGCOMMENT}
{/if} + {* No strip_tags because comment could have those for good reasons *} + {* Over comment is limited to 127 characters for look only *} + {if $block->data.IMGCOMMENT!="" and $block->data.SHOWCOMMENT=="o" and strlen($block->data.IMGCOMMENT) < 128}{$block->data.IMGCOMMENT}
{/if} {if $block->data.IMGNAME!="" and $block->data.SHOWNAME=="u"}
{$block->data.IMGNAME}{/if} - {if $block->data.IMGCOMMENT!="" and $block->data.SHOWCOMMENT=="u"}
{$block->data.IMGCOMMENT}{/if} + {* Under comment is limited to 255 characters *} + {if $block->data.IMGCOMMENT!="" and $block->data.SHOWCOMMENT=="u" and strlen($block->data.IMGCOMMENT) < 256}
{$block->data.IMGCOMMENT}{/if}
\ No newline at end of file diff --git a/template/yoga/theme/Sylvia/theme.css b/template/yoga/theme/Sylvia/theme.css index 4f29ca988..5f64ff3a0 100644 --- a/template/yoga/theme/Sylvia/theme.css +++ b/template/yoga/theme/Sylvia/theme.css @@ -23,7 +23,7 @@ margin:0 0 5px 40px; padding:0; width: 231px; min-width: 231px; border: 0; min-h #menubar DT { background-color:#111; border:0; display:inline; margin-left:8px; text-align:left; } #menubar DD { background:transparent url(images/menuBox_bottom.gif) no-repeat scroll left bottom; margin:14px 0 0 0; padding:0 0 22px; width: 231px; min-width: 231px; border: 0; overflow-x: hidden;} -#menubar UL, #menubar p, +#menubar UL, #menubar #mbCategories p, #menubar .illustration { background:transparent url(images/menuBox_sides.gif) repeat-y scroll left bottom; margin:0; } #menubar DT A { font-size: 100%; } -- cgit v1.2.3