Skip to content

Instantly share code, notes, and snippets.

View contempoinc's full-sized avatar

Chris Robinson contempoinc

View GitHub Profile
<?php
/**
* Merlin WP
* Better WordPress Theme Onboarding
*
* The following code is a derivative work from the
* Envato WordPress Theme Setup Wizard by David Baker.
*
* @package Merlin WP
* @version 1.0.0-rc.1
media only screen and (max-width: 959px)
#multi-floor-plan td:nth-of-type(7):before {
content: "" !important;
}
}
@contempoinc
contempoinc / custom-css.css
Last active February 20, 2018 17:02
RE7 Homepage Testimonials Height CSS Fix
// Copy/Paste This to your Real Estate 7 Options > Custom CSS
.testimonials .flexslider { height: 340px !important;}
@media only screen and (max-width: 959px) {
.testimonials .flexslider { height: 240px !important;}
}
@media only screen and (max-width: 767px) {
.testimonials .flexslider { height: 174px !important;}
/*
* Curry currency conversion jQuery Plugin v0.8.3
* https://bitbucket.org/netyou/curry-currency-ddm
*
* Copyright 2017, NetYou (http://curry.netyou.co.il)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/GPL-2.0
*/
(function(d){d.fn.curry=function(m){window.jQCurryPluginCache||(window.jQCurryPluginCache=[{},!1]);var e="",g={},u=window.jQCurryPluginCache[1],n=d(document),h,q,l,r,k=d.extend({target:".price",change:!0,base:"USD",symbols:{}},m);this.each(function(){var a=d(this),b=a.attr("id"),f=a.attr("class");b=""+(b?' id="'+b+'"':"");f?(b+=' class="curry-ddm',b=f?b+(" "+f+'"'):b+'"'):b+="";e="<select"+b+"></select>";f=d(e).insertAfter(a);a.detach();h=h?h.add(f):f});var p=function(a){e="";h.each(function(){for(l in a)r=
@contempoinc
contempoinc / acf-year-options.txt
Created December 6, 2017 18:37
ACF Year Select Options List from 1900-2018
2018 : 2018
2017 : 2017
2016 : 2016
2015 : 2015
2014 : 2014
2013 : 2013
2012 : 2012
2011 : 2011
2010 : 2010
2009 : 2009
@contempoinc
contempoinc / custom-css.css
Created September 20, 2017 00:10
Custom CSS to Remove Extra Profile Information, Agent Testimonials and Office Information Profile Areas
#your-profile h3:nth-child(7),
#your-profile h3:nth-child(9),
#your-profile h3:nth-child(11),
#your-profile h3:nth-child(13),
#your-profile table:nth-child(5),
#your-profile table:nth-child(7),
#your-profile table:nth-child(8),
#your-profile table:nth-child(10),
#your-profile table:nth-child(12) { display: none;}
<?php
/*-----------------------------------------------------------------------------------*/
/* Google Places API */
/*-----------------------------------------------------------------------------------*/
if(!function_exists('ct_google_places_nearby')) {
function ct_google_places_nearby($type,$location) {
global $ct_options;
$ct_google_maps_api_key = isset($ct_options['ct_google_maps_api_key'] ) ? stripslashes( $ct_options['ct_google_maps_api_key']) : '';
@contempoinc
contempoinc / gist:662f6a302ca7065447361f140f5d63d3
Created April 6, 2017 18:56
Yelp Fusion Business Rating (snippet) with Font Awesome
<?php
if($response->businesses[$i]->rating == '1') {
echo '<i class="fa fa-star"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i>';
} elseif($response->businesses[$i]->rating == '1.5') {
echo '<i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i>';
} elseif($response->businesses[$i]->rating == '2') {
echo '<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i>';
} elseif($response->businesses[$i]->rating == '2.5') {
echo '<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i>';
@contempoinc
contempoinc / ct-real-estate-custom-taxonomies.php
Created March 7, 2017 17:34
Custom Taxonomies for Contempo Real Estate Custom Post plugin
<?php
/**
* Register Custom Taxonmoies
* Text Domain: contempo
* Domain Path: /languages
*
* @link http://contempographicdesign.com
* @since 1.0.0
*
@contempoinc
contempoinc / functions.php
Created March 1, 2017 20:02
Custom Status CSS for RE7 Admin
add_action('admin_head', 'my_custom_css');
function my_custom_css() {
echo '<style>
td.status a.rented { background: #000;}
</style>';
}