This is a methodology for managing business procedures and factual references for a company.
Business Reference
/* | |
* Custom checkbox markup to allow for styled checkboxes | |
* Styling method: https://www.inserthtml.com/2012/06/custom-form-radio-checkbox/ | |
* Must be placed in /caldera/ directory within wordpress theme | |
*/ | |
<?php echo $wrapper_before; ?> | |
<?php echo $field_label; ?> | |
<?php echo $field_before; ?> | |
<?php |
<? | |
/** | |
* Plugin Name: WordPress Catch All Cache Buster | |
* Description: A quick catch-all cache-busting WordPress plugin when having clients clear their browser cache isn't an option. | |
* Version: 1.0.0 | |
* Author: Joseph Roberts | |
* Author URI: https://github.com/DigitalJoeCo | |
* License: MIT | |
* License URI: http://opensource.org/licenses/MIT | |
*/ |
<?php | |
/** | |
* Routes specific js & css files to enqueue if they exist. | |
* | |
* (The idea is to use default.css & default.js for all your global styles, | |
* then simply include default.css & default.js into your $template.css & template.js files | |
* so that you can easily keep filesizes small and minimize the number of resources requested.) | |
*/ | |
add_action( 'wp_enqueue_scripts', function() { |
<?php | |
add_shortcode('year', function() { | |
$current_year = date('Y'); | |
$thanksgiving = strtotime("December 1st $current_year"); | |
return $thanksgiving < time() ? $current_year + 1 : $current_year; | |
}); |
<?php | |
add_filter('sage/display_sidebar', function ($display) { | |
static $display; | |
isset($display) || $display = in_array(true, [ | |
// The sidebar will be displayed if any of the following return true | |
is_single(), | |
is_404(), | |
is_page_template('views/template-custom.blade.php') |
<?php | |
/** | |
* Introduces a new column to the 'Page' dashboard that will be used to render the page template | |
* for the given page. | |
* | |
* @param array $page_columns The array of columns rendering page meta data. | |
* | |
* @return array $page_columns The update array of page columns. | |
*/ |
{{date|date("Ymd")}}{% for char in time|replace(":", "")|replace("am", "")|replace("pm", "")|list %}{% if loop.index == 1 and time[1] == ":" and "am" in time %}0{{char}}{% elif loop.index < 3 and time[2] == ":" and time[1] == "2" and "am" in time %}0{% elif loop.index == 1 and time[1] == ":" and "pm" in time %}{{char|int() + 12}}{% elif loop.index < 3 and time[2] == ":" and "pm" in time %}{{char|int() + loop.index}}{% else %}{{char}}{% endif %}{% endfor %} |