The following snippet will let you use WordPress shortcodes in themes files.