From d812cc2b81d69bec87a6aaab76ce3bb82d86727f Mon Sep 17 00:00:00 2001 From: Atanas Angelov Date: Wed, 13 May 2020 23:35:31 +0300 Subject: [PATCH] Remove partial() and uri() as they are unnecessary --- src/Theme/Theme.php | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/src/Theme/Theme.php b/src/Theme/Theme.php index a8374fb..6f0c68a 100644 --- a/src/Theme/Theme.php +++ b/src/Theme/Theme.php @@ -75,41 +75,4 @@ public function image() { public function sidebar() { return $this->app->resolve( 'wpemerge_theme_core.sidebar.sidebar' ); } - - /** - * Render a template partial using \App::render(). - * Interface matches get_template_part() with the addition of $context. - * - * @param string $partial - * @param string $child - * @param array $context - * @return void - */ - public function partial( $partial, $child = '', $context = [] ) { - if ( is_array( $child ) ) { - // Optional argument $child not specified, flip input around. - $context = $child; - $child = ''; - } - - $templates = []; - - if ( $child ) { - $templates[] = "views/partials/${partial}-${child}"; - } - - $templates[] = "views/partials/${partial}"; - - $this->app->render( $templates, $context ); - } - - /** - * Alias for WPEmergeThemeCore\Assets\Assets::getThemeUri(). - * - * @see \WPEmergeThemeCore\Assets\Assets::getThemeUri - * @return string - */ - public function uri() { - return $this->app->resolve( 'wpemerge_theme_core.assets.assets' )->getThemeUri(); - } }