Skip to content

Instantly share code, notes, and snippets.

View unwiredtech's full-sized avatar

Patrick Sarmiento unwiredtech

View GitHub Profile
{"mapwidth":"960","mapheight":"600","minimap":true,"zoombuttons":true,"sidebar":false,"search":false,"hovertip":true,"fullscreen":false,"zoomlimit":"3","mapfill":false,"zoom":true,"alphabetic":false,"categories":[],"levels":[{"id":"usa","title":"USA","map":"//staging39.jbrec.com/wp-content/plugins/mapplic/maps/usa.svg","minimap":"https://staging39.jbrec.com/wp-content/plugins/mapplic/maps/usa-mini.jpg","locations":[{"id":"group_research_reports-akron-oh","title":"Akron, OH","pin":"default","action":"default","x":"0.7688","y":"0.3443","category":["group_research_reports"]},{"id":"group_recent_consulting-albany-ny","title":"Albany, NY","pin":"default","action":"default","x":"0.9011","y":"0.2911","category":["group_recent_consulting"]},{"id":"group_research_reports-albany-or","title":"Albany, OR","pin":"default","action":"default","x":"0.0262","y":"0.2103","category":["group_research_reports"]},{"id":"group_research_consulting-albuquerque-nm","title":"Albuquerque, NM","pin":"default","action":"default","x":"0.34
{
"mapwidth": "960",
"mapheight": "650",
"minimap": false,
"zoombuttons": true,
"sidebar": false,
"search": false,
"hovertip": true,
"fullscreen": true,
"zoomlimit": "3",
{
"mapwidth": "960",
"mapheight": "650",
"minimap": false,
"zoombuttons": true,
"sidebar": false,
"search": false,
"hovertip": true,
"fullscreen": true,
"zoomlimit": "3",
[28-Aug-2025 06:05:04 UTC] PHP Fatal error: Cannot redeclare cptmapplic_render_tools_page() (previously declared in /home/customer/www/staging39.jbrec.com/public_html/wp-content/plugins/cpt-to-mapplic-sync/cpt-to-mapplic-sync.php:41) in /home/customer/www/staging39.jbrec.com/public_html/wp-content/plugins/cpt-to-mapplic-sync/cpt-to-mapplic-sync.php on line 227
[28-Aug-2025 06:05:53 UTC] PHP Fatal error: Cannot redeclare cptmapplic_render_tools_page() (previously declared in /home/customer/www/staging39.jbrec.com/public_html/wp-content/plugins/cpt-to-mapplic-sync/cpt-to-mapplic-sync.php:41) in /home/customer/www/staging39.jbrec.com/public_html/wp-content/plugins/cpt-to-mapplic-sync/cpt-to-mapplic-sync.php on line 227
[28-Aug-2025 06:07:05 UTC] PHP Fatal error: Cannot redeclare cptmapplic_render_tools_page() (previously declared in /home/customer/www/staging39.jbrec.com/public_html/wp-content/plugins/cpt-to-mapplic-sync/cpt-to-mapplic-sync.php:41) in /home/customer/www/staging39.jbrec.com/public_html/wp-cont
{
"mapwidth": "960",
"mapheight": "650",
"minimap": false,
"zoombuttons": true,
"sidebar": false,
"search": false,
"hovertip": true,
"fullscreen": true,
"zoomlimit": "3",
<form name="post" action="post.php" method="post" id="post">
<input type="hidden" id="_wpnonce" name="_wpnonce" value="354e283bb2"><input type="hidden" name="_wp_http_referer" value="/wp-admin/post.php?post=87532&amp;action=edit"><input type="hidden" id="user-id" name="user_ID" value="3">
<input type="hidden" id="hiddenaction" name="action" value="editpost">
<input type="hidden" id="originalaction" name="originalaction" value="editpost">
<input type="hidden" id="post_author" name="post_author" value="3">
<input type="hidden" id="post_type" name="post_type" value="mapplic_map">
<input type="hidden" id="original_post_status" name="original_post_status" value="publish">
<input type="hidden" id="referredby" name="referredby" value="https://staging39.jbrec.com/wp-admin/edit.php?post_type=mapplic_map">
<input type="hidden" id="active_post_lock" value="1756219075:3">
<input type="hidden" name="_wp_original_http_referer" value="https://staging39.jbrec.com/wp-admin/edit.php?post_type=mapplic_map"><input type="hidden"
@unwiredtech
unwiredtech / listing-grid-slider-dot-and-button.js
Created August 19, 2025 11:17
Move Listing Grid Dots and Custom Nxt/Prv Button for Slider
<script>
/**
* JetEngine/Slick: Move dots into #listing-dot-nav
*/
(function () {
'use strict';
if (typeof window.jQuery === 'undefined') return;
var $ = window.jQuery;
var DOTS = 'ul.jet-slick-dots';
@unwiredtech
unwiredtech / listing-grid-slider-fluid-right.html
Created August 19, 2025 11:03
Fluid-Right Elementor Wrapper for JetEngine / Slick Sliders This snippet creates a full-width band that stretches with the viewport (e.g. 1920px) but keeps its right edge aligned with Elementor’s content box width. It’s useful for carousels, sliders, or listing grids where you want content to “bleed” left but still snap to Elementor’s grid on th…
/*Fluid-Right Elementor Wrapper for JetEngine / Slick Sliders
This snippet creates a full-width band that stretches with the viewport (e.g. 1920px) but keeps its right edge aligned with Elementor’s content box width.
It’s useful for carousels, sliders, or listing grids where you want content to “bleed” left but still snap to Elementor’s grid on the right side.
Use Case
• Showcase sliders (JetEngine, Slick, Elementor widgets) that need to look full-bleed while respecting Elementor’s content alignment.
• Aligns the right edge with Elementor’s boxed content while allowing the left edge to expand (fluid-right).
• Keeps navigation dots and arrows centered neatly under the cards.
*/
<?php
/*
• A fully hierarchical, cascading search form
• AJAX populates States based on selected Workspace Type
• Then populates Cities based on selected State + Type
• Searches and returns locations filtered by all 3 levels
*/
function workspace_search_form_shortcode() {
ob_start();
@unwiredtech
unwiredtech / grid-listing-pagination-reposition.js
Last active February 12, 2025 15:21
Grid Listing - Pagination Reposition
<script>
document.addEventListener("DOMContentLoaded", function () {
function repositionSlickDots() {
const grid = document.querySelector("#what-we-do");
const dots = document.querySelector(".jet-slick-dots");
const draggable = document.querySelector(".slick-list.draggable");
if (grid && dots && draggable) {
// Detach .jet-slick-dots from its parent
const parent = dots.parentNode;