PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 1.0.5
Adminify – White Label, Admin Menu Editor, Login Customizer v1.0.5
4.3.1 4.3.0 4.2.26 4.2.25 4.2.24 4.2.23 4.2.22 4.2.21 4.2.20 4.2.19 4.2.18 4.2.17 4.2.16 4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 4.1.17 All 164 releases
adminify / Inc / Modules / AdminPages / AdminPages_Render.php

AdminPages_Render.php in Adminify – White Label, Admin Menu Editor, Login Customizer 1.0.5, at Inc/Modules/AdminPages/AdminPages_Render.php

71 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WPAdminify\Inc\Modules\AdminPages;
4
5 // no direct access allowed
6 if ( !defined( 'ABSPATH' ) ) {
7 exit;
8 }
9 /**
10 * WPAdminify
11 * @package Admin Pages
12 *
13 * @author Jewel Theme <support@jeweltheme.com>
14 */
15 class AdminPages_Render extends AdminPagesModel
16 {
17 public function __construct( $post, $from_multisite = false )
18 {
19 $this->init_admin_page_content( $post, $from_multisite = false );
20 }
21
22 public function init_admin_page_content( $post, $from_multisite = false )
23 {
24 $remove_page_title = $post->remove_page_title;
25 $remove_page_margin = $post->remove_page_margin;
26 $custom_css = $post->custom_css;
27 ?>
28 <style>
29 <?php
30 if ( $remove_page_margin ) {
31 ?>#wpcontent {
32 padding-left: 0;
33 }
34
35 .wrap {
36 margin: 0;
37 }
38
39 <?php
40 }
41 if ( $custom_css ) {
42 echo wp_strip_all_tags( $custom_css ) ;
43 }
44 ?>
45 </style>
46
47 <div class="wrap">
48 <?php
49
50 if ( !$remove_page_title ) {
51 ?>
52 <h1><?php
53 echo esc_html( $post->post_title ) ;
54 ?></h1>
55 <?php
56 } else {
57 ?>
58 <h1 style="display: none;"></h1>
59 <?php
60 }
61
62 ?>
63
64 <?php
65 ?>
66 </div>
67
68 <?php
69 }
70
71 }