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
svn: E195023: Commit failed (details follow): | |
svn: E195023: Changing directory '/media/Stuff/Work/Wordpress/wordpress-php-error-page/trunk/img' is forbidden by the server | |
svn: E175013: Access to '/!svn/txr/925808-kiub/php-error-page/trunk/img' forbidden |
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 | |
/** | |
* Cleaner walker for wp_nav_menu() | |
* | |
* Walker_Nav_Menu (WordPress default) example output: | |
* <li id="menu-item-8" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-8"><a href="/">Home</a></li> | |
* <li id="menu-item-9" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9"><a href="/sample-page/">Sample Page</a></l | |
* | |
* Roots_Nav_Walker example output: | |
* <li class="menu-home"><a href="/">Home</a></li> |
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($) { | |
$(window).on('load resize orientationchange',aspectRatioRespond); | |
aspectRatioRespond(); | |
}); | |
function aspectRatioRespond(){ | |
mobileMax = 480; | |
elements = jQuery('[data-ratio]'); | |
elements.each(function(){ | |
container = jQuery(this); |
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 id="primary" class="content-area site-archives col-xs-12"> | |
<?php if( function_exists('bcn_display') ) { | |
bcn_display(); | |
} ?> | |
<main id="main" class="site-main" role="main"> | |
<?php while ( have_posts() ) : the_post(); | |
get_template_part( 'content', 'page' ); |
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($) { | |
jQuery(window).load(function($){ | |
// Turn off the page loader | |
jQuery('#ajax-loader').fadeOut(500); | |
}); | |
})(jQuery); | |
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
$competitor->featured = new WP_Query([ | |
'post_type' => 'train', | |
'train-categories' => 'workouts', | |
'posts_per_page' => 2, | |
'post__in' => get_option( 'sticky_posts' ), | |
]); |
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 | |
// Taken from http://wordpress.org/support/topic/why-does-blog-become-current_page_parent-with-custom-post-type | |
function remove_parent_classes($class) { | |
// check for current page classes, return false if they exist. | |
return ($class == 'active') ? FALSE : TRUE; | |
} | |
add_filter('nav_menu_css_class', function ($classes) { | |
switch (get_post_type()) |
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
.banner { | |
.search-container { | |
@media (min-width: @screen-md-min) and (max-width: @screen-md-max) { | |
padding: 0; | |
} | |
} | |
} |
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('pre_get_posts', function( $query ) { | |
if ( ! is_admin() && is_archive('employee') && $query->is_main_query() ) { | |
$query->set( 'orderby', 'title' ); | |
$query->set( 'order', 'ASC' ); | |
} | |
return $query; | |
}); |
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
/*------------------------------------*\ | |
@CSSWIZARDRY-GRIDS | |
\*------------------------------------*/ | |
/** | |
* CONTENTS | |
* VARIABLES............Your settings. | |
* GRID SETUP...........Build the grid structure. | |
* WIDTHS...............Build our responsive widths around our breakpoints. | |
*/ |
OlderNewer