Sindbad~EG File Manager

Current Path : /home/sarayaglobal/.trash/plugins.1/system/cthshortcodes/shortcodes/
Upload File :
Current File : /home/sarayaglobal/.trash/plugins.1/system/cthshortcodes/shortcodes/button.php

<?php

//no direct accees
defined ('_JEXEC') or die('resticted aceess');

// [button type="default" link="#" target="#" size="sm" class="color"]Button[/button]

if(!function_exists('button_sc')){
	function button_sc($atts, $content='') {
		extract(shortcode_atts(array(
					"link" => '',
					"class"=>''
				), $atts));
		$href ='';
		if($link){
			$href = 'href="'.$link.'"';
		}
		$classes = "btn";

		if($class){
			$classes .= ' '.$class;
		}
		$classes = 'class="'.$classes.'"';

		return '<a ' . $href . ' ' . $classes . ' >' .  do_shortcode($content)  . '</a>';
	}
	add_shortcode('button', 'button_sc');
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists