PluginProbe
Depicter — Popup & Slider Builder / 1.3.2
Depicter — Popup & Slider Builder v1.3.2
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
depicter / modules / wpemerge-app-core / src / AppCore / AppCore.php

AppCore.php in Depicter — Popup & Slider Builder 1.3.2, at modules/wpemerge-app-core/src/AppCore/AppCore.php

79 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package WPEmergeAppCore
4 * @author Atanas Angelov <hi@atanas.dev>
5 * @copyright 2017-2020 Atanas Angelov
6 * @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0
7 * @link https://wpemerge.com/
8 */
9
10 namespace WPEmergeAppCore\AppCore;
11
12 use WPEmerge\Application\Application;
13
14 /**
15 * Main communication channel with the theme.
16 */
17 class AppCore {
18 /**
19 * Application instance.
20 *
21 * @var Application
22 */
23 protected $app = null;
24
25 /**
26 * Constructor.
27 *
28 * @param Application $app
29 */
30 public function __construct( $app ) {
31 $this->app = $app;
32 }
33
34 /**
35 * Shortcut to \WPEmergeAppCore\Assets\Assets.
36 *
37 * @return \WPEmergeAppCore\Assets\Assets
38 */
39 public function assets() {
40 return $this->app->resolve( 'wpemerge_app_core.assets.assets' );
41 }
42
43 /**
44 * Shortcut to \WPEmergeAppCore\Avatar\Avatar.
45 *
46 * @return \WPEmergeAppCore\Avatar\Avatar
47 */
48 public function avatar() {
49 return $this->app->resolve( 'wpemerge_app_core.avatar.avatar' );
50 }
51
52 /**
53 * Shortcut to \WPEmergeAppCore\Config\Config.
54 *
55 * @return \WPEmergeAppCore\Config\Config
56 */
57 public function config() {
58 return $this->app->resolve( 'wpemerge_app_core.config.config' );
59 }
60
61 /**
62 * Shortcut to \WPEmergeAppCore\Image\Image.
63 *
64 * @return \WPEmergeAppCore\Image\Image
65 */
66 public function image() {
67 return $this->app->resolve( 'wpemerge_app_core.image.image' );
68 }
69
70 /**
71 * Shortcut to \WPEmergeAppCore\Sidebar\Sidebar.
72 *
73 * @return \WPEmergeAppCore\Sidebar\Sidebar
74 */
75 public function sidebar() {
76 return $this->app->resolve( 'wpemerge_app_core.sidebar.sidebar' );
77 }
78 }
79