コード例 #1
0
ファイル: show.php プロジェクト: ChristopheBrun/hLib
        <div class="news">

            <div class="row">
                <div class="col-sm-1">
                    <?php 
echo Html::img($this->assetManager->getBundle('app\\modules\\cms\\assets\\CmsAsset')->baseUrl . '/calendrier-globe-32.png', ['alt' => 'date']);
?>
                </div>
                <div class="col-sm-3 event-date">
                    <?php 
echo Carbon::createFromFormat('Y-m-d', $model->base->event_date)->formatLocalized('%d/%m/%Y');
?>
                </div>
                <div class="col-sm-8 text-right">
                    <?php 
echo TagsButtons::widget(['tags' => $model->getTags()]);
?>
                </div>
            </div>

            <hr/>

            <div class="row">
                <div class="col-sm-12 content">
                    <?php 
echo $model->body;
?>
                </div>
            </div>

        </div>
コード例 #2
0
        ?>
">
                                <?php 
        echo Carbon::parse($model->base->event_date)->format(WebNews::DATE_FORMAT_DAY);
        ?>
                            </div>

                            <div class="col-sm-7">
                                <?php 
        echo Html::a($model->title, Url::to(['/cms/web-news/show', 'id' => $model->id, 'slug' => $model->getSlug()]));
        ?>
                            </div>

                            <div class="col-sm-3">
                                <?php 
        echo TagsButtons::widget(['tags' => $model->getTags(), 'buttonSize' => 'xs']);
        ?>
                            </div>
                        </div>
                    </li>
                <?php 
    }
    ?>
            </ul>

            <?php 
    echo LinkPager::widget(['pagination' => $dataProvider->getPagination()]);
    ?>
        <?php 
}
?>