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 | |
// 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' ) | |
) { |
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
<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> |
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 | |
class Clay_Template { | |
public $override_dir; | |
public $hook_prefix; | |
public function __construct( $override_dir, $hook_prefix ) { | |
$this->override_dir = $override_dir; |
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 | |
class QuizMaster_Helper_CopyPost { | |
private $postTypes = array(); | |
public function __construct( $postTypes = array() ) { | |
if( empty( $postTypes )) { | |
$this->postTypes = false; | |
} else { |
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
public static function autoload( $class, $dir ) { | |
$registeredExtensions = $this->register(); | |
print '<pre>'; | |
var_dump( $registeredExtensions ); | |
print '</pre>'; | |
foreach( $registeredExtensions as $ext => $extSettings ) { | |
if( $extSettings['type'] == 'pro' ) { |
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 | |
// time period handling segment | |
$time_period = $this->_args['time_period']; | |
$time_period_sql = false; | |
if( $time_period === false ) { | |
// no time period | |
} else if( intval( $time_period ) > 0 ) { | |
$time_period_sql = $wpdb->prepare( 'date_created BETWEEN DATE_SUB(utc_timestamp(), INTERVAL %d SECOND) AND utc_timestamp()', $this->_args['time_period'] ); | |
} else { |
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 | |
/* | |
* $quiz QuizMaster_Model_Quiz | |
* $question QuizMaster_Model_Question | |
*/ | |
QuizMaster_Model_Quiz_Question::associate( $quiz->getId(), $question->getId() ); |
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
// Method A - using form ID | |
add_filter('gpls_rulegroups', 'gpls_globalize'); | |
function gpls_globalize( $rulegroups ) { | |
return array_merge( $rulegroups, GPLS_RuleGroup::load_by_form( 2 ) ); | |
} | |
// Method B - using rulegroup id (GF feed ID) | |
add_filter('gpls_rulegroups', 'gpls_globalize'); | |
function gpls_globalize( $rulegroups ) { | |
$rulegroups[] = GPLS_RuleGroup::load_by_id( 60 ) ); |
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
object(WP_Error)#693 (2) { | |
["errors"]=> | |
array(1) { | |
["already_active"]=> | |
array(1) { | |
[0]=> | |
string(27) "The user is already active." | |
} | |
} | |
["error_data"]=> |
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
/* Global Scope (Not On Ready) */ | |
function quizmasterProcessAccessCode( codeEntered, code ) { | |
if( codeEntered == code ) { | |
console.log("code is correct"); | |
quizmasterGrantAccessByCode(); | |
} else { | |
quizmasterDenyAccessByCode(); | |
} | |
} |
NewerOlder