PUM_Admin_Popups::title_meta_field()
Renders the popup title meta field.
Description Description
Source Source
File: classes/Admin/Popups.php
public static function title_meta_field() { global $post, $pagenow, $typenow; if ( has_blocks( $post ) || ( function_exists( 'use_block_editor_for_post' ) && use_block_editor_for_post( $post ) ) ) { return; } if ( ! is_admin() ) { return; } if ( 'popup' == $typenow && in_array( $pagenow, array( 'post-new.php', 'post.php' ) ) ) { ?> <div id="popup-titlediv" class="pum-form"> <div id="popup-titlewrap"> <label class="screen-reader-text" id="popup-title-prompt-text" for="popup-title"> <?php esc_html_e( 'Popup Title', 'popup-maker' ); ?> </label> <input tabindex="2" name="popup_title" size="30" value="<?php echo esc_attr( get_post_meta( $post->ID, 'popup_title', true ) ); ?>" id="popup-title" autocomplete="off" placeholder="<?php esc_html_e( 'Popup Title', 'popup-maker' ); ?>" /> <p class="pum-desc"><?php echo '(' . esc_html__( 'Optional', 'popup-maker' ) . ') ' . esc_html__( 'Shown as headline inside the popup. Can be left blank.', 'popup-maker' ); ?></p> </div> <div class="inside"></div> </div> <script>jQuery('#popup-titlediv').insertAfter('#titlediv');</script> <?php } }
Expand full source code Collapse full source code View on Trac