/** * Locate a dashboard template relative to the template dir root * * @package Infinity * @subpackage dashboard * @param string $rel_path Relative path to template from dashboard template root * @return string */ function infinity_dashboard_locate_template($rel_path) { // format template path $template = INFINITY_ADMIN_DIR . '/templates/' . $rel_path; // locate the template return infinity_locate_template($template); }
/** * Load a template * * @package Infinity-api * @param string|array $template_name * @return string */ function infinity_load_template($template_name) { return infinity_locate_template($template_name, true); }