![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mets.corals.io/wp-content/plugins/advanced-gutenberg/incl/pages/ |
<?php defined( 'ABSPATH' ) || die; // Check current tab parameter from URL. e.g. 'admin.php?page=lorem&tab=something' $current_tab = isset( $_GET['tab'] ) && ! empty( $_GET['tab'] ) ? sanitize_text_field( $_GET['tab'] ) : 'controls'; ?> <div class="publishpress-admin wrap"> <?php if ( isset( $_GET['save'] ) && $_GET['save'] === 'success' ) : // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- display message, no action if( $current_tab === 'controls' ) { $message = esc_html__( 'Controls saved successfully!', 'advanced-gutenberg' ); } elseif( $current_tab === 'blocks' ) { $message = esc_html__( 'Blocks saved successfully!', 'advanced-gutenberg' ); } else { $message = esc_html__( 'Settings saved successfully!', 'advanced-gutenberg' ); } ?> <div id="message" class="updated fade"> <p> <?php echo $message; ?> </p> </div> <?php endif; ?> <header> <h1 class="wp-heading-inline"> <?php esc_html_e( 'Block Controls', 'advanced-gutenberg' ) ?> </h1> </header> <?php $tabs = [ [ 'title' => __( 'Controls', 'advanced-gutenberg' ), 'slug' => 'controls' ], [ 'title' => __( 'Blocks', 'advanced-gutenberg' ), 'slug' => 'blocks' ] ]; // Output tabs menu echo $this->buildTabs( 'advgb_block_controls', $current_tab, $tabs ); ?> <div class="wrap"> <?php // Load active settings tab $this->loadPageTab( 'block-controls', $current_tab ); ?> </div> </div>