#Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
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
add_action( 'sensei_before_main_content', 'sensei_conditional_lesson_display', 10 ); | |
function sensei_conditional_lesson_display() { | |
if( !is_singular('course') ) return; | |
global $post, $current_user, $woothemes_sensei, $sensei_modules; | |
$is_user_taking_course = WooThemes_Sensei_Utils::user_started_course( $post->ID, $current_user->ID ); | |
if ( ! ( $is_user_taking_course || sensei_all_access() ) ) { | |
remove_action( 'sensei_course_single_lessons', 'course_single_lessons', 10 ); |
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 | |
add_action( 'init', 'custom_remove_helper_admin_notice' ); | |
/** | |
* Remove the Woothemes Helper admin install notice | |
*/ | |
function custom_remove_helper_admin_notice() { | |
remove_action( 'admin_notices', 'woothemes_updater_notice' ); | |
} |
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
/** | |
* Sensei Carry-Hill theme integration | |
*/ | |
// declaring Sensei support | |
add_action( 'after_setup_theme', 'declare_sensei_support' ); | |
function declare_sensei_support() { | |
add_theme_support( 'sensei' ); | |
} |
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
<table> | |
<tbody> | |
<tr> | |
<td colspan="4"> | |
<h5 class="tdbkg">ARTS, MEDIA & ENTERTAINMENT</h5> | |
</td> | |
</tr> | |
<tr> | |
<td colspan="4"> | |
<h2 class="nameclass"><strong>GRAPHIC DESIGN</strong></h2> |
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
function programmatically_create_multiple_posts() { | |
// Initialize the page ID to -1. This indicates no action has been taken. | |
$post_id = -1; | |
$numberofposts = 40; | |
$new_post_type = 'portfolio'; | |
for ($i=0; $i < $numberofposts; $i++) { | |
// Setup the author, slug, and title for the post |
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 | |
/*-----------------------------------------------------------------------------------*/ | |
/* Start WooThemes Functions - Please refrain from editing this section */ | |
/*-----------------------------------------------------------------------------------*/ | |
// Set path to WooFramework and theme specific functions | |
$functions_path = get_template_directory() . '/functions/'; | |
$includes_path = get_template_directory() . '/includes/'; |
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
#main-nav{ | |
margin: 0 auto; | |
width: 87%; | |
float: none !important; | |
} |
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
/** | |
* author: Dwain Maralack http://github.com/dwainm/ | |
* | |
* to stop this run: stopLoadTitle() | |
*/ | |
var timer = 0 ; | |
var loadingHandle; | |
var title = document.getElementsByTagName('title')[0]; | |
var oldTitle = title.innerHTML; |
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
jQuery(document).ready(function(e){jQuery(".entry table tr:odd").addClass("alt-table-row"),jQuery(".post, .widget, .panel, .page").fitVids(),jQuery(".nav-toggle").click(function(e){e.preventDefault(),jQuery("body").toggleClass("show-nav"),jQuery("#navigation").find(".top-navigation").size()||jQuery("#top .top-navigation").clone().appendTo("#navigation .menus")}),jQuery(".nav-close").click(function(e){e.preventDefault(),jQuery("body").removeClass("show-nav")});var t=function(e,t){if(e)do{if(e.id===t)return!0;if(9===e.nodeType)break}while(e=e.parentNode);return!1};jQuery(window).width()<767&&(jQuery("body")[0].addEventListener?document.addEventListener("touchstart",function(e){jQuery("body").hasClass("show-nav")&&!t(e.target,"navigation")&&(e.preventDefault(),jQuery("body").removeClass("show-nav"))},!1):jQuery("body")[0].attachEvent&&document.attachEvent("ontouchstart",function(e){jQuery("body").hasClass("show-nav")&&!t(e.target,"navigation")&&(e.preventDefault(),jQuery("body").removeClass("show-nav"))})),/Andr |