This file contains hidden or 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
// AJAX USER SEARCH | |
$('#pdsm_teacher').suggest( | |
ajaxurl+'?action=pdsm_teacher_search', | |
{ | |
delay: 500, | |
minchars: 2, | |
onSelect: function() { | |
var selected = $('ul.ac_results li.ac_over span.suggest-result-name').text(); | |
this.value = selected; | |
} |
This file contains hidden or 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 admin_print_scripts() { | |
if( get_post_type() == $this->type || get_query_var('post_type') == $this->type ) : | |
wp_enqueue_script( 'ads-admin' ); | |
// BEGIN hack to highlight expired/expiring ads | |
$now = time(); | |
$expired_ads = get_posts( | |
array( |
This file contains hidden or 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 | |
/** | |
* Marks something as being incorrectly called. | |
* | |
* There is a hook doing_it_wrong_run that will be called that can be used | |
* to get the backtrace up to what file and function called the deprecated | |
* function. | |
* | |
* The current behavior is to trigger a user error if WP_DEBUG is true. | |
* |
This file contains hidden or 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 | |
/* | |
this works, but is it right to separate out the two categories here? I thought I could include both cat ids in the first terms array, but it seems that if I do that, it pulls any post that matches either category instead of both. | |
*/ | |
query_posts( array( | |
'tax_query' => array( | |
'relation' => 'AND', | |
array( |
This file contains hidden or 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
Product Object | |
( | |
[prices] => Array | |
( | |
) | |
[pricekey] => Array | |
( | |
) |
This file contains hidden or 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 | |
shopp( 'catalog', 'product', 'name=Recurring Donation&load=prices,images' ); | |
$content_column.= shopp( 'product', 'donate', 'return=true' ); | |
echo $content_column; | |
?> |
This file contains hidden or 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 | |
while( shopp( 'catalog', 'categories' ) ) : | |
if( shopp( 'category', 'has-images' ) ) : | |
$content_column.= '<div class="shopp-main-category">'; | |
$content_column.= '<a href="'.shopp( 'category', 'url', 'return=true' ).'">'; | |
$content_column.= shopp( 'category', 'coverimage', 'return=true&width=220&height=450&fit=crop&title='.shopp( 'category', 'name', 'return=true' ) ); | |
$content_column.= '</a><span class="shopp-category-title"><a href="'.shopp( 'category', 'url', 'return=true' ).'">'.shopp( 'category', 'name', 'return=true' ).'</a></span>'; | |
$content_column.= '</div>'; | |
endif; |
This file contains hidden or 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 | |
class kkiLadies { | |
function __construct() { | |
wp_register_script( 'kki-ladies', KKI_JS.'ladies.js', array( 'jquery' ), '0.1', true ); | |
add_action( 'init', array( &$this, 'init' ) ); | |
add_action( 'admin_menu', array( &$this, 'admin_menu' ) ); | |
add_action( 'save_post', array( &$this, 'save_post' ) ); | |
// add_action( 'admin_print_scripts-post-new.php', array( &$this, 'print_scripts' ) ); |
This file contains hidden or 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 | |
shopp( 'catalog', 'catalog-products', 'load=true' ); | |
if ( shopp( 'catalog', 'has-categories' ) ) : | |
while ( shopp( 'catalog', 'categories' ) ) : | |
shopp( 'catalog', 'category', 'slug='.shopp( 'category', 'slug', 'return=true' ) ); | |
endwhile; | |
else : | |
echo "no categories yet."; | |
endif; |
This file contains hidden or 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 pj_convo_query_vars($vars) { | |
$vars[] = 'conversation-starter'; | |
$vars[] = 'convo-id'; | |
return $vars; | |
} | |
add_filter('query_vars', 'pj_convo_query_vars'); | |
?> |