Security hardening
This commit is contained in:
@@ -1,195 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $items
|
||||
* @var MPFInput $input
|
||||
* @var MPFConfig $config
|
||||
* @var int $Itemid
|
||||
* @var int $categoryId
|
||||
* @var OSMembershipHelperBootstrap $bootstrapHelper
|
||||
*/
|
||||
|
||||
$rootUri = Uri::root(true);
|
||||
|
||||
$subscribedPlanIds = OSMembershipHelperSubscription::getSubscribedPlans();
|
||||
|
||||
if (!isset($categoryId))
|
||||
{
|
||||
$categoryId = 0;
|
||||
}
|
||||
|
||||
$rowFluidClass = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$span7Class = $bootstrapHelper->getClassMapping('span7');
|
||||
$span5class = $bootstrapHelper->getClassMapping('span5');
|
||||
$imgClass = $bootstrapHelper->getClassMapping('img-polaroid');
|
||||
$btnClass = $bootstrapHelper->getClassMapping('btn');
|
||||
$btnPrimaryClass = $bootstrapHelper->getClassMapping('btn btn-primary');
|
||||
$clearfixClass = $bootstrapHelper->getClassMapping('clearfix');
|
||||
|
||||
$defaultItemId = $Itemid;
|
||||
|
||||
for ($i = 0 , $n = count($items) ; $i < $n ; $i++)
|
||||
{
|
||||
$item = $items[$i];
|
||||
$Itemid = OSMembershipHelperRoute::getPlanMenuId($item->id, $item->category_id, $defaultItemId);
|
||||
|
||||
if ($item->thumb)
|
||||
{
|
||||
$imgSrc = $rootUri . '/media/com_osmembership/' . $item->thumb;
|
||||
}
|
||||
|
||||
if ($item->category_id)
|
||||
{
|
||||
$url = Route::_('index.php?option=com_osmembership&view=plan&catid=' . $item->category_id . '&id=' . $item->id . '&Itemid=' . $Itemid);
|
||||
}
|
||||
else
|
||||
{
|
||||
$url = Route::_('index.php?option=com_osmembership&view=plan&id=' . $item->id . '&Itemid=' . $Itemid);
|
||||
}
|
||||
|
||||
if ($config->use_https)
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid), false, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid));
|
||||
}
|
||||
|
||||
$symbol = $item->currency_symbol ?: $item->currency;
|
||||
?>
|
||||
<div class="osm-item-wrapper <?php echo $clearfixClass; ?>">
|
||||
<div class="osm-item-heading-box <?php echo $clearfixClass; ?>">
|
||||
<h3 class="osm-item-title">
|
||||
<a href="<?php echo $url; ?>" title="<?php echo $item->title; ?>">
|
||||
<?php echo $item->title; ?>
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="osm-item-description <?php echo $clearfixClass; ?>">
|
||||
<div class="<?php echo $rowFluidClass; ?>">
|
||||
<div class="osm-description-details <?php echo $span7Class; ?>">
|
||||
<?php
|
||||
if ($item->thumb)
|
||||
{
|
||||
?>
|
||||
<img src="<?php echo $imgSrc; ?>" alt="<?php echo $item->title; ?>" class="osm-thumb-left <?php echo $imgClass; ?>"/>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($item->short_description)
|
||||
{
|
||||
echo $item->short_description;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $item->description;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="<?php echo $span5class; ?>">
|
||||
<?php echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/plan_information.php', ['item' => $item]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="osm-taskbar <?php echo $clearfixClass; ?>">
|
||||
<ul>
|
||||
<?php
|
||||
$actions = OSMembershipHelperSubscription::getAllowedActions($item);
|
||||
|
||||
if (count($actions))
|
||||
{
|
||||
$language = Factory::getApplication()->getLanguage();
|
||||
|
||||
if (in_array('subscribe', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_SIGNUP_PLAN_' . $item->id))
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP';
|
||||
}
|
||||
|
||||
if ($language->hasKey('OSM_RENEW_PLAN_' . $item->id))
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW';
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $signUpUrl; ?>" class="<?php echo $btnPrimaryClass; ?>">
|
||||
<?php echo in_array($item->id, $subscribedPlanIds) ? Text::_($renewLanguageItem) : Text::_($signUpLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (in_array('upgrade', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_UPGRADE_PLAN_' . $item->id))
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE';
|
||||
}
|
||||
|
||||
if (count($item->upgrade_rules) > 1)
|
||||
{
|
||||
$link = Route::_('index.php?option=com_osmembership&view=upgrademembership&to_plan_id=' . $item->id . '&Itemid=' . OSMembershipHelperRoute::findView('upgrademembership', $Itemid));
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeOptionId = $item->upgrade_rules[0]->id;
|
||||
$link = Route::_('index.php?option=com_osmembership&task=register.process_upgrade_membership&upgrade_option_id=' . $upgradeOptionId . '&Itemid=' . $Itemid);
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $link; ?>" class="<?php echo $btnPrimaryClass; ?>">
|
||||
<?php echo Text::_($upgradeLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($config->hide_details_button))
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $url; ?>" class="<?php echo $btnClass; ?>">
|
||||
<?php echo Text::_('OSM_DETAILS'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var string $selector
|
||||
* @var string $title
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
Factory::getApplication()
|
||||
->getDocument()
|
||||
->getWebAssetManager()
|
||||
->useScript('core');
|
||||
|
||||
Text::script('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST');
|
||||
$message = "alert(Joomla.JText._('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST'));";
|
||||
?>
|
||||
<button type="button" data-toggle="modal" onclick="if (document.adminForm.boxchecked.value==0){<?php echo $message; ?>}else{jQuery( '#<?php echo $selector; ?>' ).modal('show'); return true;}" class="btn btn-small">
|
||||
<span class="icon-checkbox-partial" aria-hidden="true"></span>
|
||||
<?php echo $title; ?>
|
||||
</button>
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2010 - 2022 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var string $selector
|
||||
* @var string $title
|
||||
*/
|
||||
?>
|
||||
<button type="button" data-toggle="modal" onclick="jQuery( '#<?php echo $selector; ?>' ).modal('show'); return true;" class="btn btn-small">
|
||||
<span class="icon-checkbox-partial" aria-hidden="true"></span>
|
||||
<?php echo $title; ?>
|
||||
</button>
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $items
|
||||
* @var MPFConfig $config
|
||||
* @var int $categoryId
|
||||
* @var int $Itemid
|
||||
*/
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$clearfixClass = $bootstrapHelper->getClassMapping('clearfix');
|
||||
|
||||
for ($i = 0 , $n = count($items) ; $i < $n ; $i++)
|
||||
{
|
||||
$item = $items[$i];
|
||||
$link = Route::_(OSMembershipHelperRoute::getCategoryRoute($item->id, $Itemid));
|
||||
?>
|
||||
<div class="osm-item-wrapper clearfix">
|
||||
<div class="osm-item-heading-box">
|
||||
<h3 class="osm-item-title">
|
||||
<a href="<?php echo $link; ?>" class="osm-item-title-link">
|
||||
<?php echo $item->title;?>
|
||||
</a>
|
||||
<span class="<?php echo $bootstrapHelper->getClassMapping('badge badge-info'); ?>"><?php echo $item->total_plans ;?> <?php echo $item->total_plans > 1 ? Text::_('OSM_PLANS') : Text::_('OSM_PLAN') ; ?></span>
|
||||
</h3>
|
||||
</div>
|
||||
<?php
|
||||
if($item->description)
|
||||
{
|
||||
?>
|
||||
<div class="osm-item-description <?php echo $clearfixClass; ?>">
|
||||
<?php echo HTMLHelper::_('content.prepare', $item->description);?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -1,219 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $items
|
||||
* @var int $categoryId
|
||||
* @var MPFInput $input
|
||||
* @var MPFConfig $config
|
||||
* @var OSMembershipHelperBootstrap $bootstrapHelper
|
||||
* @var \Joomla\Registry\Registry $params
|
||||
* @var int $Itemid
|
||||
*/
|
||||
|
||||
Factory::getApplication()
|
||||
->getDocument()
|
||||
->getWebAssetManager()
|
||||
->useScript('core');
|
||||
|
||||
$rootUri = Uri::root(true);
|
||||
$minHeight = 130;
|
||||
|
||||
if (isset($params))
|
||||
{
|
||||
$minHeight = (int) $params->get('min_height', 130) ?: 130;
|
||||
}
|
||||
|
||||
OSMembershipHelperJquery::responsiveEqualHeight('.osm-item-description-text', $minHeight);
|
||||
|
||||
$subscribedPlanIds = OSMembershipHelperSubscription::getSubscribedPlans();
|
||||
|
||||
if (isset($input) && $input->getInt('number_columns'))
|
||||
{
|
||||
$numberColumns = $input->getInt('number_columns');
|
||||
}
|
||||
elseif (!empty($config->number_columns))
|
||||
{
|
||||
$numberColumns = $config->number_columns;
|
||||
}
|
||||
else
|
||||
{
|
||||
$numberColumns = 3;
|
||||
}
|
||||
|
||||
if (!isset($categoryId))
|
||||
{
|
||||
$categoryId = 0;
|
||||
}
|
||||
|
||||
$span = intval(12 / $numberColumns);
|
||||
|
||||
$btnClass = $bootstrapHelper->getClassMapping('btn');
|
||||
$btnPrimaryClass = $bootstrapHelper->getClassMapping('btn btn-primary');
|
||||
$imgClass = $bootstrapHelper->getClassMapping('img-polaroid');
|
||||
$spanClass = $bootstrapHelper->getClassMapping('span' . $span);
|
||||
$rowFluidClearfixClass = $bootstrapHelper->getClassMapping('row-fluid clearfix');
|
||||
$clearFixClass = $bootstrapHelper->getClassMapping('clearfix');
|
||||
?>
|
||||
<div class="<?php echo $rowFluidClearfixClass; ?>">
|
||||
<?php
|
||||
$i = 0;
|
||||
$numberPlans = count($items);
|
||||
$defaultItemId = $Itemid;
|
||||
|
||||
foreach ($items as $item)
|
||||
{
|
||||
$i++;
|
||||
|
||||
$Itemid = OSMembershipHelperRoute::getPlanMenuId($item->id, $item->category_id, $defaultItemId);
|
||||
|
||||
if ($item->thumb)
|
||||
{
|
||||
$imgSrc = $rootUri . '/media/com_osmembership/' . $item->thumb;
|
||||
}
|
||||
|
||||
$url = Route::_('index.php?option=com_osmembership&view=plan&catid=' . $item->category_id . '&id=' . $item->id . '&Itemid=' . $Itemid);
|
||||
|
||||
if ($config->use_https)
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid), false, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid));
|
||||
}
|
||||
?>
|
||||
<div class="osm-item-wrapper <?php echo $spanClass; ?>">
|
||||
<div class="osm-item-heading-box <?php echo $clearFixClass; ?>">
|
||||
<h2 class="osm-item-title">
|
||||
<a href="<?php echo $url; ?>" title="<?php echo $item->title; ?>">
|
||||
<?php echo $item->title; ?>
|
||||
</a>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="osm-item-description <?php echo $clearFixClass; ?>">
|
||||
<?php
|
||||
if ($item->thumb)
|
||||
{
|
||||
?>
|
||||
<a href="<?php echo $url; ?>" title="<?php echo $item->title; ?>">
|
||||
<img src="<?php echo $imgSrc; ?>" class="osm-thumb-left <?php echo $imgClass; ?>" />
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (!$item->short_description)
|
||||
{
|
||||
$item->short_description = $item->description;
|
||||
}
|
||||
?>
|
||||
<div class="osm-item-description-text"><?php echo $item->short_description; ?></div>
|
||||
<div class="osm-taskbar <?php echo $clearFixClass; ?>">
|
||||
<ul>
|
||||
<?php
|
||||
$actions = OSMembershipHelperSubscription::getAllowedActions($item);
|
||||
|
||||
if (count($actions))
|
||||
{
|
||||
$language = Factory::getApplication()->getLanguage();
|
||||
|
||||
if (in_array('subscribe', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_SIGNUP_PLAN_' . $item->id))
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP';
|
||||
}
|
||||
|
||||
if ($language->hasKey('OSM_RENEW_PLAN_' . $item->id))
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW';
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $signUpUrl; ?>" class="<?php echo $btnPrimaryClass; ?>">
|
||||
<?php echo in_array($item->id, $subscribedPlanIds) ? Text::_($renewLanguageItem) : Text::_($signUpLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (in_array('upgrade', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_UPGRADE_PLAN_' . $item->id))
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE';
|
||||
}
|
||||
|
||||
if (count($item->upgrade_rules) > 1)
|
||||
{
|
||||
$link = Route::_('index.php?option=com_osmembership&view=upgrademembership&to_plan_id=' . $item->id . '&Itemid=' . OSMembershipHelperRoute::findView('upgrademembership', $Itemid));
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeOptionId = $item->upgrade_rules[0]->id;
|
||||
$link = Route::_('index.php?option=com_osmembership&task=register.process_upgrade_membership&upgrade_option_id=' . $upgradeOptionId . '&Itemid=' . $Itemid);
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $link; ?>" class="<?php echo $btnPrimaryClass; ?>">
|
||||
<?php echo Text::_($upgradeLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($config->hide_details_button))
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $url; ?>" class="<?php echo $btnClass; ?>">
|
||||
<?php echo Text::_('OSM_DETAILS'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if ($i % $numberColumns == 0 && $i < $numberPlans)
|
||||
{
|
||||
?>
|
||||
</div>
|
||||
<div class="<?php echo $rowFluidClearfixClass; ?>">
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
@@ -1,231 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $items
|
||||
* @var int $categoryId
|
||||
* @var MPFInput $input
|
||||
* @var MPFConfig $config
|
||||
* @var OSMembershipHelperBootstrap $bootstrapHelper
|
||||
* @var \Joomla\Registry\Registry $params
|
||||
* @var int $Itemid
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
$rootUri = Uri::root(true);
|
||||
|
||||
$subscribedPlanIds = OSMembershipHelperSubscription::getSubscribedPlans();
|
||||
|
||||
if (!isset($categoryId))
|
||||
{
|
||||
$categoryId = 0;
|
||||
}
|
||||
|
||||
$rowFluidClass = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$imgClass = $bootstrapHelper->getClassMapping('img-polaroid');
|
||||
$btnClass = $bootstrapHelper->getClassMapping('btn');
|
||||
$btnPrimaryClass = $bootstrapHelper->getClassMapping('btn btn-primary');
|
||||
$clearfixClass = $bootstrapHelper->getClassMapping('clearfix');
|
||||
|
||||
$defaultItemId = $Itemid;
|
||||
|
||||
if (isset($params))
|
||||
{
|
||||
$showPlanInformation = $params->get('show_plan_information', 1);
|
||||
$planInformationPosition = $params->get('plan_information_position', 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
$showPlanInformation = 1;
|
||||
$planInformationPosition = 0;
|
||||
}
|
||||
|
||||
if ($showPlanInformation && $planInformationPosition == 0)
|
||||
{
|
||||
$leftClass = $bootstrapHelper->getClassMapping('span7');
|
||||
$rightClass = $bootstrapHelper->getClassMapping('span5');
|
||||
}
|
||||
else
|
||||
{
|
||||
$leftClass = $bootstrapHelper->getClassMapping('clearfix');
|
||||
$rightClass = $bootstrapHelper->getClassMapping('clearfix');
|
||||
}
|
||||
|
||||
for ($i = 0 , $n = count($items) ; $i < $n ; $i++)
|
||||
{
|
||||
$item = $items[$i];
|
||||
$Itemid = OSMembershipHelperRoute::getPlanMenuId($item->id, $item->category_id, $defaultItemId);
|
||||
|
||||
if ($item->thumb)
|
||||
{
|
||||
$imgSrc = $rootUri . '/media/com_osmembership/' . $item->thumb;
|
||||
}
|
||||
|
||||
if ($item->category_id)
|
||||
{
|
||||
$url = Route::_('index.php?option=com_osmembership&view=plan&catid=' . $item->category_id . '&id=' . $item->id . '&Itemid=' . $Itemid);
|
||||
}
|
||||
else
|
||||
{
|
||||
$url = Route::_('index.php?option=com_osmembership&view=plan&id=' . $item->id . '&Itemid=' . $Itemid);
|
||||
}
|
||||
|
||||
if ($config->use_https)
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid), false, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid));
|
||||
}
|
||||
?>
|
||||
<div class="osm-item-wrapper <?php echo $clearfixClass; ?>">
|
||||
<div class="osm-item-heading-box <?php echo $clearfixClass; ?>">
|
||||
<h2 class="osm-item-title">
|
||||
<a href="<?php echo $url; ?>" title="<?php echo $item->title; ?>">
|
||||
<?php echo $item->title; ?>
|
||||
</a>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="osm-item-description <?php echo $clearfixClass; ?>">
|
||||
<div class="<?php echo $rowFluidClass; ?>">
|
||||
<?php
|
||||
if ($showPlanInformation && $planInformationPosition == 1)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $rightClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/plan_information.php', ['item' => $item]); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="osm-description-details <?php echo $leftClass; ?>">
|
||||
<?php
|
||||
if ($item->thumb)
|
||||
{
|
||||
?>
|
||||
<img src="<?php echo $imgSrc; ?>" alt="<?php echo $item->title; ?>" class="osm-thumb-left <?php echo $imgClass; ?>"/>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($item->short_description)
|
||||
{
|
||||
echo $item->short_description;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $item->description;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
if ($showPlanInformation && in_array($planInformationPosition, [0, 2]))
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $rightClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/plan_information.php', ['item' => $item]); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="osm-taskbar <?php echo $clearfixClass; ?>">
|
||||
<ul>
|
||||
<?php
|
||||
$actions = OSMembershipHelperSubscription::getAllowedActions($item);
|
||||
|
||||
if (count($actions))
|
||||
{
|
||||
$language = Factory::getApplication()->getLanguage();
|
||||
|
||||
if (in_array('subscribe', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_SIGNUP_PLAN_' . $item->id))
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP';
|
||||
}
|
||||
|
||||
if ($language->hasKey('OSM_RENEW_PLAN_' . $item->id))
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW';
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $signUpUrl; ?>" class="<?php echo $btnPrimaryClass; ?>">
|
||||
<?php echo in_array($item->id, $subscribedPlanIds) ? Text::_($renewLanguageItem) : Text::_($signUpLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (in_array('upgrade', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_UPGRADE_PLAN_' . $item->id))
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE';
|
||||
}
|
||||
|
||||
if (count($item->upgrade_rules) > 1)
|
||||
{
|
||||
$link = Route::_('index.php?option=com_osmembership&view=upgrademembership&to_plan_id=' . $item->id . '&Itemid=' . OSMembershipHelperRoute::findView('upgrademembership', $Itemid));
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeOptionId = $item->upgrade_rules[0]->id;
|
||||
$link = Route::_('index.php?option=com_osmembership&task=register.process_upgrade_membership&upgrade_option_id=' . $upgradeOptionId . '&Itemid=' . $Itemid);
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $link; ?>" class="<?php echo $btnPrimaryClass; ?>">
|
||||
<?php echo Text::_($upgradeLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($config->hide_details_button))
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $url; ?>" class="<?php echo $btnClass; ?>">
|
||||
<?php echo Text::_('OSM_DETAILS'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $rowMembers
|
||||
*/
|
||||
|
||||
$names = [];
|
||||
|
||||
foreach ($rowMembers as $rowMember)
|
||||
{
|
||||
$names[] = trim($rowMember->first_name . ' ' . $rowMember->last_name);
|
||||
}
|
||||
|
||||
echo implode("\r\n", $names);
|
||||
|
||||
@@ -1,118 +0,0 @@
|
||||
<!--
|
||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||
*
|
||||
* This file is part of a Moko Consulting project.
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<!--FILE INFORMATION
|
||||
* DEFGROUP: Joomla.Site
|
||||
* INGROUP: Templates.Moko-Cassiopeia
|
||||
* FILE: index.html
|
||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
||||
-->
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Redirecting…</title>
|
||||
|
||||
<!-- Search engines: do not index this placeholder redirect page -->
|
||||
<meta name="robots" content="noindex, nofollow, noarchive" />
|
||||
|
||||
<!-- Instant redirect fallback even if JavaScript is disabled -->
|
||||
<meta http-equiv="refresh" content="0; url=/" />
|
||||
|
||||
<!-- Canonical root reference -->
|
||||
<link rel="canonical" href="/" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<script>
|
||||
/**
|
||||
* @defgroup Dolibarr
|
||||
* @file index.html (embedded script)
|
||||
* @version 1.0.0
|
||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
||||
* @details This script computes the absolute root URL using `location.origin` and
|
||||
* forwards the user immediately. It prevents leaving the protected folder
|
||||
* in the browser history by default.
|
||||
*
|
||||
* @section VARIABLES
|
||||
* @var {Object} opts Configuration options for the redirect behavior.
|
||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
||||
*
|
||||
* @section OPTIONS
|
||||
* - opts.fallbackPath: default "/" (root path)
|
||||
* - opts.delayMs: default 0 (immediate)
|
||||
* - opts.behavior: one of
|
||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
||||
*/
|
||||
(function redirectToRoot() {
|
||||
// Configuration object with safe defaults.
|
||||
var opts = {
|
||||
fallbackPath: "/", // string: fallback destination if origin is unavailable
|
||||
delayMs: 0, // number: delay before redirect in ms (0 = immediate)
|
||||
behavior: "replace" // enum: "replace" | "assign"
|
||||
};
|
||||
|
||||
// Determine absolute origin in all mainstream browsers.
|
||||
var origin = (typeof location.origin === "string" && location.origin)
|
||||
|| (location.protocol + "//" + location.host);
|
||||
|
||||
// Final destination: absolute root of the current site, or fallback path.
|
||||
var destination = origin ? origin + "/" : opts.fallbackPath;
|
||||
|
||||
function go() {
|
||||
if (opts.behavior === "assign") {
|
||||
location.assign(destination);
|
||||
} else {
|
||||
location.replace(destination);
|
||||
}
|
||||
}
|
||||
|
||||
// Execute redirect, optionally after a short delay.
|
||||
if (opts.delayMs > 0) {
|
||||
setTimeout(go, opts.delayMs);
|
||||
} else {
|
||||
go();
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
|
||||
<!--
|
||||
Secondary meta-refresh for no-JS environments is already set above.
|
||||
Some very old crawlers may ignore JS; the meta refresh ensures coverage.
|
||||
-->
|
||||
|
||||
<noscript>
|
||||
<!-- Extra defense-in-depth: if JS is disabled, meta refresh (above) handles redirect. -->
|
||||
<style>
|
||||
html, body { height:100%; }
|
||||
body { display:flex; align-items:center; justify-content:center; margin:0; font: 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
|
||||
.msg { opacity: .75; text-align: center; }
|
||||
</style>
|
||||
</noscript>
|
||||
</head>
|
||||
<body>
|
||||
<div class="msg">Redirecting to the site root… If you are not redirected, <a href="/">click here</a>.</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,36 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var string $redirectHeading
|
||||
* @var string $url
|
||||
* @var bool $newWindow
|
||||
* @var array $data
|
||||
*/
|
||||
?>
|
||||
<div class="payment-heading"><?php echo $redirectHeading; ?></div>
|
||||
<form method="post" action="<?php echo $url; ?>" name="payment_form"
|
||||
id="payment_form"<?php if ($newWindow) echo ' target="_blank"'; ?>>
|
||||
<?php
|
||||
foreach ($data as $key => $val)
|
||||
{
|
||||
echo '<input type="hidden" name="' . $key . '" value="' . $val . '" />';
|
||||
echo "\n";
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
document.payment_form.submit();
|
||||
</script>
|
||||
</form>
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var stdClass $item
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Form\Form;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
try
|
||||
{
|
||||
$form = Form::getInstance('plan_fields', JPATH_ROOT . '/components/com_osmembership/fields.xml', [], false, '//config');
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
foreach ($form->getFieldset('basic') as $field)
|
||||
{
|
||||
if ($field->getAttribute('hide'))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
?>
|
||||
<tr class="osm-plan-property">
|
||||
<td class="osm-plan-property-label">
|
||||
<?php echo Text::_($field->getAttribute('label')); ?>:
|
||||
</td>
|
||||
<td class="osm-plan-property-value">
|
||||
<?php echo $item->fieldsData->get($field->getAttribute('name')); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@@ -1,129 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var stdClass $item
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$config = OSMembershipHelper::getConfig();
|
||||
$symbol = $item->currency_symbol ?: $item->currency;
|
||||
?>
|
||||
<table class="<?php echo $bootstrapHelper->getClassMapping('table table-striped table-bordered'); ?>">
|
||||
<?php
|
||||
if ($item->setup_fee > 0)
|
||||
{
|
||||
?>
|
||||
<tr class="osm-plan-property">
|
||||
<td class="osm-plan-property-label">
|
||||
<?php echo Text::_('OSM_SETUP_FEE'); ?>:
|
||||
</td>
|
||||
<td class="osm-plan-property-value">
|
||||
<?php echo OSMembershipHelper::formatCurrency($item->setup_fee, $config, $symbol); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($item->recurring_subscription && $item->trial_duration)
|
||||
{
|
||||
?>
|
||||
<tr class="osm-plan-property">
|
||||
<td class="osm-plan-property-label">
|
||||
<?php echo Text::_('OSM_TRIAL_DURATION'); ?>:
|
||||
</td>
|
||||
<td class="osm-plan-property-value">
|
||||
<?php
|
||||
if ($item->lifetime_membership)
|
||||
{
|
||||
echo Text::_('OSM_LIFETIME');
|
||||
}
|
||||
else
|
||||
{
|
||||
echo OSMembershipHelperSubscription::getDurationText($item->trial_duration, $item->trial_duration_unit);
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="osm-plan-property">
|
||||
<td class="osm-plan-property-label">
|
||||
<?php echo Text::_('OSM_TRIAL_PRICE'); ?>:
|
||||
</td>
|
||||
<td class="osm-plan-property-value">
|
||||
<?php
|
||||
if ($item->trial_amount > 0)
|
||||
{
|
||||
echo OSMembershipHelper::formatCurrency($item->trial_amount, $config, $symbol);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo Text::_('OSM_FREE');
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (!((int) $item->expired_date))
|
||||
{
|
||||
?>
|
||||
<tr class="osm-plan-property">
|
||||
<td class="osm-plan-property-label">
|
||||
<?php echo Text::_('OSM_DURATION'); ?>:
|
||||
</td>
|
||||
<td class="osm-plan-property-value">
|
||||
<?php
|
||||
if ($item->lifetime_membership)
|
||||
{
|
||||
echo Text::_('OSM_LIFETIME');
|
||||
}
|
||||
else
|
||||
{
|
||||
echo OSMembershipHelperSubscription::getDurationText($item->subscription_length, $item->subscription_length_unit);
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<tr class="osm-plan-property">
|
||||
<td class="osm-plan-property-label">
|
||||
<?php echo Text::_('OSM_PRICE'); ?>:
|
||||
</td>
|
||||
<td class="osm-plan-property-value">
|
||||
<?php
|
||||
if ($item->price > 0)
|
||||
{
|
||||
echo OSMembershipHelper::formatCurrency($item->price, $config, $symbol);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo Text::_('OSM_FREE');
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
if (file_exists(JPATH_ROOT . '/components/com_osmembership/fields.xml')
|
||||
&& filesize(JPATH_ROOT . '/components/com_osmembership/fields.xml'))
|
||||
{
|
||||
echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/plan_custom_fields.php', ['item' => $item]);
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var stdClass $item
|
||||
*/
|
||||
|
||||
$config = OSMembershipHelper::getConfig();
|
||||
|
||||
$dec_point = $config->dec_point ?? '.';
|
||||
$thousands_sep = $config->thousands_sep ?? ',';
|
||||
|
||||
if ($item->lifetime_membership)
|
||||
{
|
||||
$subscriptionLengthText = Text::_('OSM_LIFETIME');
|
||||
}
|
||||
else
|
||||
{
|
||||
$subscriptionLengthText = OSMembershipHelperSubscription::getDurationText($item->subscription_length, $item->subscription_length_unit, false);
|
||||
}
|
||||
|
||||
if ($item->price > 0)
|
||||
{
|
||||
$priceParts = explode('.', $item->price);
|
||||
|
||||
if ($priceParts[1] == '00' || $config->decimals === '0')
|
||||
{
|
||||
$numberDecimals = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$numberDecimals = 2;
|
||||
}
|
||||
|
||||
$symbol = $item->currency_symbol ?: $item->currency;
|
||||
|
||||
if (!$symbol)
|
||||
{
|
||||
$symbol = $config->currency_symbol;
|
||||
}
|
||||
|
||||
if ($config->currency_position == 0)
|
||||
{
|
||||
echo $symbol . number_format($item->price, $numberDecimals, $dec_point, $thousands_sep) . ($subscriptionLengthText ? "<sub>/$subscriptionLengthText</sub>" : '');
|
||||
}
|
||||
else
|
||||
{
|
||||
echo number_format($item->price, $numberDecimals, $dec_point, $thousands_sep) . $symbol . ($subscriptionLengthText ? "<sub>/$subscriptionLengthText</sub>" : '');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo Text::_('OSM_FREE') . ($subscriptionLengthText ? "<sub> /$subscriptionLengthText</sub>" : '');
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,237 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $items
|
||||
* @var MPFInput $input
|
||||
* @var MPFConfig $config
|
||||
* @var int $Itemid
|
||||
* @var int $categoryId
|
||||
* @var OSMembershipHelperBootstrap $bootstrapHelper
|
||||
*/
|
||||
|
||||
$rootUri = Uri::root(true);
|
||||
|
||||
$subscribedPlanIds = OSMembershipHelperSubscription::getSubscribedPlans();
|
||||
|
||||
if (empty($params))
|
||||
{
|
||||
$params = Factory::getApplication()->getParams();
|
||||
}
|
||||
|
||||
if (isset($input) && $input->getInt('recommended_plan_id'))
|
||||
{
|
||||
$recommendedPlanId = $input->getInt('recommended_plan_id');
|
||||
}
|
||||
else
|
||||
{
|
||||
$recommendedPlanId = (int) $params->get('recommended_campaign_id');
|
||||
}
|
||||
|
||||
$standardPlanBackgroundColor = $params->get('standard_plan_color', '#00B69C');
|
||||
$recommendedPlanBackgroundColor = $params->get('recommended_plan_color', '#bF75500');
|
||||
$showDetailsButton = $params->get('show_details_button', 0);
|
||||
|
||||
if (isset($input) && $input->getInt('number_columns'))
|
||||
{
|
||||
$numberColumns = $input->getInt('number_columns');
|
||||
}
|
||||
elseif (isset($config->number_columns))
|
||||
{
|
||||
$numberColumns = $config->number_columns;
|
||||
}
|
||||
else
|
||||
{
|
||||
$numberColumns = 3;
|
||||
}
|
||||
|
||||
$numberColumns = min($numberColumns, 5);
|
||||
|
||||
if (!isset($categoryId))
|
||||
{
|
||||
$categoryId = 0;
|
||||
}
|
||||
|
||||
$span = intval(12 / $numberColumns);
|
||||
$imgClass = $bootstrapHelper->getClassMapping('img-polaroid');
|
||||
$spanClass = $bootstrapHelper->getClassMapping('span' . $span);
|
||||
|
||||
$i = 0;
|
||||
$numberPlans = count($items);
|
||||
$defaultItemId = $Itemid;
|
||||
$rootUri = Uri::root(true);
|
||||
|
||||
foreach ($items as $item)
|
||||
{
|
||||
$Itemid = OSMembershipHelperRoute::getPlanMenuId($item->id, $item->category_id, $defaultItemId);
|
||||
|
||||
if ($item->thumb)
|
||||
{
|
||||
$imgSrc = $rootUri . '/media/com_osmembership/' . $item->thumb;
|
||||
}
|
||||
|
||||
$url = Route::_('index.php?option=com_osmembership&view=plan&catid=' . $item->category_id . '&id=' . $item->id . '&Itemid=' . $Itemid);
|
||||
|
||||
if ($config->use_https)
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid), false, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid));
|
||||
}
|
||||
|
||||
if (!$item->short_description)
|
||||
{
|
||||
$item->short_description = $item->description;
|
||||
}
|
||||
|
||||
if ($item->id == $recommendedPlanId)
|
||||
{
|
||||
$recommended = true;
|
||||
$backgroundColor = $recommendedPlanBackgroundColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
$recommended = false;
|
||||
$backgroundColor = $standardPlanBackgroundColor;
|
||||
}
|
||||
|
||||
if ($i % $numberColumns == 0)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $bootstrapHelper->getClassMapping('row-fluid clearfix'); ?> osm-pricing-table-circle">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="<?php echo $spanClass; ?>">
|
||||
<div class="osm-plan osm-plan-<?php echo $item->id; ?>">
|
||||
<div class="osm-plan-header" style="background-color: <?php echo $backgroundColor; ?>">
|
||||
<h2 class="osm-plan-title">
|
||||
<?php echo $item->title; ?>
|
||||
</h2>
|
||||
<div class="osm-plan-price" style="background-color: <?php echo $backgroundColor; ?>">
|
||||
<p class="price">
|
||||
<?php echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/priceduration.php', ['item' => $item]); ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="osm-plan-short-description">
|
||||
<?php echo $item->short_description;?>
|
||||
</div>
|
||||
<ul class="osm-signup-container">
|
||||
<?php
|
||||
$actions = OSMembershipHelperSubscription::getAllowedActions($item);
|
||||
|
||||
if(count($actions))
|
||||
{
|
||||
$language = Factory::getApplication()->getLanguage();
|
||||
|
||||
if (in_array('subscribe', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_SIGNUP_PLAN_' . $item->id))
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP';
|
||||
}
|
||||
|
||||
if ($language->hasKey('OSM_RENEW_PLAN_' . $item->id))
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW';
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $signUpUrl; ?>" class="btn-signup" style="background-color: <?php echo $backgroundColor; ?>">
|
||||
<?php echo in_array($item->id, $subscribedPlanIds) ? Text::_($renewLanguageItem) : Text::_($signUpLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (in_array('upgrade', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_UPGRADE_PLAN_' . $item->id))
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE';
|
||||
}
|
||||
|
||||
if (count($item->upgrade_rules) > 1)
|
||||
{
|
||||
$link = Route::_('index.php?option=com_osmembership&view=upgrademembership&to_plan_id=' . $item->id . '&Itemid=' . OSMembershipHelperRoute::findView('upgrademembership', $Itemid));
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeOptionId = $item->upgrade_rules[0]->id;
|
||||
$link = Route::_('index.php?option=com_osmembership&task=register.process_upgrade_membership&upgrade_option_id=' . $upgradeOptionId . '&Itemid=' . $Itemid);
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $link; ?>" class="btn-signup" style="background-color: <?php echo $backgroundColor; ?>">
|
||||
<?php echo Text::_($upgradeLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
if ($showDetailsButton)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $url; ?>" class="btn-signup" style="background-color: <?php echo $backgroundColor; ?>">
|
||||
<?php echo Text::_('OSM_DETAILS'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if (($i + 1) % $numberColumns == 0)
|
||||
{
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
if ($i % $numberColumns != 0)
|
||||
{
|
||||
echo '</div>' ;
|
||||
}
|
||||
?>
|
||||
<style type="text/css">
|
||||
.osm-pricing-table-circle .osm-plan:hover .osm-plan-price {
|
||||
background-color: <?php echo $recommendedPlanBackgroundColor; ?>!important;
|
||||
}
|
||||
</style>
|
||||
@@ -1,233 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $items
|
||||
* @var MPFInput $input
|
||||
* @var MPFConfig $config
|
||||
* @var int $Itemid
|
||||
* @var int $categoryId
|
||||
* @var OSMembershipHelperBootstrap $bootstrapHelper
|
||||
*/
|
||||
|
||||
// Load equals height script
|
||||
$rootUri = Uri::root(true);
|
||||
|
||||
$subscribedPlanIds = OSMembershipHelperSubscription::getSubscribedPlans();
|
||||
|
||||
if (empty($params))
|
||||
{
|
||||
$params = Factory::getApplication()->getParams();
|
||||
}
|
||||
|
||||
if (isset($input) && $input->getInt('recommended_plan_id'))
|
||||
{
|
||||
$recommendedPlanId = $input->getInt('recommended_plan_id');
|
||||
}
|
||||
else
|
||||
{
|
||||
$recommendedPlanId = (int) $params->get('recommended_campaign_id');
|
||||
}
|
||||
|
||||
$standardPlanBackgroundColor = $params->get('standard_plan_color', '#00B69C');
|
||||
$recommendedPlanBackgroundColor = $params->get('recommended_plan_color', '#F75500');
|
||||
$showDetailsButton = $params->get('show_details_button', 0);
|
||||
|
||||
if (isset($input) && $input->getInt('number_columns'))
|
||||
{
|
||||
$numberColumns = $input->getInt('number_columns');
|
||||
}
|
||||
elseif (isset($config->number_columns))
|
||||
{
|
||||
$numberColumns = $config->number_columns;
|
||||
}
|
||||
else
|
||||
{
|
||||
$numberColumns = 3;
|
||||
}
|
||||
|
||||
$numberColumns = min($numberColumns, 5);
|
||||
|
||||
if (!isset($categoryId))
|
||||
{
|
||||
$categoryId = 0;
|
||||
}
|
||||
|
||||
$span = intval(12 / $numberColumns);
|
||||
$imgClass = $bootstrapHelper->getClassMapping('img-polaroid');
|
||||
$spanClass = $bootstrapHelper->getClassMapping('span' . $span);
|
||||
|
||||
$i = 0;
|
||||
$numberPlans = count($items);
|
||||
$defaultItemId = $Itemid;
|
||||
$rootUri = Uri::root(true);
|
||||
|
||||
foreach ($items as $item)
|
||||
{
|
||||
$Itemid = OSMembershipHelperRoute::getPlanMenuId($item->id, $item->category_id, $defaultItemId);
|
||||
|
||||
if ($item->thumb)
|
||||
{
|
||||
$imgSrc = $rootUri . '/media/com_osmembership/' . $item->thumb;
|
||||
}
|
||||
|
||||
$url = Route::_('index.php?option=com_osmembership&view=plan&catid=' . $item->category_id . '&id=' . $item->id . '&Itemid=' . $Itemid);
|
||||
|
||||
if ($config->use_https)
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid), false, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid));
|
||||
}
|
||||
|
||||
if (!$item->short_description)
|
||||
{
|
||||
$item->short_description = $item->description;
|
||||
}
|
||||
|
||||
if ($item->id == $recommendedPlanId)
|
||||
{
|
||||
$recommended = true;
|
||||
$backgroundColor = $recommendedPlanBackgroundColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
$recommended = false;
|
||||
$backgroundColor = $standardPlanBackgroundColor;
|
||||
}
|
||||
|
||||
if ($i % $numberColumns == 0)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $bootstrapHelper->getClassMapping('row-fluid clearfix'); ?> osm-pricing-table-flat">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="<?php echo $spanClass; ?>">
|
||||
<div class="osm-plan osm-plan-<?php echo $item->id; ?>" style="background-color: <?php echo $backgroundColor; ?>">
|
||||
<div class="osm-plan-header">
|
||||
<h2 class="osm-plan-title">
|
||||
<?php echo $item->title; ?>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="osm-plan-price">
|
||||
<p class="price">
|
||||
<?php echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/priceduration.php', ['item' => $item]); ?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="osm-plan-short-description">
|
||||
<?php echo $item->short_description;?>
|
||||
</div>
|
||||
<ul class="osm-signup-container">
|
||||
<?php
|
||||
$actions = OSMembershipHelperSubscription::getAllowedActions($item);
|
||||
|
||||
if (count($actions))
|
||||
{
|
||||
$language = Factory::getApplication()->getLanguage();
|
||||
|
||||
if (in_array('subscribe', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_SIGNUP_PLAN_' . $item->id))
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP';
|
||||
}
|
||||
|
||||
if ($language->hasKey('OSM_RENEW_PLAN_' . $item->id))
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW';
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $signUpUrl; ?>" class="btn-signup">
|
||||
<?php echo in_array($item->id, $subscribedPlanIds) ? Text::_($renewLanguageItem) : Text::_($signUpLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (in_array('upgrade', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_UPGRADE_PLAN_' . $item->id))
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE';
|
||||
}
|
||||
|
||||
if (count($item->upgrade_rules) > 1)
|
||||
{
|
||||
$link = Route::_('index.php?option=com_osmembership&view=upgrademembership&to_plan_id=' . $item->id . '&Itemid=' . OSMembershipHelperRoute::findView('upgrademembership', $Itemid));
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeOptionId = $item->upgrade_rules[0]->id;
|
||||
$link = Route::_('index.php?option=com_osmembership&task=register.process_upgrade_membership&upgrade_option_id=' . $upgradeOptionId . '&Itemid=' . $Itemid);
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $link; ?>" class="btn-signup">
|
||||
<?php echo Text::_($upgradeLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
if ($showDetailsButton)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $url; ?>" class="btn-signup oms-btn-details">
|
||||
<?php echo Text::_('OSM_DETAILS'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if (($i + 1) % $numberColumns == 0)
|
||||
{
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
if ($i % $numberColumns != 0)
|
||||
{
|
||||
echo '</div>' ;
|
||||
}
|
||||
|
||||
@@ -1,261 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $items
|
||||
* @var MPFInput $input
|
||||
* @var MPFConfig $config
|
||||
* @var int $Itemid
|
||||
* @var int $categoryId
|
||||
* @var OSMembershipHelperBootstrap $bootstrapHelper
|
||||
*/
|
||||
|
||||
$subscribedPlanIds = OSMembershipHelperSubscription::getSubscribedPlans();
|
||||
|
||||
if (empty($params))
|
||||
{
|
||||
$params = Factory::getApplication()->getParams();
|
||||
}
|
||||
|
||||
// Background color settings
|
||||
$badgeBgColor = $params->get('recommended_badge_background_color');
|
||||
$headerBgColor = $params->get('header_background_color');
|
||||
$priceBgColor = $params->get('price_background_color');
|
||||
$recommendedPriceBgColor = $params->get('recommended_plan_price_background_color');
|
||||
|
||||
if (isset($input) && $input->getInt('recommended_plan_id'))
|
||||
{
|
||||
$recommendedPlanId = $input->getInt('recommended_plan_id');
|
||||
}
|
||||
else
|
||||
{
|
||||
$recommendedPlanId = (int) $params->get('recommended_campaign_id');
|
||||
}
|
||||
|
||||
$showDetailsButton = $params->get('show_details_button', 0);
|
||||
|
||||
if (isset($input) && $input->getInt('number_columns'))
|
||||
{
|
||||
$numberColumns = $input->getInt('number_columns');
|
||||
}
|
||||
elseif (isset($config->number_columns))
|
||||
{
|
||||
$numberColumns = $config->number_columns ;
|
||||
}
|
||||
else
|
||||
{
|
||||
$numberColumns = 3 ;
|
||||
}
|
||||
|
||||
$numberColumns = min($numberColumns, 4);
|
||||
|
||||
if (!isset($categoryId))
|
||||
{
|
||||
$categoryId = 0;
|
||||
}
|
||||
|
||||
$span = intval(12 / $numberColumns);
|
||||
|
||||
$btnClass = $bootstrapHelper->getClassMapping('btn');
|
||||
$btnPrimaryClass = $bootstrapHelper->getClassMapping('btn btn-primary');
|
||||
$imgClass = $bootstrapHelper->getClassMapping('img-polaroid');
|
||||
$spanClass = $bootstrapHelper->getClassMapping('span' . $span);
|
||||
|
||||
$rootUri = Uri::root(true);
|
||||
$i = 0;
|
||||
$numberPlans = count($items);
|
||||
$defaultItemId = $Itemid;
|
||||
|
||||
foreach ($items as $item)
|
||||
{
|
||||
$Itemid = OSMembershipHelperRoute::getPlanMenuId($item->id, $item->category_id, $defaultItemId);
|
||||
|
||||
if ($item->thumb)
|
||||
{
|
||||
$imgSrc = $rootUri . '/media/com_osmembership/' . $item->thumb;
|
||||
}
|
||||
|
||||
$url = Route::_('index.php?option=com_osmembership&view=plan&catid=' . $item->category_id . '&id=' . $item->id . '&Itemid=' . $Itemid);
|
||||
|
||||
if ($config->use_https)
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid), false, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid));
|
||||
}
|
||||
|
||||
if (!$item->short_description)
|
||||
{
|
||||
$item->short_description = $item->description;
|
||||
}
|
||||
|
||||
if ($item->id == $recommendedPlanId)
|
||||
{
|
||||
$recommended = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$recommended = false;
|
||||
}
|
||||
|
||||
if ($recommended && $recommendedPriceBgColor)
|
||||
{
|
||||
$planPriceBackgroundColor = $recommendedPriceBgColor;
|
||||
}
|
||||
elseif ($priceBgColor)
|
||||
{
|
||||
$planPriceBackgroundColor = $priceBgColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
$planPriceBackgroundColor = '';
|
||||
}
|
||||
|
||||
if ($i % $numberColumns == 0)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $bootstrapHelper->getClassMapping('row-fluid clearfix'); ?> osm-pricing-table">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="<?php echo $spanClass; ?>">
|
||||
<div class="osm-plan<?php if ($recommended) echo ' osm-plan-recommended'; ?> osm-plan-<?php echo $item->id; ?>">
|
||||
<?php
|
||||
if ($recommended)
|
||||
{
|
||||
?>
|
||||
<p class="plan-recommended"<?php if ($badgeBgColor) echo ' style=" background-color:' . $badgeBgColor . '";'; ?>><?php echo Text::_('OSM_RECOMMENDED'); ?></p>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="osm-plan-header"<?php if ($headerBgColor) echo ' style=" background-color:' . $headerBgColor . '";'; ?>>
|
||||
<h2 class="osm-plan-title">
|
||||
<?php echo $item->title; ?>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="osm-plan-price"<?php if ($planPriceBackgroundColor) echo ' style=" background-color:' . $planPriceBackgroundColor . '";'; ?>>
|
||||
<h2>
|
||||
<p class="price">
|
||||
<?php echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/priceduration.php', ['item' => $item]); ?>
|
||||
</p>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="osm-plan-short-description">
|
||||
<?php echo $item->short_description;?>
|
||||
</div>
|
||||
<?php
|
||||
$actions = OSMembershipHelperSubscription::getAllowedActions($item);
|
||||
|
||||
if (count($actions) || $showDetailsButton)
|
||||
{
|
||||
$language = Factory::getApplication()->getLanguage();
|
||||
?>
|
||||
<ul class="osm-signup-container">
|
||||
<?php
|
||||
if (in_array('subscribe', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_SIGNUP_PLAN_' . $item->id))
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP';
|
||||
}
|
||||
|
||||
if ($language->hasKey('OSM_RENEW_PLAN_' . $item->id))
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW';
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $signUpUrl; ?>" class="<?php echo $btnPrimaryClass; ?> btn-singup">
|
||||
<?php echo in_array($item->id, $subscribedPlanIds) ? Text::_($renewLanguageItem) : Text::_($signUpLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (in_array('upgrade', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_UPGRADE_PLAN_' . $item->id))
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE';
|
||||
}
|
||||
|
||||
if (count($item->upgrade_rules) > 1)
|
||||
{
|
||||
$link = Route::_('index.php?option=com_osmembership&view=upgrademembership&to_plan_id=' . $item->id . '&Itemid=' . OSMembershipHelperRoute::findView('upgrademembership', $Itemid));
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeOptionId = $item->upgrade_rules[0]->id;
|
||||
$link = Route::_('index.php?option=com_osmembership&task=register.process_upgrade_membership&upgrade_option_id=' . $upgradeOptionId . '&Itemid=' . $Itemid);
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $link; ?>" class="<?php echo $btnPrimaryClass; ?> btn-singup">
|
||||
<?php echo Text::_($upgradeLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($showDetailsButton)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $url; ?>" class="<?php echo $btnClass; ?>">
|
||||
<?php echo Text::_('OSM_DETAILS'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if (($i + 1) % $numberColumns == 0)
|
||||
{
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
if ($i % $numberColumns != 0)
|
||||
{
|
||||
echo '</div>' ;
|
||||
}
|
||||
|
||||
@@ -1,129 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
?>
|
||||
<ul class="osm-renew-options">
|
||||
<?php
|
||||
$userId = Factory::getApplication()->getIdentity()->id;
|
||||
$renewOptionCount = 0;
|
||||
$fieldSuffix = OSMembershipHelper::getFieldSuffix();
|
||||
|
||||
foreach ($this->planIds as $planId)
|
||||
{
|
||||
$plan = $this->plans[$planId];
|
||||
$taxRate = 0;
|
||||
|
||||
if ($this->config->show_price_including_tax && !$this->config->setup_price_including_tax)
|
||||
{
|
||||
$taxRate = OSMembershipHelper::calculateMaxTaxRate($planId);
|
||||
}
|
||||
|
||||
$symbol = $plan->currency_symbol ?: $plan->currency;
|
||||
$renewOptions = $this->renewOptions[$planId] ?? [];
|
||||
|
||||
if (count($renewOptions))
|
||||
{
|
||||
foreach ($renewOptions as $renewOption)
|
||||
{
|
||||
$checked = '';
|
||||
|
||||
if ($renewOptionCount == 0)
|
||||
{
|
||||
$checked = ' checked="checked" ';
|
||||
}
|
||||
|
||||
$renewOptionCount++;
|
||||
$renewOptionLengthText = OSMembershipHelperSubscription::getDurationText($renewOption->renew_option_length, $renewOption->renew_option_length_unit);
|
||||
|
||||
$renewOptionText = Text::sprintf('OSM_RENEW_OPTION_TEXT', $plan->title, $renewOptionLengthText, OSMembershipHelper::formatCurrency($renewOption->price * (1 + $taxRate / 100), $this->config, $symbol));
|
||||
|
||||
if (strpos($renewOptionText, '[EXPIRED_DATE]'))
|
||||
{
|
||||
$expiredDate = OSMembershipHelperSubscription::getPlanExpiredDate($planId);
|
||||
|
||||
if ($expiredDate)
|
||||
{
|
||||
$expiredDate = HTMLHelper::_('date', $expiredDate, $this->config->date_format);
|
||||
}
|
||||
|
||||
$renewOptionText = str_replace('[EXPIRED_DATE]', $expiredDate, $renewOptionText);
|
||||
}
|
||||
?>
|
||||
<li class="osm-renew-option">
|
||||
<input type="radio" class="validate[required]<?php echo $this->bootstrapHelper->getFrameworkClass('uk-radio', 1); ?>" id="renew_option_id_<?php echo $renewOptionCount; ?>" name="renew_option_id" value="<?php echo $planId . '|' . $renewOption->id; ?>" <?php echo $checked; ?> />
|
||||
<label for="renew_option_id_<?php echo $renewOptionCount; ?>"><?php echo $renewOptionText; ?></label>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$checked = '';
|
||||
|
||||
if ($renewOptionCount == 0)
|
||||
{
|
||||
$checked = ' checked="checked" ';
|
||||
}
|
||||
|
||||
$renewOptionCount++;
|
||||
$subscriptionLengthText = OSMembershipHelperSubscription::getDurationText($plan->subscription_length, $plan->subscription_length_unit);
|
||||
|
||||
$renewalDiscountRule = OSMembershipHelperSubscription::getRenewalDiscount($userId, $planId);
|
||||
|
||||
if ($renewalDiscountRule)
|
||||
{
|
||||
if ($renewalDiscountRule->discount_type == 0)
|
||||
{
|
||||
$plan->price = round($plan->price * (1 - $renewalDiscountRule->discount_amount / 100), 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
$plan->price = $plan->price - $renewalDiscountRule->discount_amount;
|
||||
}
|
||||
|
||||
if ($plan->price < 0)
|
||||
{
|
||||
$plan->price = 0;
|
||||
}
|
||||
}
|
||||
|
||||
$renewOptionText = Text::sprintf('OSM_RENEW_OPTION_TEXT', $plan->title, $subscriptionLengthText, OSMembershipHelper::formatCurrency($plan->price * (1 + $taxRate / 100), $this->config, $symbol));
|
||||
|
||||
if (strpos($renewOptionText, '[EXPIRED_DATE]'))
|
||||
{
|
||||
$expiredDate = OSMembershipHelperSubscription::getPlanExpiredDate($plan->id);
|
||||
|
||||
if ($expiredDate)
|
||||
{
|
||||
$expiredDate = HTMLHelper::_('date', $expiredDate, $this->config->date_format);
|
||||
}
|
||||
|
||||
$renewOptionText = str_replace('[EXPIRED_DATE]', $expiredDate, $renewOptionText);
|
||||
}
|
||||
?>
|
||||
<li class="osm-renew-option">
|
||||
<input type="radio" class="validate[required]<?php echo $this->bootstrapHelper->getFrameworkClass('uk-radio', 1); ?>" id="renew_option_id_<?php echo $renewOptionCount; ?>" name="renew_option_id" value="<?php echo $planId;?>" <?php echo $checked; ?>/>
|
||||
<label for="renew_option_id_<?php echo $renewOptionCount; ?>"><?php echo $renewOptionText; ?></label>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<div class="form-actions">
|
||||
<input type="submit" class="<?php echo $this->bootstrapHelper->getClassMapping('btn btn-primary'); ?>" value="<?php echo Text::_('OSM_PROCESS_RENEW'); ?>"/>
|
||||
</div>
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var string $introText
|
||||
* @var string $msg
|
||||
* @var string $context
|
||||
* @var stdClass $row
|
||||
*/
|
||||
|
||||
if (isset($introText))
|
||||
{
|
||||
echo '<div class="intro-text">' . $introText . '</div>';
|
||||
}
|
||||
?>
|
||||
<div class="text-info">
|
||||
<?php echo $msg; ?>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,176 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var bool $showPagination
|
||||
* @var \Joomla\CMS\Pagination\Pagination $pagination
|
||||
*/
|
||||
|
||||
/* @var \Joomla\Database\DatabaseDriver $db */
|
||||
$db = Factory::getContainer()->get('db');
|
||||
$query = $db->getQuery(true)
|
||||
->select('COUNT(*)')
|
||||
->from('#__osmembership_plugins')
|
||||
->where('published = 1')
|
||||
->where('name NOT LIKE "os_offline%"');
|
||||
$db->setQuery($query);
|
||||
$hasOnlinePaymentPlugin = $db->loadResult() > 0;
|
||||
|
||||
$makePaymentItemid = OSMembershipHelperRoute::getViewRoute('payment', $this->Itemid);
|
||||
|
||||
$cols = 5;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$centerClass = $bootstrapHelper->getClassMapping('center');
|
||||
$hiddenPhoneClass = $bootstrapHelper->getClassMapping('hidden-phone');
|
||||
?>
|
||||
<table class="<?php echo $bootstrapHelper->getClassMapping('table table-striped table-bordered') ?>">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<?php echo Text::_('OSM_PLAN') ?>
|
||||
</th>
|
||||
<th class="<?php echo $centerClass; ?>">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_DATE') ; ?>
|
||||
</th>
|
||||
<th class="<?php echo $centerClass; ?>">
|
||||
<?php echo Text::_('OSM_ACTIVATE_TIME') ; ?>
|
||||
</th>
|
||||
<th style="text-align: right;" class="<?php echo $hiddenPhoneClass; ?>">
|
||||
<?php echo Text::_('OSM_GROSS_AMOUNT') ; ?>
|
||||
</th>
|
||||
<th class="<?php echo $hiddenPhoneClass; ?>">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_STATUS'); ?>
|
||||
</th>
|
||||
<?php
|
||||
if ($this->config->activate_invoice_feature)
|
||||
{
|
||||
$cols++ ;
|
||||
?>
|
||||
<th class="<?php echo $hiddenPhoneClass . ' ' . $centerClass; ?>">
|
||||
<?php echo Text::_('OSM_INVOICE_NUMBER') ; ?>
|
||||
</th>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$k = 0 ;
|
||||
for ($i = 0 , $n = count($this->items) ; $i < $n ; $i++) {
|
||||
$row = $this->items[$i];
|
||||
$k = 1 - $k;
|
||||
$link = Route::_('index.php?option=com_osmembership&view=subscription&id=' . $row->id . '&Itemid=' . $this->Itemid);
|
||||
$symbol = $row->currency_symbol ?: $row->currency;
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="<?php echo $link; ?>"><?php echo $row->plan_title; ?></a>
|
||||
</td>
|
||||
<td class="<?php echo $centerClass; ?>">
|
||||
<?php echo HTMLHelper::_('date', $row->created_date, $this->config->date_format); ?>
|
||||
</td>
|
||||
<td class="<?php echo $centerClass; ?>">
|
||||
<strong><?php echo HTMLHelper::_('date', $row->from_date, $this->config->date_format); ?></strong> <?php echo Text::_('OSM_TO'); ?>
|
||||
<strong>
|
||||
<?php
|
||||
if ($row->lifetime_membership || $row->to_date == '2099-12-31 23:59:59')
|
||||
{
|
||||
echo Text::_('OSM_LIFETIME');
|
||||
}
|
||||
else
|
||||
{
|
||||
echo HTMLHelper::_('date', $row->to_date, $this->config->date_format);
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align: right;" class="<?php echo $hiddenPhoneClass; ?>">
|
||||
<?php echo OSMembershipHelper::formatCurrency($row->gross_amount, $this->config, $symbol)?>
|
||||
</td>
|
||||
<td class="<?php echo $hiddenPhoneClass; ?>">
|
||||
<?php
|
||||
switch ($row->published)
|
||||
{
|
||||
case 0 :
|
||||
echo Text::_('OSM_PENDING');
|
||||
|
||||
if ($this->config->enable_subscription_payment && $row->gross_amount > 0 && $hasOnlinePaymentPlugin)
|
||||
{
|
||||
?>
|
||||
<br /><a class="<?php echo $bootstrapHelper->getClassMapping('btn btn-primary'); ?>" href="<?php echo Route::_('index.php?option=com_osmembership&view=payment&transaction_id=' . $row->transaction_id . '&Itemid=' . $makePaymentItemid); ?>"><?php echo Text::_('OSM_MAKE_PAYMENT'); ?></a>
|
||||
<?php
|
||||
}
|
||||
|
||||
break;
|
||||
case 1 :
|
||||
echo Text::_('OSM_ACTIVE');
|
||||
break;
|
||||
case 2 :
|
||||
echo Text::_('OSM_EXPIRED');
|
||||
break;
|
||||
case 3 :
|
||||
echo Text::_('OSM_CANCELLED_PENDING');
|
||||
break;
|
||||
case 4 :
|
||||
echo Text::_('OSM_CANCELLED_REFUNDED');
|
||||
break;
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<?php
|
||||
if ($this->config->activate_invoice_feature)
|
||||
{
|
||||
?>
|
||||
<td class="<?php echo $hiddenPhoneClass . ' ' . $centerClass; ?>">
|
||||
<?php
|
||||
if ($row->invoice_number)
|
||||
{
|
||||
?>
|
||||
<a href="<?php echo Route::_('index.php?option=com_osmembership&task=download_invoice&id=' . $row->id); ?>" title="<?php echo Text::_('OSM_DOWNLOAD'); ?>"><?php echo OSMembershipHelper::formatInvoiceNumber($row, $this->config); ?></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<?php
|
||||
if ($showPagination && ($pagination->total > $pagination->limit))
|
||||
{
|
||||
?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="<?php echo $cols; ?>">
|
||||
<div class="pagination"><?php echo $this->pagination->getListFooter(); ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
@@ -1,105 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $rows
|
||||
* @var array $fields
|
||||
*/
|
||||
|
||||
$config = OSMembershipHelper::getConfig();
|
||||
$i = 1;
|
||||
?>
|
||||
<p style="padding-bottom: 20px; text-align: center;">
|
||||
<h1><?php echo Text::_('OSM_SUBSCRIPTIONS_LIST'); ?></h1>
|
||||
</p>
|
||||
<table border="1" width="100%" cellspacing="0" cellpadding="2" style="margin-top: 100px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="3%" height="20" style="text-align: center;">
|
||||
No
|
||||
</th>
|
||||
<th height="20" width="8%">
|
||||
<?php echo Text::_('OSM_FIRSTNAME'); ?>
|
||||
</th height="20">
|
||||
<th height="20" width="10%">
|
||||
<?php echo Text::_('OSM_LASTNAME'); ?>
|
||||
</th height="20">
|
||||
<th height="20" width="20%">
|
||||
<?php echo Text::_('OSM_PLAN'); ?>
|
||||
</th>
|
||||
<th height="20" width="17%" style="text-align: center">
|
||||
<?php echo Text::_('OSM_START_DATE') . ' / ' . Text::_('OSM_END_DATE'); ?>
|
||||
</th>
|
||||
<th height="20" width="16%">
|
||||
<?php echo Text::_('OSM_EMAIL'); ?>
|
||||
</th>
|
||||
<th height="20" width="9%" style="text-align: center;">
|
||||
<?php echo Text::_('OSM_CREATED_DATE'); ?>
|
||||
</th>
|
||||
<th width="6%" height="20" style="text-align: right;">
|
||||
<?php echo Text::_('OSM_GROSS_AMOUNT'); ?>
|
||||
</th>
|
||||
<th width="8%" height="20">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_STATUS'); ?>
|
||||
</th>
|
||||
<th width="3%" height="20" style="text-align: center;">
|
||||
<?php echo Text::_('OSM_ID'); ?>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($rows as $row)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td width="3%" style="text-align: center;"><?php echo $i++; ?></td>
|
||||
<td width="8%"><?php echo $row->first_name; ?></td>
|
||||
<td width="10%"><?php echo $row->last_name; ?></td>
|
||||
<td width="20%;"><?php echo $row->plan; ?></td>
|
||||
<td width="17%" style="text-align: center"><?php echo $row->from_date . ' / ' . $row->to_date; ?></td>
|
||||
<td width="16%"><?php echo $row->email; ?></td>
|
||||
<td width="9%" style="text-align: center;"><?php echo $row->created_date; ?></td>
|
||||
<td width="6%" style="text-align: right;"><?php echo $row->amount; ?></td>
|
||||
<th width="8%" height="20">
|
||||
<?php
|
||||
switch ($row->published)
|
||||
{
|
||||
case 0:
|
||||
echo Text::_('OSM_PENDING');
|
||||
break;
|
||||
case 1:
|
||||
echo Text::_('OSM_ACTIVE');
|
||||
break;
|
||||
case 2:
|
||||
echo Text::_('OSM_EXPIRED');
|
||||
break;
|
||||
case 3 :
|
||||
echo Text::_('OSM_CANCELLED_PENDING');
|
||||
break ;
|
||||
case 4 :
|
||||
echo Text::_('OSM_CANCELLED_REFUNDED');
|
||||
break ;
|
||||
}
|
||||
?>
|
||||
</th>
|
||||
<td width="3%" style="text-align: center;"><?php echo $row->id; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1,48 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
?>
|
||||
<ul class="osm-upgrade-options">
|
||||
<?php
|
||||
$upgradeOptionCount = 0;
|
||||
|
||||
foreach ($this->upgradeRules as $rule)
|
||||
{
|
||||
$checked = '';
|
||||
|
||||
if ($upgradeOptionCount == 0)
|
||||
{
|
||||
$checked = ' checked="checked" ';
|
||||
}
|
||||
|
||||
$upgradeOptionCount++;
|
||||
$upgradeToPlan = $this->plans[$rule->to_plan_id];
|
||||
$symbol = $upgradeToPlan->currency_symbol ?: $upgradeToPlan->currency;
|
||||
|
||||
$taxRate = 0;
|
||||
|
||||
if ($this->config->show_price_including_tax && !$this->config->setup_price_including_tax)
|
||||
{
|
||||
$taxRate = OSMembershipHelper::calculateMaxTaxRate($rule->to_plan_id);
|
||||
}
|
||||
?>
|
||||
<li class="osm-upgrade-option">
|
||||
<input type="radio" class="validate[required]<?php echo $this->bootstrapHelper->getFrameworkClass('uk-radio', 1);?>" id="upgrade_option_id_<?php echo $upgradeOptionCount; ?>" name="upgrade_option_id" value="<?php echo $rule->id; ?>"<?php echo $checked; ?> />
|
||||
<label for="upgrade_option_id_<?php echo $upgradeOptionCount; ?>"><?php Text::printf('OSM_UPGRADE_OPTION_TEXT', $this->plans[$rule->from_plan_id]->title, $upgradeToPlan->title, OSMembershipHelper::formatCurrency($rule->price * (1 + $taxRate / 100), $this->config, $symbol)); ?></label>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
||||
@@ -1,118 +0,0 @@
|
||||
<!--
|
||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||
*
|
||||
* This file is part of a Moko Consulting project.
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<!--FILE INFORMATION
|
||||
* DEFGROUP: Joomla.Site
|
||||
* INGROUP: Templates.Moko-Cassiopeia
|
||||
* FILE: index.html
|
||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
||||
-->
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Redirecting…</title>
|
||||
|
||||
<!-- Search engines: do not index this placeholder redirect page -->
|
||||
<meta name="robots" content="noindex, nofollow, noarchive" />
|
||||
|
||||
<!-- Instant redirect fallback even if JavaScript is disabled -->
|
||||
<meta http-equiv="refresh" content="0; url=/" />
|
||||
|
||||
<!-- Canonical root reference -->
|
||||
<link rel="canonical" href="/" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<script>
|
||||
/**
|
||||
* @defgroup Dolibarr
|
||||
* @file index.html (embedded script)
|
||||
* @version 1.0.0
|
||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
||||
* @details This script computes the absolute root URL using `location.origin` and
|
||||
* forwards the user immediately. It prevents leaving the protected folder
|
||||
* in the browser history by default.
|
||||
*
|
||||
* @section VARIABLES
|
||||
* @var {Object} opts Configuration options for the redirect behavior.
|
||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
||||
*
|
||||
* @section OPTIONS
|
||||
* - opts.fallbackPath: default "/" (root path)
|
||||
* - opts.delayMs: default 0 (immediate)
|
||||
* - opts.behavior: one of
|
||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
||||
*/
|
||||
(function redirectToRoot() {
|
||||
// Configuration object with safe defaults.
|
||||
var opts = {
|
||||
fallbackPath: "/", // string: fallback destination if origin is unavailable
|
||||
delayMs: 0, // number: delay before redirect in ms (0 = immediate)
|
||||
behavior: "replace" // enum: "replace" | "assign"
|
||||
};
|
||||
|
||||
// Determine absolute origin in all mainstream browsers.
|
||||
var origin = (typeof location.origin === "string" && location.origin)
|
||||
|| (location.protocol + "//" + location.host);
|
||||
|
||||
// Final destination: absolute root of the current site, or fallback path.
|
||||
var destination = origin ? origin + "/" : opts.fallbackPath;
|
||||
|
||||
function go() {
|
||||
if (opts.behavior === "assign") {
|
||||
location.assign(destination);
|
||||
} else {
|
||||
location.replace(destination);
|
||||
}
|
||||
}
|
||||
|
||||
// Execute redirect, optionally after a short delay.
|
||||
if (opts.delayMs > 0) {
|
||||
setTimeout(go, opts.delayMs);
|
||||
} else {
|
||||
go();
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
|
||||
<!--
|
||||
Secondary meta-refresh for no-JS environments is already set above.
|
||||
Some very old crawlers may ignore JS; the meta refresh ensures coverage.
|
||||
-->
|
||||
|
||||
<noscript>
|
||||
<!-- Extra defense-in-depth: if JS is disabled, meta refresh (above) handles redirect. -->
|
||||
<style>
|
||||
html, body { height:100%; }
|
||||
body { display:flex; align-items:center; justify-content:center; margin:0; font: 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
|
||||
.msg { opacity: .75; text-align: center; }
|
||||
</style>
|
||||
</noscript>
|
||||
</head>
|
||||
<body>
|
||||
<div class="msg">Redirecting to the site root… If you are not redirected, <a href="/">click here</a>.</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,141 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
defined('_JEXEC') or die ;
|
||||
|
||||
use Joomla\CMS\Editor\Editor;
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Multilanguage;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Toolbar\Toolbar;
|
||||
|
||||
HTMLHelper::_('bootstrap.tooltip', '.hasTooltip', ['html' => true, 'sanitize' => false]);
|
||||
|
||||
$config = OSMembershipHelper::getConfig();
|
||||
$editor = Editor::getInstance($config->get('editor') ?: Factory::getApplication()->get('editor'));
|
||||
$translatable = Multilanguage::isEnabled() && count($this->languages);
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluid = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$span8 = $bootstrapHelper->getClassMapping('span7');
|
||||
$span4 = $bootstrapHelper->getClassMapping('span5');
|
||||
|
||||
HTMLHelper::_('formbehavior.chosen', '.advSelect');
|
||||
|
||||
Factory::getApplication()
|
||||
->getDocument()
|
||||
->getWebAssetManager()
|
||||
->useScript('core')
|
||||
->useScript('showon')
|
||||
->registerAndUseScript('com_osmembership.site-mplan-default', 'media/com_osmembership/js/site-mplan-default.min.js');
|
||||
|
||||
$keys = ['OSM_ENTER_PLAN_TITLE', 'OSM_ENTER_SUBSCRIPTION_LENGTH', 'OSM_PRICE_REQUIRED', 'OSM_INVALID_SUBSCRIPTION_LENGTH'];
|
||||
OSMembershipHelperHtml::addJSStrings($keys);
|
||||
?>
|
||||
<div id="osm-add-edit-plan" class="osm-container">
|
||||
<h1 class="osm-page-title"><?php echo $this->item->id > 0 ? Text::_('OSM_EDIT_PLAN') : Text::_('OSM_ADD_PLAN'); ?></h1>
|
||||
<div class="btn-toolbar" id="btn-toolbar">
|
||||
<?php echo Toolbar::getInstance('toolbar')->render(); ?>
|
||||
</div>
|
||||
<form action="<?php echo Route::_('index.php?option=com_osmembership&view=mplan&Itemid=' . $this->Itemid, false); ?>" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data" class="form form-horizontal">
|
||||
<?php
|
||||
echo HTMLHelper::_( 'uitab.startTabSet', 'plan', ['active' => 'basic-information-page', 'recall' => true]);
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'basic-information-page', Text::_('OSM_BASIC_INFORMATION'));
|
||||
echo $this->loadTemplate('general', ['editor' => $editor]);
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'recurring-settings-page', Text::_('OSM_RECURRING_SETTINGS'));
|
||||
echo $this->loadTemplate('recurring_settings');
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'renew-options-page', Text::_('OSM_RENEW_OPTIONS'));
|
||||
echo $this->loadTemplate('renew_options');
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'upgrade-options-page', Text::_('OSM_UPGRADE_OPTIONS'));
|
||||
echo $this->loadTemplate('upgrade_options');
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'renewal-discounts-page', Text::_('OSM_EARLY_RENEWAL_DISCOUNTS'));
|
||||
echo $this->loadTemplate('renewal_discounts');
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'reminders-settings-page', Text::_('OSM_REMINDERS_SETTINGS'));
|
||||
echo $this->loadTemplate('reminders_settings');
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'group-membership-settings-page', Text::_('OSM_GROUP_MEMBERSHIP'));
|
||||
echo $this->loadTemplate('group_membership');
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'advanced-settings-page', Text::_('OSM_ADVANCED_SETTINGS'));
|
||||
echo $this->loadTemplate('advanced_settings');
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'metadata-page', Text::_('OSM_META_DATA'));
|
||||
echo $this->loadTemplate('metadata');
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
if ($this->config->activate_member_card_feature)
|
||||
{
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'member-card-page', Text::_('OSM_MEMBER_CARD_SETTINGS'));
|
||||
echo $this->loadTemplate('member_card', ['editor' => $editor]);
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
}
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'messages-page', Text::_('OSM_MESSAGES'));
|
||||
echo $this->loadTemplate('messages', ['editor' => $editor]);
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'reminder-messages-page', Text::_('OSM_REMINDER_MESSAGES'));
|
||||
echo $this->loadTemplate('reminder_messages', ['editor' => $editor]);
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
if ($translatable)
|
||||
{
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'translation-page', Text::_('OSM_TRANSLATION'));
|
||||
echo $this->loadTemplate('translation', ['editor' => $editor]);
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
}
|
||||
|
||||
if (count($this->plugins))
|
||||
{
|
||||
$count = 0 ;
|
||||
|
||||
foreach ($this->plugins as $plugin)
|
||||
{
|
||||
if (is_array($plugin) && array_key_exists('title', $plugin) && array_key_exists('form', $plugin))
|
||||
{
|
||||
$count++ ;
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'tab_' . $count, Text::_($plugin['title']));
|
||||
echo $plugin['form'];
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Add support for custom settings layout
|
||||
if (file_exists(__DIR__ . '/default_custom_settings.php'))
|
||||
{
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'custom-settings-page', Text::_('OSM_CUSTOM_SETTINGS'));
|
||||
echo $this->loadTemplate('custom_settings', ['editor' => $editor]);
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
}
|
||||
|
||||
echo HTMLHelper::_( 'uitab.endTabSet');
|
||||
?>
|
||||
<div class="clearfix"></div>
|
||||
<?php echo HTMLHelper::_('form.token'); ?>
|
||||
<input type="hidden" name="id" value="<?php echo (int) $this->item->id; ?>"/>
|
||||
<input type="hidden" name="task" value="apply" />
|
||||
<input type="hidden" id="recurring" name="recurring" value="<?php echo (int) $this->item->recurring_subscription;?>" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,173 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('setup_fee', Text::_('OSM_SETUP_FEE'), Text::_('OSM_SETUP_FEE_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="number" class="form-control input-small" name="setup_fee" id="setup_fee" value="<?php echo $this->item->setup_fee; ?>" step="0.01" />
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if ($this->item->id && !$this->item->recurring_subscription)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('subscription_start_date_option', Text::_('OSM_SUBSCRIPTION_START_DATE_OPTION'), Text::_('OSM_SUBSCRIPTION_START_DATE_OPTION_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['subscription_start_date_option'];?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>" data-showon='<?php echo OSMembershipHelperHtml::renderShowon(['subscription_start_date_option' => '1']); ?>'>
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('subscription_start_date', Text::_('OSM_PLAN_SUBSCRIPTION_START_DATE'), Text::_('OSM_PLAN_SUBSCRIPTION_START_DATE_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo HTMLHelper::_('calendar', $this->planParams->get('subscription_start_date'), 'subscription_start_date', 'subscription_start_date', '%Y-%m-%d %H:%M:%S') ; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>" data-showon='<?php echo OSMembershipHelperHtml::renderShowon(['subscription_start_date_option' => '2']); ?>'>
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('subscription_start_date_field', Text::_('OSM_SUBSCRIPTION_START_DATE_FIELD'), Text::_('OSM_SUBSCRIPTION_START_DATE_FIELD_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['subscription_start_date_field'];?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('free_plan_subscription_status', Text::_('OSM_FREE_PLAN_STATUS'), Text::_('OSM_FREE_PLAN_STATUS_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['free_plan_subscription_status'];?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('login_redirect_menu_id', Text::_('OSM_LOGIN_REDIRECT'), Text::_('OSM_LOGIN_REDIRECT_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['login_redirect_menu_id']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('number_fields_per_row', Text::_('OSM_NUMBER_FIELDS_PER_ROW'), Text::_('OSM_NUMBER_FIELDS_PER_ROW_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['number_fields_per_row']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('payment_methods', Text::_('OSM_PAYMENT_METHODS'), Text::_('OSM_PAYMENT_METHODS_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['payment_methods'];?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('currency_code', Text::_('OSM_CURRENCY'), Text::_('OSM_CURRENCY_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['currency'];?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('currency_symbol', Text::_('OSM_CURRENCY_SYMBOL'), Text::_('OSM_CURRENCY_SYMBOL_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" class="form-control input-small" name="currency_symbol" id="currency_symbol" value="<?php echo $this->item->currency_symbol; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_COMPLETE_URL'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="url" class="form-control input-xxlarge" name="subscription_complete_url" value="<?php echo $this->item->subscription_complete_url; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_OFFLINE_PAYMENT_SUBSCRIPTION_COMPLETE_URL'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="url" class="form-control input-xxlarge" name="offline_payment_subscription_complete_url" value="<?php echo $this->item->offline_payment_subscription_complete_url; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('notification_emails', Text::_('OSM_NOTIFICATION_EMAILS'), Text::_('OSM_NOTIFICATION_EMAILS_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" class="form-control input-xxlarge" name="notification_emails" value="<?php echo $this->item->notification_emails; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('paypal_email', Text::_('OSM_PAYPAL_EMAIL'), Text::_('OSM_PAYPAL_EMAIL_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="email" class="form-control input-xxlarge" name="paypal_email" value="<?php echo $this->item->paypal_email; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PUBLISH_UP'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo HTMLHelper::_('calendar', $this->item->publish_up, 'publish_up', 'publish_up', $this->datePickerFormat . ' %H:%M:%S', ['class' => 'input-medium']); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PUBLISH_DOWN'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo HTMLHelper::_('calendar', $this->item->publish_down, 'publish_down', 'publish_down', $this->datePickerFormat . ' %H:%M:%S', ['class' => 'input-medium']); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_TERMS_AND_CONDITIONS_ARTICLE') ; ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getArticleInput($this->item->terms_and_conditions_article_id, 'terms_and_conditions_article_id'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('conversion_tracking_code', Text::_('OSM_CONVERSION_TRACKING_CODE'), Text::_('OSM_CONVERSION_TRACKING_CODE_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<textarea name="conversion_tracking_code" class="form-control input-large" rows="10"><?php echo $this->item->conversion_tracking_code;?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,166 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_TITLE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="form-control input-xxlarge" type="text" name="title" id="title" maxlength="250" value="<?php echo $this->item->title;?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_ALIAS'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="form-control input-xxlarge" type="text" name="alias" id="alias" maxlength="250" value="<?php echo $this->item->alias;?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_CATEGORY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['category_id']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PRICE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="form-control" type="number" name="price" id="price" maxlength="250" value="<?php echo $this->item->price;?>" step="0.01" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_LENGTH'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="form-control input-small d-inline-block" type="number" min="1" name="subscription_length" id="subscription_length" maxlength="250" value="<?php echo $this->item->subscription_length;?>" /><?php echo $this->lists['subscription_length_unit']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_EXPIRED_DATE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo HTMLHelper::_('calendar', $this->item->expired_date, 'expired_date', 'expired_date', $this->datePickerFormat) ; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if ((int)$this->item->expired_date)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PRORATED_SIGNUP_COST');?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['prorated_signup_cost'];?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('grace_period', Text::_('OSM_OVERLAP_PERIOD'), Text::_('OSM_OVERLAP_PERIOD_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="input-small form-control" type="number" name="grace_period" id="grace_period" maxlength="250" value="<?php echo $this->item->grace_period;?>" /><?php echo ' ' . Text::_('OSM_DAYS'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_LIFETIME_MEMBERSHIP');?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['lifetime_membership'];?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_THUMB'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="file" class="form-control" name="thumb_image" size="60" />
|
||||
<?php
|
||||
if ($this->item->thumb)
|
||||
{
|
||||
?>
|
||||
<img src="<?php echo Uri::root() . 'media/com_osmembership/' . $this->item->thumb; ?>" class="img_preview" />
|
||||
<input type="checkbox" name="del_thumb" value="1" /><?php echo Text::_('OSM_DELETE_CURRENT_THUMB'); ?>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_ENABLE_RENEWAL'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['enable_renewal']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_ACCESS'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['access']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if (isset($this->lists['published']))
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PUBLISHED'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['published']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SHORT_DESCRIPTION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('short_description', $this->item->short_description, '100%', '250', '75', '10') ; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_DESCRIPTION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('description', $this->item->description, '100%', '250', '75', '10') ; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('number_members_type', Text::_('OSM_NUMBER_MEMBER_TYPES'), Text::_('OSM_NUMBER_MEMBER_TYPES_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['number_members_type']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>" data-showon='<?php echo OSMembershipHelperHtml::renderShowon(['number_members_type' => '0']); ?>'>
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('number_group_members', Text::_('PLG_GRM_MAX_NUMBER_MEMBERS'), Text::_('PLG_GRM_MAX_NUMBER_MEMBERS_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="number" class="form-control input-small" name="number_group_members" id="number_group_members" value="<?php echo $this->item->number_group_members; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>" data-showon='<?php echo OSMembershipHelperHtml::renderShowon(['number_members_type' => '1']); ?>'>
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('number_members_field', Text::_('OSM_NUMBER_MEMBERS_FIELD'), Text::_('OSM_NUMBER_MEMBERS_FIELD_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['number_members_field']; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('activate_member_card_feature', Text::_('OSM_ACTIVATE_MEMBER_CARD_FEATURE'), Text::_('OSM_ACTIVATE_MEMBER_CARD_FEATURE_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getBooleanInput('activate_member_card_feature', $this->item->activate_member_card_feature); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_CARD_BG_IMAGE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getMediaInput($this->item->card_bg_image, 'card_bg_image'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_CARD_LAYOUT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('card_layout', $this->item->card_layout, '100%', '550', '75', '8') ;?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,194 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<p class="text-error" style="font-size:16px;"><?php echo Text::_('OSM_PLAN_MESSAGES_EXPLAIN'); ?></p>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<strong><?php echo Text::_('OSM_PLAN_SUBSCRIPTION_FORM_MESSAGE'); ?></strong>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('subscription_form_message', $this->item->subscription_form_message, '100%', '250', '75', '10'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_USER_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="user_email_subject" class="input-xxlarge form-control"
|
||||
value="<?php echo $this->item->user_email_subject; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_USER_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_email_body', $this->item->user_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_USER_EMAIL_BODY_OFFLINE_PAYMENT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_email_body_offline', $this->item->user_email_body_offline, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_ADMIN_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('admin_email_body', $this->item->admin_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_THANK_MESSAGE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('thanks_message', $this->item->thanks_message, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_THANK_MESSAGE_OFFLINE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('thanks_message_offline', $this->item->thanks_message_offline, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_APPROVED_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="subscription_approved_email_subject" class="input-xxlarge form-control"
|
||||
value="<?php echo $this->item->subscription_approved_email_subject; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_APPROVED_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('subscription_approved_email_body', $this->item->subscription_approved_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_USER_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="user_renew_email_subject" class="input-xxlarge form-control"
|
||||
value="<?php echo $this->item->user_renew_email_subject; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_USER_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_renew_email_body', $this->item->user_renew_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_USER_EMAIL_BODY_OFFLINE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_renew_email_body_offline', $this->item->user_renew_email_body_offline, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_ADMIN_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('admin_renew_email_body', $this->item->admin_renew_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_UPGRADE_USER_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_upgrade_email_body', $this->item->user_upgrade_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_UPGRADE_USER_EMAIL_BODY_OFFLINE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_upgrade_email_body_offline', $this->item->user_upgrade_email_body_offline, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_UPGRADE_ADMIN_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('admin_upgrade_email_body', $this->item->admin_upgrade_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_THANK_MESSAGE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('renew_thanks_message', $this->item->renew_thanks_message, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_THANK_MESSAGE_OFFLINE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('renew_thanks_message_offline', $this->item->renew_thanks_message_offline, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_UPGRADE_THANK_MESSAGE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('upgrade_thanks_message', $this->item->upgrade_thanks_message, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_UPGRADE_THANK_MESSAGE_OFFLINE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('upgrade_thanks_message_offline', $this->item->upgrade_thanks_message_offline, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_INVOICE_FORMAT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('invoice_layout', $this->item->invoice_layout, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,56 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PAGE_TITLE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="input-xxlarge form-control" type="text" name="page_title" id="page_title" maxlength="250"
|
||||
value="<?php echo $this->item->page_title; ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PAGE_HEADING'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="input-xxlarge form-control" type="text" name="page_heading" id="page_heading" maxlength="250"
|
||||
value="<?php echo $this->item->page_heading; ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_META_KEYWORDS'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<textarea rows="5" cols="30" class="input-xxlarge form-control"
|
||||
name="meta_keywords"><?php echo $this->item->meta_keywords; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_META_DESCRIPTION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<textarea rows="5" cols="30" class="input-xxlarge form-control"
|
||||
name="meta_description"><?php echo $this->item->meta_description; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,81 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
?>
|
||||
<fieldset class="adminform">
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_IS_RECURRING_SUBSCRIPTION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['recurring_subscription']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>" data-showon='<?php echo OSMembershipHelperHtml::renderShowon(['recurring_subscription' => '1']); ?>'>
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_TRIAL_AMOUNT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" class="form-control" name="trial_amount" value="<?php echo $this->item->trial_amount; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>" data-showon='<?php echo OSMembershipHelperHtml::renderShowon(['recurring_subscription' => '1']); ?>'>
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_TRIAL_DURATION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" class="form-control input-mini d-inline-block" name="trial_duration" value="<?php echo $this->item->trial_duration > 0 ? $this->item->trial_duration : ''; ?>"/>
|
||||
<?php echo $this->lists['trial_duration_unit']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>" data-showon='<?php echo OSMembershipHelperHtml::renderShowon(['recurring_subscription' => '1']); ?>'>
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_NUMBER_PAYMENTS'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" class="form-control" name="number_payments" value="<?php echo $this->item->number_payments; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if ($this->item->number_payments > 0)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('last_payment_action', Text::_('OSM_AFTER_LAST_PAYMENT_ACTION'), Text::_('OSM_AFTER_LAST_PAYMENT_ACTION_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['last_payment_action']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>" data-showon='<?php echo OSMembershipHelperHtml::renderShowon(['last_payment_action' => '2']); ?>'>
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_EXTEND_DURATION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" class="input-mini" name="extend_duration" value="<?php echo $this->item->extend_duration > 0 ? $this->item->extend_duration : ''; ?>"/>
|
||||
<?php echo $this->lists['extend_duration_unit']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</fieldset>
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<p class="text-error" style="font-size:16px;"><?php echo Text::_('OSM_PLAN_MESSAGES_EXPLAIN'); ?></p>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_FIRST_REMINDER_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="first_reminder_email_subject" class="input-xxlarge form-control"
|
||||
value="<?php echo $this->item->first_reminder_email_subject; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_FIRST_REMINDER_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('first_reminder_email_body', $this->item->first_reminder_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SECOND_REMINDER_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="second_reminder_email_subject" class="input-xxlarge form-control"
|
||||
value="<?php echo $this->item->second_reminder_email_subject; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SECOND_REMINDER_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('second_reminder_email_body', $this->item->second_reminder_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_THIRD_REMINDER_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="third_reminder_email_subject" class="input-xxlarge form-control"
|
||||
value="<?php echo $this->item->third_reminder_email_subject; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_THIRD_REMINDER_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('third_reminder_email_body', $this->item->third_reminder_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
?>
|
||||
<fieldset class="adminform">
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SEND_FIRST_REMINDER'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="number" class="form-control input-mini d-inline-block" name="send_first_reminder" value="<?php echo $this->item->send_first_reminder; ?>" /><span><?php echo ' ' . Text::_('OSM_DAYS') . ' ' . $this->lists['send_first_reminder_time']; ?></span><?php echo Text::_('OSM_SUBSCRIPTION_EXPIRED'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SEND_SECOND_REMINDER'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="number" class="form-control input-mini d-inline-block" name="send_second_reminder" value="<?php echo $this->item->send_second_reminder; ?>" /><span><?php echo ' ' . Text::_('OSM_DAYS') . ' ' . $this->lists['send_second_reminder_time']; ?></span><?php echo Text::_('OSM_SUBSCRIPTION_EXPIRED'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SEND_THIRD_REMINDER'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="number" class="form-control input-mini d-inline-block" name="send_third_reminder" value="<?php echo $this->item->send_third_reminder; ?>" /><span><?php echo ' ' . Text::_('OSM_DAYS') . ' ' . $this->lists['send_third_reminder_time']; ?></span><?php echo Text::_('OSM_SUBSCRIPTION_EXPIRED'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if ($this->item->number_payments > 0)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SEND_SUBSCRIPTION_END'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="number" class="form-control input-mini d-inline-block" name="send_subscription_end" value="<?php echo $this->item->send_subscription_end; ?>" /><span><?php echo ' ' . Text::_('OSM_DAYS') . ' ' . $this->lists['send_subscription_end_time']; ?></span><?php echo Text::_('OSM_SUBSCRIPTION_EXPIRED'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</fieldset>
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Form\Form;
|
||||
|
||||
$form = Form::getInstance('renew_options', JPATH_ADMINISTRATOR . '/components/com_osmembership/view/plan/forms/renew_options.xml');
|
||||
$formData['renew_options'] = [];
|
||||
|
||||
foreach ($this->prices as $renewOption)
|
||||
{
|
||||
$formData['renew_options'][] = [
|
||||
'id' => $renewOption->id,
|
||||
'renew_option_length' => $renewOption->renew_option_length,
|
||||
'renew_option_length_unit' => $renewOption->renew_option_length_unit,
|
||||
'price' => $renewOption->price,
|
||||
];
|
||||
}
|
||||
|
||||
$form->bind($formData);
|
||||
|
||||
foreach ($form->getFieldset() as $field)
|
||||
{
|
||||
echo $field->input;
|
||||
}
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Form\Form;
|
||||
|
||||
$form = Form::getInstance('renewal_discounts', JPATH_ADMINISTRATOR . '/components/com_osmembership/view/plan/forms/renewal_discounts.xml');
|
||||
$formData['renewal_discounts'] = [];
|
||||
|
||||
foreach ($this->renewalDiscounts as $renewalDiscount)
|
||||
{
|
||||
$formData['renewal_discounts'][] = [
|
||||
'id' => $renewalDiscount->id,
|
||||
'number_days' => $renewalDiscount->number_days,
|
||||
'discount_type' => $renewalDiscount->discount_type,
|
||||
'discount_amount' => $renewalDiscount->discount_amount,
|
||||
];
|
||||
}
|
||||
|
||||
$form->bind($formData);
|
||||
|
||||
foreach ($form->getFieldset() as $field)
|
||||
{
|
||||
echo $field->input;
|
||||
}
|
||||
|
||||
@@ -1,223 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
$rootUri = Uri::root(true);
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
|
||||
echo HTMLHelper::_('bootstrap.startTabSet', 'plan-translation', ['active' => 'translation-page-' . $this->languages[0]->sef, 'recall' => true]);
|
||||
|
||||
foreach ($this->languages as $language)
|
||||
{
|
||||
$sef = $language->sef;
|
||||
echo HTMLHelper::_('bootstrap.addTab', 'plan-translation', 'translation-page-' . $sef, $language->title . ' <img src="' . $rootUri . '/media/mod_languages/images/' . $language->image . '.gif" />');
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_TITLE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="form-control input-xlarge" type="text" name="title_<?php echo $sef; ?>" id="title_<?php echo $sef; ?>" maxlength="250" value="<?php echo $this->item->{'title_' . $sef}; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_ALIAS'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="form-control input-xlarge" type="text" name="alias_<?php echo $sef; ?>" id="title_<?php echo $sef; ?>" maxlength="250" value="<?php echo $this->item->{'alias_' . $sef}; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SHORT_DESCRIPTION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('short_description_' . $sef, $this->item->{'short_description_' . $sef}, '100%', '250', '75', '10') ; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_DESCRIPTION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('description_' . $sef, $this->item->{'description_' . $sef}, '100%', '250', '75', '10') ; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PAGE_TITLE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="form-control input-xlarge" type="text" name="page_title_<?php echo $sef; ?>" id="page_title_<?php echo $sef; ?>" maxlength="250" value="<?php echo $this->item->{'page_title_' . $sef}; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PAGE_HEADING'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="form-control input-xlarge" type="text" name="page_heading_<?php echo $sef; ?>" id="page_heading_<?php echo $sef; ?>" maxlength="250" value="<?php echo $this->item->{'page_heading_' . $sef}; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_META_DESCRIPTION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<textarea rows="5" cols="30" class="input-lage" name="meta_description_<?php echo $sef; ?>"><?php echo $this->item->{'meta_description_' . $sef}; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_META_KEYWORDS'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<textarea rows="5" cols="30" class="input-lage" name="meta_keywords_<?php echo $sef; ?>"><?php echo $this->item->{'meta_keywords_' . $sef}; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_META_DESCRIPTION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<textarea rows="5" cols="30" class="input-lage" name="meta_description_<?php echo $sef; ?>"><?php echo $this->item->{'meta_description_' . $sef}; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PLAN_SUBSCRIPTION_FORM_MESSAGE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('subscription_form_message_' . $sef, $this->item->{'subscription_form_message_' . $sef}, '100%', '250', '75', '10') ; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_USER_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="user_email_subject_<?php echo $sef; ?>" class="form-control" value="<?php echo $this->item->{'user_email_subject_' . $sef}; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_USER_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_email_body_' . $sef, $this->item->{'user_email_body_' . $sef}, '100%', '250', '75', '8') ;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_USER_EMAIL_BODY_OFFLINE_PAYMENT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_email_body_offline_' . $sef, $this->item->{'user_email_body_offline_' . $sef}, '100%', '250', '75', '8') ;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_THANK_MESSAGE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('thanks_message_' . $sef, $this->item->{'thanks_message_' . $sef}, '100%', '250', '75', '8') ;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_THANK_MESSAGE_OFFLINE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('thanks_message_offline_' . $sef, $this->item->{'thanks_message_offline_' . $sef}, '100%', '250', '75', '8') ;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_APPROVED_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="subscription_approved_email_subject_<?php echo $sef; ?>" class="form-control" value="<?php echo $this->item->{'subscription_approved_email_subject_' . $sef}; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_APPROVED_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('subscription_approved_email_body_' . $sef, $this->item->{'subscription_approved_email_body_' . $sef}, '100%', '250', '75', '8') ;?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_USER_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="user_renew_email_subject_<?php echo $sef; ?>" class="form-control" value="<?php echo $this->item->{'user_renew_email_subject_' . $sef}; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_USER_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_renew_email_body_' . $sef, $this->item->{'user_renew_email_body_' . $sef}, '100%', '250', '75', '8') ;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_THANK_MESSAGE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('renew_thanks_message_' . $sef, $this->item->{'renew_thanks_message_' . $sef}, '100%', '250', '75', '8') ;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_THANK_MESSAGE_OFFLINE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('renew_thanks_message_offline_' . $sef, $this->item->{'renew_thanks_message_offline_' . $sef}, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_UPGRADE_THANK_MESSAGE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('upgrade_thanks_message_' . $sef, $this->item->{'upgrade_thanks_message_' . $sef}, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_UPGRADE_THANK_MESSAGE_OFFLINE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('upgrade_thanks_message_offline_' . $sef, $this->item->{'upgrade_thanks_message_offline_' . $sef}, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
echo HTMLHelper::_('bootstrap.endTab');
|
||||
}
|
||||
|
||||
echo HTMLHelper::_('bootstrap.endTabSet');
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Form\Form;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
|
||||
$form = Form::getInstance('upgrade_options', JPATH_ADMINISTRATOR . '/components/com_osmembership/view/plan/forms/upgrade_options.xml');
|
||||
$formData['upgrade_options'] = [];
|
||||
|
||||
foreach ($this->upgradeRules as $upgradeOption)
|
||||
{
|
||||
$formData['upgrade_options'][] = [
|
||||
'id' => $upgradeOption->id,
|
||||
'to_plan_id' => $upgradeOption->to_plan_id,
|
||||
'price' => $upgradeOption->price,
|
||||
'upgrade_prorated' => $upgradeOption->upgrade_prorated,
|
||||
'published' => $upgradeOption->published,
|
||||
];
|
||||
}
|
||||
|
||||
$form->bind($formData);
|
||||
|
||||
foreach ($form->getFieldset() as $field)
|
||||
{
|
||||
echo $field->input;
|
||||
}
|
||||
|
||||
@@ -1,118 +0,0 @@
|
||||
<!--
|
||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||
*
|
||||
* This file is part of a Moko Consulting project.
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<!--FILE INFORMATION
|
||||
* DEFGROUP: Joomla.Site
|
||||
* INGROUP: Templates.Moko-Cassiopeia
|
||||
* FILE: index.html
|
||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
||||
-->
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Redirecting…</title>
|
||||
|
||||
<!-- Search engines: do not index this placeholder redirect page -->
|
||||
<meta name="robots" content="noindex, nofollow, noarchive" />
|
||||
|
||||
<!-- Instant redirect fallback even if JavaScript is disabled -->
|
||||
<meta http-equiv="refresh" content="0; url=/" />
|
||||
|
||||
<!-- Canonical root reference -->
|
||||
<link rel="canonical" href="/" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<script>
|
||||
/**
|
||||
* @defgroup Dolibarr
|
||||
* @file index.html (embedded script)
|
||||
* @version 1.0.0
|
||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
||||
* @details This script computes the absolute root URL using `location.origin` and
|
||||
* forwards the user immediately. It prevents leaving the protected folder
|
||||
* in the browser history by default.
|
||||
*
|
||||
* @section VARIABLES
|
||||
* @var {Object} opts Configuration options for the redirect behavior.
|
||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
||||
*
|
||||
* @section OPTIONS
|
||||
* - opts.fallbackPath: default "/" (root path)
|
||||
* - opts.delayMs: default 0 (immediate)
|
||||
* - opts.behavior: one of
|
||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
||||
*/
|
||||
(function redirectToRoot() {
|
||||
// Configuration object with safe defaults.
|
||||
var opts = {
|
||||
fallbackPath: "/", // string: fallback destination if origin is unavailable
|
||||
delayMs: 0, // number: delay before redirect in ms (0 = immediate)
|
||||
behavior: "replace" // enum: "replace" | "assign"
|
||||
};
|
||||
|
||||
// Determine absolute origin in all mainstream browsers.
|
||||
var origin = (typeof location.origin === "string" && location.origin)
|
||||
|| (location.protocol + "//" + location.host);
|
||||
|
||||
// Final destination: absolute root of the current site, or fallback path.
|
||||
var destination = origin ? origin + "/" : opts.fallbackPath;
|
||||
|
||||
function go() {
|
||||
if (opts.behavior === "assign") {
|
||||
location.assign(destination);
|
||||
} else {
|
||||
location.replace(destination);
|
||||
}
|
||||
}
|
||||
|
||||
// Execute redirect, optionally after a short delay.
|
||||
if (opts.delayMs > 0) {
|
||||
setTimeout(go, opts.delayMs);
|
||||
} else {
|
||||
go();
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
|
||||
<!--
|
||||
Secondary meta-refresh for no-JS environments is already set above.
|
||||
Some very old crawlers may ignore JS; the meta refresh ensures coverage.
|
||||
-->
|
||||
|
||||
<noscript>
|
||||
<!-- Extra defense-in-depth: if JS is disabled, meta refresh (above) handles redirect. -->
|
||||
<style>
|
||||
html, body { height:100%; }
|
||||
body { display:flex; align-items:center; justify-content:center; margin:0; font: 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
|
||||
.msg { opacity: .75; text-align: center; }
|
||||
</style>
|
||||
</noscript>
|
||||
</head>
|
||||
<body>
|
||||
<div class="msg">Redirecting to the site root… If you are not redirected, <a href="/">click here</a>.</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,238 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Toolbar\Toolbar;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
HTMLHelper::_('formbehavior.chosen', 'select');
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$centerClass = $bootstrapHelper->getClassMapping('center');
|
||||
$cols = 10;
|
||||
$config = OSMembershipHelper::getConfig();
|
||||
?>
|
||||
<div id="osm-manage-plans" class="osm-container osm-container-j4">
|
||||
<?php
|
||||
if ($this->params->get('show_page_heading', 1))
|
||||
{
|
||||
if ($this->input->getInt('hmvc_call'))
|
||||
{
|
||||
$hTag = 'h2';
|
||||
}
|
||||
else
|
||||
{
|
||||
$hTag = 'h1';
|
||||
}
|
||||
?>
|
||||
<<?php echo $hTag; ?> class="osm-heading"><?php echo Text::_('OSM_MANAGE_PLANS'); ?></<?php echo $hTag; ?>>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (OSMembershipHelper::isValidMessage($this->params->get('intro_text')))
|
||||
{
|
||||
?>
|
||||
<div class="osm-description osm-page-intro-text <?php echo $this->bootstrapHelper->getClassMapping('clearfix'); ?>">
|
||||
<?php echo HTMLHelper::_('content.prepare', $this->params->get('intro_text')); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="btn-toolbar" id="btn-toolbar">
|
||||
<?php echo Toolbar::getInstance('toolbar')->render(); ?>
|
||||
</div>
|
||||
<form action="<?php echo Route::_('index.php?option=com_osmembership&view=mplans&Itemid=' . $this->Itemid, false); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<div class="filters btn-toolbar clearfix mt-2 mb-2">
|
||||
<?php echo $this->loadTemplate('search_bar'); ?>
|
||||
</div>
|
||||
<table class="<?php echo $bootstrapHelper->getClassMapping('table table-striped table-bordered table-hover'); ?>">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20">
|
||||
<?php echo HTMLHelper::_('grid.checkall'); ?>
|
||||
</th>
|
||||
<th class="title">
|
||||
<?php echo HTMLHelper::_('searchtools.sort', Text::_('OSM_TITLE'), 'tbl.title', $this->state->filter_order_Dir, $this->state->filter_order); ?>
|
||||
</th>
|
||||
<?php
|
||||
if ($this->showCategory)
|
||||
{
|
||||
$cols++;
|
||||
?>
|
||||
<th class="title">
|
||||
<?php echo HTMLHelper::_('searchtools.sort', Text::_('OSM_CATEGORY'), 'b.title', $this->state->filter_order_Dir, $this->state->filter_order); ?>
|
||||
</th>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($this->showThumbnail)
|
||||
{
|
||||
$cols++;
|
||||
?>
|
||||
<th class="title" width="10%">
|
||||
<?php echo Text::_('OSM_THUMB'); ?>
|
||||
</th>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<th class="title" width="8%">
|
||||
<?php echo Text::_('OSM_LENGTH'); ?>
|
||||
</th>
|
||||
<th class="center" width="8%">
|
||||
<?php echo HTMLHelper::_('searchtools.sort', Text::_('OSM_RECURRING'), 'tbl.recurring_subscription', $this->state->filter_order_Dir, $this->state->filter_order); ?>
|
||||
</th>
|
||||
<th class="title" width="8%">
|
||||
<?php echo HTMLHelper::_('searchtools.sort', Text::_('OSM_PRICE'), 'tbl.price', $this->state->filter_order_Dir, $this->state->filter_order); ?>
|
||||
</th>
|
||||
<th class="title center" width="12%">
|
||||
<?php echo Text::_('OSM_TOTAL_SUBSCRIBERS'); ?>
|
||||
</th>
|
||||
<th class="title center" width="12%">
|
||||
<?php echo Text::_('OSM_ACTIVE_SUBSCRIBERS'); ?>
|
||||
</th>
|
||||
<th width="5%">
|
||||
<?php echo HTMLHelper::_('searchtools.sort', Text::_('JGRID_HEADING_ACCESS'), 'tbl.access', $this->state->filter_order_Dir, $this->state->filter_order); ?>
|
||||
</th>
|
||||
<th width="5%">
|
||||
<?php echo HTMLHelper::_('searchtools.sort', Text::_('OSM_PUBLISHED'), 'tbl.published', $this->state->filter_order_Dir, $this->state->filter_order); ?>
|
||||
</th>
|
||||
<th width="2%">
|
||||
<?php echo HTMLHelper::_('searchtools.sort', Text::_('OSM_ID'), 'tbl.id', $this->state->filter_order_Dir, $this->state->filter_order); ?>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="<?php echo $cols; ?>">
|
||||
<?php echo $this->pagination->getListFooter(); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?php
|
||||
$k = 0;
|
||||
for ($i = 0, $n = count($this->items); $i < $n; $i++)
|
||||
{
|
||||
$row = $this->items[$i];
|
||||
$link = Route::_('index.php?option=com_osmembership&task=mplan.edit&id=' . $row->id . '&Itemid=' . $this->Itemid, false);
|
||||
$checked = HTMLHelper::_('grid.id', $i, $row->id);
|
||||
$published = HTMLHelper::_('jgrid.published', $row->published, $i, 'mplan.');
|
||||
$symbol = $row->currency_symbol ?: $row->currency;
|
||||
?>
|
||||
<tr class="<?php echo "row$k"; ?>">
|
||||
<td>
|
||||
<?php echo $checked; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php
|
||||
if (OSMembershipHelperAcl::canEditPlan($row->id))
|
||||
{
|
||||
?>
|
||||
<a href="<?php echo $link; ?>"><?php echo $row->title ; ?></a>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $row->title;
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<?php
|
||||
if ($this->showCategory)
|
||||
{
|
||||
?>
|
||||
<td><?php echo $row->category_title; ?></td>
|
||||
<?php
|
||||
}
|
||||
if ($this->showThumbnail)
|
||||
{
|
||||
?>
|
||||
<td class="center">
|
||||
<?php
|
||||
if ($row->thumb)
|
||||
{
|
||||
?>
|
||||
<a href="<?php echo Uri::root() . 'media/com_osmembership/' . $row->thumb ; ?>" class="modal"><img src="<?php echo Uri::root() . '/media/com_osmembership/' . $row->thumb ; ?>" /></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<td>
|
||||
<?php
|
||||
if ($row->lifetime_membership)
|
||||
{
|
||||
echo Text::_('OSM_LIFETIME');
|
||||
}
|
||||
else
|
||||
{
|
||||
echo OSMembershipHelperSubscription::getDurationText($row->subscription_length, $row->subscription_length_unit);
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php echo $row->recurring_subscription ? Text::_('JYES') : Text::_('JNO'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php
|
||||
if ($row->price > 0)
|
||||
{
|
||||
echo OSMembershipHelper::formatCurrency($row->price, $config, $symbol);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo Text::_('OSM_FREE');
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php echo OSMembershipHelper::countSubscribers($row->id); ?>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php echo OSMembershipHelper::countSubscribers($row->id, 1); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $row->access_level; ?>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php
|
||||
if (OSMembershipHelperAcl::canChangePlanState($row->id))
|
||||
{
|
||||
echo $published;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $row->published ? Text::_('JYES') : Text::_('JNO');
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php echo $row->id; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$k = 1 - $k;
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<input type="hidden" name="task" value="" />
|
||||
<input type="hidden" name="boxchecked" value="0" />
|
||||
<input type="hidden" name="filter_order" value="<?php echo $this->state->filter_order; ?>" />
|
||||
<input type="hidden" name="filter_order_Dir" value="<?php echo $this->state->filter_order_Dir; ?>" />
|
||||
<?php echo HTMLHelper::_('form.token'); ?>
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,39 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$pullLeftClass = $this->bootstrapHelper->getClassMapping('pull-left');
|
||||
?>
|
||||
<div class="filter-search btn-group <?php echo $pullLeftClass; ?>">
|
||||
<div class="input-group">
|
||||
<label for="filter_search" class="sr-only"><?php echo Text::_('OSM_FILTER_SEARCH_PLANS_DESC');?></label>
|
||||
<input type="text" name="filter_search" id="filter_search" placeholder="<?php echo Text::_('JSEARCH_FILTER'); ?>" value="<?php echo $this->escape($this->state->filter_search); ?>" class="hasTooltip form-control" title="<?php echo HTMLHelper::tooltipText('OSM_SEARCH_PLANS_DESC'); ?>" />
|
||||
<span class="input-group-append">
|
||||
<button type="submit" class="btn hasTooltip" title="<?php echo HTMLHelper::tooltipText('JSEARCH_FILTER_SUBMIT'); ?>"><span class="fa fa-search"></span></button>
|
||||
<button type="button" class="btn hasTooltip" title="<?php echo HTMLHelper::tooltipText('JSEARCH_FILTER_CLEAR'); ?>" onclick="document.getElementById('filter_search').value='';this.form.submit();"><span class="fa fa-remove"></span></button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn-group <?php echo $pullLeftClass; ?> ml-2">
|
||||
<?php
|
||||
if (isset($this->lists['filter_category_id']))
|
||||
{
|
||||
echo $this->lists['filter_category_id'];
|
||||
}
|
||||
|
||||
echo $this->lists['filter_state'];
|
||||
echo $this->pagination->getLimitBox();
|
||||
?>
|
||||
</div>
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$pullLeftClass = $this->bootstrapHelper->getClassMapping('pull-left');
|
||||
?>
|
||||
<div class="filter-search btn-group <?php echo $pullLeftClass; ?>">
|
||||
<label for="filter_search" class="element-invisible sr-only"><?php echo Text::_('OSM_FILTER_SEARCH_PLANS_DESC');?></label>
|
||||
<input type="text" name="filter_search" id="filter_search" placeholder="<?php echo Text::_('JSEARCH_FILTER'); ?>" value="<?php echo $this->escape($this->state->filter_search); ?>" class="hasTooltip input-medium" title="<?php echo HTMLHelper::tooltipText('OSM_SEARCH_PLANS_DESC'); ?>" />
|
||||
</div>
|
||||
<div class="btn-group <?php echo $pullLeftClass; ?>">
|
||||
<button type="submit" class="btn btn-primary hasTooltip" title="<?php echo HTMLHelper::tooltipText('JSEARCH_FILTER_SUBMIT'); ?>"><span class="<?php echo $this->bootstrapHelper->getClassMapping('icon-search'); ?>"></span></button>
|
||||
<button type="button" class="btn btn-primary hasTooltip" title="<?php echo HTMLHelper::tooltipText('JSEARCH_FILTER_CLEAR'); ?>" onclick="document.getElementById('filter_search').value='';this.form.submit();"><span class="<?php echo $this->bootstrapHelper->getClassMapping('icon-remove'); ?>"></span></button>
|
||||
</div>
|
||||
<div class="btn-group <?php echo $pullLeftClass; ?>">
|
||||
<?php
|
||||
if (isset($this->lists['filter_category_id']))
|
||||
{
|
||||
echo $this->lists['filter_category_id'];
|
||||
}
|
||||
|
||||
echo $this->lists['filter_state'];
|
||||
|
||||
echo $this->pagination->getLimitBox();
|
||||
?>
|
||||
</div>
|
||||
|
||||
@@ -1,118 +0,0 @@
|
||||
<!--
|
||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||
*
|
||||
* This file is part of a Moko Consulting project.
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<!--FILE INFORMATION
|
||||
* DEFGROUP: Joomla.Site
|
||||
* INGROUP: Templates.Moko-Cassiopeia
|
||||
* FILE: index.html
|
||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
||||
-->
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Redirecting…</title>
|
||||
|
||||
<!-- Search engines: do not index this placeholder redirect page -->
|
||||
<meta name="robots" content="noindex, nofollow, noarchive" />
|
||||
|
||||
<!-- Instant redirect fallback even if JavaScript is disabled -->
|
||||
<meta http-equiv="refresh" content="0; url=/" />
|
||||
|
||||
<!-- Canonical root reference -->
|
||||
<link rel="canonical" href="/" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<script>
|
||||
/**
|
||||
* @defgroup Dolibarr
|
||||
* @file index.html (embedded script)
|
||||
* @version 1.0.0
|
||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
||||
* @details This script computes the absolute root URL using `location.origin` and
|
||||
* forwards the user immediately. It prevents leaving the protected folder
|
||||
* in the browser history by default.
|
||||
*
|
||||
* @section VARIABLES
|
||||
* @var {Object} opts Configuration options for the redirect behavior.
|
||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
||||
*
|
||||
* @section OPTIONS
|
||||
* - opts.fallbackPath: default "/" (root path)
|
||||
* - opts.delayMs: default 0 (immediate)
|
||||
* - opts.behavior: one of
|
||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
||||
*/
|
||||
(function redirectToRoot() {
|
||||
// Configuration object with safe defaults.
|
||||
var opts = {
|
||||
fallbackPath: "/", // string: fallback destination if origin is unavailable
|
||||
delayMs: 0, // number: delay before redirect in ms (0 = immediate)
|
||||
behavior: "replace" // enum: "replace" | "assign"
|
||||
};
|
||||
|
||||
// Determine absolute origin in all mainstream browsers.
|
||||
var origin = (typeof location.origin === "string" && location.origin)
|
||||
|| (location.protocol + "//" + location.host);
|
||||
|
||||
// Final destination: absolute root of the current site, or fallback path.
|
||||
var destination = origin ? origin + "/" : opts.fallbackPath;
|
||||
|
||||
function go() {
|
||||
if (opts.behavior === "assign") {
|
||||
location.assign(destination);
|
||||
} else {
|
||||
location.replace(destination);
|
||||
}
|
||||
}
|
||||
|
||||
// Execute redirect, optionally after a short delay.
|
||||
if (opts.delayMs > 0) {
|
||||
setTimeout(go, opts.delayMs);
|
||||
} else {
|
||||
go();
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
|
||||
<!--
|
||||
Secondary meta-refresh for no-JS environments is already set above.
|
||||
Some very old crawlers may ignore JS; the meta refresh ensures coverage.
|
||||
-->
|
||||
|
||||
<noscript>
|
||||
<!-- Extra defense-in-depth: if JS is disabled, meta refresh (above) handles redirect. -->
|
||||
<style>
|
||||
html, body { height:100%; }
|
||||
body { display:flex; align-items:center; justify-content:center; margin:0; font: 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
|
||||
.msg { opacity: .75; text-align: center; }
|
||||
</style>
|
||||
</noscript>
|
||||
</head>
|
||||
<body>
|
||||
<div class="msg">Redirecting to the site root… If you are not redirected, <a href="/">click here</a>.</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,176 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
$item = $this->item;
|
||||
|
||||
$clearfixClass = $this->bootstrapHelper->getClassMapping('clearfix');
|
||||
|
||||
if ($item->thumb)
|
||||
{
|
||||
$imgSrc = Uri::base() . 'media/com_osmembership/' . $item->thumb;
|
||||
}
|
||||
|
||||
if ($this->config->use_https)
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $this->Itemid), false, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $this->Itemid));
|
||||
}
|
||||
|
||||
$subscribedPlanIds = OSMembershipHelperSubscription::getSubscribedPlans();
|
||||
|
||||
$showPlanInformation = $this->params->get('show_plan_information', 1);
|
||||
$planInformationPosition = $this->params->get('plan_information_position', 0);
|
||||
|
||||
if ($showPlanInformation && $planInformationPosition == 0)
|
||||
{
|
||||
$leftClass = $this->bootstrapHelper->getClassMapping('span7');
|
||||
$rightClass = $this->bootstrapHelper->getClassMapping('span5');
|
||||
}
|
||||
else
|
||||
{
|
||||
$leftClass = $this->bootstrapHelper->getClassMapping('clearfix');
|
||||
$rightClass = $this->bootstrapHelper->getClassMapping('clearfix');
|
||||
}
|
||||
?>
|
||||
<div id="osm-plan-item" class="osm-container">
|
||||
<div class="osm-item-heading-box <?php echo $clearfixClass; ?>">
|
||||
<h1 class="osm-page-title">
|
||||
<?php echo $this->params->get('page_heading'); ?>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="osm-item-description <?php echo $clearfixClass; ?>">
|
||||
<div class="<?php echo $this->bootstrapHelper->getClassMapping('row-fluid clearfix'); ?>">
|
||||
<?php
|
||||
if ($showPlanInformation && $planInformationPosition == 1)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $rightClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/plan_information.php', ['item' => $item]); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="osm-description-details <?php echo $leftClass; ?> ">
|
||||
<?php
|
||||
if ($item->thumb)
|
||||
{
|
||||
?>
|
||||
<img src="<?php echo $imgSrc; ?>" alt="<?php echo $item->title; ?>" class="osm-thumb-left img-polaroid"/>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($item->description)
|
||||
{
|
||||
echo $item->description;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $item->short_description;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
if ($showPlanInformation && in_array($planInformationPosition, [0, 2]))
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $rightClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/plan_information.php', ['item' => $item]); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if (count($this->renewOptions) || count($this->upgradeRules))
|
||||
{
|
||||
echo $this->loadTemplate('renew_upgrade');
|
||||
}
|
||||
?>
|
||||
<div class="osm-taskbar <?php echo $clearfixClass; ?>">
|
||||
<ul>
|
||||
<?php
|
||||
$actions = OSMembershipHelperSubscription::getAllowedActions($item);
|
||||
|
||||
if (count($actions))
|
||||
{
|
||||
$language = Factory::getApplication()->getLanguage();
|
||||
|
||||
if (in_array('subscribe', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_SIGNUP_PLAN_' . $item->id))
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP';
|
||||
}
|
||||
|
||||
if ($language->hasKey('OSM_RENEW_PLAN_' . $item->id))
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW';
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $signUpUrl; ?>" class="<?php echo $this->bootstrapHelper->getClassMapping('btn btn-primary'); ?>">
|
||||
<?php echo in_array($item->id, $subscribedPlanIds) ? Text::_($renewLanguageItem) : Text::_($signUpLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (in_array('upgrade', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_UPGRADE_PLAN_' . $item->id))
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE';
|
||||
}
|
||||
|
||||
if (count($item->upgrade_rules) > 1)
|
||||
{
|
||||
$link = Route::_('index.php?option=com_osmembership&view=upgrademembership&to_plan_id=' . $item->id . '&Itemid=' . OSMembershipHelperRoute::findView('upgrademembership', $this->Itemid));
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeOptionId = $item->upgrade_rules[0]->id;
|
||||
$link = Route::_('index.php?option=com_osmembership&task=register.process_upgrade_membership&upgrade_option_id=' . $upgradeOptionId . '&Itemid=' . $this->Itemid);
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $link; ?>" class="<?php echo $this->bootstrapHelper->getClassMapping('btn btn-primary'); ?>">
|
||||
<?php echo Text::_($upgradeLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,45 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
|
||||
?>
|
||||
<div class="<?php echo $this->bootstrapHelper->getClassMapping('row-fluid clearfix'); ?>">
|
||||
<?php
|
||||
if (count($this->renewOptions))
|
||||
{
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_osmembership&task=register.process_renew_membership&Itemid=' . $this->Itemid, false, $ssl); ?>" method="post" name="osm_form_renew" id="osm_form_renew" autocomplete="off" class="<?php echo $this->bootstrapHelper->getClassMapping('form form-horizontal'); ?>">
|
||||
<h2 class="osm-form-heading"><?php echo Text::_('OSM_RENEW_MEMBERSHIP'); ?></h2>
|
||||
<?php echo $this->loadCommonLayout('common/tmpl/renew_options.php');?>
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (count($this->upgradeRules))
|
||||
{
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_osmembership&task=register.process_upgrade_membership&Itemid=' . $this->Itemid, false, $ssl); ?>" method="post" name="osm_form_update_membership" id="osm_form_update_membership" autocomplete="off" class="<?php echo $this->bootstrapHelper->getClassMapping('form form-horizontal'); ?>">
|
||||
<h2 class="osm-form-heading"><?php echo Text::_('OSM_UPGRADE_MEMBERSHIP'); ?></h2>
|
||||
<?php
|
||||
echo $this->loadCommonLayout('common/tmpl/upgrade_options.php');
|
||||
?>
|
||||
<div class="form-actions">
|
||||
<input type="submit" class="<?php echo $this->bootstrapHelper->getClassMapping('btn btn-primary'); ?>" value="<?php echo Text::_('OSM_PROCESS_UPGRADE'); ?>"/>
|
||||
</div>
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
@@ -1,118 +0,0 @@
|
||||
<!--
|
||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||
*
|
||||
* This file is part of a Moko Consulting project.
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<!--FILE INFORMATION
|
||||
* DEFGROUP: Joomla.Site
|
||||
* INGROUP: Templates.Moko-Cassiopeia
|
||||
* FILE: index.html
|
||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
||||
-->
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Redirecting…</title>
|
||||
|
||||
<!-- Search engines: do not index this placeholder redirect page -->
|
||||
<meta name="robots" content="noindex, nofollow, noarchive" />
|
||||
|
||||
<!-- Instant redirect fallback even if JavaScript is disabled -->
|
||||
<meta http-equiv="refresh" content="0; url=/" />
|
||||
|
||||
<!-- Canonical root reference -->
|
||||
<link rel="canonical" href="/" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<script>
|
||||
/**
|
||||
* @defgroup Dolibarr
|
||||
* @file index.html (embedded script)
|
||||
* @version 1.0.0
|
||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
||||
* @details This script computes the absolute root URL using `location.origin` and
|
||||
* forwards the user immediately. It prevents leaving the protected folder
|
||||
* in the browser history by default.
|
||||
*
|
||||
* @section VARIABLES
|
||||
* @var {Object} opts Configuration options for the redirect behavior.
|
||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
||||
*
|
||||
* @section OPTIONS
|
||||
* - opts.fallbackPath: default "/" (root path)
|
||||
* - opts.delayMs: default 0 (immediate)
|
||||
* - opts.behavior: one of
|
||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
||||
*/
|
||||
(function redirectToRoot() {
|
||||
// Configuration object with safe defaults.
|
||||
var opts = {
|
||||
fallbackPath: "/", // string: fallback destination if origin is unavailable
|
||||
delayMs: 0, // number: delay before redirect in ms (0 = immediate)
|
||||
behavior: "replace" // enum: "replace" | "assign"
|
||||
};
|
||||
|
||||
// Determine absolute origin in all mainstream browsers.
|
||||
var origin = (typeof location.origin === "string" && location.origin)
|
||||
|| (location.protocol + "//" + location.host);
|
||||
|
||||
// Final destination: absolute root of the current site, or fallback path.
|
||||
var destination = origin ? origin + "/" : opts.fallbackPath;
|
||||
|
||||
function go() {
|
||||
if (opts.behavior === "assign") {
|
||||
location.assign(destination);
|
||||
} else {
|
||||
location.replace(destination);
|
||||
}
|
||||
}
|
||||
|
||||
// Execute redirect, optionally after a short delay.
|
||||
if (opts.delayMs > 0) {
|
||||
setTimeout(go, opts.delayMs);
|
||||
} else {
|
||||
go();
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
|
||||
<!--
|
||||
Secondary meta-refresh for no-JS environments is already set above.
|
||||
Some very old crawlers may ignore JS; the meta refresh ensures coverage.
|
||||
-->
|
||||
|
||||
<noscript>
|
||||
<!-- Extra defense-in-depth: if JS is disabled, meta refresh (above) handles redirect. -->
|
||||
<style>
|
||||
html, body { height:100%; }
|
||||
body { display:flex; align-items:center; justify-content:center; margin:0; font: 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
|
||||
.msg { opacity: .75; text-align: center; }
|
||||
</style>
|
||||
</noscript>
|
||||
</head>
|
||||
<body>
|
||||
<div class="msg">Redirecting to the site root… If you are not redirected, <a href="/">click here</a>.</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,84 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
?>
|
||||
<div id="osm-plans-list-columns" class="osm-container osm-container-j4">
|
||||
<?php
|
||||
if ($this->params->get('show_page_heading', 1))
|
||||
{
|
||||
if ($this->category)
|
||||
{
|
||||
$pageHeading = $this->params->get('page_heading') ?: $this->category->title;
|
||||
}
|
||||
else
|
||||
{
|
||||
$pageHeading = $this->params->get('page_heading') ?: Text::_('OSM_SUBSCRIPTION_PLANS');
|
||||
}
|
||||
|
||||
if ($this->input->getInt('hmvc_call'))
|
||||
{
|
||||
$hTag = 'h2';
|
||||
}
|
||||
else
|
||||
{
|
||||
$hTag = 'h1';
|
||||
}
|
||||
?>
|
||||
<<?php echo $hTag; ?> class="osm-page-title"><?php echo $pageHeading; ?></<?php echo $hTag; ?>>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (!empty($this->category->description))
|
||||
{
|
||||
$description = $this->category->description;
|
||||
}
|
||||
elseif (OSMembershipHelper::isValidMessage($this->params->get('intro_text')))
|
||||
{
|
||||
$description = $this->params->get('intro_text');
|
||||
}
|
||||
else
|
||||
{
|
||||
$description = '';
|
||||
}
|
||||
|
||||
if ($description)
|
||||
{
|
||||
?>
|
||||
<div class="osm-description osm-page-intro-text <?php echo $this->bootstrapHelper->getClassMapping('clearfix'); ?>">
|
||||
<?php echo HTMLHelper::_('content.prepare', $description); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (count($this->categories))
|
||||
{
|
||||
echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/categories.php', ['items' => $this->categories, 'categoryId' => $this->categoryId, 'config' => $this->config, 'Itemid' => $this->Itemid]);
|
||||
}
|
||||
|
||||
if (count($this->items))
|
||||
{
|
||||
echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/columns_plans.php', ['items' => $this->items, 'input' => $this->input, 'config' => $this->config, 'Itemid' => $this->Itemid, 'categoryId' => $this->categoryId, 'bootstrapHelper' => $this->bootstrapHelper, 'params' => $this->params]);
|
||||
}
|
||||
|
||||
if (!$this->input->getInt('hmvc_call') && ($this->pagination->total > $this->pagination->limit))
|
||||
{
|
||||
?>
|
||||
<div class="pagination">
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
@@ -1,83 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
defined('_JEXEC') or die ;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
?>
|
||||
<div id="osm-plans-list-default" class="osm-container osm-container-j4">
|
||||
<?php
|
||||
if ($this->params->get('show_page_heading', 1))
|
||||
{
|
||||
if ($this->category)
|
||||
{
|
||||
$pageHeading = $this->params->get('page_heading') ?: $this->category->title;
|
||||
}
|
||||
else
|
||||
{
|
||||
$pageHeading = $this->params->get('page_heading') ?: Text::_('OSM_SUBSCRIPTION_PLANS');
|
||||
}
|
||||
|
||||
if ($this->input->getInt('hmvc_call'))
|
||||
{
|
||||
$hTag = 'h2';
|
||||
}
|
||||
else
|
||||
{
|
||||
$hTag = 'h1';
|
||||
}
|
||||
?>
|
||||
<<?php echo $hTag; ?> class="osm-page-title"><?php echo $pageHeading; ?></<?php echo $hTag; ?>>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (!empty($this->category->description))
|
||||
{
|
||||
$description = $this->category->description;
|
||||
}
|
||||
elseif (OSMembershipHelper::isValidMessage($this->params->get('intro_text')))
|
||||
{
|
||||
$description = $this->params->get('intro_text');
|
||||
}
|
||||
else
|
||||
{
|
||||
$description = '';
|
||||
}
|
||||
|
||||
if ($description)
|
||||
{
|
||||
?>
|
||||
<div class="osm-description osm-page-intro-text <?php echo $this->bootstrapHelper->getClassMapping('clearfix'); ?>">
|
||||
<?php echo HTMLHelper::_('content.prepare', $description); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (count($this->categories))
|
||||
{
|
||||
echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/categories.php', ['items' => $this->categories, 'categoryId' => $this->categoryId, 'config' => $this->config, 'Itemid' => $this->Itemid]);
|
||||
}
|
||||
|
||||
if (count($this->items))
|
||||
{
|
||||
echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/default_plans.php', ['items' => $this->items, 'input' => $this->input, 'config' => $this->config, 'Itemid' => $this->Itemid, 'categoryId' => $this->categoryId, 'bootstrapHelper' => $this->bootstrapHelper, 'params' => $this->params]);
|
||||
}
|
||||
|
||||
if (!$this->input->getInt('hmvc_call') && ($this->pagination->total > $this->pagination->limit))
|
||||
{
|
||||
?>
|
||||
<div class="pagination">
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
@@ -1,118 +0,0 @@
|
||||
<!--
|
||||
* Copyright (C) 2025 Moko Consulting <jmiller@mokoconsulting.tech>
|
||||
*
|
||||
* This file is part of a Moko Consulting project.
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<!--FILE INFORMATION
|
||||
* DEFGROUP: Joomla.Site
|
||||
* INGROUP: Templates.Moko-Cassiopeia
|
||||
* FILE: index.html
|
||||
* BRIEF: Security redirect page to block folder access and forward to site root.
|
||||
-->
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Redirecting…</title>
|
||||
|
||||
<!-- Search engines: do not index this placeholder redirect page -->
|
||||
<meta name="robots" content="noindex, nofollow, noarchive" />
|
||||
|
||||
<!-- Instant redirect fallback even if JavaScript is disabled -->
|
||||
<meta http-equiv="refresh" content="0; url=/" />
|
||||
|
||||
<!-- Canonical root reference -->
|
||||
<link rel="canonical" href="/" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<script>
|
||||
/**
|
||||
* @defgroup Dolibarr
|
||||
* @file index.html (embedded script)
|
||||
* @version 1.0.0
|
||||
* @brief Security redirect logic. Replaces the current history entry with the site root.
|
||||
* @details This script computes the absolute root URL using `location.origin` and
|
||||
* forwards the user immediately. It prevents leaving the protected folder
|
||||
* in the browser history by default.
|
||||
*
|
||||
* @section VARIABLES
|
||||
* @var {Object} opts Configuration options for the redirect behavior.
|
||||
* @var {string} opts.fallbackPath Path used when `location.origin` cannot be determined.
|
||||
* @var {number} opts.delayMs Optional delay in milliseconds before redirecting.
|
||||
* @var {"replace"|"assign"} opts.behavior Navigation method used for the redirect.
|
||||
*
|
||||
* @section OPTIONS
|
||||
* - opts.fallbackPath: default "/" (root path)
|
||||
* - opts.delayMs: default 0 (immediate)
|
||||
* - opts.behavior: one of
|
||||
* * "replace" — calls `location.replace(url)`; does not keep the folder page in history.
|
||||
* * "assign" — calls `location.assign(url)`; keeps an extra history entry.
|
||||
*/
|
||||
(function redirectToRoot() {
|
||||
// Configuration object with safe defaults.
|
||||
var opts = {
|
||||
fallbackPath: "/", // string: fallback destination if origin is unavailable
|
||||
delayMs: 0, // number: delay before redirect in ms (0 = immediate)
|
||||
behavior: "replace" // enum: "replace" | "assign"
|
||||
};
|
||||
|
||||
// Determine absolute origin in all mainstream browsers.
|
||||
var origin = (typeof location.origin === "string" && location.origin)
|
||||
|| (location.protocol + "//" + location.host);
|
||||
|
||||
// Final destination: absolute root of the current site, or fallback path.
|
||||
var destination = origin ? origin + "/" : opts.fallbackPath;
|
||||
|
||||
function go() {
|
||||
if (opts.behavior === "assign") {
|
||||
location.assign(destination);
|
||||
} else {
|
||||
location.replace(destination);
|
||||
}
|
||||
}
|
||||
|
||||
// Execute redirect, optionally after a short delay.
|
||||
if (opts.delayMs > 0) {
|
||||
setTimeout(go, opts.delayMs);
|
||||
} else {
|
||||
go();
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
|
||||
<!--
|
||||
Secondary meta-refresh for no-JS environments is already set above.
|
||||
Some very old crawlers may ignore JS; the meta refresh ensures coverage.
|
||||
-->
|
||||
|
||||
<noscript>
|
||||
<!-- Extra defense-in-depth: if JS is disabled, meta refresh (above) handles redirect. -->
|
||||
<style>
|
||||
html, body { height:100%; }
|
||||
body { display:flex; align-items:center; justify-content:center; margin:0; font: 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
|
||||
.msg { opacity: .75; text-align: center; }
|
||||
</style>
|
||||
</noscript>
|
||||
</head>
|
||||
<body>
|
||||
<div class="msg">Redirecting to the site root… If you are not redirected, <a href="/">click here</a>.</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,75 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$categoryId = $this->category ? $this->category->id : 0;
|
||||
?>
|
||||
<div id="osm-plans-list-columns" class="osm-container osm-container-j4 osm-pricingtable-container<?php echo $categoryId; ?>">
|
||||
<?php
|
||||
if ($this->params->get('show_page_heading', 1))
|
||||
{
|
||||
if ($this->category)
|
||||
{
|
||||
$pageHeading = $this->params->get('page_heading') ?: $this->category->title;
|
||||
}
|
||||
else
|
||||
{
|
||||
$pageHeading = $this->params->get('page_heading') ?: Text::_('OSM_SUBSCRIPTION_PLANS');
|
||||
}
|
||||
|
||||
if ($this->input->getInt('hmvc_call'))
|
||||
{
|
||||
$hTag = 'h2';
|
||||
}
|
||||
else
|
||||
{
|
||||
$hTag = 'h1';
|
||||
}
|
||||
?>
|
||||
<<?php echo $hTag; ?> class="osm-page-title"><?php echo $pageHeading; ?></<?php echo $hTag; ?>>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (!empty($this->category->description))
|
||||
{
|
||||
$description = $this->category->description;
|
||||
}
|
||||
elseif (OSMembershipHelper::isValidMessage($this->params->get('intro_text')))
|
||||
{
|
||||
$description = $this->params->get('intro_text');
|
||||
}
|
||||
else
|
||||
{
|
||||
$description = '';
|
||||
}
|
||||
|
||||
if ($description)
|
||||
{
|
||||
?>
|
||||
<div class="osm-description osm-page-intro-text <?php echo $this->bootstrapHelper->getClassMapping('clearfix'); ?>">
|
||||
<?php echo HTMLHelper::_('content.prepare', $description); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (count($this->categories))
|
||||
{
|
||||
echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/categories.php', ['items' => $this->categories, 'categoryId' => $this->categoryId, 'config' => $this->config, 'Itemid' => $this->Itemid]);
|
||||
}
|
||||
|
||||
if (count($this->items))
|
||||
{
|
||||
echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/pricingtable_plans.php', ['items' => $this->items, 'input' => $this->input, 'config' => $this->config, 'Itemid' => $this->Itemid, 'categoryId' => $this->categoryId, 'bootstrapHelper' => $this->bootstrapHelper, 'params' => $this->params]);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
@@ -1,75 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$categoryId = $this->category ? $this->category->id : 0;
|
||||
?>
|
||||
<div id="osm-plans-list-pricing-table-circle" class="osm-container osm-container-j4 osm-pricingtable-container<?php echo $categoryId; ?>">
|
||||
<?php
|
||||
if ($this->params->get('show_page_heading', 1))
|
||||
{
|
||||
if ($this->category)
|
||||
{
|
||||
$pageHeading = $this->params->get('page_heading') ?: $this->category->title;
|
||||
}
|
||||
else
|
||||
{
|
||||
$pageHeading = $this->params->get('page_heading') ?: Text::_('OSM_SUBSCRIPTION_PLANS');
|
||||
}
|
||||
|
||||
if ($this->input->getInt('hmvc_call'))
|
||||
{
|
||||
$hTag = 'h2';
|
||||
}
|
||||
else
|
||||
{
|
||||
$hTag = 'h1';
|
||||
}
|
||||
?>
|
||||
<<?php echo $hTag; ?> class="osm-page-title"><?php echo $pageHeading; ?></<?php echo $hTag; ?>>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (!empty($this->category->description))
|
||||
{
|
||||
$description = $this->category->description;
|
||||
}
|
||||
elseif (OSMembershipHelper::isValidMessage($this->params->get('intro_text')))
|
||||
{
|
||||
$description = $this->params->get('intro_text');
|
||||
}
|
||||
else
|
||||
{
|
||||
$description = '';
|
||||
}
|
||||
|
||||
if ($description)
|
||||
{
|
||||
?>
|
||||
<div class="osm-description osm-page-intro-text <?php echo $this->bootstrapHelper->getClassMapping('clearfix'); ?>">
|
||||
<?php echo HTMLHelper::_('content.prepare', $description); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (count($this->categories))
|
||||
{
|
||||
echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/categories.php', ['items' => $this->categories, 'categoryId' => $this->categoryId, 'config' => $this->config, 'Itemid' => $this->Itemid]);
|
||||
}
|
||||
|
||||
if (count($this->items))
|
||||
{
|
||||
echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/pricingtable_circle_plans.php', ['items' => $this->items, 'input' => $this->input, 'config' => $this->config, 'Itemid' => $this->Itemid, 'categoryId' => $this->categoryId, 'bootstrapHelper' => $this->bootstrapHelper, 'params' => $this->params]);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
@@ -1,75 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$categoryId = $this->category ? $this->category->id : 0;
|
||||
?>
|
||||
<div id="osm-plans-list-pricing-table-flat" class="osm-container osm-container-j4 osm-pricingtable-container<?php echo $categoryId; ?>">
|
||||
<?php
|
||||
if ($this->params->get('show_page_heading', 1))
|
||||
{
|
||||
if ($this->category)
|
||||
{
|
||||
$pageHeading = $this->params->get('page_heading') ?: $this->category->title;
|
||||
}
|
||||
else
|
||||
{
|
||||
$pageHeading = $this->params->get('page_heading') ?: Text::_('OSM_SUBSCRIPTION_PLANS');
|
||||
}
|
||||
|
||||
if ($this->input->getInt('hmvc_call'))
|
||||
{
|
||||
$hTag = 'h2';
|
||||
}
|
||||
else
|
||||
{
|
||||
$hTag = 'h1';
|
||||
}
|
||||
?>
|
||||
<<?php echo $hTag; ?> class="osm-page-title"><?php echo $pageHeading; ?></<?php echo $hTag; ?>>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (!empty($this->category->description))
|
||||
{
|
||||
$description = $this->category->description;
|
||||
}
|
||||
elseif (OSMembershipHelper::isValidMessage($this->params->get('intro_text')))
|
||||
{
|
||||
$description = $this->params->get('intro_text');
|
||||
}
|
||||
else
|
||||
{
|
||||
$description = '';
|
||||
}
|
||||
|
||||
if ($description)
|
||||
{
|
||||
?>
|
||||
<div class="osm-description osm-page-intro-text <?php echo $this->bootstrapHelper->getClassMapping('clearfix'); ?>">
|
||||
<?php echo HTMLHelper::_('content.prepare', $description); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (count($this->categories))
|
||||
{
|
||||
echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/categories.php', ['items' => $this->categories, 'categoryId' => $this->categoryId, 'config' => $this->config, 'Itemid' => $this->Itemid]);
|
||||
}
|
||||
|
||||
if (count($this->items))
|
||||
{
|
||||
echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/pricingtable_flat_plans.php', ['items' => $this->items, 'input' => $this->input, 'config' => $this->config, 'Itemid' => $this->Itemid, 'categoryId' => $this->categoryId, 'bootstrapHelper' => $this->bootstrapHelper, 'params' => $this->params]);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user