123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <?php
- /**
- * @var $this View
- * @var $js string
- * @author Bogdan Savluk <savluk.bogdan@gmail.com>
- */
- use yii\helpers\Html;
- use yii\web\View;
- ?>
- <?php echo Html::beginTag('div', $this->context->options); ?>
- <!-- Gallery Toolbar -->
- <div class="btn-toolbar" style="padding:4px">
- <div class="btn-group" style="display: inline-block;">
- <div class="btn btn-success btn-file" style="display: inline-block">
- <i class="glyphicon glyphicon-plus"></i><?php echo Yii::t('galleryManager/main', 'Add…'); ?>
- <input type="file" name="gallery-image" class="afile" accept="image/*" multiple="multiple"/>
- </div>
- </div>
- <div class="btn-group" style="display: inline-block;">
- <label class="btn btn-default">
- <input type="checkbox" style="margin-right: 4px;" class="select_all"><?php echo Yii::t(
- 'galleryManager/main',
- 'Select all'
- ); ?>
- </label>
- <div class="btn btn-default disabled edit_selected">
- <i class="fas fa-edit"></i> <?php echo Yii::t('galleryManager/main', 'Edit'); ?>
- </div>
- <div class="btn btn-default disabled remove_selected">
- <i class="fas fa-trash"></i> <?php echo Yii::t('galleryManager/main', 'Remove'); ?>
- </div>
- </div>
- </div>
- <hr/>
- <!-- Gallery Photos -->
- <div class="sorter">
- <div class="images"></div>
- <br style="clear: both;"/>
- </div>
- <!-- Modal window to edit photo information -->
- <div class="editor-modal modal fade">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <a class="close" data-dismiss="modal">×</a>
- <h3 class="modal-title"><?php echo Yii::t('galleryManager/main', 'Edit information') ?></h3>
- </div>
- <div class="modal-body">
- <div class="form"></div>
- </div>
- <div class="modal-footer">
- <a href="#" class="btn btn-primary save-changes">
- <?php echo Yii::t('galleryManager/main', 'Save changes') ?>
- </a>
- <a href="#" class="btn" data-dismiss="modal"><?php echo Yii::t(
- 'galleryManager/main',
- 'Close'
- ) ?></a>
- </div>
- </div>
- </div>
- </div>
- <div class="overlay">
- <div class="overlay-bg"> </div>
- <div class="drop-hint">
- <span class="drop-hint-info"><?php echo Yii::t('galleryManager/main', 'Drop Files Here…') ?></span>
- </div>
- </div>
- <div class="progress-overlay">
- <div class="overlay-bg"> </div>
- <!-- Upload Progress Modal-->
- <div class="modal progress-modal">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <h3><?php echo Yii::t('galleryManager/main', 'Uploading images…') ?></h3>
- </div>
- <div class="modal-body">
- <div class="progress ">
- <div class="progress-bar progress-bar-info progress-bar-striped active upload-progress"
- role="progressbar">
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php echo Html::endTag('div'); ?>
- <script>
- if(typeof $().galleryManager !== 'undefined'){
- <?=$js?>
- }
- </script>
|