Skip to content

Instantly share code, notes, and snippets.

View engram-design's full-sized avatar

Josh Crawford engram-design

View GitHub Profile
@engram-design
engram-design / SmartMapPlugin.php
Last active February 27, 2017 11:33
SmartMap Feed Me 2
<?php
namespace Craft;
class SmartMapPlugin extends BasePlugin
{
public function init()
{
Craft::import('plugins.smartmap.integrations.feedme.fields.SmartMap_AddressFeedMeFieldType');
}
@engram-design
engram-design / data.php
Last active February 27, 2017 22:24
Property Feed
<?php
// Get all XML files in directory
$files = glob('data/*xml');
$jsons = array();
if (isset($_GET['start']) && isset($_GET['end'])) {
$start = $_GET['start'];
$end = $_GET['end'];
@engram-design
engram-design / _layout.html
Last active February 23, 2018 05:34
SEOMatic Setup
<!doctype html>
<html lang="en">
<head>
<!-- Responsive-ness -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- SE-Oh -->
{% include '_includes/seo_meta' %}
</head>
<?php
// Turn off all error reporting
error_reporting(0);
$dir = new DirectoryIterator($folder);
$json = array();
foreach ($dir as $index => $fileinfo) {
@engram-design
engram-design / CustomBulletList.php
Created February 12, 2025 02:52
Vizy Custom Bullet List
<?php
namespace modules\vizymodule\nodes;
use verbb\vizy\nodes\BulletList;
class CustomBulletList extends BulletList
{
// Properties
// =========================================================================