Skip to content

Instantly share code, notes, and snippets.

View contempoinc's full-sized avatar

Chris Robinson contempoinc

View GitHub Profile
<?php
/**
* Template Name: Agents
*
* @package WP Real Estate 6
* @subpackage Template
*/
global $ct_options;
@contempoinc
contempoinc / pdf-shortcode-functions.php
Created September 17, 2015 18:45
PDF+XML functions
/* Usage Instructions
* [get-pdf-link] will return a raw link to the first PDF attachment to the post/page
*
* [pdf-content type="title|content"] "title" will return the Title of the PDF, which is referenced as "Root" in the XML document.
* ...continued: "content" will return the <Story> of the XML file, which is the top paragraph as assigned during PDF creation.
*/
add_filter('upload_mimes', 'custom_upload_xml');
function custom_upload_xml($mimes) {
@contempoinc
contempoinc / functions.php
Created September 17, 2015 18:38
PDF+XML functions
<?php
/* Usage Instructions
* [get-pdf-link] will return a raw link to the first PDF attachment to the post/page
*
* [pdf-content type="title|content"] "title" will return the Title of the PDF, which is referenced as "Root" in the XML document.
* ...continued: "content" will return the <Story> of the XML file, which is the top paragraph as assigned during PDF creation.
*/
add_filter('upload_mimes', 'custom_upload_xml');
/*
* Base
*
* @package WP Pro Real Estate 7
* @subpackage CSS
*
WARNING! DO NOT EDIT THIS FILE!
To make it easy to update your theme, you should not edit the styles in this file. Instead use
/*
Theme Name: WP Pro Real Estate 7
Theme URI: http://themeforest.net/user/contempoinc?ref=contempoinc
Description: A responsive real estate theme, designed by <a href="http://www.contempographicdesign.com">Contempo</a>.
Author: Chris Robinson
Author URI: http://www.contempographicdesign.com
Version: 1.0.9
Text Domain: contempo
Domain Path: /languages
<?php
wp_deregister_script('gmaps');
if(!is_page_template('template-submit-listing.php')){
wp_enqueue_script('gmapsapi', 'http://maps.google.com/maps/api/js?sensor=false&key=AIzaSyBg0BEB7TF-Lp8UTsn7X4CIY0muA4rTE2k', '', '1.0', false);
}
?>
<?php
if($ct_options['ct_post_comments'] == "Yes" && comments_open()) {
comments_template( '', true );
}
?>
<?php
// Deregister Cycle
add_action( 'wp_print_scripts', 'de_script', 100 );
function de_script() {
wp_dequeue_script( 'cycle' );
}
?>
add_action( 'wp_print_scripts', 'de_script', 100 );
function de_script() {
wp_dequeue_script( 'cycle' );
}
<?php
/**
* Template Name: Agents
*
* @package WP Pro Real Estate 5
* @subpackage Template
*/
global $ct_options;