mirror of
https://github.com/humhub/humhub.git
synced 2025-02-12 03:26:25 +01:00
Enh: Added >Request a quote< option for non-free modules
This commit is contained in:
parent
f9a4ab0c3f
commit
f4ec63f68c
@ -18,3 +18,4 @@ HumHub Change Log
|
|||||||
- Enh: Added `humhub\modules\ui\form\widgets\JsInputWidget:emptyResult()` helper to manage render state of JsInputWidget
|
- Enh: Added `humhub\modules\ui\form\widgets\JsInputWidget:emptyResult()` helper to manage render state of JsInputWidget
|
||||||
- Enh: Added `humhub\modules\ui\form\widgets\JsInputWidget:field` in order to access ActiveField instances within JsInputWidget
|
- Enh: Added `humhub\modules\ui\form\widgets\JsInputWidget:field` in order to access ActiveField instances within JsInputWidget
|
||||||
- Enh #4216: Added `humhub\modules\ui\filter\widgets\DropdownFilterInput` in order to support dropdown stream filters
|
- Enh #4216: Added `humhub\modules\ui\filter\widgets\DropdownFilterInput` in order to support dropdown stream filters
|
||||||
|
- Enh: Added "Request a quote" option for non-free modules
|
||||||
|
@ -10,9 +10,6 @@ namespace humhub\modules\marketplace\controllers;
|
|||||||
use humhub\modules\admin\components\Controller;
|
use humhub\modules\admin\components\Controller;
|
||||||
use humhub\modules\marketplace\Module;
|
use humhub\modules\marketplace\Module;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\ErrorException;
|
|
||||||
use yii\base\Exception;
|
|
||||||
use yii\base\InvalidConfigException;
|
|
||||||
use yii\web\HttpException;
|
use yii\web\HttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -72,6 +72,9 @@ $isProOnly = ($isProFeature && $licence->type !== Licence::LICENCE_TYPE_PRO);
|
|||||||
<?php if (!$isInstalled): ?>
|
<?php if (!$isInstalled): ?>
|
||||||
<?php if ($isProOnly): ?>
|
<?php if ($isProOnly): ?>
|
||||||
· <?= Html::a('<i class="fa fa-lock"></i> Professional Edition', ['/admin/information'], ['style' => 'font-weight:bold']); ?>
|
· <?= Html::a('<i class="fa fa-lock"></i> Professional Edition', ['/admin/information'], ['style' => 'font-weight:bold']); ?>
|
||||||
|
<?php elseif (!empty($module['price_request_quote']) && !$module['purchased']) : ?>
|
||||||
|
<?php $checkoutUrl = str_replace('-returnToUrl-', Url::to(['/marketplace/purchase/list'], true), $module['checkoutUrl']); ?>
|
||||||
|
· <?= Html::a(Yii::t('MarketplaceModule.base', 'Request a quote'), $checkoutUrl, ['style' => 'font-weight:bold', 'target' => '_blank']); ?>
|
||||||
<?php elseif (!empty($module['price_eur']) && !$module['purchased']) : ?>
|
<?php elseif (!empty($module['price_eur']) && !$module['purchased']) : ?>
|
||||||
<?php $checkoutUrl = str_replace('-returnToUrl-', Url::to(['/marketplace/purchase/list'], true), $module['checkoutUrl']); ?>
|
<?php $checkoutUrl = str_replace('-returnToUrl-', Url::to(['/marketplace/purchase/list'], true), $module['checkoutUrl']); ?>
|
||||||
· <?= Html::a(Yii::t('MarketplaceModule.base', 'Buy (%price%)', ['%price%' => $module['price_eur'] . '€']), $checkoutUrl, ['style' => 'font-weight:bold', 'target' => '_blank']); ?>
|
· <?= Html::a(Yii::t('MarketplaceModule.base', 'Buy (%price%)', ['%price%' => $module['price_eur'] . '€']), $checkoutUrl, ['style' => 'font-weight:bold', 'target' => '_blank']); ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user