예제 #1
0
<h1 class="blog-post-title"><?php 
echo $model->title;
?>
</h1>
<ul class="blog-post-info list-inline">
    <li>
        <i class="fa fa-clock-o"></i> 
        <span class="font-lato"><?php 
echo UserAdmin::get_date($model->created);
?>
</span>
    </li>
    <li>
        <i class="fa fa-folder-open-o"></i> 
        <?php 
echo CHtml::link('<span class="font-lato">' . ContentCategory::getCategoryName($model->catid) . '</span>', array('content/category', 'id' => $model->catid), array('class' => 'category'));
?>
            
    </li>
</ul>
<!-- IMAGE -->
<figure class="margin-bottom-20">
    <?php 
echo Content::get_picture_responsive($model->id);
?>
</figure>
<?php 
$this->widget('application.extensions.SocialShareButton.SocialShareButton', array('style' => 'horizontal', 'networks' => array('facebook', 'googleplus', 'linkedin', 'twitter'), 'data_via' => ''));
?>
<p><?php 
echo $model->introtext;
예제 #2
0
<?php

$this->pageTitle = ContentCategory::getCategoryName($_REQUEST['id']);
$this->breadcrumbs = array(ContentCategory::getCategoryName($_REQUEST['id']));
?>
<h1 class="blog-post-title"><?php 
echo ContentCategory::getCategoryName($_REQUEST['id']);
?>
</h1>
<div class="divider divider-dotted"><!-- divider --></div>
<?php 
$this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'template' => '{items}{pager}', 'itemView' => '_view', 'pager' => array('header' => '', 'prevPageLabel' => '<i class="fa fa-backward"></i>', 'nextPageLabel' => '<i class="fa fa-forward"></i>', 'firstPageLabel' => '<i class="fa fa-fast-backward"></i>', 'lastPageLabel' => '<i class="fa fa-fast-forward"></i>', 'selectedPageCssClass' => 'active', 'maxButtonCount' => 10, 'htmlOptions' => array('class' => 'pagination', 'style' => '', 'id' => ''))));
예제 #3
0
<div class="widget-box">
    <div class="widget-header">
        <h5>Details Content (<?php 
echo $model->title;
?>
)</h5>
        <div class="widget-toolbar">
            <a data-action="settings" href="#"><i class="icon-cog"></i></a>
            <a data-action="reload" href="#"><i class="icon-refresh"></i></a>
            <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
            <a data-action="close" href="#"><i class="icon-remove"></i></a>
        </div>
        <div class="widget-toolbar">
            <?php 
echo CHtml::link('<i class="icon-pencil"></i>', array('update', 'id' => $model->id), array('data-rel' => 'tooltip', 'title' => 'Edit', 'data-placement' => 'bottom'));
?>
        </div>
        <div class="widget-toolbar">
            <?php 
echo CHtml::link('<i class="icon-plus"></i>', array('create'), array('data-rel' => 'tooltip', 'title' => 'Add', 'data-placement' => 'bottom'));
?>
        </div>
    </div><!--/.widget-header -->
    <div class="widget-body">
        <div class="widget-main">
            <?php 
