| @@ -13,15 +13,15 @@ discard block | ||
| 13 | 13 | <div class="post-files" id="post-files-<?php echo $object->getUniqueId(); ?>"> | 
| 14 | 14 | <?php foreach ($files as $file): ?> | 
| 15 | 15 | <?php if ($previewImage->applyFile($file)): ?> | 
| 16 | - <a data-ui-gallery="<?= "gallery-" . $object->getUniqueId(); ?>" href="<?= $file->getUrl(); ?>#.jpeg" title="<?= Html::encode($file->file_name) ?>"> | |
| 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'): ?> | |
| 20 | - <a data-ui-gallery="<?= "gallery-" . $object->getUniqueId(); ?>" type="video/mp4" href="<?= $file->getUrl(); ?>#.mp4" title="<?= Html::encode($file->file_name) ?>"> | |
| 19 | + <?php elseif (FileHelper::getExtension($file->file_name) == 'mp4'): ?> | |
| 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'): ?> | |
| 24 | - <a data-ui-gallery="<?= "gallery-" . $object->getUniqueId(); ?>" type="video/ogg" href="<?= $file->getUrl(); ?>#.ogv" title="<?= Html::encode($file->file_name) ?>"> | |
| 23 | + <?php elseif (FileHelper::getExtension($file->file_name) == 'ogv'): ?> | |
| 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> | 
| 27 | 27 | <?php endif; ?> | 
| @@ -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; ?> | 
| @@ -26,9 +26,9 @@ | ||
| 26 | 26 | |
| 27 | 27 | "; | 
| 28 | 28 | ?> | 
| 29 | -		<?= Html::a('<i class="fa fa-facebook" style="font-size:16px;color:#3a5795"> </i>', 'https://www.facebook.com/sharer/sharer.php?u=' . urlencode($permalink) . '&description=' . urlencode($object->getContentDescription()),['onclick'=> $option]);?> | |
| 30 | -		<?= Html::a('<i class="fa fa-twitter" style="font-size:16px;color:#55acee"> </i> </i>', 'https://twitter.com/intent/tweet?text=' . urlencode($object->getContentDescription()) . '&url=' . urlencode($permalink),['onclick'=> $option]);?> | |
| 31 | -		<?= Html::a('<i class="fa fa-linkedin-square" style="font-size:16px;color:#0177b5"></i>', 'https://www.linkedin.com/shareArticle?summary=&mini=true&source=&title=' . urlencode($object->getContentDescription()) . '&url=' . urlencode($permalink) . '&ro=false', ['onclick'=> $option]);?> | |
| 29 | +		<?= Html::a('<i class="fa fa-facebook" style="font-size:16px;color:#3a5795"> </i>', 'https://www.facebook.com/sharer/sharer.php?u='.urlencode($permalink).'&description='.urlencode($object->getContentDescription()), ['onclick'=> $option]); ?> | |
| 30 | +		<?= Html::a('<i class="fa fa-twitter" style="font-size:16px;color:#55acee"> </i> </i>', 'https://twitter.com/intent/tweet?text='.urlencode($object->getContentDescription()).'&url='.urlencode($permalink), ['onclick'=> $option]); ?> | |
| 31 | +		<?= Html::a('<i class="fa fa-linkedin-square" style="font-size:16px;color:#0177b5"></i>', 'https://www.linkedin.com/shareArticle?summary=&mini=true&source=&title='.urlencode($object->getContentDescription()).'&url='.urlencode($permalink).'&ro=false', ['onclick'=> $option]); ?> | |
| 32 | 32 | </div> | 
| 33 | 33 | </div> | 
| 34 | 34 | </div> | 
| @@ -4,16 +4,16 @@ | ||
| 4 | 4 | <div class="panel panel-default panel-tour" id="getting-started-panel"> | 
| 5 | 5 | <?php | 
| 6 | 6 | // Temporary workaround till panel widget rewrite in 0.10 verion | 
| 7 | - $removeOptionHtml = "<li>" . \humhub\widgets\ModalConfirm::widget(array( | |
| 7 | + $removeOptionHtml = "<li>".\humhub\widgets\ModalConfirm::widget(array( | |
| 8 | 8 | 'uniqueID' => 'hide-panel-button', | 
| 9 | 9 |                  'title' => Yii::t('TourModule.widgets_views_tourPanel', '<strong>Remove</strong> tour panel'), | 
| 10 | 10 |                  'message' => Yii::t('TourModule.widgets_views_tourPanel', 'This action will remove the tour panel from your dashboard. You can reactivate it at<br>Account settings <i class="fa fa-caret-right"></i> Settings.'), | 
| 11 | 11 |                  'buttonTrue' => Yii::t('TourModule.widgets_views_tourPanel', 'Ok'), | 
| 12 | 12 |                  'buttonFalse' => Yii::t('TourModule.widgets_views_tourPanel', 'Cancel'), | 
| 13 | -                'linkContent' => '<i class="fa fa-eye-slash"></i> ' . Yii::t('TourModule.widgets_views_tourPanel', ' Remove panel'), | |
| 13 | +                'linkContent' => '<i class="fa fa-eye-slash"></i> '.Yii::t('TourModule.widgets_views_tourPanel', ' Remove panel'), | |
| 14 | 14 | 'linkHref' => Url::to(["/tour/tour/hide-panel", "ajax" => 1]), | 
| 15 | 15 |                  'confirmJS' => '$(".panel-tour").slideToggle("slow")' | 
| 16 | - ), true) . "</li>"; | |
| 16 | + ), true)."</li>"; | |
| 17 | 17 | ?> | 
| 18 | 18 | |
| 19 | 19 | <!-- Display panel menu widget --> | 
| @@ -8,7 +8,7 @@ | ||
| 8 | 8 | use humhub\modules\space\widgets\SpaceChooserItem; | 
| 9 | 9 | |
| 10 | 10 | \humhub\modules\space\assets\SpaceChooserAsset::register($this); | 
| 11 | -$noSpaceView = '<div class="no-space"><i class="fa fa-dot-circle-o"></i><br>' . Yii::t('SpaceModule.widgets_views_spaceChooser', 'My spaces') . '<b class="caret"></b></div>'; | |
| 11 | +$noSpaceView = '<div class="no-space"><i class="fa fa-dot-circle-o"></i><br>'.Yii::t('SpaceModule.widgets_views_spaceChooser', 'My spaces').'<b class="caret"></b></div>'; | |
| 12 | 12 |  $this->registerJsConfig('space.chooser', [ | 
| 13 | 13 | 'noSpace' => $noSpaceView, | 
| 14 | 14 | 'remoteSearchUrl' => Url::to(['/space/browse/search-json']), | 
| @@ -8,7 +8,7 @@ | ||
| 8 | 8 | echo $item['id']; | 
| 9 | 9 | } | 
| 10 | 10 | ?>"> | 
| 11 | - <?= Html::a($item['icon'] . "<br />" . $item['label'], $item['url'], $item['htmlOptions']); ?> | |
| 11 | + <?= Html::a($item['icon']."<br />".$item['label'], $item['url'], $item['htmlOptions']); ?> | |
| 12 | 12 | </li> | 
| 13 | 13 | <?php endforeach; ?> | 
| 14 | 14 | |