Example #1
0
	<div class="item-page">
		<?php 
if ($this->params->get('show_page_heading', 1)) {
    ?>
		<div class="page-header">
			<h1><?php 
    echo $this->escape($this->params->get('page_heading', $this->item->name));
    ?>
</h1>
		</div>
		<?php 
}
?>

		<form method="post" action="<?php 
echo JRoute::_(RSMembershipRoute::Subscribe($this->item->category_id, $this->item->category_name, $this->item->id, $this->item->name, $this->Itemid));
?>
" id="rsm_membership_form">
			<?php 
if (!empty($this->item->thumb)) {
    ?>
					<?php 
    echo JHTML::_('image', 'components/com_rsmembership/assets/thumbs/' . $this->item->thumb, $this->item->name, 'class="rsm_thumb"');
    ?>
			<?php 
}
?>
			<?php 
// Trigger content plugins if enabled
if (RSMembershipHelper::getConfig('trigger_content_plugins')) {
    $this->item->description = JHtml::_('content.prepare', $this->item->description);
Example #2
0
	<div class="page-header">
		<h1><?php 
    echo $this->escape($this->params->get('page_heading'));
    ?>
</h1>
	</div>
	<?php 
}
?>
	<div class="row-fluid">
		<ul class="thumbnails">
<?php 
$i = 1;
foreach ($this->items as $item) {
    $link = JRoute::_(RSMembershipRoute::Membership($item->id, $this->Itemid));
    $apply_link = JRoute::_(RSMembershipRoute::Subscribe($item->category_id, $item->category_name, $item->id, $item->name, $this->Itemid));
    $price = RSMembershipHelper::getPriceFormat($item->price);
    $image = !empty($item->thumb) ? JHTML::_('image', 'components/com_rsmembership/assets/thumbs/' . $item->thumb, $item->name, 'class="span' . 4 * $this->params->get('columns_no', 2) . ' rsm_thumb' . $this->escape($this->params->get('pageclass_sfx')) . '"') : '';
    $placeholders = array('{price}' => $price, '{buy}' => '', '{extras}' => '', '{stock}' => $item->stock > -1 ? $item->stock == 0 ? JText::_('COM_RSMEMBERSHIP_UNLIMITED') : $item->stock : JText::_('COM_RSMEMBERSHIP_OUT_OF_STOCK_PLACEHOLDER'), '<hr id="system-readmore" />' => '');
    // Trigger content plugins if enabled
    if (RSMembershipHelper::getConfig('trigger_content_plugins')) {
        $item->description = JHtml::_('content.prepare', $item->description);
    }
    $item->description = str_replace(array_keys($placeholders), array_values($placeholders), $item->description);
    ?>
			<li class="span<?php 
    echo 12 / $this->params->get('columns_no', 2);
    ?>
 pull-left rsm_container<?php 
    echo $this->escape($this->params->get('pageclass_sfx'));
    ?>