Skip to content

Instantly share code, notes, and snippets.

View imperialjeff's full-sized avatar

Jeff Imperial imperialjeff

View GitHub Profile
<!-- if( !empty($similar_properties) ) { -->
<div class="cw-similar-properties-wrapper">
<h3>Similar Properties</h3>
<?php echo do_shortcode( '[similar_properties property_id=' . $property->id . ' per_page="2" price_percentage_bounds="25"]' ); ?>
</div>
<!-- } -->
{
"RoleId": 17755331,
"PropertyId": 2259506,
"PropertyStyle": {
"Id": 1037302,
"Name": "Modern",
"SystemName": "Modern"
},
"Address": {
"OrganizationName": "",
<?php
function display_kitchensmart_gallery_shortcode( $atts ) {
ob_start();
$gal = shortcode_atts( array(
'id' => '',
'order' => 'DESC',
'category' => '',
'button_label' => '',
add_action("propertyhive_property_imported_dezrez_json", 'set_new_home_flag', 10, 2);
function set_new_home_flag($post_id, $property) {
wp_suspend_cache_invalidation(false);
wp_defer_term_counting(false);
wp_defer_comment_counting(false);
$flags = array();
if (isset($property['Descriptions']) && is_array($property['Descriptions']) && !empty($property['Descriptions'])) {
foreach ($property['Descriptions'] as $description) {
if (isset($description['StyleType']['SystemName']) && trim(strtolower($description['StyleType']['SystemName'])) == 'new') {
$flags[] = 69;
/**
* @OnlyCurrentDoc
* @see https://www.googleapis.com/auth/spreadsheets
* @see https://www.googleapis.com/auth/webmasters
* @see https://www.googleapis.com/auth/script.external_request
* @see https://www.googleapis.com/auth/drive
* @see https://www.googleapis.com/auth/drive.file
* @see https://www.googleapis.com/auth/script.container.ui
* @see https://www.googleapis.com/auth/script.scriptapp
*/
@imperialjeff
imperialjeff / reset.css
Created July 9, 2019 17:36 — forked from cam-gists/reset.css
CSS: Meyer Reset Reloaded
/* Eric Meyer's Reset Reloaded *//* http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ */html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, font, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl, dt, dd, ol, ul, li,fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td {margin: 0;padding: 0;border: 0;outline: 0;font-size: 100%;vertical-align: baseline;background: transparent;}body {line-height: 1;}ol, ul {list-style: none;}blockquote, q {quotes: none;}/* remember to define focus styles! */:focus {outline: 0;}/* remember to highlight inserts somehow! */ins {text-decoration: none;}del {text-decoration: line-through;}/* tables still need 'cellspacing="0"' in the markup */table {border-collapse: collapse;border-spacing: 0;}