This file contains hidden or 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
| /** | |
| * Convert String to XML to JSON to Array | |
| * | |
| */ | |
| private function xmlStringToArray( $str ) | |
| { | |
| /** Load the string into xml. */ | |
| $xml = simplexml_load_string( $str, "SimpleXMLElement", LIBXML_NOCDATA ); | |
| /** Encode the xml as JSON */ |
This file contains hidden or 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
| /** | |
| * Json Encode | |
| * | |
| * Encode the array as JSON using JSON_PRETTY_PRINT, then use only two spaces | |
| * for indentation instead of four, to maintain consistency with PHP, CSS, JS | |
| * and HTML. | |
| * | |
| * @param array $items | |
| * | |
| * @return string|false |
This file contains hidden or 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
| /** | |
| * Password Validation | |
| * | |
| * @link https://stackoverflow.com/a/21456918/5449906 | |
| * | |
| * @param $string | |
| * | |
| * @return bool | |
| */ | |
| private function validatePassword( $password ) |
This file contains hidden or 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 | |
| /** | |
| * Device Detection and Theme Delivery | |
| * | |
| * This set of code was developed as an attempt to determine the device the | |
| * viewer was using, so that the content sent could be optimized to that device. | |
| * In addition, then, to knowing what device the viewer is using, a sense of the | |
| * context in which the content is being viewed can be ascertained. For example, | |
| * a person viewing a smartphone may either be on the street or inside in a business | |
| * setting. However a person on a desktop computer (not a tablet, not a smartphone) |
This file contains hidden or 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 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 v3.0 | |
| License URI: https://www.gnu.org/licenses/gpl-3.0.en.html |
This file contains hidden or 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 | |
| // exit | |
| defined('ABSPATH') OR exit; | |
| /** | |
| * Cache_Enabler | |
| * | |
| * @since 1.0.0 | |
| */ |
This file contains hidden or 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
| /** | |
| * Generate the Cache Path | |
| * | |
| * @param string $path | |
| * | |
| * @return string | |
| */ | |
| function _ce_file_path($path = NULL) { | |
| $url = parse_url( $_SERVER['REQUEST_URI'] ); |
This file contains hidden or 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 | |
| /** | |
| * The base configuration for WordPress | |
| * | |
| * The wp-config.php creation script uses this file during the | |
| * installation. You don't have to use the web site, you can | |
| * copy this file to "wp-config.php" and fill in the values. | |
| * | |
| * This file contains the following configurations: | |
| * |
This file contains hidden or 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
| /** | |
| * Filters the permalink for a page. | |
| * | |
| * @since 1.5.0 | |
| * | |
| * @example apply_filters( | |
| * 'page_link', | |
| * string $link, | |
| * int $post_id, | |
| * bool $sample |