@@ -16,11 +16,11 @@ discard block |
||
| 16 | 16 | <a data-ui-gallery="<?= "gallery-" . $object->getUniqueId(); ?>" href="<?= $file->getUrl(); ?>#.jpeg" title="<?= Html::encode($file->file_name) ?>"> |
| 17 | 17 | <?= $previewImage->render(); ?> |
| 18 | 18 | </a> |
| 19 | - <?php elseif(FileHelper::getExtension($file->file_name) == 'mp4'): ?> |
|
| 19 | + <?php elseif (FileHelper::getExtension($file->file_name) == 'mp4'): ?> |
|
| 20 | 20 | <a data-ui-gallery="<?= "gallery-" . $object->getUniqueId(); ?>" type="video/mp4" href="<?= $file->getUrl(); ?>#.mp4" title="<?= Html::encode($file->file_name) ?>"> |
| 21 | 21 | <video src="<?= $file->getUrl() ?>" height="130" /> |
| 22 | 22 | </a> |
| 23 | - <?php elseif(FileHelper::getExtension($file->file_name) == 'ogv'): ?> |
|
| 23 | + <?php elseif (FileHelper::getExtension($file->file_name) == 'ogv'): ?> |
|
| 24 | 24 | <a data-ui-gallery="<?= "gallery-" . $object->getUniqueId(); ?>" type="video/ogg" href="<?= $file->getUrl(); ?>#.ogv" title="<?= Html::encode($file->file_name) ?>"> |
| 25 | 25 | <video src="<?= $file->getUrl() ?>" height="130" /> |
| 26 | 26 | </a> |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | <?= \humhub\modules\file\widgets\FilePreview::widget([ |
| 47 | 47 | 'hideImageFileInfo' => $hideImageFileInfo, |
| 48 | 48 | 'model' => $object, |
| 49 | - ]);?> |
|
| 49 | + ]); ?> |
|
| 50 | 50 | |
| 51 | 51 | </div> |
| 52 | 52 | <?php endif; ?> |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | - $containerId = time().'space-color-chooser-edit'; |
|
| 2 | + $containerId = time() . 'space-color-chooser-edit'; |
|
| 3 | 3 | |
| 4 | - if($model->color == null) { |
|
| 4 | + if ($model->color == null) { |
|
| 5 | 5 | $model->color = '#d1d1d1'; |
| 6 | 6 | } |
| 7 | 7 | ?> |
@@ -18,5 +18,5 @@ discard block |
||
| 18 | 18 | {input} |
| 19 | 19 | </div> |
| 20 | 20 | {error}{hint}' |
| 21 | - ])->textInput(['placeholder' => Yii::t('SpaceModule.views_create_create', 'Space name'), 'maxlength' => 45 ]) ?> |
|
| 21 | + ])->textInput(['placeholder' => Yii::t('SpaceModule.views_create_create', 'Space name'), 'maxlength' => 45]) ?> |
|
| 22 | 22 | </div> |