each(function ($file) { if (! locate_template($file = "app/{$file}.php", true, true)) { wp_die( sprintf(__('Error locating %s for inclusion.', 'sage'), $file) ); } }); /* |-------------------------------------------------------------------------- | Enable Sage Theme Support |-------------------------------------------------------------------------- | | Once our theme files are registered and available for use, we are almost | ready to boot our application. But first, we need to signal to Acorn | that we will need to initialize the necessary service providers built in | for Sage when booting. | */ add_theme_support('sage'); /* |-------------------------------------------------------------------------- | Return The Application |-------------------------------------------------------------------------- | | This script returns the application instance. The instance is given to | the calling script so we can separate the building of the instances | from the actual running of the application and sending responses. | */ return $app;