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
server { | |
# Determines the port number that nginx will listen to for this | |
# server configuration. 80 is the default http port. | |
listen 80; | |
# Listen for HTTPS requests as well | |
listen 443 ssl; | |
# Tells nginx what domain name should trigger this configuration. If | |
# you would like multiple domains or subdomains, they can be space |
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 | |
/** | |
* Handle meta boxes that are used on multiple content types. | |
* | |
*/ | |
class CTRS_Meta_Boxes { | |
private $_blacklisted_post_types = array( | |
'ctrs-people', |
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 | |
/** | |
* Handle meta boxes that are used on multiple content types. | |
* | |
*/ | |
class PM_Meta_Boxes { | |
private $_blacklisted_post_types = array( | |
'pm-best-of', | |
'pm-dentists', |
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 | |
/** | |
* Get first gallery from a post. | |
* | |
* @return string | |
*/ | |
function consumerist_get_first_gallery() { | |
global $more; | |
/* If this is not a 'gallery' post, return. */ |
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_action( 'save_post', 'dkk_save_latlong' ); | |
function dkk_save_latlong( $post_id ) { | |
// verify if this is an auto save routine. | |
// If it is our form has not been submitted, so we dont want to do anything | |
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) | |
return; | |
// Check if it is our custom post type | |
if ( 'community-guide' == $_POST['post_type'] ) { |