'inform_is_sanitize' ) ); } ); add_action( 'admin_menu', function () { add_options_page( __( 'Info Screen', 'inform-info-screen' ), __( 'Info Screen', 'inform-info-screen' ), 'manage_options', 'inform-info-screen', 'inform_is_render_settings' ); } ); add_filter( 'plugin_action_links_' . plugin_basename( INFORM_IS_FILE ), function ( $links ) { array_unshift( $links, '' . esc_html__( 'Settings', 'inform-info-screen' ) . '', '' . esc_html__( 'Open screen', 'inform-info-screen' ) . '' ); return $links; } ); add_action( 'admin_enqueue_scripts', function ( $hook ) { if ( 'settings_page_inform-info-screen' !== $hook ) { return; } wp_enqueue_style( 'wp-color-picker' ); wp_enqueue_script( 'wp-color-picker' ); wp_add_inline_script( 'wp-color-picker', "jQuery(function($){ $('.iis-color').wpColorPicker(); });" ); /** * Fires when the settings page enqueues its assets (for add-ons). */ do_action( 'inform_is_settings_enqueue' ); } ); function inform_is_render_settings() { if ( ! current_user_can( 'manage_options' ) ) { return; } $s = inform_is_get(); $n = INFORM_IS_OPT; $url = inform_is_screen_url(); $cat = get_category_by_slug( $s['category'] ); ?>

v

F11 on Windows/Linux or Ctrl+Cmd+F on Mac. You can also click the screen. Press the same key (or Esc) to exit.', 'inform-info-screen' ), array( 'kbd' => array() ) ); ?>

←/→ steps between items, R reloads the screen.', 'inform-info-screen' ), array( 'kbd' => array() ) ); if ( $cat ) { echo ' ' . esc_html( sprintf( /* translators: 1: category name, 2: number of posts */ _n( 'The category “%1$s” has %2$d post.', 'The category “%1$s” has %2$d posts.', (int) $cat->count, 'inform-info-screen' ), $cat->name, (int) $cat->count ) ); } ?>

ID, '_inform_is_duration', true ); $video = get_post_meta( $post->ID, '_inform_is_video', true ); $expires = get_post_meta( $post->ID, '_inform_is_expires', true ); $layout = get_post_meta( $post->ID, '_inform_is_layout', true ); $layout = $layout ? $layout : 'standard'; $cat = get_category_by_slug( $s['category'] ); wp_nonce_field( 'inform_is_meta_save', 'inform_is_meta_nonce' ); ?>

' . esc_html( $cat ? $cat->name : $s['category'] ) . '' ); ?>