Your IP : 216.73.216.248


Current Path : /home/digilove/www/41423/
Upload File :
Current File : /home/digilove/www/41423/columns_item.tar

css/index.html000064400000000032152351140340007322 0ustar00<html><body></body></html>js/index.html000064400000000032152351140340007146 0ustar00<html><body></body></html>config.php000064400000003634152351140340006526 0ustar00<?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;
class YT_Shortcode_columns_item_config {
static function get_config() {
	// columns item
	return array(
		'col' => array('type' => 'slider',
			'default' => 4,
			'min' => 1,
			'max' => 12,
			'step' => 1,
			'name' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_COLUMNS_COL'),
			'desc' => JText::_("PLG_SYSTEM_YOUTECH_SHORTCODES_COLUMNS_COL_DESC"),
			'child' => array(
				'offset' => array('type' => 'slider',
					'default' => 0,
					'min' => 0,
					'max' => 12,
					'step' => 1,
					'name' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_COLUMNS_OFFSET'),
					'desc' => JText::_("PLG_SYSTEM_YOUTECH_SHORTCODES_COLUMNS_OFFSET_DESC"),
				),
			),
		),
		'margin' => array(
			'default' => '0px',
			'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_MARGIN'),
			'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_MARGIN_DESC'),
			'child'	  => array(
				'padding' => array(
					'default' => '0px',
					'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_PADDING'),
					'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_PADDING_DESC'),
				),
			)	
		),
		'background'=>array(
			'type' => 'color',
			'default'=> '#e1e1e1',
			'name' =>JText::_("PLG_SYSTEM_YOUTECH_SHORTCODES_BACKGROUND"),
			'desc' => JText::_("PLG_SYSTEM_YOUTECH_SHORTCODES_BACKGROUND_DESC"),
			'child' => array(
				'color' => array(
					'type' => 'color',
					'default' => '#ccc',
					'name' => JText::_("PLG_SYSTEM_YOUTECH_SHORTCODES_COLOR"),
					'desc' => JText::_("PLG_SYSTEM_YOUTECH_SHORTCODES_COLOR_DESC"),		
				),
			),
		),		
		'content'  => array(
			'type' => 'textarea',
			'default' => 'Add content here',
			'name' => 'Content'
		),	
	);
}
}

?>shortcode.php000064400000002027152351140340007246 0ustar00<?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;
function columns_itemYTShortcode($atts, $content = null ){
	global $grid;
	extract(ytshortcode_atts(array(
		"col" => 4,
		"offset" => '',
		"margin" => '0px',
		"padding" => '0px',
		"background" => '#fff',
		"color"		=> '#000'
	), $atts));
	$id = uniqid('columns_item_').rand().time(); 
	$css = '';
	if($grid == "yes")
	{
		$css .= '.'.$id.'{background:'.$background.'; margin: '.$margin.'; padding:'.$padding.'; color:'.$color.'}';
		$doc = JFactory::getDocument();
		$doc->addStyleDeclaration($css);
	}
	
	return '<div  class="yt-clearfix '.$id.' yt-col-xs-12 yt-col-sm-'.$col.' yt-col-md-' . $col. ' '.(($offset != '') ? ' yt-col-md-offset-' . $offset : '') .' yt-col-lg-'.$col.'">' . parse_shortcode(str_replace(array("<br/>", "<br>", "<br />"), " ", $content)) . '</div>';
}
?>