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'); ?>
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)); } ?>
thumb) { ?> short_description) { $item->short_description = $item->description; } ?>
short_description; ?>
    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'; } ?>
  • id, $subscribedPlanIds) ? Text::_($renewLanguageItem) : Text::_($signUpLanguageItem); ?>
  • 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); } ?>
  • hide_details_button)) { ?>