$this->widget('bootstrap.widgets.TbDetailView', array('data' => $model, 'attributes' => array('id', 'title', 'alias', array('name' => 'profile_picture', 'type' => 'raw', 'value' => CHtml::image(Yii::app()->baseUrl . '/uploads/images/' . $model->images)), array('name' => 'introtext', 'type' => 'raw', 'value' => $model->introtext, 'htmlOptions' => array('style' => "text-align:left;")), array('name' => 'fulltext', 'type' => 'raw', 'value' => $model->fulltext, 'htmlOptions' => array('style' => "text-align:left;")), array('name' => 'state', 'value' => $model->state ? "Yes" : "No"), array('name' => 'catid', 'type' => 'raw', 'value' => ContentCategory::getCategoryName($model->catid)), array('name' => 'created_by', 'type' => 'raw', 'value' => UserAdmin::get_name($model->created_by)), array('name' => 'created', 'type' => 'raw', 'value' => UserAdmin::get_date_time($model->created)), array('name' => 'modified_by', 'type' => 'raw', 'value' => $model->getUserName($model->modified_by)), array('name' => 'modified', 'type' => 'raw', 'value' => UserAdmin::get_date_time($model->modified)), array('name' => 'publish_up', 'type' => 'raw', 'value' => UserAdmin::get_date_time($model->publish_up)), array('name' => 'publish_down', 'type' => 'raw', 'value' => UserAdmin::get_date_time($model->publish_down)), 'ordering', 'metakey', 'metadesc', 'hits', array('name' => 'featured', 'value' => $model->featured ? "Yes" : "No"))));
?>
        </div>
    </div><!--/.widget-body -->
</div><!--/.widget-box -->
예제 #4
0
<div class="widget-box">
    <div class="widget-header">
        <h5>Details User Group (<?php 
echo $model->title;
?>
)</h5>
        <div class="widget-toolbar">
            <a data-action="settings" href="#"><i class="icon-cog"></i></a>
            <a data-action="reload" href="#"><i class="icon-refresh"></i></a>
            <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
            <a data-action="close" href="#"><i class="icon-remove"></i></a>
        </div>
        <div class="widget-toolbar">
            <?php 
echo CHtml::link('<i class="icon-pencil"></i>', array('update', 'id' => $model->id), array('data-rel' => 'tooltip', 'title' => 'Edit', 'data-placement' => 'bottom'));
?>
        </div>
        <div class="widget-toolbar">
            <?php 
echo CHtml::link('<i class="icon-plus"></i>', array('create'), array('data-rel' => 'tooltip', 'title' => 'Add', 'data-placement' => 'bottom'));
?>
        </div>
    </div><!--/.widget-header -->
    <div class="widget-body">
        <div class="widget-main">
            <?php 
$this->widget('bootstrap.widgets.TbDetailView', array('data' => $model, 'attributes' => array('id', array('name' => 'parent_id', 'type' => 'raw', 'value' => ContentCategory::getCategoryName($model->parent_id)), 'title', 'alias', array('name' => 'description', 'type' => 'raw', 'value' => $model->description, 'htmlOptions' => array('style' => "text-align:left;")), array('name' => 'published', 'value' => $model->published ? "Yes" : "No"), array('name' => 'created_by', 'type' => 'raw', 'value' => $model->getUserName($model->created_by)), array('name' => 'created_time', 'type' => 'raw', 'value' => UserAdmin::get_date_time($model->created_time)), array('name' => 'modified_by', 'type' => 'raw', 'value' => $model->getUserName($model->modified_by)), array('name' => 'modified_time', 'type' => 'raw', 'value' => UserAdmin::get_date_time($model->modified_time)))));
?>
        </div>
    </div><!--/.widget-body -->
</div><!--/.widget-box -->
예제 #5
0
echo ContentCategory::getCategoryName(13);
?>
                                        </a>
                                        <?php 
echo ContentCategory::get_category_list_menu(13);
?>
    
                                    </li>
                                    <li><?php 
echo CHtml::link(Content::get_title(1), array('content/view', 'id' => 1));
?>
</li>
                                    <li class="dropdown"><!-- PAGES -->
                                        <a class="dropdown-toggle" href="#">
                                            <?php 
echo ContentCategory::getCategoryName(2);
?>
                                        </a>
                                        <?php 
echo ContentCategory::get_category_list_menu(2);
?>
                                    </li>
                                    <li><?php 
echo CHtml::link(Title::get_title(6), array('youtube/index'));
?>
</li>
                                    <li><?php 
echo CHtml::link(Title::get_title(14), array('content/view', 'id' => 26));
?>
</li>
                                </ul>