Create a .htaccess file. (they are hidden by default)
Add the following contents:
Deny from all Allow from 0.0.0.0.0
<?php | |
// Changes past event views to reverse chronological order | |
function tribe_past_reverse_chronological ($post_object) { | |
$past_ajax = (defined( 'DOING_AJAX' ) && DOING_AJAX && $_REQUEST['tribe_event_display'] === 'past') ? true : false; | |
if(tribe_is_past() || $past_ajax) { | |
$post_object = array_reverse($post_object); | |
} |
jQuery(document).ready(function($) { | |
$(window).on('scroll touchmove', function () { | |
$('.main-navigation').toggleClass('past-main', $(document).scrollTop() > 0); | |
}).scroll(); | |
}); |
.gform_wrapper ul { | |
padding-left: 0; | |
list-style: none; } | |
.gform_wrapper li { | |
margin-bottom: 15px; } | |
.gform_wrapper form { | |
margin-bottom: 0; } |
// MAINTAINANCE MODE | |
//Disables login for 'editor' and custom 'revisor' user roles. | |
function site_maintenance() { | |
if ( current_user_can('editor') || current_user_can('revisor') ) { | |
$logout_url = wp_login_url().'?mode=maintainance'; | |
wp_logout(); | |
wp_redirect( $logout_url, 302 ); |
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/\ | |
LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local\ | |
-domain system -domain user | |
killall Finder |
A while back YouTube quietly removed their Custom Channel Player, http://youtube.com/custom_player leaving users no way to automatically show their Channel in an embed other than manually curating a Playlist which was limited to a number of videos. | |
The Google Gadget option was limited in its inability to change width and height attributes. | |
The following code will now show a Custom Channel embed as expected: | |
<iframe width="560" height="315" src="http://www.youtube.com/embed/?listType=user_uploads&list=ACCOUNT_NAME" frameborder="0" allowfullscreen></iframe> | |
Replace ACCOUNT_NAME with your YouTube account. |