How to use shortcodes in template files or another plugins

Easy way

You can invoke it with a special WordPress function do_shortcode()

echo do_shortcode( '[shortcode]' );

Any parameters and nested shortcodes is supported

echo do_shortcode( '[su_button style="flat"] Click me [/su_button]' );

Advanced way

You can use all features of PHP and WordPress with special class named Su_Shortcodes and it's static methods.

echo Su_Shortcodes::button(
	// First argument is array with shortcode attributes
		'style' => 'flat',
		'background' => '#0099ff'
	// Second argument is a shortcode content (between opening and closing tags)
	'Click me'

// Equal to [su_button style="flat" background="#0099ff"] Click me [/su_button]