Completato fix stringhe mal-tagliate
Signed-off-by: Riccardo Di Dato <r.didato@asdynamics.it>
This commit is contained in:
+12
-12
@@ -234,8 +234,8 @@ catch (Exception $ex){
|
||||
$i=0;
|
||||
foreach ($cronacaNews as $cronaca){
|
||||
$i++;
|
||||
$stringTitolo = (strlen($cronaca->titolo) > 53) ? substr($cronaca->titolo,0, 50).'...' : $cronaca->titolo;
|
||||
$string = (strlen($cronaca->sottotitolo) > 33) ? substr($cronaca->sottotitolo,0,30).'...' : $cronaca->sottotitolo;?>
|
||||
$stringTitolo = (strlen($cronaca->titolo) > 53) ? htmlentities( substr( html_entity_decode( $cronaca->titolo ) ,0, 50) ).'...' : $cronaca->titolo;
|
||||
$string = (strlen($cronaca->sottotitolo) > 33) ? htmlentities( substr( html_entity_decode($cronaca->sottotitolo ) ,0,30) ).'...' : $cronaca->sottotitolo;?>
|
||||
<a href="<?php echo $cronaca->getAbsoluteUrl();?>" class="news">
|
||||
<div id="cronaca_<?php echo $i;?>" class="newsSummary"><?php
|
||||
$media = DaoMediaHandler::getMainMediaFromModel($cronaca);
|
||||
@@ -260,8 +260,8 @@ catch (Exception $ex){
|
||||
$i=0;
|
||||
foreach ($sportNews as $sport){
|
||||
$i++;
|
||||
$stringTitolo = (strlen($sport->titolo) > 53) ? substr($sport->titolo,0,50).'...' : $sport->titolo;
|
||||
$string = (strlen($sport->sottotitolo) > 33) ? substr($sport->sottotitolo,0,30).'...' : $sport->sottotitolo;?>
|
||||
$stringTitolo = (strlen($sport->titolo) > 53) ? htmlentities( substr( html_entity_decode( $sport->titolo ) ,0,50) ).'...' : $sport->titolo;
|
||||
$string = (strlen($sport->sottotitolo) > 33) ? htmlentities( substr( html_entity_decode( $sport->sottotitolo ) ,0,30) ).'...' : $sport->sottotitolo;?>
|
||||
<a href="<?php echo $sport->getAbsoluteUrl();?>" class="newsSport">
|
||||
<div id="sport_<?php echo $i;?>" class="sportSummary"><?php
|
||||
$media = DaoMediaHandler::getMainMediaFromModel($sport);
|
||||
@@ -286,7 +286,7 @@ catch (Exception $ex){
|
||||
$i=0;
|
||||
foreach ($culturaNews as $cultura){
|
||||
$i++;
|
||||
$string = (strlen($cultura->titolo) > 53) ? substr($cultura->titolo,0,50).'...' : $cultura->titolo;?>
|
||||
$string = (strlen($cultura->titolo) > 53) ? htmlentities( substr( html_entity_decode( $cultura->titolo ) ,0,50) ) .'...' : $cultura->titolo;?>
|
||||
<a href="<?php echo $cultura->getAbsoluteUrl();?>" id="cultura_<?php echo $i;?>" class="culturaNews"><?php
|
||||
$media = DaoMediaHandler::getMainMediaFromModel($cultura);
|
||||
if(!is_null($media)){?>
|
||||
@@ -308,7 +308,7 @@ catch (Exception $ex){
|
||||
$i=0;
|
||||
foreach ($ristorantiNews as $ristoranti){
|
||||
$i++;
|
||||
$string = (strlen($ristoranti->titolo) > 53) ? substr($ristoranti->titolo,0,50).'...' : $ristoranti->titolo;?>
|
||||
$string = (strlen($ristoranti->titolo) > 53) ? htmlentities( substr( html_entity_decode( $ristoranti->titolo ) ,0,50) ) .'...' : $ristoranti->titolo;?>
|
||||
<a href="<?php echo $ristoranti->getAbsoluteUrl();?>" id="ristoranti_<?php echo $i;?>" class="ristorantiBlock"><?php
|
||||
$media = DaoMediaHandler::getMainMediaFromModel($ristoranti);
|
||||
if(!is_null($media)){?>
|
||||
@@ -326,7 +326,7 @@ catch (Exception $ex){
|
||||
<div class="categoryLine"></div>
|
||||
</div>
|
||||
<?php if(!is_null($saluteNews)){
|
||||
$stringTitle = (strlen($saluteNews->titolo) > 53) ? substr($saluteNews->titolo,0,50).'...' : $saluteNews->titolo;?>
|
||||
$stringTitle = (strlen($saluteNews->titolo) > 53) ? htmlentities( substr( html_entity_decode( $saluteNews->titolo ) ,0,50) ) .'...' : $saluteNews->titolo;?>
|
||||
<a href="<?php echo $saluteNews->getAbsoluteUrl();?>" class="saluteContainer">
|
||||
<?php $media = DaoMediaHandler::getMainMediaFromModel($saluteNews);
|
||||
if(!is_null($media)){?>
|
||||
@@ -369,8 +369,8 @@ catch (Exception $ex){
|
||||
$i = 0;
|
||||
foreach($gossipNews as $gossip){
|
||||
$i++;
|
||||
$stringTitle = (strlen($gossip->titolo) > 53) ? substr($gossip->titolo,0,50).'...' : $gossip->titolo;
|
||||
$stringSubTitle = (strlen($last->sottotitolo) > 23) ? substr($last->sottotitolo,0,20).'...' : $last->sottotitolo;?>
|
||||
$stringTitle = (strlen($gossip->titolo) > 53) ? htmlentities( substr( html_entity_decode( $gossip->titolo ) ,0,50) ) .'...' : $gossip->titolo;
|
||||
$stringSubTitle = (strlen($last->sottotitolo) > 23) ? htmlentities( substr( html_entity_decode( $last->sottotitolo ) ,0,20) ) .'...' : $last->sottotitolo;?>
|
||||
<a href="<?php echo $gossip->getAbsoluteUrl();?>" id="gossip_<?php echo $i;?>"class="gossipContainer">
|
||||
<?php $media = DaoMediaHandler::getMainMediaFromModel($gossip);
|
||||
if(!is_null($media)){?>
|
||||
@@ -391,7 +391,7 @@ catch (Exception $ex){
|
||||
<div class="categoryLine"></div>
|
||||
</div>
|
||||
<?php if(!is_null($elezioni)){
|
||||
$stringTitle = (strlen($elezioni->titolo) > 53) ? substr($elezioni->titolo,0,50).'...' : $elezioni->titolo;?>
|
||||
$stringTitle = (strlen($elezioni->titolo) > 53) ? htmlentities( substr( html_entity_decode( $elezioni->titolo ) ,0,50) ) .'...' : $elezioni->titolo;?>
|
||||
<a href="<?php echo $elezioni->getAbsoluteUrl();?>" class="animaliContainer">
|
||||
<?php $media = DaoMediaHandler::getMainMediaFromModel($elezioni);
|
||||
if(!is_null($media)){?>
|
||||
@@ -411,7 +411,7 @@ catch (Exception $ex){
|
||||
<div class="categoryLine"></div>
|
||||
</div>
|
||||
<?php if(!is_null($lastViaggi)){
|
||||
$stringTitle = (strlen($lastViaggi->titolo) > 53) ? substr($lastViaggi->titolo,0,50).'...' : $lastViaggi->titolo;?>
|
||||
$stringTitle = (strlen($lastViaggi->titolo) > 53) ? htmlentities( substr( html_entity_decode( $lastViaggi->titolo ) ,0,50) ) .'...' : $lastViaggi->titolo;?>
|
||||
<a href="<?php echo $lastViaggi->getAbsoluteUrl();?>" class="animaliContainer">
|
||||
<?php $media = DaoMediaHandler::getMainMediaFromModel($lastViaggi);
|
||||
if(!is_null($media)){?>
|
||||
@@ -430,7 +430,7 @@ catch (Exception $ex){
|
||||
<div class="categoryLine"></div>
|
||||
</div>
|
||||
<?php if(!is_null($animalNews)){
|
||||
$stringTitle = (strlen($animalNews->titolo) > 53) ? substr($animalNews->titolo,0,50).'...' : $animalNews->titolo;?>
|
||||
$stringTitle = (strlen($animalNews->titolo) > 53) ? htmlentities( substr( html_entity_decode( $animalNews->titolo ) ,0,50) ) .'...' : $animalNews->titolo;?>
|
||||
<a href="<?php echo $animalNews->getAbsoluteUrl();?>" class="animaliContainer">
|
||||
<?php $media = DaoMediaHandler::getMainMediaFromModel($animalNews);
|
||||
if(!is_null($media)){?>
|
||||
|
||||
Reference in New Issue
Block a user