상속: extends Module
예제 #1
0
파일: index.php 프로젝트: barricade86/raui
                <div class="carousel-inner">
                    <div class="active item">
                        <img src="/themes/atlas/temp/images/slides/slide-1.png">
                    </div>
                    <div class="item">
                        <img src="/themes/atlas/temp/images/slides/slide-2.png">
                    </div>
                </div>
            </div>
        </section>


<!--<h1 class="title highlight-left-right">
	<span>
		<?php 
echo BlogModule::t('Blog');
?>
	</span>
</h1>-->


 <!-- Blog -->
        <section class="blog container-full">
            <h2>ИНВЕСТИЦИИ В НЕДВИЖИМОСТЬ</h2>
            <div class="sort-articles sort-options">
                <span>Сортировать:</span>
                <button id="popularity" value="popularity">по популярности</button>
                <button id="date-created" value="date-created">по новизне</button>
            </div>
   
                
예제 #2
0
        echo '</div>';
        echo '<div class="clear">&nbsp;</div>';
    }
    foreach ($items as $item) {
        echo '<div class="blog-items">';
        echo '<p><font class="date">' . $item->pubDate . '</font></p>';
        //echo CHtml::link($item->title, $item->getUrl(), array('class'=>'title'));
        echo '<p><font class="title">' . $item->title . '</font></p>';
        echo '<p class="desc">';
        echo $item->description;
        echo '</p>';
        echo '<p>';
        echo CHtml::link(BlogModule::t('Read more &raquo;'), $item->link);
        echo '</p>';
        echo '</div>';
        if ($item->is_show == 0) {
            $item->is_show = 1;
            $item->update('is_show');
        }
    }
}
if (!$items) {
    echo BlogModule::t('Blog list is empty.');
}
if ($pages) {
    echo '<div class="clear">&nbsp;</div>';
    echo '<div class="pagination">';
    $this->widget('itemPaginator', array('pages' => $pages, 'header' => '', 'showHidden' => true));
    echo '</div>';
    echo '<div class="clear">&nbsp;</div>';
}
예제 #3
0
파일: view.php 프로젝트: barricade86/raui
<?php

$this->pageTitle .= ' - ' . BlogModule::t('Blog') . ' - ' . CHtml::encode($model->getStrByLang('title'));
$this->breadcrumbs = array(BlogModule::t('Blog') => array('/blog/main/index'), truncateText(CHtml::encode($model->getStrByLang('title')), 10));
?>

<!--<h1 class="title highlight-left-right">
	<span><?php 
echo CHtml::encode($model->getStrByLang('title'));
?>
</span>
</h1>-->




        <!-- One article page -->
        <section class="container-full">
            <div class="one-article">
                <h2><?php 
echo CHtml::encode($model->getStrByLang('title'));
?>
</h2>
                <div class="clearfix">
                    <span class="pull-left"><?php 
echo $model->dateCreatedLong;
?>
</span>
                    <span class="pull-right">Автор: <a href="">Сергей Есенин</a></span>
                </div>
                
예제 #4
0
파일: create.php 프로젝트: barricade86/raui
<?php

$this->pageTitle = Yii::app()->name . ' - ' . BlogModule::t('Add blog');
$this->menu = array(array('label' => tt('Manage blog'), 'url' => array('admin')));
$this->adminTitle = BlogModule::t('Add blog');
?>

<?php 
echo $this->renderPartial('/backend/_form', array('model' => $model));
예제 #5
0
파일: update.php 프로젝트: barricade86/raui
<?php

$this->pageTitle = Yii::app()->name . ' - ' . BlogModule::t('Edit blog');
$this->menu = array(array('label' => tt('Manage blog'), 'url' => array('admin')), array('label' => BlogModule::t('Add blog'), 'url' => array('create')), array('label' => tt('Delete blog', 'blog'), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => tc('Are you sure you want to delete this item?'))));
$this->adminTitle = BlogModule::t('Edit blog') . ': <i>' . CHtml::encode($model->title) . '</i>';
?>

<?php 
echo $this->renderPartial('/backend/_form', array('model' => $model));
예제 #6
0
파일: view.php 프로젝트: barricade86/raui
<?php

$this->menu = array(array('label' => BlogModule::t('Add blog'), 'url' => array('create')), array('label' => BlogModule::t('Edit blog'), 'url' => array('update', 'id' => $model->id)), array('label' => tt('Delete blog', 'blog'), 'url' => '#', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => tt('Are you sure you want to delete this item?'))));
$this->renderPartial('//modules/blog/views/view', array('model' => $model));
예제 #7
0
파일: admin.php 프로젝트: barricade86/raui
<?php

$this->pageTitle = Yii::app()->name . ' - ' . BlogModule::t('Manage blog');
$this->menu = array(array('label' => BlogModule::t('Add blog'), 'url' => array('create')));
$this->adminTitle = BlogModule::t('Manage blog');
?>

<?php 
$this->widget('CustomGridView', array('id' => 'blog-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'afterAjaxUpdate' => 'function(){$("a[rel=\'tooltip\']").tooltip(); $("div.tooltip-arrow").remove(); $("div.tooltip-inner").remove();}', 'columns' => array(array('class' => 'CCheckBoxColumn', 'id' => 'itemsSelected', 'selectableRows' => '2', 'htmlOptions' => array('class' => 'center')), array('header' => tc('Name'), 'name' => 'title_' . Yii::app()->language, 'type' => 'raw', 'value' => 'CHtml::link(CHtml::encode($data->getStrByLang("title")), $data->url)'), array('name' => 'dateCreated', 'type' => 'raw', 'filter' => false, 'htmlOptions' => array('style' => 'width:130px;')), array('class' => 'bootstrap.widgets.TbButtonColumn', 'deleteConfirmation' => tc('Are you sure you want to delete this item?'), 'viewButtonUrl' => '$data->url'))));
$this->renderPartial('//site/admin-select-items', array('url' => '/blog/backend/main/itemsSelected', 'id' => 'blog-grid', 'model' => $model, 'options' => array('delete' => Yii::t('common', 'Delete'))));