Skip to content

Instantly share code, notes, and snippets.

View contempoinc's full-sized avatar

Chris Robinson contempoinc

View GitHub Profile
@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) {
<?php
/**
* Template Name: Agents
*
* @package WP Real Estate 6
* @subpackage Template
*/
global $ct_options;
<?php if (!empty($_GET['search-listings'])) {
require('search-listings.php');
return;
} ?>
@contempoinc
contempoinc / layout.css
Created September 24, 2015 00:09
day spa
/*
* Layout
*
* @package WP Day Spa
* @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
<?php if (!empty($_GET['search-listings'])) {
require('search-listings.php');
return;
} ?>
<?php
/**
* Agents Other Listings
*
* @package WP Pro Real Estate 7
* @subpackage Widget
*/
class ct_AgentsOtherListings extends WP_Widget {
<?php
/**
* Agents Other Listings
*
* @package WP Pro Real Estate 7
* @subpackage Widget
*/
class ct_AgentsOtherListings extends WP_Widget {
@contempoinc
contempoinc / base.js
Created September 29, 2015 18:38
Day Spa
'use strict';
/**
* Core
*
* @package WP Day Spa
* @subpackage JavaScript
*/
jQuery.noConflict();
@contempoinc
contempoinc / media-query.css
Created October 1, 2015 15:38
Make Mobile Full Width when using Boxed Layout in Real Estate 7
@media only screen and (max-width: 767px) {
.container.main { padding: 0 !important; max-width: 100%;}
}
@contempoinc
contempoinc / template-agents.php
Created October 6, 2015 15:28
Agents Random Order - Real Estate 7
<?php
/**
* Template Name: Agents
*
* @package WP Pro Real Estate 7
* @subpackage Template
*/
global $ct_options;