This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table><colgroup> <col width="15%" /> <col width="25%" /> <col span="4" width="30%" /> <col class="table-division-left" span="4" width="30%" /></colgroup> | |
<thead> | |
<tr> | |
<th scope="colgroup"></th> | |
<th scope="colgroup"></th> | |
<th scope="colgroup" colspan="4">Share with ESI</th> | |
<th scope="colgroup" colspan="4">Percentage-point change</th> | |
</tr> | |
<tr> | |
<th scope="col"></th> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
splitTbodyThead: function() { | |
var ed = tinyMCE.activeEditor; | |
var selection = ed.selection.getContent(); | |
var element = ed.dom.getParent(ed.selection.getNode(), 'tr'); | |
// Give the selected row a class so we can find it later | |
ed.dom.setAttrib( element, 'data-tinymce', 'split'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/**************************************************** | |
Figures and Tables - [fig] and [figwrapper][/figwrapper] | |
****************************************************/ | |
function my_FiguresTablesCharts_shortcode ( $atts, $content=null ) { | |
extract( shortcode_atts( array( | |
'label' => null, | |
'url' => null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function epi_FiguresTablesCharts_shortcode ( $atts, $content=null ) { | |
extract( shortcode_atts( array( | |
'label' => null, | |
'url' => null, | |
'style' => null, | |
'width' => null, | |
'hidelabel' => null, | |
'inline' => null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myHTML = jQuery('html').clone(); | |
// I tried removing elements one by one, like this: | |
myHTML.find('script[src*="aloha"], link[href*="aloha"], .admin-only, script[src*="pro-player"], script[src*="proplayer"], script[src*="colorbox"], script[src*="sharethis"], script:contains("Aloha"), script:contains("colorbox"), script:contains("analytics"), script[src*="analytics"], script:contains("stLight"), style:contains("AdBlock"), style[style*="display: none !important"], script:contains("front-end-editor"), script:contains("thickbox"), link:contains("admin-bar"), #wpadminbar').remove(); | |
// another way to do it is to remove all scripts except a particular script, like this: | |
myHTML.find('script:not([src*="typekit"])').remove(); | |
// at one point I just removed all scripts, to see if that helped (not really) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /*** | |
Man after thinking about this for some time I can't think of a good way to do this without doing a lot of huge queries. Hmmm… | |
Well you have to have a query to get all of the posts so you can determine how many pages of results you're dealing with. You might be better off writing a custom SQL query for this and just selecting the ID column. It will be quicker than selecting a whole bunch of other columns you don't really need. | |
Once you have all of the post IDs, you can figure out which terms are relevant for each taxonomy using wp_get_object_terms (pass it an array of IDs and a string for the taxonomy). | |
Loop over this array of term objects and make a new array that just contains term IDs. Now you can loop over all of the terms in the taxonomy and do a conditional to determine if the term ID is in the array of matched IDs we made earlier. If it is, display it as bold in your drop down, otherwise gray it out. | |
You're going to have to do a lot of experimenting to get it working just right but tha |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once('../../../wp-load.php'); | |
global $wpdb; | |
$ajax = isset($_POST['ajax']) ? $_POST['ajax'] : ''; | |
switch($ajax) { | |
case 'search': | |
$people = isset($_POST['people']) ? $_POST['people'] : ''; | |
$issue = isset($_POST['issue']) ? $_POST['issue'] : ''; | |
$topic = isset($_POST['topic']) ? $_POST['topic'] : ''; | |
$type = isset($_POST['type']) ? $_POST['type'] : ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// see the live version at http://bit.ly/q0qfqF | |
// click "Filter your results" to expand search panel | |
/** | |
* @package DTeam | |
* @version 1.0 | |
*/ | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//remove default metabox | |
//change TAXONOMY_NAME to your taxonomy name | |
add_action( 'admin_menu' , 'remove_post_custom_fields' ); | |
function remove_post_custom_fields() { | |
remove_meta_box( 'categorydiv' , 'post' , 'normal' ); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//remove default metabox | |
//change TAXONOMY_NAME to your taxonomy name | |
// My taxonomy slug is 'issue' | |
function remove_post_custom_fields() { | |
remove_meta_box( 'issuediv' , 'post' , 'normal' ); | |
} |