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 | |
//* Archive Image Settings: this file registers the archive image settings to Theme Settings. | |
//* Register Defaults | |
function acd_archive_img_defaults( $defaults ) { | |
$defaults['locations_image_url'] = ''; | |
$defaults['doctors_image_url'] = ''; | |
$defaults['services_image_url'] = ''; | |
return $defaults; |
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
<head> | |
<meta charset="UTF-8" /> | |
<title>Dancey Pants Disco – Work and Life of an Artist/Illustrator living on Nantucket.</title> | |
<meta name="description" content="Work and Life of an Artist/Illustrator living on Nantucket." /> | |
<link rel="canonical" href="https://danceypantsdisco.com/" /> | |
// ...Additional Meta Here... | |
</head> |
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: FCWP Testimonials | |
* Plugin URI: http://www.meetup.com/Fort-Collins-WordPress-Meetup | |
* Description: A basic testimonials plugin built for the Fort Collins WordPress meetup | |
* Version: 1.0.0 | |
* Author: Amber Hinds, David Hayes, Jeremy Green, Michael Launer, Mike Selander | |
* Author URI: http://www.meetup.com/Fort-Collins-WordPress-Meetup | |
* Text Domain: fcwp-testimonials | |
* License: GPL2 |
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 // Don't include the PHP again when copy-pasting from this gist. | |
// Call in necessary files | |
require plugin_dir_path( __FILE__ ) . 'lib/posttype.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
<?php | |
//* This file adds the custom post type to our testimonials plugin with a taxonomy and custom meta box options. | |
/** | |
* Create testimonials custom post type. | |
* | |
* Registers the testimonial custom post type. | |
* | |
* @see register_post_type | |
*/ | |
add_action( 'init', 'fcwp_testimonials_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 // Don't include this more than once in your file | |
/** | |
* Create taxonomy for testimonials CPT. | |
* | |
* Registers a hierarchical (like categories) taxonomy for the testimonials custom post type | |
* | |
* @see register_taxonomy | |
*/ | |
add_action( 'init', 'fcwp_testimonials_tax' ); |
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 custom body class */ | |
add_filter( 'body_class', 'techup_featured_body_class' ); | |
function techup_featured_body_class( $classes ) { | |
$classes[] = 'techup-featured-image recruiting-event'; | |
return $classes; | |
} | |
/* Force full width content */ |
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 | |
//* Do NOT include teh opening PHP tag | |
//* Rename primary and secondary navigation menus | |
add_theme_support( 'genesis-menus' , array( 'primary' => __( 'Top Navigation Bar', 'genesis-sample' ), 'secondary' => __( 'Footer Menu', 'genesis-sample' ) ) ); |
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_filter('the_content', 'remove_divi_shortcodes'); | |
function remove_divi_shortcodes( $content ) { | |
$content = preg_replace('/\[\/?et_pb.*?\]/', '', $content); | |
return $content; | |
} |
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 | |
if (!function_exists('wpt_speakers')) { | |
function wpt_speakers( $atts, $content = null ) { | |
extract(shortcode_atts(array( | |
'event'=> '', | |
'class' => '', | |
), $atts)); | |
$t = get_term_by( 'slug', $levelsp, 'levelsp' ); | |
$out="</div><div class='row-fluid speaker-level'>".do_shortcode('[title-bordered]'.strtoupper($t->name).'[/title-bordered]')."</div><div class='row-fluid'>"; | |
OlderNewer