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
# See /usr/share/postfix/main.cf.dist for a commented, more complete version | |
# Debian specific: Specifying a file name will cause the first | |
# line of that file to be used as the name. The Debian default | |
# is /etc/mailname. | |
#myorigin = /etc/mailname | |
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) | |
biff = no |
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 | |
$category_IDs = get_all_category_ids(); | |
// Loop through categories | |
foreach ( $category_IDs as $category_ID ) : | |
$query = new WP_Query( array( | |
'cat' => $category_ID, | |
'posts_per_page' => - 1, | |
) ); |
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
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 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 | |
/** | |
* 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 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
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 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
<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 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($) { | |
jQuery(window).load(function($){ | |
// Turn off the page loader | |
jQuery('#ajax-loader').fadeOut(500); | |
}); | |
})(jQuery); | |
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
$competitor->featured = new WP_Query([ | |
'post_type' => 'train', | |
'train-categories' => 'workouts', | |
'posts_per_page' => 2, | |
'post__in' => get_option( 'sticky_posts' ), | |
]); |
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 | |
// 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 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
.banner { | |
.search-container { | |
@media (min-width: @screen-md-min) and (max-width: @screen-md-max) { | |
padding: 0; | |
} | |
} | |
} |
OlderNewer