<?php
/**
*
* Description
*
* @package	VirtueMart
* @subpackage Config
* @author RickG
* @link https://virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: default_feeds.php 9821 2018-04-16 18:04:39Z Milbo $
*/

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

?>
<div class="">
<div class="span6">
    <div class="well nr-well ">
         <h4><?php echo vmText::_('COM_VIRTUEMART_ADMIN_CFG_HOME_FEED_SETTINGS'); ?></h4>
         <div class="well-desc"></div>
            <?php
            echo VmHTML_override::row('checkbox','COM_VIRTUEMART_ADMIN_CFG_FEED_LATEST_ENABLE','feed_latest_published', VmConfig::get('feed_latest_published',0),'','','yesno');
            echo VmHTML_override::row('input','COM_VIRTUEMART_ADMIN_CFG_FEED_LATEST_NB','feed_latest_nb', VmConfig::get('feed_latest_nb',5),'',10,10);
            echo VmHTML_override::row('checkbox','COM_VIRTUEMART_ADMIN_CFG_FEED_TOPTEN_ENABLE','feed_topten_published', VmConfig::get('feed_topten_published',0),'','','yesno');
            echo VmHTML_override::row('input','COM_VIRTUEMART_ADMIN_CFG_FEED_TOPTEN_NB','feed_topten_nb', VmConfig::get('feed_topten_nb',5),'',10,10);
    
            echo VmHTML_override::row('checkbox','COM_VIRTUEMART_ADMIN_CFG_FEED_FEATURED_ENABLE','feed_featured_published', VmConfig::get('feed_featured_published',0),'','','yesno');
            echo VmHTML_override::row('input','COM_VIRTUEMART_ADMIN_CFG_FEED_FEATURED_NB','feed_featured_nb', VmConfig::get('feed_featured_nb',5),'',10,10);
    
            echo VmHTML_override::row('checkbox','COM_VIRTUEMART_ADMIN_CFG_FEED_SHOWIMAGES','feed_home_show_images', VmConfig::get('feed_home_show_images',1),'','','yesno');
            echo VmHTML_override::row('checkbox','COM_VIRTUEMART_ADMIN_CFG_FEED_SHOWPRICES','feed_home_show_prices', VmConfig::get('feed_home_show_prices',1),'','','yesno');
            echo VmHTML_override::row('checkbox','COM_VIRTUEMART_ADMIN_CFG_FEED_SHOWDESC','feed_home_show_description', VmConfig::get('feed_home_show_description',0),'','','yesno');
    
            $options = array();
            $options[] = JHtml::_('select.option', 'product_s_desc', vmText::_('COM_VIRTUEMART_PRODUCT_FORM_S_DESC'));
            $options[] = JHtml::_('select.option', 'product_desc', vmText::_('COM_VIRTUEMART_PRODUCT_FORM_DESCRIPTION'));
            echo VmHTML_override::row('genericlist','COM_VIRTUEMART_ADMIN_CFG_FEED_DESCRIPTION_TYPE', $options, 'feed_home_description_type', 'size=1', 'value', 'text', VmConfig::get('feed_home_description_type'));
    
            echo VmHTML_override::row('input','COM_VIRTUEMART_ADMIN_CFG_FEED_MAX_TEXT_LENGTH','feed_home_max_text_length', VmConfig::get('feed_home_max_text_length',500),'',10,10);
            ?>
    </div>
</div>
<div class="span6">
    <div class="well nr-well ">
         <h4><?php echo vmText::_('COM_VIRTUEMART_ADMIN_CFG_CAT_FEED_SETTINGS'); ?></h4>
         <div class="well-desc"></div>
    
        
            <?php
            //echo VmHTML_override::row('input','COM_VIRTUEMART_ADMIN_CFG_FEED_TITLE_CATEGORIES', 'feed_title_categories', VmConfig::get('feed_title_categories', 0));
            echo VmHTML_override::row('checkbox','COM_VIRTUEMART_ADMIN_CFG_FEED_ENABLE', 'feed_cat_published', VmConfig::get('feed_cat_published', 0),'','','yesno');
            echo VmHTML_override::row('checkbox','COM_VIRTUEMART_ADMIN_CFG_FEED_SHOWIMAGES', 'feed_cat_show_images', VmConfig::get('feed_cat_show_images', 0),'','','yesno');
            echo VmHTML_override::row('checkbox','COM_VIRTUEMART_ADMIN_CFG_FEED_SHOWPRICES', 'feed_cat_show_prices', VmConfig::get('feed_cat_show_prices', 0),'','','yesno');
            echo VmHTML_override::row('checkbox','COM_VIRTUEMART_ADMIN_CFG_FEED_SHOWDESC', 'feed_cat_show_description', VmConfig::get('feed_cat_show_description', 0),'','','yesno');
    
            $options = array();
            $options[] = JHtml::_('select.option', 'product_s_desc', vmText::_('COM_VIRTUEMART_PRODUCT_FORM_S_DESC'));
            $options[] = JHtml::_('select.option', 'product_desc', vmText::_('COM_VIRTUEMART_PRODUCT_FORM_DESCRIPTION'));
            echo VmHTML_override::row('genericlist','COM_VIRTUEMART_ADMIN_CFG_FEED_DESCRIPTION_TYPE', $options, 'feed_cat_description_type', 'size=1', 'value', 'text', VmConfig::get('feed_cat_description_type',0));
            echo VmHTML_override::row('input','COM_VIRTUEMART_ADMIN_CFG_FEED_MAX_TEXT_LENGTH','feed_cat_max_text_length',VmConfig::get('feed_cat_max_text_length','500'),"","",4);
            ?>
    </div>
</div>
</div>
