?> " data-type="css" class="op-disable-all-css"><?php _e('CSS', 'optimizepress'); ?> </a></th> <th width="10%"><a href="#toggle-js" title="<?php _e('Toggle all checkboxes', 'optimizepress'); ?> " data-type="js" class="op-disable-all-js"><?php _e('JS', 'optimizepress'); ?> </a></th> </tr> <tr> <td><?php echo $theme->name; ?> </td> <td align="center"> <?php op_checkbox_field('op[sections][le_external_theme_css]', 1, checked(1, op_get_option('op_le_external_theme_css'), false), 'data-type="css"'); ?> </td> <td align="center"> <?php op_checkbox_field('op[sections][le_external_theme_js]', 1, checked(1, op_get_option('op_le_external_theme_js'), false), 'data-type="js"'); ?> </td> </tr> </table> </div>
global $wp_filter; $wpOriginalFilters = array('capital_P_dangit', 'do_shortcode', 'wptexturize', 'convert_smilies', 'convert_chars', 'wpautop', 'shortcode_unautop', 'prepend_attachment', 'fixptag', 'run_shortcode', 'autoembed'); foreach ($wp_filter['the_content'] as $priority) { foreach ($priority as $name => $item) { if (is_string($item['function'])) { $label = $item['function']; } else { $label = $item['function'][1]; } if (in_array($label, $wpOriginalFilters)) { continue; // $disabled = ' disabled="disabled"'; } else { $disabled = ''; } ?> <label for="op_sections_advanced_filter_<?php echo $label; ?> " class="form-title"><?php op_checkbox_field('op[sections][advanced_filter][' . $label . ']', '1', checked(op_default_option('advanced_filter', $label), '1', false), $disabled); ?> <?php echo $label; ?> </label> <?php } } ?> </div>