Пример #1
0
                <a href="<?php 
    echo Url::to(['/page/page/show', 'id' => $child->id]);
    ?>
" class="page-title">
                    <?php 
    echo $child->title;
    ?>
                </a>
            </h5>
            <div class="media-body">
                <?php 
    echo $child->announce;
    ?>
            </div>
        </li>
    <?php 
}
?>
</ul>
<?php 
if ($pages->pageCount > 1) {
    ?>
    <?php 
    echo \app\widgets\LinkPager::widget(['pagination' => $pages]);
}
?>
<div class="pages-list-content">
    <?php 
echo $this->blocks['content'];
?>
</div>
Пример #2
0
        ?>
                <li><a href="<?php 
        echo \yii\helpers\Url::to(['/page/page/show', 'id' => $page->id]);
        ?>
"><?php 
        echo $page->breadcrumbs_label;
        ?>
</a></li>
            <?php 
    }
    ?>
        </ul>
    </div>
    <?php 
    if ($pages->pageCount > 1) {
        ?>
        <div class="pagination">
            <?php 
        echo \app\widgets\LinkPager::widget(['firstPageLabel' => '&laquo;&laquo;', 'lastPageLabel' => '&raquo;&raquo;', 'pagination' => $pages]);
        ?>
        </div>
    <?php 
    }
} else {
    ?>
    <p class="no-results"><?php 
    echo Yii::t('app', 'No results found');
    ?>
</p>
<?php 
}
Пример #3
0
    ?>
                <?php 
    echo Post::widget(['model' => $post, 'topic' => $topic, 'count' => $item['post_count']]);
    ?>
            <?php 
}
?>
        </div>
        <?php 
if (!Yii::$app->getUser()->getIsGuest()) {
    ?>
        <?php 
    echo Editor::widget(['activeFormOptions' => ['action' => Url::to(['/topic/default/view', 'id' => $topic->id, '#' => 'postform'])], 'model' => $model, 'messageAttribute' => 'message']);
    ?>
        <?php 
}
?>
        <div class="pagination-center">
            <?php 
echo LinkPager::widget(['pagination' => $dataProvider->pagination]);
?>
        </div>
    </div>
    <?php 
echo Sidebar::widget();
?>
</div>


<?php 
$this->registerJs("jQuery(document).post();");