Skip to content

Commit

Permalink
Rename wpemerge_theme references to wpemerge_theme_core
Browse files Browse the repository at this point in the history
  • Loading branch information
atanas-dev committed May 3, 2020
1 parent 6fa53b2 commit 778693f
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/Assets/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function addFavicon() {
return;
}

$favicon_uri = apply_filters( 'wpemerge_theme_favicon_uri', $this->getAssetUri( 'images/favicon.ico' ) );
$favicon_uri = apply_filters( 'wpemerge_theme_core_favicon_uri', $this->getAssetUri( 'images/favicon.ico' ) );

echo '<link rel="shortcut icon" href="' . $favicon_uri . '" />' . "\n";
}
Expand Down
6 changes: 3 additions & 3 deletions src/Assets/AssetsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ class AssetsServiceProvider implements ServiceProviderInterface {
* {@inheritDoc}
*/
public function register( $container ) {
$container['wpemerge_theme.assets.manifest'] = function() {
$container['wpemerge_theme_core.assets.manifest'] = function() {
return new Manifest();
};

$container['wpemerge_theme.assets.assets'] = function( $container ) {
return new Assets( $container['wpemerge_theme.assets.manifest'] );
$container['wpemerge_theme_core.assets.assets'] = function( $container ) {
return new Assets( $container['wpemerge_theme_core.assets.manifest'] );
};
}

Expand Down
4 changes: 2 additions & 2 deletions src/Avatar/AvatarServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AvatarServiceProvider implements ServiceProviderInterface {
* {@inheritDoc}
*/
public function register( $container ) {
$container['wpemerge_theme.avatar.avatar'] = function() {
$container['wpemerge_theme_core.avatar.avatar'] = function() {
return new Avatar();
};
}
Expand All @@ -30,6 +30,6 @@ public function register( $container ) {
* {@inheritDoc}
*/
public function bootstrap( $container ) {
$container['wpemerge_theme.avatar.avatar']->bootstrap();
$container['wpemerge_theme_core.avatar.avatar']->bootstrap();
}
}
2 changes: 1 addition & 1 deletion src/Config/ConfigServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ConfigServiceProvider implements ServiceProviderInterface {
* {@inheritDoc}
*/
public function register( $container ) {
$container['wpemerge_theme.config.config'] = function() {
$container['wpemerge_theme_core.config.config'] = function() {
return new Config();
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/Image/ImageServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ImageServiceProvider implements ServiceProviderInterface {
* {@inheritDoc}
*/
public function register( $container ) {
$container['wpemerge_theme.image.image'] = function() {
$container['wpemerge_theme_core.image.image'] = function() {
return new Image();
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/Sidebar/Sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function getSidebarPostId() {
$post_id = intval( get_option( 'page_for_posts' ) );
}

$post_id = intval( apply_filters( 'wpemerge_theme_sidebar_context_post_id', $post_id ) );
$post_id = intval( apply_filters( 'wpemerge_theme_core_sidebar_context_post_id', $post_id ) );

return $post_id;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Sidebar/SidebarServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SidebarServiceProvider implements ServiceProviderInterface {
* {@inheritDoc}
*/
public function register( $container ) {
$container['wpemerge_theme.sidebar.sidebar'] = function() {
$container['wpemerge_theme_core.sidebar.sidebar'] = function() {
return new Sidebar();
};
}
Expand Down
12 changes: 6 additions & 6 deletions src/Theme/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct( $app ) {
* @return \WPEmergeThemeCore\Assets\Assets
*/
public function assets() {
return $this->app->resolve( 'wpemerge_theme.assets.assets' );
return $this->app->resolve( 'wpemerge_theme_core.assets.assets' );
}

/**
Expand All @@ -46,7 +46,7 @@ public function assets() {
* @return \WPEmergeThemeCore\Avatar\Avatar
*/
public function avatar() {
return $this->app->resolve( 'wpemerge_theme.avatar.avatar' );
return $this->app->resolve( 'wpemerge_theme_core.avatar.avatar' );
}

/**
Expand All @@ -55,7 +55,7 @@ public function avatar() {
* @return \WPEmergeThemeCore\Config\Config
*/
public function config() {
return $this->app->resolve( 'wpemerge_theme.config.config' );
return $this->app->resolve( 'wpemerge_theme_core.config.config' );
}

/**
Expand All @@ -64,7 +64,7 @@ public function config() {
* @return \WPEmergeThemeCore\Image\Image
*/
public function image() {
return $this->app->resolve( 'wpemerge_theme.image.image' );
return $this->app->resolve( 'wpemerge_theme_core.image.image' );
}

/**
Expand All @@ -73,7 +73,7 @@ public function image() {
* @return \WPEmergeThemeCore\Sidebar\Sidebar
*/
public function sidebar() {
return $this->app->resolve( 'wpemerge_theme.sidebar.sidebar' );
return $this->app->resolve( 'wpemerge_theme_core.sidebar.sidebar' );
}

/**
Expand Down Expand Up @@ -110,6 +110,6 @@ public function partial( $partial, $child = '', $context = [] ) {
* @return string
*/
public function uri() {
return $this->app->resolve( 'wpemerge_theme.assets.assets' )->getThemeUri();
return $this->app->resolve( 'wpemerge_theme_core.assets.assets' )->getThemeUri();
}
}
4 changes: 2 additions & 2 deletions src/Theme/ThemeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ class ThemeServiceProvider implements ServiceProviderInterface {
* {@inheritDoc}
*/
public function register( $container ) {
$container['wpemerge_theme.theme.theme'] = function( $c ) {
$container['wpemerge_theme_core.theme.theme'] = function( $c ) {
return new Theme( $c[ WPEMERGE_APPLICATION_KEY ] );
};

$app = $container[ WPEMERGE_APPLICATION_KEY ];
$app->alias( 'theme', 'wpemerge_theme.theme.theme' );
$app->alias( 'theme', 'wpemerge_theme_core.theme.theme' );
}

/**
Expand Down

0 comments on commit 778693f

Please sign in to comment.