コード例 #1
0
">
    <div class="span2">
        <span class="label label-info label-date">
            <?php 
if ($data['is_running']) {
    echo $data['start_date'] . " &#8211; " . $data['end_date'];
} else {
    echo Yii::t('view', 'workshop.not_running');
}
?>
        </span>
    </div>
    <div class="span10 rowspan">

        <?php 
$workshopContent = $this->widget('bootstrap.widgets.TbBox', array('title' => $data['title'] . PostItemHelper::drawPostItemLabel(Workshop::POST_TYPE, $data['workshop_cat_name']), 'content' => $this->renderPartial('//layouts/_workshop_content', array('data' => $data), true)), true);
if (!Yii::app()->user->isGuest) {
    echo CHtml::link($workshopContent, array('workshop/workshop/view', 'id' => $data['id']), array('class' => 'posting-link'));
} else {
    if (Yii::app()->user->isGuest) {
        echo CHtml::link($workshopContent, array('/auth/login'), array('class' => 'posting-link'));
    }
}
?>


        <blockquote class="span3 facilitator">
            <p>
                <strong>Facilitator</strong>
                <small>
                    <?php 
コード例 #2
0
<?php

/* @var SiteController $this*/
?>
<div id="article_listings">
    <div class="date_time">
        <?php 
echo $data['date_created'];
?>
   
    </div>
    <div class="news_head">
        <?php 
$this->widget('bootstrap.widgets.TbBox', array('title' => $data['title'] . PostItemHelper::drawPostItemLabel($data['post_type_id']), 'content' => $this->renderPartial('//layouts/_article_content', array('data' => $data), true)));
?>
    </div>
</div>