Blocks
1 month ago
MenuService.php
1 month ago
SBR_About_Builder.php
1 month ago
SBR_Admin_Notice.php
1 month ago
SBR_Collections_Builder.php
1 month ago
SBR_New_User.php
1 month ago
SBR_Notifications.php
1 month ago
SBR_Plugin_Insltaller.php
1 month ago
SBR_Support_Builder.php
1 month ago
SBR_Support_Tool.php
1 month ago
SBR_About_Builder.php
64 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Reviews Feed Saver |
| 5 | * |
| 6 | * @since 1.0 |
| 7 | */ |
| 8 | |
| 9 | namespace SmashBalloon\Reviews\Common\Admin; |
| 10 | |
| 11 | use Smashballoon\Customizer\V2\About_Builder; |
| 12 | use SmashBalloon\Reviews\Common\Builder\Config\Proxy; |
| 13 | use SmashBalloon\Reviews\Common\Util; |
| 14 | |
| 15 | class SBR_About_Builder extends About_Builder |
| 16 | { |
| 17 | protected $config_proxy; |
| 18 | |
| 19 | /** |
| 20 | * MEnu Slug |
| 21 | * @since 1.0 |
| 22 | */ |
| 23 | protected $builder_menu_slug; |
| 24 | protected $current_plugin; |
| 25 | protected $add_to_menu; |
| 26 | |
| 27 | protected $menu; |
| 28 | |
| 29 | public function __construct(Proxy $config_proxy) |
| 30 | { |
| 31 | $this->menu = [ |
| 32 | 'parent_menu_slug' => "sbr", |
| 33 | 'page_title' => "About us", |
| 34 | 'menu_title' => "About us", |
| 35 | 'menu_slug' => "sbr-about", |
| 36 | ]; |
| 37 | $this->config_proxy = $config_proxy; |
| 38 | $this->builder_menu_slug = SBR_CUSTOMIZER_MENU_SLUG; |
| 39 | $this->current_plugin = 'ReviewsPro'; |
| 40 | $this->add_to_menu = !Util::sbr_is_pro() ? true : check_license_valid(); |
| 41 | } |
| 42 | |
| 43 | public function custom_aboutus_data() |
| 44 | { |
| 45 | $aboutus_data = [ |
| 46 | 'nonce' => wp_create_nonce('sbr-admin'), |
| 47 | 'assetsURL' => SB_COMMON_ASSETS, |
| 48 | 'plugins' => Util::get_plugins_info(), |
| 49 | 'isPro' => Util::sbr_is_pro(), |
| 50 | 'recommendedPlugins' => Util::get_smashballoon_recommended_plugins_info(), |
| 51 | 'adminNoticeContent' => apply_filters('sbr_admin_notices_filter', 1), |
| 52 | 'aboutPageUrl' => admin_url('admin.php?page=sbr-about'), |
| 53 | 'collectionsPageUrl' => admin_url('admin.php?page=sbr-collections'), |
| 54 | 'builderUrl' => admin_url('admin.php?page=sbr'), |
| 55 | 'freeRetrieverData' => Util::get_free_retriever_data() |
| 56 | ]; |
| 57 | |
| 58 | return $aboutus_data; |
| 59 | } |
| 60 | |
| 61 | |
| 62 | |
| 63 | } |
| 64 |