Пример #1
0
echo nl2br($talk['summary']);
?>
</p>

            <h3>Comments</h3>

            <div class="comments">
                <?php 
foreach ($comments as $comment) {
    ?>
                <div class="comment">
                    <div class="meta"><strong><?php 
    echo empty($comment['name']) ? $comment['email'] : $comment['name'];
    ?>
</strong> on <em><?php 
    echo ViewHelper::formatDate($comment['create_date']);
    ?>
</em> said:</div>
                    <?php 
    echo nl2br($comment['body']);
    ?>
                </div>
                <?php 
}
?>
            </div>

            <div class="post-comment">

                <h4>Write a comment:</h4>
                <form action="<?php 
Пример #2
0
                    <?php 
}
?>
                </div>

                <div class="span7">
                    <h2><?php 
echo $event['title'];
?>
</h2>
                    <div class="meta">
                        <?php 
echo ViewHelper::formatDate($event['start_date']);
?>
 - <?php 
echo ViewHelper::formatDate($event['end_date']);
?>
 <br />
                        <?php 
echo $event['location'];
?>
<br />
                        <a href="#" class="btn small">I'm attending</a> &nbsp; <strong><?php 
echo $event['total_attending'];
?>
 people</strong> attending so far!
                    </div>
                </div>

            </div>