public static function add_css() { global $aecomments; if (is_single() || is_page() || is_admin()) { if (is_page() && $aecomments->get_admin_option('show_pages') != 'true') { return; } //Output CSS or enqueue depending on if a file exists or not AECCSS::get_main_css(true); //echo out //Output clearfix - Saves a page request so it echoes out the entire CSS in the source ob_start(); /* From http://blue-anvil.com/archives/experiments-with-floats-whats-the-best-method-of-clearance */ if ($aecomments->get_admin_option('clear_after') == "true") { echo "<!--[if IE]>\n"; echo "<style type='text/css'>"; include $aecomments->get_plugin_dir('/css/clearfix.css'); echo "</style>"; echo "\n<![endif]-->\n"; } /* clear after */ ob_get_flush(); AECDependencies::queue_colorbox_style(); } }
} $commentID = (int) $_GET['cid']; $postID = (int) $_GET['pid']; $commentAction = $_GET['action']; $commentAction = addslashes(preg_replace("/[^a-z0-9]/i", '', strip_tags($commentAction))); $localization = 'ajaxEdit'; $min = ''; if ($aecomments->get_admin_option('compressed_scripts') == 'true') { $min = ".min"; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php AECCSS::output_interface_css(); AECJS::register_popups_js('request-deletion'); wp_print_scripts(array('aec_popups')); wp_print_styles(array('aeccommenteditor')); do_action('add_wp_ajax_comments_css_editor'); ?> <title>WP Ajax Edit Comments Request Deletion</title> </head> <body class="request-deletion"> <div id="comment-options"> <h3><?php _e("Request Deletion", 'ajaxEdit'); ?> </h3> <?php /* Admin nonce */
public static function output_interface_css() { AECCSS::get_interface_css(true); //echo out }