language;
$columns = $join = $where = null;
$columns = [
'membership_packages.membership_package_id', 'membership_packages.string_constant', 'membership_packages.is_recurring',
'membership_packages.pricing', 'membership_packages.duration'
];
$where["membership_packages.disabled[!]"] = 1;
$where["ORDER"] = ["membership_packages.package_sort_index" => "ASC", "membership_packages.membership_package_id" => "DESC"];
$packages = DB::connect()->select('membership_packages', $columns, $where);
$index = 1;
foreach ($packages as $package) {
$string_constant = $package['string_constant'];
if (!empty($package["is_recurring"])) {
$pk_duration = Registry::load('strings')->duration.': '.Registry::load('strings')->lifetime;
} else {
$pk_duration = Registry::load('strings')->duration.': '.$package['duration'].' '.Registry::load('strings')->days;
}
?>
$string_constant; ?>
default_currency_symbol.$package['pricing']; ?>
findById($package["membership_package_id"]);
$membership_url = Registry::load('config')->site_url.'membership_packages/'.$package["membership_package_id"].'/';
if (!empty($benefits)) {
$language_index = 'language_'.$language_id;
if (isset($benefits[$language_index]) && is_array($benefits[$language_index])) {
$benefits = $benefits[$language_index];
foreach ($benefits as $benefit) {
?>
-
select_plan; ?>