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) { ?>
>

title; ?>

>

$item]); ?>

short_description;?>
getLanguage(); ?>
' ; }