'
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ]; register_sidebar([ 'name' => __('Home Block 1', 'aldine'), 'id' => 'home-block-1' ] + $config); register_sidebar([ 'name' => __('Home Block 2', 'aldine'), 'id' => 'home-block-2' ] + $config); register_sidebar([ 'name' => __('Home Block 3', 'aldine'), 'id' => 'home-block-3' ] + $config); register_sidebar([ 'name' => __('Home Block 4', 'aldine'), 'id' => 'home-block-4' ] + $config); register_sidebar([ 'name' => __('Home Block 5', 'aldine'), 'id' => 'home-block-5' ] + $config); register_sidebar([ 'name' => __('Footer Block 1', 'aldine'), 'id' => 'footer-block-1' ] + $config); register_sidebar([ 'name' => __('Footer Block 2', 'aldine'), 'id' => 'footer-block-2' ] + $config); register_sidebar([ 'name' => __('Footer Block 3', 'aldine'), 'id' => 'footer-block-3' ] + $config); }); /** * Updates the `$post` variable on each iteration of the loop. * Note: updated value is only available for subsequently loaded views, such as partials */ add_action('the_post', function ($post) { sage('blade')->share('post', $post); }); /** * Setup Sage options */ add_action('after_setup_theme', function () { /** * Add JsonManifest to Sage container */ sage()->singleton('sage.assets', function () { return new JsonManifest(config('assets.manifest'), config('assets.uri')); }); /** * Add Blade to Sage container */ sage()->singleton('sage.blade', function (Container $app) { $cachePath = config('view.compiled'); if (!file_exists($cachePath)) { wp_mkdir_p($cachePath); } (new BladeProvider($app))->register(); return new Blade($app['view']); }); /** * Create @asset() Blade directive */ sage('blade')->compiler()->directive('asset', function ($asset) { return ""; }); });