Server IP : 172.67.157.199 / Your IP : 18.189.157.185 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/plugins/ultimate-dashboard/modules/admin-page/templates/ |
Upload File : |
<?php /** * Ultimate Dashboard admin page. * * Variables brought from "render_admin_page($post, $multisite)" function. * - $post * - $from_multisite * * @package Ultimate_Dashboard */ defined( 'ABSPATH' ) || die( "Can't access directly" ); use Udb\Helpers\Content_Helper; $content_helper = new Content_Helper(); do_action( 'udb_ms_switch_blog' ); $editor = $content_helper->get_content_editor( $post->ID ); do_action( 'udb_ms_restore_blog' ); $remove_page_title = $post->remove_page_title; $remove_page_margin = $post->remove_page_margin; $custom_css = $post->custom_css; ?> <style> <?php if ( $remove_page_margin ) : ?> #wpcontent { padding-left: 0; } .wrap { margin: 0; } <?php endif; ?> <?php if ( $custom_css ) { echo $content_helper->sanitize_css( $custom_css ); } ?> </style> <div class="wrap"> <?php if ( ! $remove_page_title ) : ?> <h1><?php echo esc_html( $post->post_title ); ?></h1> <?php else : ?> <h1 style="display: none;"></h1> <?php endif; ?> <?php if ( ! udb_is_pro_active() ) { if ( 'html' === $post->content_type ) { echo $post->html_content; } else { echo apply_filters( 'the_content', $post->post_content ); } } do_action( 'udb_admin_page_content_output', $post, $editor, $from_multisite ); ?> </div>