Skip to content

Instantly share code, notes, and snippets.

View goldhat's full-sized avatar

Joel Milne goldhat

View GitHub Profile
@goldhat
goldhat / Clay_Templates.php
Created September 16, 2017 13:02
Override templates support for themes provided in WordPress plugin
<?php
class Clay_Template {
public $override_dir;
public $hook_prefix;
public function __construct( $override_dir, $hook_prefix ) {
$this->override_dir = $override_dir;
<div class="segmented-progress-bar" data-segments="9,1,4,287" data-total="301">
<span class="segment segment-10" style="width: 3.79175px;"></span>
<span class="segment segment-20" style="width: 0.421306px;"></span>
<span class="segment segment-30" style="width: 1.68522px;"></span>
<span class="segment segment-90" style="width: 120.915px;"></span>
</div>
@goldhat
goldhat / functions.php
Last active July 14, 2018 20:43
Script Inclusions
<?php
// Header Collapsed CSS
if ( is_page_template( 'page-templates/template-learn-patacademy.php' )
|| is_page_template( 'page-templates/template-learn-mikesvideos.php' )
|| is_page_template( 'page-templates/template-learn-rcacademy.php' )
|| is_page_template( 'page-templates/template-learn-quiz.php' )
|| is_page_template( 'page-templates/template-learn-questionbank.php' )
|| is_page_template( 'page-templates/template-bookmarkedquestions.php' )
) {