Example #1
0
!$news && ($news = array());
foreach ($news as $k => $news) {
    if ($k == 0) {
        ?>
									<h5 class="headline">
										<p><a href="<?php 
        echo static_news_url($news);
        ?>
"><span>[<?php 
        echo substr($news->created_at, 0, 10);
        ?>
]</span><strong><?php 
        echo $news->title;
        ?>
</strong><br><?php 
        mb_string(strip_tags($news->description), 40);
        ?>
</a></p>
									</h5>
									<?php 
    } else {
        ?>
									<p><a title="<?php 
        echo $news->title;
        ?>
" href="<?php 
        echo static_news_url($news);
        ?>
"><span>[<?php 
        echo substr($news->created_at, 0, 10);
        ?>
Example #2
0
$pos_name = "index_city0";
?>
					<div class="city">
						<?php 
show_page_href();
?>
					</div>
					<div class="city_desc">
						<a href='<?php 
echo $pos_items->{$pos_name}->href;
?>
' title='<?php 
echo strip_tags($pos_items->{$pos_name}->description);
?>
' target='_blank'><?php 
echo mb_string(strip_tags($pos_items->{$pos_name}->description), 34);
?>
</a>
					</div>
					<div class="h_h"></div>
					<?php 
for ($i = 1; $i < 3; $i++) {
    $pos_name = "index_city{$i}";
    ?>
					<div class="guide_hr_val2 "><?php 
    show_page_href();
    ?>
</div>
					<?php 
}
?>