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
//* Send information to DonorPro | |
add_action( 'woocommerce_order_status_completed', 'hope_donor', 1, 5 ); | |
/* | |
* Do something after WooCommerce sets an order on completed | |
*/ | |
function hope_donor($user_id, $new_order, $paykey, $fields, $source) { | |
$order = new ID_Member_Order($new_order); | |
$the_order = $order->get_order(); | |
if (!empty($the_order)) { | |
$price = $the_order->price; |
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
function custom_comments($comment, $args, $depth) { | |
$GLOBALS['comment'] = $comment; | |
$GLOBALS['comment_depth'] = $depth; | |
?> | |
<li id="comment-<?php comment_ID() ?>" <?php comment_class() ?>> | |
<div class="comment-author vcard"><?php commenter_link() ?></div> | |
<div class="comment-meta"><?php printf(__('Posted %1$s at %2$s <span class="meta-sep">|</span>', 'hbd-theme'), | |
get_comment_date(), | |
get_comment_time(), | |
'#comment-' . get_comment_ID() ); |
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
// Photoshop Script to Create iPhone Icons from iTunesArtwork | |
// | |
// WARNING!!! In the rare case that there are name collisions, this script will | |
// overwrite (delete perminently) files in the same folder in which the selected | |
// iTunesArtwork file is located. Therefore, to be safe, before running the | |
// script, it's best to make sure the selected iTuensArtwork file is the only | |
// file in its containing folder. | |
// | |
// Copyright (c) 2010 Matt Di Pasquale | |
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com |
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
// Add our custom loop | |
add_action( 'genesis_after_entry_content', 'media317_cat_loop' ); | |
function media317_cat_loop() { | |
$cbccategory = genesis_get_custom_field('cbc_category'); | |
$args = array( | |
'category_name' => $cbccategory, | |
'orderby' => 'post_date', |
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 | |
/** | |
* The template used for displaying page content in page.php | |
* | |
* @package AppPresser Theme | |
*/ | |
?> | |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
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
//* Custom Genesis Loop | |
remove_action ( 'genesis_loop', 'genesis_do_loop' ); | |
add_action ( 'genesis_loop', 'cbc_custom_loop' ); | |
function cbc_custom_loop() { | |
if (has_term('custodial')) { | |
echo '<h1>'; | |
echo the_title(); | |
echo '</h1>'; |
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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>get_title</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width"> | |
<link rel="stylesheet" href="childtheme/style.css"> | |
<link rel="shortcut icon" href="childtheme/images/favicon.ico"> | |
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
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_before_loop', 'child_maybe_do_grid_loop' ); | |
function child_maybe_do_grid_loop() { | |
// Amend this conditional to pick where this grid looping occurs | |
if ( is_page('bbtestpage') ) { | |
remove_action('genesis_before_post_content', 'genesis_post_info'); | |
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
/** Add Editor Styles within a WP Child theme*/ | |
add_editor_style(); //This will use the default styles of your child theme stylesheet. | |
/** Add Editor Styles for WP Themes */ | |
add_editor_style( 'custom-editor-style.css' ); |
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
// Add a default avatar to Settings > Discussion | |
if ( !function_exists('media317_addgravatar') ) { | |
function media317_addgravatar( $avatar_defaults ) { | |
$myavatar = get_bloginfo('stylesheet_directory') . '/images/avatar.jpg'; // Make sure to add the images directory to theme | |
$avatar_defaults[$myavatar] = 'Media317'; //Add a default name for the Avatar | |
return $avatar_defaults; | |
} | |
add_filter( 'avatar_defaults', 'fb_addgravatar' ); |
OlderNewer