function on_show_theme_page() { if ($this->error) { ?> <div id="error" class="error fade"> <?php foreach ($this->error as $err) { ?> <p><?php echo esc_html($err); ?> </p> <?php } ?> </div> <?php } ?> <?php if ($this->message) { ?> <div id="message" class="updated fade"> <?php foreach ($this->message as $msg) { ?> <p><?php echo esc_html($msg); ?> </p> <?php } ?> </div> <?php } if (is_wp_error($this->last_error)) { ?> <div id="message" class="error"><p><?php echo $this->last_error->get_error_message(); ?> </p></div> <?php $this->last_error = false; } ?> <div id="xtreme-metaboxes-all" class="wrap"> <?php screen_icon('themes'); ?> <h2><?php _e('Xtreme Layouts', XF_TEXTDOMAIN); ?> </h2> <?php xtreme_backend_header(); ?> <form action="admin-post.php" method="post" enctype="multipart/form-data"> <div id="poststuff" class="metabox-holder"> <?php if (isset($_GET['mode'])) { if ('add_layout' == $_GET['mode'] || 'edit_layout' == $_GET['mode']) { $this->load_temp_metabox(); ?> <?php wp_nonce_field('xtreme_layout_settings'); ?> <?php wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false); ?> <?php wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false); ?> <input type="hidden" name="action" value="save_xtreme_layout_settings" /> <?php do_meta_boxes($this->pagehook, 'normal', $this->theme_data); ?> <?php require_once dirname(__FILE__) . '/file_access.php'; if ($this->requires_credentials) { ob_start(); if (false === ($credentials = xtreme_request_filesystem_credentials(__('Connection information might be required to Modify Layouts', XF_TEXTDOMAIN), ''))) { $data = (string) ob_get_contents(); ob_end_clean(); echo $data; } else { ob_end_clean(); $this->requires_credentials = false; } } ?> <div> <input type="submit" name="xtreme_save_layout" id="xtreme_save_layout" value="<?php _e('Save', XF_TEXTDOMAIN); ?> " class="button-primary" /> <input type="submit" name="xtreme_cancel_layout" id="xtreme_cancel_layout" value="<?php _e('Cancel', XF_TEXTDOMAIN); ?> " class="button-secondary" /> </div> <?php } } ?> </div> </form> <?php if (!isset($_GET['mode'])) { $this->print_layouts_table(); } ?> <br /> </div> <div id="dialog"></div> <div id="credentials_dialog"></div> <div id="help_dialog"></div> <script type="text/javascript"> //<![CDATA[ jQuery(document).ready( function($) { $('.if-js-closed').removeClass('if-js-closed').addClass('closed'); postboxes.add_postbox_toggles('<?php echo $this->pagehook; ?> '); }); //]]> </script> <?php }
function on_show_theme_page() { global $screen_layout_columns; if (is_wp_error($this->last_error)) { ?> <div id="message" class="error"><p><?php echo $this->last_error->get_error_message(); ?> </p></div> <?php $this->last_error = false; } ?> <div id="xtreme-metaboxes-all" class="wrap"> <?php screen_icon('themes'); ?> <h2><?php _e('Xtreme Configuration Center', XF_TEXTDOMAIN); ?> </h2> <?php xtreme_backend_header(); ?> <?php $this->detect_outdated_production_stylesheet(); ?> <form action="admin-post.php" method="post" enctype="multipart/form-data"> <?php wp_nonce_field('xtreme_backend_settings'); ?> <?php wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false); ?> <?php wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false); ?> <input type="hidden" name="action" value="save_xtreme_backend_settings" /> <?php $this->the_button_bar(); ?> <div id="poststuff" class="metabox-holder<?php echo 2 == $screen_layout_columns ? ' has-right-sidebar' : ''; ?> "> <div id="side-info-column" class="inner-sidebar"> <?php do_meta_boxes($this->pagehook, 'side', ''); ?> </div> <div id="post-body" class="has-sidebar"> <div id="post-body-content" class="has-sidebar-content"> <?php do_meta_boxes($this->pagehook, 'normal', ''); ?> <?php require_once dirname(__FILE__) . '/file_access.php'; if ($this->requires_credentials) { ob_start(); if (false === ($credentials = xtreme_request_filesystem_credentials(__('Connection information might be requiered to Generate Theme', XF_TEXTDOMAIN), ''))) { $data = (string) ob_get_contents(); ob_end_clean(); echo $data; } else { ob_end_clean(); $this->requires_credentials = false; } } ?> <?php $this->the_button_bar(); ?> </div> </div> <br class="clear"/> </div> <br/> </form> </div> <div id="dialog"></div> <div id="credentials_dialog"></div> <div id="help_dialog"></div> <script type="text/javascript"> //<![CDATA[ jQuery(document).ready( function($) { $('.if-js-closed').removeClass('if-js-closed').addClass('closed'); postboxes.add_postbox_toggles('<?php echo $this->pagehook; ?> '); $('form').attr('autocomplete', 'off'); }); //]]> </script> <?php }
function on_show_options_page() { global $screen_layout_columns; $link = "widgets.php"; ?> <div id="xtreme-metaboxes-all" class="wrap"> <?php screen_icon('options-general'); ?> <h2><?php _e('Widget Permission Settings', XF_TEXTDOMAIN); ?> </h2> <?php xtreme_backend_header(); ?> <p> <?php $link_text = sprintf('<a class="x-widget-page-button button" href="%s"><span class="appearance"> </span>%s - %s</a>', $link, __('Appearance', XF_TEXTDOMAIN), __('Widgets', XF_TEXTDOMAIN)); printf(__("You want to limit the amount of available widgets at the page %s, you can allow or deny the utilization of each specific widget in detail here.", XF_TEXTDOMAIN), $link_text); ?> <br/><small><em><strong><?php _e('Attention:', XF_TEXTDOMAIN); ?> </strong> <?php _e("If you switch off widgets here, please be sure, that you are not using it. Used widgets switched off, will loose all their settings and will not be parked.", XF_TEXTDOMAIN); ?> </em></small> </p> <form action="admin-post.php" method="post" enctype="multipart/form-data"> <div id="poststuff" class="metabox-holder<?php echo 2 == $screen_layout_columns ? ' has-right-sidebar' : ''; ?> "> <div id="side-info-column" class="inner-sidebar"> <?php do_meta_boxes($this->pagehook, 'side', ''); ?> </div> <div id="post-body" class="has-sidebar"> <div id="post-body-content" class="has-sidebar-content"> <?php wp_nonce_field('xtreme_backend_settings'); ?> <input type="hidden" name="action" value="save_xtreme_widgets" /> <?php do_meta_boxes($this->pagehook, 'normal', ''); ?> <?php global $xtreme_widget_manager, $wp_widget_factory; ?> <div> <input type="submit" name="xtreme_save" id="xtreme_save" value="<?php _e('Save Settings', XF_TEXTDOMAIN); ?> " class="button-primary" /> <input type="submit" name="xtreme_reset" id="xtreme_reset" value="<?php _e('Reset to general permission', XF_TEXTDOMAIN); ?> " class="button-secondary" /> </div> </div> </div> <br class="clear"/> </div> <br/> </form> </div> <script type="text/javascript"> //<![CDATA[ jQuery(document).ready( function($) { $('.if-js-closed').removeClass('if-js-closed').addClass('closed'); postboxes.add_postbox_toggles('<?php echo $this->pagehook; ?> '); }); //]]> </script> <?php }
function on_show_theme_page() { global $screen_layout_columns; if (is_wp_error($this->last_error)) { ?> <div id="message" class="error"><p><?php echo $this->last_error->get_error_message(); ?> </p></div> <?php $this->last_error = false; } ?> <?php if ($this->message) { ?> <div id="message" class="updated fade"> <?php foreach ($this->message as $msg) { ?> <p><?php echo esc_html($msg); ?> </p> <?php } ?> </div> <?php } ?> <?php if ($this->error) { ?> <div id="error" class="error fade"> <?php foreach ($this->error as $err) { ?> <p><?php echo $err; ?> </p> <?php } ?> </div> <?php } ?> <div id="xtreme-metaboxes-all" class="wrap"> <?php screen_icon('themes'); ?> <h2><?php _e('Xtreme Backup Center', XF_TEXTDOMAIN); ?> </h2> <?php xtreme_backend_header(); ?> <form action="admin-post.php" method="post" enctype="multipart/form-data"> <div id="poststuff" class="metabox-holder<?php echo 2 == $screen_layout_columns ? ' has-right-sidebar' : ''; ?> "> <div id="side-info-column" class="inner-sidebar"> <?php do_meta_boxes($this->pagehook, 'side', ''); ?> </div> <div id="post-body" class="has-sidebar"> <div id="post-body-content" class="has-sidebar-content"> <?php wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false); ?> <?php wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false); ?> <?php wp_nonce_field('xtreme_backend_settings'); ?> <input type="hidden" name="action" value="save_xtreme_backup" /> <?php do_meta_boxes($this->pagehook, 'normal', ''); ?> </div> </div> <br class="clear"/> </div> <br/> </form> </div> <script type="text/javascript"> //<![CDATA[ jQuery(document).ready( function($) { $('.if-js-closed').removeClass('if-js-closed').addClass('closed'); postboxes.add_postbox_toggles('<?php echo $this->pagehook; ?> '); }); //]]> </script> <?php }