コード例 #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
ファイル: search.php プロジェクト: tqsq2005/dotplant2
        ?>
                <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
ファイル: view.php プロジェクト: heartshare/linuxforum
    ?>
                <?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();");