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 | |
Singleton::get_instance(); | |
class Singleton { | |
/** | |
* @var | |
*/ | |
protected static $_instance; |
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
(function($) { | |
'use strict'; | |
var myTestClass = function() { | |
var SELF = this; | |
SELF.init = function() {}; | |
} |
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 | |
/** template for protected content when password is not found */ | |
get_header(); ?> | |
<div class="main-content" id="content" role="main"> | |
<h1 class="top-heading"></h1> | |
<div class="intro"></div> | |
<?php the_content(); ?> | |
</div> |
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 | |
/** | |
* Redirect password protected content to it's own file | |
*/ | |
function tm_password_protect_redirect() { | |
// if password is not required or has been entered, continue with standard behavior | |
if ( ! post_password_required() ) { | |
return; | |
} |
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 | |
/** | |
* Remove trailing parenthesis from youtube oembed | |
* | |
* @param $html | |
* @param $url | |
* | |
* @return mixed | |
*/ |
NewerOlder