<?php 
/*
* @package   YouTech Shortcodes
* @author    YouTech Company http://smartaddons.com/
* @copyright Copyright (C) 2015 YouTech Company
* @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
defined('_JEXEC') or die;use Joomla\CMS\Language\Text;use Joomla\CMS\Factory;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\HTML\HTMLHelper;
$pcolumns = 3;
function pricing_tablesYTShortcode($atts, $content = null ){
	global $pcolumns,$type;
	extract(ytshortcode_atts(array(
		"columns" 			=> '3',
		"width" 		=> '100%',
		"style" 		=> '',
		"type"			=>''
	), $atts));
	$css ='';
	$id = uniqid('pricing_tables_').rand().time(); 
	$pcolumns	= $columns;
	$class 		= 'yt-pricing block column-' . $columns.' pricing-'.$style;
	HTMLHelper::_('stylesheet', Uri::base() . "plugins/system/ytshortcodes/shortcodes/pricing_tables/css/pricingtable.css");
	$css .= '#'.$id.'{width:'.$width.';}';
	$doc = Factory::getDocument();
	$doc->addStyleDeclaration($css);
	return '<div class="'.$class.'" id="'.$id.'">' . parse_shortcode(str_replace(array("<br/>", "<br>", "<br />"), " ", $content)) . '</div>';
}
?>