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($) { | |
/* | |
* render_map | |
* | |
* This function will render a Google Map onto the selected jQuery element | |
* | |
* @type function | |
* @date 8/11/2013 | |
* @since 4.3.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 | |
class FES_Multiple_Pricing_Field extends FES_Field { | |
/** @var bool For 3rd parameter of get_post/user_meta */ | |
public $single = false; | |
/** @var array Supports are things that are the same for all fields of a field type. Like whether or not a field type supports jQuery Phoenix. Stored in obj, not db. */ | |
public $supports = array( | |
'multiple' => false, | |
'forms' => array( |
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 | |
/** | |
* Shortcode to conditionally display a post edit form | |
* | |
* @author Mike Hemberger | |
* @link http://thestizmedia.com/front-end-post-editing-with-caldera-forms/ | |
* @uses Caldera Forms | |
* @return mixed Access message or Caldera Form | |
*/ | |
add_shortcode( 'edit_post', 'tsm_do_caldera_edit_post_form' ); |
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 | |
$language = wp_get_post_terms($post->ID, 'ft_language'); | |
if( $language ) { | |
echo get_the_term_list( $post->ID, 'ft_language', '<li><span class="detail">Languages:</span>', ', ', '</li>' ); | |
} |
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 // Put this code in functions.php or a custom plugin. Don't include opening php tag | |
/** | |
* Create shortcode to display map of all child page locations | |
* | |
* @author Mike Hemberger | |
* @link http://thestizmedia.com/shortcode-to-show-map-markers-of-child-pages-with-acf-pro/ | |
* | |
* @return mixed | |
*/ |
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 | |
/* | |
Plugin Name: CUSTOM - Website Title | |
Plugin URI: http://thestizmedia.com | |
Description: All custom funtionality for www.Website_Title_Here.com | |
Version: 1.0 | |
Author: JiveDig | |
Author URI: http://thestizmedia.com | |
Copyright 2013 JiveDig (mike@thestizmedia.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
<?php | |
/** | |
* Functions | |
* @package The Stiz Media | |
* @author JiveDig <mike@thestizmedia.com> | |
* @copyright Copyright (c) 2013, The Stiz | |
*/ | |
// Start the engine | |
require_once( get_template_directory() . '/lib/init.php' ); |
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
// Change labels to "Tracks" | |
add_filter('edd_download_labels', 'set_download_labels'); | |
function set_download_labels($labels) { | |
$labels = array( | |
'name' => _x('Tracks', 'post type general name', 'your-domain'), | |
'singular_name' => _x('Track', 'post type singular name', 'your-domain'), | |
'add_new' => __('Add New', 'your-domain'), | |
'add_new_item' => __('Add New Track', 'your-domain'), | |
'edit_item' => __('Edit Track', 'your-domain'), | |
'new_item' => __('New Track', 'your-domain'), |
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 | |
//* Add support for structural wraps | |
add_theme_support( 'genesis-structural-wraps', array( | |
'header', | |
'nav', | |
'subnav', | |
'inner', | |
'footer-widgets', | |
'footer' |
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 | |
// Register 'Videos' Post Type | |
if ( ! function_exists('jivedig_videos_post_type') ) { | |
function jivedig_videos_post_type() { | |
$labels = array( | |
'name' => _x( 'Videos', 'executive' ), | |
'singular_name' => _x( 'Video', 'executive' ), | |
'menu_name' => __( 'Videos', 'executive' ), | |
'parent_item_colon' => __( 'Parent Video:', 'executive' ), |