From 96bc4efe9ea9ed513d1ec06e0823847d5eebe82f Mon Sep 17 00:00:00 2001 From: Seb Sauvage Date: Wed, 25 Jan 2012 22:26:36 +0100 Subject: [PATCH] =?utf8?q?Version=200.0.36=20beta:=20-=20Corrected:=20Impr?= =?utf8?q?oper=20text=20color=20in=20install=20form.=20-=20Corrected:=20Er?= =?utf8?q?ror=20in=20QRCode=20url=20(missing=20'=3F')=20-=20Changed:=20Dis?= =?utf8?q?play=20adjustments=20in=20=E2=80=9CDaily=E2=80=9D=20page.=20-=20?= =?utf8?q?Added:=20Shaarli=20licence=20in=20COPYING?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- COPYING | 21 +++++++++++++++++++++ images/squiggle2.png | Bin 0 -> 898 bytes inc/shaarli.css | 10 ++++++++-- index.php | 12 +++++++----- tpl/daily.html | 14 +++++++------- tpl/linklist.html | 2 +- 6 files changed, 44 insertions(+), 15 deletions(-) create mode 100644 COPYING create mode 100644 images/squiggle2.png diff --git a/COPYING b/COPYING new file mode 100644 index 00000000..d9731d27 --- /dev/null +++ b/COPYING @@ -0,0 +1,21 @@ +Shaarli is distributed under the zlib/libpng License: + +Copyright (c) 2011 Sébastien SAUVAGE (sebsauvage.net) + +This software is provided 'as-is', without any express or implied warranty. +In no event will the authors be held liable for any damages arising from +the use of this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it +freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would + be appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must + not be misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. diff --git a/images/squiggle2.png b/images/squiggle2.png new file mode 100644 index 0000000000000000000000000000000000000000..23409ce371784c6a8b7f83218f48103d1c34cc09 GIT binary patch literal 898 zcmV-|1AY97P)P000^Y1^@s6LVfqm00009a7bBm000fw z000fw0YWI7cmMzcG)Y83R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..a949666e 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -248,7 +248,7 @@ font-size:9pt; #newversion { background-color: #FFFFA0; color:#000; position:absolute; top:0;right:0; padding:2 7 2 7; font-size:9pt;} #cloudtag { padding-left:10%; padding-right:10%; } #cloudtag a { color:black; text-decoration:none; } -#installform td { font-size: 10pt; padding:10px 5px 10px 5px; clear:left; } +#installform td { font-size: 10pt; color:black; padding:10px 5px 10px 5px; clear:left; } #changepasswordform { color:#ccc; padding:10px 5px 10px 5px; clear:left; } #changetag { color:#ccc; padding:10px 5px 10px 5px; clear:left; } #configform td { color:#ccc; font-size: 10pt; padding:10px 5px 10px 5px; } @@ -370,7 +370,13 @@ div.dailyEntryThumbnail background:url(../images/50pc_transparent.png); padding:4px 0px 2px 0px; } -div.dailyEntryDescription { margin-top: 10px; text-align:justify; } +div.dailyEntryDescription +{ + margin-top: 10px; + margin-bottom: 30px; + text-align:justify; + overflow:auto; +} /* Common css screwdriver */ .clear{ diff --git a/index.php b/index.php index da2445de..9dd6483e 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ $link) { // Roughly estimate length of entry (by counting characters) - $length=strlen($link['title'])+strlen($link['description']); - if ($link['thumbnail']) $length +=100; // 1 thumbnails roughly take as much space as 100 words; - + // Title: 30 chars = 1 line. 1 line is 30 pixels height. + // Description: 836 characters gives roughly 342 pixel height. + // This is not perfect, but it's usually ok. + $length=strlen($link['title'])+(342*strlen($link['description']))/836; + if ($link['thumbnail']) $length +=100; // 1 thumbnails roughly takes 100 pixels height. // Then put in column which is the less filled: $smallest=min($fill); // find smallest value in array. $index=array_search($smallest,$fill); // find index of this smallest value. diff --git a/tpl/daily.html b/tpl/daily.html index e05acc86..9ee74739 100644 --- a/tpl/daily.html +++ b/tpl/daily.html @@ -14,41 +14,41 @@
{if="$linksToDisplay"} -
+
{loop="col1"}
+
permalink
{if="$value.tags"}
{loop="value.taglist"}{$value|htmlspecialchars} - {/loop}
{/if} {if="$value.thumbnail"}
{$value.thumbnail}
{/if}
{$value.formatedDescription}
-
permalink
{/loop}
-
+
{loop="col2"}
+
permalink
{if="$value.tags"}
{loop="value.taglist"}{$value|htmlspecialchars} - {/loop}
{/if} {if="$value.thumbnail"}
{$value.thumbnail}
{/if}
{$value.formatedDescription}
-
permalink
{/loop}
-
+
{loop="col3"}
+
permalink
{if="$value.tags"}
{loop="value.taglist"}{$value|htmlspecialchars} - {/loop}
{/if} {if="$value.thumbnail"}
{$value.thumbnail}
{/if}
{$value.formatedDescription}
-
permalink
{/loop} -
+
{else}
No articles on this day.
{/if} diff --git a/tpl/linklist.html b/tpl/linklist.html index a7dd61e9..dc5b5398 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -42,7 +42,7 @@ {else} permalink - {/if} -
- +
- {$value.url|htmlspecialchars}
{if="$value.tags"}
-- 2.41.0