コード例 #1
0
ファイル: show.php プロジェクト: karczmarczyk/photo-archive
$this->registerJsFile($assetsPath . '/js/ng-never-ending-story.js');
/* ładuję moduł tiles-gallery */
$this->registerJsFile($assetsPath . '/js/ng-tiles-gallery.js');
/* ładuję moduł imageonload */
$this->registerJsFile($assetsPath . '/js/ng-imageonload.js');
/* ładuję skrypt fullScreenMode*/
$this->registerJsFile($assetsPath . '/js/fullscreenmode.js');
?>
<div ng-app="myApp" ng-controller="photosCtrl">
    <div id="tiles-galery" class="col-lg-12 tiles-galery scrollbar-light" never-ending-story="nextPhotos()" jquery-scrollbar="jqueryScrollbarOptions">
        <div class="row tiles" ng-repeat="photo in photos" ng-include="'tile'"></div>
    </div>
    <div style="clear: both"></div>
    <div ng-if="loadingPage" class="loadnextpage">
        <?php 
echo yii\helpers\Html::img('\\images\\loadbar1.gif');
?>
    </div>
    <div ng-if="end" class="end_tail">
        Koniec
    </div>
    <script type="text/ng-template" id="tile">
        <?php 
echo $this->render('_ng-tile');
?>
    </script>
    <script type="text/ng-template" id="dialogContent">
        <?php 
echo $this->render('_ng-dialog-content');
?>
    </script>
コード例 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTNameWithMedia()
 {
     $image = yii\helpers\Html::img('@web/images/cards/info/info_docs' . rand(0, 9) . '.jpg', ['style' => 'width:100%; height:110px; margin: 5px 0 10px']);
     if ($this->hint != null) {
         return $this->label . '<span data-container="body" data-toggle="popover" data-placement="top" data-content="' . $this->hint . '">
              <i class="fa fa-question-circle gray-color"></i>
             </span>' . $image;
     } else {
         return $this->label . $image;
     }
 }
コード例 #3
0
ファイル: modal.php プロジェクト: sedpro/yii2-test-app
?>

<div class="modal-header">
    <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
    <h2><?php 
echo $book->name;
?>
</h2>
</div>
<div class="modal-body">
    <?php 
if ($book->preview) {
    ?>
        <div>
            <?php 
    echo yii\helpers\Html::img($book->previewurl, ['width' => '300px']);
    ?>
        </div>
    <?php 
}
?>

    <div>
        Автор: <?php 
echo $book->authorname;
?>
    </div>

    <div>
        Дата выхода книги: <?php 
echo $book->date;