function elencoNews($tipo, $lan, $getor = false) { $query = "select * from news where pubblicata=1 "; $cosa = "news"; $pagina = 'news.php'; if (!isset($getor['pag']) || $getor['pag'] == 1) { $limit = ' limit 0,10'; } else { $start = 10 * ($getor['pag'] - 1); $stop = 10; $limit = ' limit ' . $start . ',' . $stop; } $ordine = " order by data_news desc"; $totImm = mysql_query($query); $tot = mysql_num_rows($totImm); $query = $query . ' ' . $ordine . $limit; //print $query; $immobili = mysql_query($query) or die(mysql_error()); if (mysql_num_rows($immobili) == 0) { print '<div class="item_large"> ' . NOIMMO . '</div>'; } else { while ($immo = mysql_fetch_assoc($immobili)) { $url = $this->costruisciPath($cosa, $immo, $lan); $titolo = stripslashes($immo['titolo_news_' . $lan]); ?> <div class="item_large"> <div class="testo"> <h3><a href="<?php echo $url; ?> " title="<?php echo stripslashes($immo['titolo_news_' . $lan]); ?> "><?php echo $titolo; ?> </a></h3> <p style="margin-bottom: 2px;"><?php echo trunc_text(strip_tags(stripslashes($immo['descrizione_news_' . $lan])), 60, $url); ?> </p> </div> <div style="clear:both"></div> </div> <?php } $this->boxPagine($tot, $getor['pag'], $get, 10, $pagina); } }
echo $postLink; ?> "><?php echo $recent["post_title"]; ?> </a></h3> </div> <ul class="entry-meta clearfix"> <li><i class="icon-calendar3"></i><?php echo date_format(date_create($recent["post_date"]), "d F Y"); ?> </li> </ul> <div class="entry-content"> <p><?php echo trunc_text($recent['post_content'], 30, $postLink); ?> </p> </div> </div> </div> <?php } ?> </div> <div class="divider divider-center "><i class="icon-chevron-down"></i></div> <div class="col_full center nomargin text-lg-right text-md-right text-sm-right text-xs-center"> <form action="http://www.agenziaradar.it/blog"> <button class="button button-blue button-rounded nomargin" rel="2" id="next" name="dati" value="next">Blog <i class=""></i></button>
<h4> <a href='/<?php echo $lang; ?> /topic/<?php echo preg_replace("![^a-я0-9]+!i", "-", $items[$match['category']]['topics'][$match['index']]['title']); ?> '> <?php echo $items[$match['category']]['topics'][$match['index']]['title']; ?> </a> </h4> <span style='color: gray'> <?php echo strip_tags(trunc_text($items[$match['category']]['topics'][$match['index']]['html'], 250)); ?> </span> </div> <hr> <?php } ?> </div> </div> <?php } ?> </div> </div>