Skip to content

Instantly share code, notes, and snippets.

View contempoinc's full-sized avatar

Chris Robinson contempoinc

View GitHub Profile
<div class="col span_12 first">
[select menu-439 "Tell me more about this property" "Request a showing"]
</div>
<div class="col span_12 first">
[text* your-name placeholder "Your Name"]
</div>
<div class="col span_12 first">
[email* your-email placeholder "Email"]
@contempoinc
contempoinc / functions.php
Created November 27, 2016 17:09
Admin CSS to remove Slider Revolution & Visual Composer Notices
<?php
/*-----------------------------------------------------------------------------------*/
/* Admin CSS */
/*-----------------------------------------------------------------------------------*/
if(!function_exists('ct_admin_css')) {
function ct_admin_css() {
echo '<style>';
echo 'tr[data-slug="slider-revolution"] + .plugin-update-tr, .vc_license-activation-notice, .rs-update-notice-wrap, tr.plugin-update-tr.active#js_composer-update { display: none !important;}';
<?php
function custom_admin_css() {
echo '<style>';
echo 'td.status a.for-sale { background: #34495e;}';
echo '</style>';
}
add_action('admin_head', 'custom_admin_css');
?>
/*!
* Curry currency conversion jQuery Plugin v0.8.1
* https://bitbucket.org/netyou/curry-currency-ddm
*
* Copyright 2015, NetYou
* 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($) {
/*-----------------------------------------------------------------------------------*/
/* Property Type Icon */
/*-----------------------------------------------------------------------------------*/
function ct_property_type_icon() {
global $post;
if(ct_has_type('commercial')) {
// Changed to solid building icon instead of outline
echo '<span class="prop-type-icon"><i class="fa fa-building"></i></span>';
@contempoinc
contempoinc / functions.php
Created July 21, 2016 16:34
Dequeue Styles & Scripts Function for Child Theme
function ct_dequeue_styles_scripts() {
wp_dequeue_script( 'tooltipMenu' ); // Remove theme default navigation JS
wp_dequeue_style('dropdowns'); // Remove theme default navigation CSS
}
add_action( 'wp_print_scripts', 'ct_dequeue_styles_scripts', 100 );
<?php
/**
* Latest Posts
*
* @package WP Pro Real Estate 7
* @subpackage Widget
*/
class ct_Latest extends WP_Widget {
@contempoinc
contempoinc / aq-portfolio-block.php
Created January 19, 2016 18:24
Consultant Portfolio Page Builder Block
<?php
/** A simple text block **/
if(!class_exists('AQ_Portfolio_Block')) {
class AQ_Portfolio_Block extends AQ_Block {
//set and create block
function __construct() {
$block_options = array(
'name' => 'Portfolio',
@contempoinc
contempoinc / advanced-search.php
Created November 3, 2015 20:38
RE7 Advanced Search with Price Low to High by default
<?php
/**
* Advanced Search Template
*
* @package WP Pro Real Estate 7
* @subpackage Template
*/
global $ct_options;
@contempoinc
contempoinc / featured-listings.php
Created October 30, 2015 15:37
RE7 Featured Listings Random Order on Refresh