public static function get_sidebar($sidebar = 'sidebar.php', $data = array()) { if (strstr(strtolower($sidebar), '.php')) { return self::get_sidebar_from_php($sidebar, $data); } return self::compile($sidebar, $data); }