<?php
/**
 * @package SP Page Builder
 * @author JoomShaper http://www.joomshaper.com
 * @copyright Copyright (c) 2010 - 2016 JoomShaper
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/
//no direct accees
defined ('_JEXEC') or die ('restricted aceess');

AddonParser::addAddon('sp_empty_space','sp_empty_space_addon');

function sp_empty_space_addon($atts){

	extract(spAddonAtts(array(
		'gap'		=> '20',
		'hidden_md'	=> '',
		'hidden_sm'	=> '',
		'hidden_xs'	=> '',
		'class'		=> '',
		), $atts));

	//Responsive utilities
	if($hidden_md) $class .= $class . ' sppb-hidden-md sppb-hidden-lg';
	if($hidden_sm) $class .= $class . ' sppb-hidden-sm';
	if($hidden_xs) $class .= $class . ' sppb-hidden-xs';

	return '<div class="sppb-empty-space ' . $class . ' clearfix" style="margin-bottom:' . (int)$gap . 'px;"></div>';
}