Skip to content

Instantly share code, notes, and snippets.

View KZeni's full-sized avatar

Kurt Zenisek KZeni

View GitHub Profile
if(isset($_GET['location']) && $_GET['location'] != ''){
$location = sanitize_text_field($_GET['location']);
}else{
$location = 'Wausau';
}
$output = '
<div id="zillow-large-search-box-widget-container" style="width:432px;overflow:hidden;background-color:#e7f1fd;color:#555; font: normal normal normal 13px verdana,arial,sans-serif;line-height:13px;margin:0 auto;padding:0;text-align:center;border:1px solid #adcfff;letter-spacing:0;text-transform:none;">
<h2 style="color:#d61;text-align:left;font-size:20px;line-height:20px;font-weight:normal;float:left;width:200px;margin-left:10px;margin-top:5px;letter-spacing:0;text-transform:none;">Find Homes</h2>
<div style="float:right;">
<a href="https://www.zillow.com/" target="_blank" rel="nofollow"><img alt="Zillow Real Estate Information" style="border:0;" src="https://www.zillow.com/widgets/GetVersionedResource.htm?path=%2Fstatic%2Fimages%2Fpowered-by-zillow.gif"></img>
ob_start();
?>
<div class="job-browse-block">
<?php
$count_posts = wp_count_posts( 'job_listing' )->publish;
$today = getdate();
//$query = new WP_Query( 'year=' . $today['year'] . '&monthnum=' . $today['mon'] . '&day=' . $today['mday'] );
$args = array(
'post_type' => 'job_listing',
'date_query' => array(
$shortcode = '[jobs ';
if(isset($_GET['job_listing_category']) && $_GET['job_listing_category'] != ''){
echo '<p><a href="'. get_permalink(get_option('job_manager_jobs_page_id')).'" class="button btn">&larr; Back to All Job Listings</a></p>';
echo '<h3>'.ucwords(str_replace('-',' ',sanitize_text_field($_GET['job_listing_category']))).'</h3>';
$shortcode.= 'categories="'.sanitize_text_field($_GET['job_listing_category']).'" ';
}
$shortcode.= ']';
echo do_shortcode($shortcode);
echo "
<script>
<?php
//About Us Team Shortcode
function aboutus_team_member() {
global $post;
if(get_post_type($post) === 'page'){
ob_start();
$aboutus_team_args = array(
'post_type' => 'our-team',
'posts_per_page' => -1
);
@KZeni
KZeni / index.php
Last active May 17, 2019 22:31
Simple Tooltip Patch to add Vertical Alignment setting
<?php
/*
Plugin Name: Simple Tooltips
Description: Easily add tooltips to your wordpress site. You can define tooltip color settings in <strong>Settings > Simple Tooltips</strong>
Version: 2.1.3
Author: Justin Saad
Author URI: http://www.clevelandwebdeveloper.com
License: GPL2
*/
@KZeni
KZeni / reports.php
Last active December 3, 2022 07:35
<?php
/*
Plugin - WP ADA Compliance Check
functions to support dipslay or reports and reference pages
*/
/**********************************************
REFRESH REPORT PAGE
********************************************/
function wp_ada_compliance_basic_refresh_report_page(){
@KZeni
KZeni / recaptcha.php
Created April 24, 2019 17:00
Contact Form 7 reCAPTCHA v3 improvements to add threshold adjustments to the settings page.
<?php
add_action( 'wpcf7_init', 'wpcf7_recaptcha_register_service', 10, 0 );
function wpcf7_recaptcha_register_service() {
$integration = WPCF7_Integration::get_instance();
$integration->add_category( 'captcha',
__( 'CAPTCHA', 'contact-form-7' )
);
@KZeni
KZeni / README.md
Created January 28, 2019 17:12
SCRIPT-8
@KZeni
KZeni / README.md
Created January 28, 2019 17:10
SCRIPT-8
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);