PUM_Admin_Themes::render_settings_meta_box()
Render the settings meta box wrapper and JS vars.
Description Description
Source Source
File: classes/Admin/Themes.php
public static function render_settings_meta_box() { global $post; $theme = pum_get_theme( $post->ID ); // Get the meta directly rather than from cached object. $settings = self::parse_values( $theme->get_settings() ); wp_nonce_field( basename( __FILE__ ), 'pum_theme_settings_nonce' ); wp_enqueue_script( 'popup-maker-admin' ); ?> <script type="text/javascript"> window.pum_theme_settings_editor = <?php echo PUM_Utils_Array::safe_json_encode( apply_filters( 'pum_theme_settings_editor_var', array( 'form_args' => array( 'id' => 'pum-theme-settings', 'tabs' => self::tabs(), 'sections' => self::sections(), 'fields' => self::fields(), ), 'current_values' => self::render_form_values( $settings ), ) ) ); ?>; </script> <div id="pum-theme-settings-container" class="pum-theme-settings-container"> <div class="pum-no-js" style="padding: 0 12px;"> <p><?php printf( __( 'If you are seeing this, the page is still loading or there are Javascript errors on this page. %sView troubleshooting guide%s', 'popup-maker' ), '<a href="https://docs.wppopupmaker.com/article/373-checking-for-javascript-errors" target="_blank">', '</a>' ); ?></p> </div> </div> <?php }
Expand full source code Collapse full source code View on Trac