PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 1.3.2
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v1.3.2
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | core/admin/class-settings.php +36 -0 1-final1.3.2 View file →
@@ -1,0 +1,36 @@
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 +}