Пример #1
0
                    <?php 
echo \humhub\widgets\MarkdownView::widget(['markdown' => $content, 'parserClass' => "humhub\\modules\\wiki\\Markdown"]);
?>
                </div>
                <hr>

                <div class="social-controls">
                    <?php 
echo \humhub\modules\comment\widgets\CommentLink::widget(array('object' => $page));
?>
                    &middot; <?php 
echo \humhub\modules\like\widgets\LikeLink::widget(array('object' => $page));
?>
                </div>
                <?php 
echo \humhub\modules\comment\widgets\Comments::widget(array('object' => $page));
?>
            </div>

            <div class="col-lg-3 col-md-3 col-sm-3 wiki-menu">
                <ul class="nav nav-pills nav-stacked">

                    <?php 
if ($revision->is_latest) {
    ?>

                        <?php 
    if (!$page->admin_only || $page->canAdminister()) {
        ?>
                            <li><?php 
        echo Html::a('<i class="fa fa-pencil-square-o edit"></i> ' . Yii::t('WikiModule.base', 'Edit page'), $contentContainer->createUrl('/wiki/page/edit', array('id' => $page->id)));
Пример #2
0
 /**
  * On init of the WallEntryAddonWidget, attach the comment widget.
  *
  * @param CEvent $event
  */
 public static function onWallEntryAddonInit($event)
 {
     $event->sender->addWidget(widgets\Comments::className(), array('object' => $event->sender->object), array('sortOrder' => 20));
 }