Skip to content

Instantly share code, notes, and snippets.

View joshmoto's full-sized avatar

J O S H M O T O joshmoto

View GitHub Profile
@joshmoto
joshmoto / action-group-platform-sitemap.md
Last active March 13, 2026 10:57
Initial sitemap and architecture for a WordPress-based campaign platform for local action groups. Includes campaign structure, post model, map integration, user roles and URL strategy.

Action Group Platform – Initial Sitemap & Architecture

This document outlines the initial structure for a campaign website platform designed to organise information, research, mapping data and updates relating to local planning campaigns.

The platform will be built on WordPress and designed to support multiple campaigns and action groups while keeping the first version simple and easy to manage.

The system will function both as a public website and a mobile-friendly web application, ensuring that campaign information is easy to access on phones, tablets and desktop computers. The interface will be designed to work especially well on smartphones so that residents, volunteers and researchers can quickly access maps, posts, documents and updates while on the move.

The platform will be:

@joshmoto
joshmoto / phptest2.json
Created July 22, 2023 00:43
php test 2
{
"success": true,
"lat": "52.370216",
"lng": "4.895168"
}
@joshmoto
joshmoto / Vite.lib.php
Last active July 15, 2023 23:39
Vite php class for Wordpress
<?php
/**
* @author J O S H M O T O <https://github.com/joshmoto>
*/
class Vite {
/**
* Flag to determine whether hot server is active.
* Calculated when Vite::initialise() is called.
@joshmoto
joshmoto / Vite.lib.php
Created July 14, 2023 20:39
Wordpress php Vite class for handling Vite.js
<?php
/**
* @author Josh Cranwell <josh.cranwell@gmail.com>
*/
class Vite {
/**
* Flag to determine whether hot server is active.
* Calculated when Vite::initialise() is called.
<?php
use JetBrains\PhpStorm\NoReturn;
/**
* @author Josh Cranwell <josh.cranwell@gmail.com>
* @copyright The Sweet People
* @version 1.0
* @link https://www.thesweetpeople.com/
* @since March 2023
<?php
use JetBrains\PhpStorm\NoReturn;
/**
* @author Josh Cranwell <josh.cranwell@gmail.com>
* @copyright The Sweet People
* @version 1.0
* @link https://www.thesweetpeople.com/
* @since 23 March 2023
/db
/plugins
/uploads
/logs
@joshmoto
joshmoto / input.scss
Created October 17, 2021 19:59
Generated by SassMeister.com.
@mixin respond($breakpoint:false) {
@if $breakpoint == 'phone' {
@media only screen and (max-width: 37.5em) {
@content
}
}
@else if $breakpoint == 'tab-port' {
@media only screen and (max-width: 56.25em) {
@joshmoto
joshmoto / input.scss
Created December 19, 2020 05:19
Generated by SassMeister.com.
@import url("https://fonts.googleapis.com/css2?family=Open:ital,wght@0,300;0,700;1,400&display=swap")
:root {
--color-grey-dark: #202326;
--color-green: #42b680;
--color-purple: #7288da;
}
* {
box-sizing: border-box;
@joshmoto
joshmoto / DynamicRouter.lib.php
Created November 19, 2020 21:33
Dynamic Router Class for Wordpress
<?php
/**
* @author joshmoto <https://stackoverflow.com/users/888894/joshmoto>
*/
class DynamicRouter {
protected static
/**