<?php /** * Display the popup settings page. */ $loading_methods = IncPopupDatabase::get_loading_methods(); $settings = IncPopupDatabase::get_settings(); $cur_method = $settings['loadingmethod']; $form_url = esc_url_raw(remove_query_arg(array('message', 'action', '_wpnonce'))); // Theme compatibility. $theme_compat = IncPopupAddon_HeaderFooter::check(); $theme_class = $theme_compat->okay ? 'msg-ok' : 'msg-err'; $rules = IncPopup::get_rules(); $rule_headers = array('name' => 'Name', 'desc' => 'Description', 'rules' => 'Rules', 'limit' => 'Limit'); $ordered_rules = array(); ?> <div class="wrap nosubsub"> <h2><?php _e('PopUp Settings', PO_LANG); ?> </h2> <div id="poststuff" class="metabox-holder m-settings"> <form method="post" action="<?php echo esc_url($form_url); ?> "> <input type="hidden" name="action" value="updatesettings" />