%PDF- %PDF-
| Direktori : /home/vacivi36/intranet.vacivitta.com.br/protected/humhub/modules/tour/widgets/views/ |
| Current File : /home/vacivi36/intranet.vacivitta.com.br/protected/humhub/modules/tour/widgets/views/tourPanel.php |
<?php
use humhub\libs\Html;
use yii\helpers\Url;
?>
<div class="panel panel-default panel-tour" id="getting-started-panel">
<?php
// Temporary workaround till panel widget rewrite in 0.10 verion
$removeOptionHtml = "<li>" . \humhub\widgets\ModalConfirm::widget([
'uniqueID' => 'hide-panel-button',
'title' => Yii::t('TourModule.base', '<strong>Remove</strong> tour panel'),
'message' => Yii::t('TourModule.base', '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.'),
'buttonTrue' => Yii::t('TourModule.base', 'Ok'),
'buttonFalse' => Yii::t('TourModule.base', 'Cancel'),
'linkContent' => '<i class="fa fa-eye-slash"></i> ' . Yii::t('TourModule.base', ' Remove panel'),
'linkHref' => Url::to(["/tour/tour/hide-panel", "ajax" => 1]),
'confirmJS' => '$(".panel-tour").slideToggle("slow")'
], true) . "</li>";
?>
<!-- Display panel menu widget -->
<?php echo \humhub\widgets\PanelMenu::widget(['id' => 'getting-started-panel', 'extraMenus' => $removeOptionHtml]); ?>
<div class="panel-heading">
<?php echo Yii::t('TourModule.base', '<strong>Getting</strong> Started'); ?>
</div>
<div class="panel-body">
<p>
<?php echo Yii::t('TourModule.base', 'Get to know your way around the site\'s most important features with the following guides:'); ?>
</p>
<ul class="tour-list">
<li id="interface_entry" class="<?php if ($interface == 1) : ?>completed<?php endif; ?>">
<a href="<?php echo Url::to(['/dashboard/dashboard', 'tour' => true]); ?>" data-pjax-prevent>
<i class="fa fa-play-circle-o"></i><?= Yii::t('TourModule.base', '<strong>Guide:</strong> Overview'); ?>
</a>
</li>
<li class="<?php if ($spaces == 1) : ?>completed<?php endif; ?>">
<a id="interface-tour-link" href="<?php echo Url::to(['/tour/tour/start-space-tour']); ?>" data-pjax-prevent>
<i class="fa fa-play-circle-o"></i><?php echo Yii::t('TourModule.base', '<strong>Guide:</strong> Spaces'); ?>
</a>
</li>
<li class="<?php if ($profile == 1) : ?>completed<?php endif; ?>">
<a href="<?php echo Yii::$app->user->getIdentity()->createUrl('//user/profile/home', ['tour' => 'true']); ?>" data-pjax-prevent>
<i class="fa fa-play-circle-o"></i><?php echo Yii::t('TourModule.base', '<strong>Guide:</strong> User profile'); ?>
</a>
</li>
<?php if (Yii::$app->user->isAdmin() == true) : ?>
<li class="<?php if ($administration == 1) : ?>completed<?php endif; ?>">
<a href="<?php echo Url::to(['/admin/module/list', 'tour' => 'true']); ?>" data-pjax-prevent>
<i class="fa fa-play-circle-o"></i><?php echo Yii::t('TourModule.base', '<strong>Guide:</strong> Administration (Modules)'); ?>
</a>
</li>
<?php endif; ?>
</ul>
</div>
</div>
<?php if ($showWelcome) : ?>
<script <?= Html::nonce() ?>>
$(document).on('humhub:ready', function () {
humhub.modules.ui.modal.global.load( "<?= Url::to(['/tour/tour/welcome']) ?>");
});
</script>
<?php endif; ?>