Server IP : 104.21.14.48 / Your IP : 18.216.73.75 [ 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/widget/templates/metaboxes/ |
Upload File : |
<?php /** * Widget types metabox. * * @package Ultimate_Dashboard */ defined( 'ABSPATH' ) || die( "Can't access directly" ); return function () { global $post; $widget_types = array( 'icon' => __( 'Icon Widget', 'ultimate-dashboard' ), 'text' => __( 'Text Widget', 'ultimate-dashboard' ), 'html' => __( 'HTML Widget', 'ultimate-dashboard' ), ); $widget_types = apply_filters( 'udb_widget_types', $widget_types ); $stored_meta = get_post_meta( $post->ID, 'udb_widget_type', true ); ?> <div class="udb-main-metabox"> <div class="postbox"> <div class="postbox-header"> <h2><?php _e( 'Widget Type', 'ultimate-dashboard' ); ?></h2> </div> <?php wp_nonce_field( 'udb_widget_type', 'udb_widget_type_nonce' ); ?> <div class="inside"> <select name="udb_widget_type"> <?php foreach ( $widget_types as $value => $text ) { ?> <option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, $stored_meta ); ?>><?php echo esc_html( $text ); ?></option> <?php } ?> </select> </div> </div> <div class="widget-fields"> <?php do_action( 'udb_widget_metabox' ); ?> </div> </div> <?php };