From 95bb17c23904689d1d4acacf0caf170fc7bc4000 Mon Sep 17 00:00:00 2001 From: Riccardo Di Dato Date: Tue, 29 Mar 2016 18:14:48 +0200 Subject: [PATCH] Tagliato testo twitter share per rispettare i limiti di lunghezza --- public/articolo.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/articolo.php b/public/articolo.php index 053c188..0892ca4 100644 --- a/public/articolo.php +++ b/public/articolo.php @@ -154,8 +154,14 @@ GUIHandler::generateHtmlHeaders(array("additionalHeaders"=>$additionalHeaders));
+ titolo)); + if (strlen($twitterCutTitle)>95){ + $twitterCutTitle = substr($twitterCutTitle, 0, 92) . "..."; + } + ?> - +