This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Four Ways to Hook into WordPress when using a Class | |
* | |
* Do NOT place the action hook in the `_construct`. | |
* | |
* @link https://carlalexander.ca/designing-class-wordpress-hooks/ | |
*/ | |
/** | |
* Call init from outside the class. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The shortcode calls a function, which then has attributes passed to it. | |
* That function then instantiates a class, which processes the data and | |
* then returns it. | |
* | |
* @see https://carlalexander.ca/designing-class-generate-wordpress-html-content/ | |
*/ | |
function myplugin_display_comment_shortcode($attributes) | |
{ | |
if (!is_array($attributes) || !isset($attributes['id'])) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* EC01 Media Index. | |
* | |
* Allows media (images, video and audio) to be viewed in a directory through a | |
* single index file. | |
* | |
* @package EC01 Media Index | |
* @since 1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('NDA') || exit('No direct access.'); | |
/** | |
* Lists the jpg files in the media directory in which it is placed. | |
* | |
* Rename to index.php for it to work automatically, when viewing the directory. | |
* | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SECURITY BEGIN | |
<RequireAll> | |
Require all denied | |
</RequireAll> | |
# SECURITY END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name | |
* | |
* @package PluginPackage | |
* @author Your Name | |
* @copyright Copyright (c) 2018 Your Name or Company Name | |
* @license https://www.gnu.org/licenses/gpl-3.0.en.html GPL-3.0+ | |
* | |
* @wordpress-plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: EC01 Commons Style | |
Theme URI: http://ec01.earth3300.info/ | |
Author: Clarence Bos | |
Author URI: http://ec01.earth3300.info/ | |
Description: Part of a sustainable community design. | |
Version: 1.0.0 | |
License: GPL-3.0+ | |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html | |
Text Domain: ec01-commons |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined( 'SITE' ) || exit; | |
/** | |
* Get Tier Two Data (Three Characters). | |
* | |
* Who, What, When, Where, How and Why, shortened to: | |
* who, wha, whn, whe, how and why. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<article> | |
<h1 id="earth-colony-01" class="hide">Earth Colony 01</h1> | |
<nav class="horizontal icons"> | |
<a href="#what" class="what" title="What"><span class="icon icon16x8"></a> | |
<a href="#how" class="how" title="How"><span class="icon icon8x16"></a> | |
<a href="#where" class="where" title="Where"><span class="icon icon16x16"></a> | |
<a href="#who" class="who" title="Who"><span class="icon icon8x8"></a> | |
<a href="#when" class="when" title="When"><span class="icon icon8x24"></a> | |
<a href="#why" class="why" title="Why"><span class="icon icon16x14"></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"colorId":0,"hexString":"#000000","rgb":{"r":0,"g":0,"b":0},"hsl":{"h":0,"s":0,"l":0},"name":"Black"},{"colorId":1,"hexString":"#800000","rgb":{"r":128,"g":0,"b":0},"hsl":{"h":0,"s":100,"l":25},"name":"Maroon"},{"colorId":2,"hexString":"#008000","rgb":{"r":0,"g":128,"b":0},"hsl":{"h":120,"s":100,"l":25},"name":"Green"},{"colorId":3,"hexString":"#808000","rgb":{"r":128,"g":128,"b":0},"hsl":{"h":60,"s":100,"l":25},"name":"Olive"},{"colorId":4,"hexString":"#000080","rgb":{"r":0,"g":0,"b":128},"hsl":{"h":240,"s":100,"l":25},"name":"Navy"},{"colorId":5,"hexString":"#800080","rgb":{"r":128,"g":0,"b":128},"hsl":{"h":300,"s":100,"l":25},"name":"Purple"},{"colorId":6,"hexString":"#008080","rgb":{"r":0,"g":128,"b":128},"hsl":{"h":180,"s":100,"l":25},"name":"Teal"},{"colorId":7,"hexString":"#c0c0c0","rgb":{"r":192,"g":192,"b":192},"hsl":{"h":0,"s":0,"l":75},"name":"Silver"},{"colorId":8,"hexString":"#808080","rgb":{"r":128,"g":128,"b":128},"hsl":{"h":0,"s":0,"l":50},"name":"Grey"},{"colorId":9,"hexString":"#ff0000","r |