function s11_word_cloud2( $atts ) { $atts = shortcode_atts( array( ‘words’ => ‘Awesome, Fabulous’, ‘colors’ => ‘#21759b, #d54e21, #464646’, ), $atts ); $colors = array_map(‘trim’, explode( ‘,’, $atts[‘colors’] )); if (empty($colors)) { $colors = [‘#000000’]; } $words = array_filter( explode( ‘,’,…Continue reading
Property ListingsContinue reading
jQuery(function($) { $(document).on(‘click’, ‘.favorite-toggle’, function(e) { e.preventDefault(); const btn = $(this); const post_id = btn.data(‘post-id’); const isFavorited = btn.attr(‘data-favorited’) === ‘1’; $.post(”, { action: ‘toggle_favorite’, post_id: post_id }, function(response) { if (response.success) { btn.text(isFavorited ? ‘♡’ : ‘❤️’).attr(‘data-favorited’, isFavorited ?…Continue reading
Property ListingsContinue reading
add_filter( ‘xmlrpc_enabled’, ‘__return_false’ );Continue reading
add_action( ‘template_redirect’, function () { global $post; if ( ! is_attachment() || ! isset( $post->post_parent ) || ! is_numeric( $post->post_parent ) ) { return; } // Does the attachment have a parent post? // If the post is trashed, fallback…Continue reading
// Prevent duplicate execution if (defined(‘LPS_SCHOOL_SEARCH_LOADED’)) { return; } define(‘LPS_SCHOOL_SEARCH_LOADED’, true); // Output HTML and JavaScript ?> Nearby Schools Hide School Search Data from Florida Department of Education Pre-K Kindergarten Elementary Middle/Jr. High Senior High Combination Adult Other Pre-K Show…Continue reading
add_action(‘wp_footer’, function () { ?>Continue reading
add_action(‘rest_api_init’, function() { register_rest_route(‘schools/v1’, ‘/schools’, [ ‘methods’ => WP_REST_Server::READABLE, ‘callback’ => ‘fetch_schools’, ‘permission_callback’ => ‘__return_true’, ‘args’ => [ ‘lat’ => [ ‘required’ => true, ‘validate_callback’ => function($param) { return is_numeric($param) && $param >= -90 && $param function($param) { return floatval($param);…Continue reading