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
| /* | |
| Theme Name: Medical Ministry Child Theme | |
| Theme URI: http://medicalministrytrips.org | |
| Description: Medical Ministry Child theme is a two or three column child theme created for the Genesis Framework. | |
| Author: Media317 | |
| Author URI: http://media317.net | |
| Version: 2.0 | |
| Tags: blue, gray, white, one-column, two-columns, three-columns, left-sidebar, right-sidebar, fixed-width, custom-background, custom-header, custom-menu, full-width-template, sticky-post, theme-options, threaded-comments |
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
| array( | |
| 'name' => 'Project Type', | |
| 'desc' => 'Select all that apply to this project', | |
| 'id' => 'project_type', | |
| 'type' => 'multicheck', | |
| 'options' => array( | |
| 'admin' => 'Administration', | |
| ), | |
| ), |
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
| /* My metabox array */ | |
| array( | |
| 'name' => 'Start Date', | |
| 'desc' => 'Project Start Date', | |
| 'id' => 'startdate', | |
| 'type' => 'text_date', | |
| ), | |
| /* My query function */ | |
| function mmi_projects_loop () { |
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
| add_action( 'genesis_before_entry_content', 'mmi_sing_project_top'); | |
| function mmi_sing_project_top() { | |
| global $post; | |
| $begindate = genesis_get_custom_field('startdate'); | |
| $enddate = genesis_get_custom_field('finishdate'); | |
| echo '<div class="sing-project">'; | |
| . . . . | |
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
| /** Loop for Projects **/ | |
| $loop = new WP_Query( $args ); | |
| if( $loop->have_posts() ): | |
| echo '<div id="container">'; | |
| while( $loop->have_posts() ): $loop->the_post(); | |
| echo '<div class="projects one-third '.genesis_get_custom_field('program') . ' ' .genesis_get_custom_field('project_type') . ' ' .genesis_get_custom_field('country') . '">'; | |
| echo '<h2><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>'; | |
| echo '<a href="' . get_permalink() . '">' . get_the_post_thumbnail( $post_id, 'project' ). '</a>'; | |
| echo '<h3 class="mmi-country ' . genesis_get_custom_field('country') . '">' . genesis_get_custom_field('country') . '</h3>'; |
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 | |
| /** | |
| * Metaboxes | |
| * | |
| * This file registers any custom metaboxes | |
| * | |
| * @package Core_Functionality | |
| * @since 1.0.0 | |
| * @link https://github.com/billerickson/Core-Functionality | |
| * @author Bill Erickson <[email protected]> |
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
| //* 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 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
| //* 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 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
| 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 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
| // 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 |