Sveiki, tātad veidoju lapeli un apstājos vienā vietā...
Man ir 3 kolonnu lapa. 1. kolonna ir jaunumu lapa, kura patreiz nestrādā, varbūt kāds zina, kas šeit par problēmu?
<?php
if( is_array( $topics ) AND count( $topics ) > 0 )
{
echo '<div class="news">';
foreach( $topics as $topic)
{
$topicurl = topic_url( $topic['tid'], $topic['title_seo'] );
$html = str_get_html($topic['post']);
$first_image = !empty( $html->find('img', 0)->src ) ? $html->find('img', 0)->src : ROOT_URL . '/assets/img/first-page-image.jpg' ;
?>
<div class="news-entry clearfix">
<div class="image">
<div class="image-holder">
<img src="<?php echo $first_image;?>" alt="" />
</div>
<a class="read-news" href="<?php echo $topicurl?>">LASĪT VISU</a>
</div>
<div class="post">
<div class="title"><?php echo htmlspecialchars( $topic['title'] )?></div>
<div class="meta">Rakstu izveidoja:
<a href="<?php echo member_url_short( array(
'member_id' => $topic['member_id'],
'members_seo_name' => $topic['members_seo_name']
) ) ?>">
<?php echo $topic['author_name']?>
</a>
| Komentāri:
<a href="<?php echo $topicurl?>#fast_reply_wrapper">4</a> | <a href="<?php echo $topicurl?>#fast_reply_wrapper">Pievienot komentāru</a>
</div>
<div class="text">
<?php echo $topic['post'] ?>
</div>
</div>
</div>
<?php
}
echo '</div>';
}
?>
Izņemot PHP kodu ārā, HTML teksts parādās, bet protams tas man neder.. Ja atstāj šādi, tad vispār nekas neparādās.. Kas varētu būt pie vainas?
Cieņā, MQ.