* as published by the Free Software Foundation. * com_redslider 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 com_redslider; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. **/ // No direct access defined('_JEXEC') or die; ?> <?php $slide_params = json_decode($slide->params); $article_item = modRedSliderHelper::getArticleItem($slide_params); $article_template = $slide->template_description; $article_template = str_replace("{article_name}", "<h1>" . $article_item->title . "</h1>", $article_template); $article_template = str_replace("{article_description}", $article_item->introtext, $article_template); ?> <li> <div class="content"> <img src="<?php echo $slide->imgslide; ?> " /> </div> <div class="article-content"> <?php echo $article_template;
<?php /** * @version 1.0 * @package Joomla * @subpackage com_redslider * @author redWEB Aps <*****@*****.**> * @copyright com_redslider (C) 2008 - 2012 redCOMPONENT.com * @license GNU/GPL, see LICENSE.php * com_redslider can be downloaded from www.redcomponent.com * com_redslider is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License 2 * as published by the Free Software Foundation. * com_redslider 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 com_redslider; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. **/ // No direct access defined('_JEXEC') or die; // Include the syndicate functions only once require_once dirname(__FILE__) . '/helper.php'; $slide_list = modRedSliderHelper::getSlideList($params); $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx')); require JModuleHelper::getLayoutPath('mod_redslider', $params->get('layout'), 'default');
* com_redslider 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 com_redslider; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. **/ // No direct access defined('_JEXEC') or die; $document->addStyleSheet(JURI::base(true) . '/modules/mod_redslider/assets/css/redshop.css'); ?> <?php $slide_params = json_decode($slide->params); $product_item = modRedSliderHelper::getProductItem($slide_params); $product_image = $slide_params->product_image; if ($product_item->product_full_image) { $product_image = JURI::base(true) . '/components/com_redshop/assets/images/product/' . $product_item->product_full_image; } $product_template = $slide->template_description; $product_template = str_replace("{product_image}", '<img src="' . $product_image . '">', $product_template); $product_template = str_replace("{product_name}", $product_item->product_name, $product_template); $product_template = str_replace("{product_description}", $product_item->product_s_desc, $product_template); $product_template = str_replace("{product_price}", $product_item->product_price, $product_template); $product_template = str_replace("{product_quantity}", "<input class=\"product-quantity\" type=\"number\" value=\"1\" style=\"width:30px\">", $product_template); $product_template = str_replace("{addtocart_button}", "<input class=\"addtocart-button\" type=\"submit\" value=\"Add to cart\" style=\"width:100px\">", $product_template); require_once JPATH_SITE . '/components/com_redshop/helpers/helper.php'; $product_helper = new producthelper(); $attribute_list = $product_helper->getProductAttribute($product_item->product_id); $product_attribute_html = "";
<?php // No direct access defined('_JEXEC') or die; $document->addStyleSheet(JURI::base(true) . '/modules/mod_redslider/assets/css/redevent.css'); ?> <?php $slide_params = json_decode($slide->params); $event_item = modRedSliderHelper::getEventItem($slide_params); $event_template = $slide->template_description; $event_template = str_replace("{session_title}", "<h1>" . $event_item->session_title . "</h1>", $event_template); $event_template = str_replace("{session_date}", "<h4>" . $event_item->session_date . "</h4>", $event_template); $event_template = str_replace("{event_title}", "<h2>" . $event_item->event_title . "</h2>", $event_template); $event_template = str_replace("{event_description}", $event_item->event_description, $event_template); $event_template = str_replace("{event_button}", "<input class=\"event-button\" type=\"button\" value=\"Buy ticket\">", $event_template); ?> <li> <div class="content"> <img src="<?php echo $slide->imgslide; ?> " /> </div> <div class="event-template"> <?php echo $event_template; ?> </div>