PluginProbe
Gutenify – Visual Site Builder Blocks & Starter Templates / 1.0.4
Gutenify – Visual Site Builder Blocks & Starter Templates v1.0.4
1.9.0 1.8.0 1.7.0 1.6.6 1.6.5 1.6.4 trunk 0.0.1 0.0.2 0.0.3 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 All 74 releases
gutenify / inc / class-admin-menu.php

class-admin-menu.php in Gutenify – Visual Site Builder Blocks & Starter Templates 1.0.4, at inc/class-admin-menu.php

68 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Templates
4 *
5 * @package Gutenify
6 */
7
8 /**
9 * Gutenify_Admin_Menu
10 */
11 class Gutenify_Admin_Menu {
12 /**
13 * Gutenify_Admin_Menu constructor.
14 */
15 public function __construct() {
16 // Register custom post type.
17 add_action( 'admin_menu', array( $this, 'register_sub_menu' ) );
18 }
19
20 /**
21 * Register Admin menu.
22 */
23 public function register_sub_menu() {
24 add_submenu_page(
25 'edit.php?post_type=gutenify_template', __( 'Gutenify Template Kits' ), __( 'Template Kits' ), 'manage_options', 'gutenify-template-kits', array(&$this, 'template_kits_page_callback')
26 );
27 add_submenu_page(
28 'edit.php?post_type=gutenify_template', __( 'Gutenify Settings' ), __( 'Settings' ), 'manage_options', 'gutenify-settings', array(&$this, 'settings_page_callback')
29 );
30 // add_submenu_page(
31 // 'themes.php', __( 'Gutenify Site Options' ), __( 'Site Options' ), 'manage_options', 'gutenify-site-options', array(&$this, 'site_options_page_callback')
32 // );
33 }
34
35 /**
36 * Render submenu.
37 * @return void
38 */
39 public function settings_page_callback() {
40 echo '<div class="wrap">';
41 echo '<div id="gutenify-settings-app">Loading...</div>';
42 echo '</div>';
43 }
44
45 /**
46 * Render submenu.
47 * @return void
48 */
49 public function template_kits_page_callback() {
50 echo '<div class="wrap">';
51 echo '<div id="gutenify-template-kit-app">Loading...</div>';
52 echo '</div>';
53 }
54
55 /**
56 * Render submenu.
57 * @return void
58 */
59 public function site_options_page_callback() {
60 echo '<div class="wrap">';
61 echo '<div id="gutenify-site-options-app">Loading...</div>';
62 echo '</div>';
63 }
64
65 }
66
67 new Gutenify_Admin_Menu();
68