| 1 |
<?php |
| 2 |
/** |
| 3 |
* Settings Class |
| 4 |
* |
| 5 |
* @package Templately |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace Templately\Admin; |
| 9 |
|
| 10 |
defined('ABSPATH') or exit; |
| 11 |
|
| 12 |
use Templately\Helper; |
| 13 |
use Elementor\User; |
| 14 |
|
| 15 |
class Settings { |
| 16 |
public static function init() { |
| 17 |
static::admin_menu(); |
| 18 |
} |
| 19 |
|
| 20 |
public static function display() { |
| 21 |
Helper::views('core/admin/views/settings'); |
| 22 |
} |
| 23 |
|
| 24 |
public static function admin_menu() { |
| 25 |
// TOOD: Role Management |
| 26 |
\add_menu_page( |
| 27 |
'Templately', |
| 28 |
'Templately', |
| 29 |
'delete_posts', |
| 30 |
'templately', |
| 31 |
array(__CLASS__, 'display'), |
| 32 |
TEMPLATELY_ASSETS . 'images/logo-icon.svg', |
| 33 |
'58.7' |
| 34 |
); |
| 35 |
} |
| 36 |
} |
| 37 |
|