View http-status-codes.php
<?php | |
/** | |
* Content from http://en.wikipedia.org/wiki/List_of_HTTP_status_codes | |
* | |
* You may also want a list of unofficial codes: | |
* | |
* 103 => 'Checkpoint', | |
* 218 => 'This is fine', // Apache Web Server | |
* 419 => 'Page Expired', // Laravel Framework |
View virtual_online_event_schemaorg.html
<html> | |
<head> | |
<title>The Adventures of Kira and Morrison</title> | |
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org", | |
"@type": "Event", | |
"name": "The Adventures of Kira and Morrison", | |
"startDate": "2025-07-21T19:00:00-05:00", | |
"endDate": "2025-07-21T23:00-05:00", |
View plugin.php
/** | |
* Plugin Name: FG Patterns | |
* Plugin URI: https://www.farukgaric.com/ | |
* Description: Various block patterns | |
* Version: 1.0.0 | |
* Author: Faruk Garic | |
* Author URI: https://www.farukgaric.com/ | |
* License: GPL v2 or later | |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html | |
* Text Domain: fg-patterns |
View person_jsonld.html
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org", | |
"@type": "Person", | |
"name": "John Doe", | |
"jobTitle": "Graduate research assistant", | |
"affiliation": "University of Dreams", | |
"additionalName": "Johnny", | |
"url": "http://www.example.com", | |
"address": { |
View person_microdata.html
<section itemscope itemtype="http://schema.org/Person"> | |
Hello, my name is | |
<span itemprop="name">John Doe</span>, | |
I am a | |
<span itemprop="jobTitle">Graduate research assistant</span> | |
at the | |
<span itemprop="affiliation">University of Dreams</span> | |
My friends call me | |
<span itemprop="additionalName">Johnny</span> | |
You can visit my homepage at |
View function.php
/* all events moved online due to COVID-19 */ | |
if (!function_exists('custom_event_schema_extras')) { | |
function custom_event_schema_extras($_data, $args, $event) { | |
$_data->eventStatus = 'EventMovedOnline'; | |
$_data->eventAttendanceMode = 'OnlineEventAttendanceMode'; | |
return $_data; | |
} | |
add_filter('tribe_json_ld_event_object', 'custom_event_schema_extras', 10, 3); | |
} |
View event_moved_online.html
<html> | |
<head> | |
<title>The Adventures of Kira and Morrison</title> | |
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org", | |
"@type": "Event", | |
"name": "The Adventures of Kira and Morrison", | |
"startDate": "2025-08-21T19:00", | |
"endDate": "2025-08-21T23:00", |
View event_rescheduled.html
<html> | |
<head> | |
<title>The Adventures of Kira and Morrison</title> | |
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org", | |
"@type": "Event", | |
"name": "The Adventures of Kira and Morrison", | |
"startDate": "2025-08-21T19:00", | |
"endDate": "2025-08-21T23:00", |
View event_postponed.html
<html> | |
<head> | |
<title>The Adventures of Kira and Morrison</title> | |
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org", | |
"@type": "Event", | |
"name": "The Adventures of Kira and Morrison", | |
"startDate": "2025-07-21T19:00", | |
"endDate": "2025-07-21T23:00", |
View event_cancelled.html
<html> | |
<head> | |
<title>The Adventures of Kira and Morrison</title> | |
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org", | |
"@type": "Event", | |
"name": "The Adventures of Kira and Morrison", | |
"startDate": "2025-07-21T19:00", | |
"endDate": "2025-07-21T23:00", |
NewerOlder