JezK
Edit File: wpx-sidebar.php
<?php defined( 'ABSPATH' ) || exit; // (Avoid this class name. This class is a part of WPXtension setting framework) // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound if ( ! class_exists( 'WPXtension_Sidebar' ) ) { class WPXtension_Sidebar { protected static $_instance = null; public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; } public static function sidebar_start(){ echo ' <div id="postbox-container-1" class="postbox-container"> <div class="meta-box-sortables"> '; } public static function sidebar_end(){ echo ' </div> <!-- .meta-box-sortables --> </div> <!-- #postbox-container-1 .postbox-container --> '; } public static function block($icon, $title, $details){ ?> <div class="postbox"> <h2> <span class="<?php echo esc_attr($icon); ?>"></span> <span><?php echo esc_attr( $title ); ?></span> </h2> <div class="inside"> <p> <?php echo wp_kses_post( $details ); ?> </p> </div> <!-- .inside --> </div> <!-- .postbox --> <?php } } }