/** * [dkpdf-button] * This shortcode is used to display DK PDF Button * doesn't has attributes, uses settings from DK PDF Settings / PDF Button */ function dkpdf_button_shortcode($atts, $content = null) { $template = new DKPDF_Template_Loader(); ob_start(); $template->get_template_part('dkpdf-button'); return ob_get_clean(); }
/** * returs a template * @param string template name */ function dkpdf_get_template($template_name) { $template = new DKPDF_Template_Loader(); ob_start(); $template->get_template_part($template_name); return ob_get_clean(); }