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_filter( 'wp_nav_menu_objects', 'blazersix_nav_menu_classes', 10, 2 ); | |
/** | |
* Add helpful nav menu item classes. | |
* | |
* Adds class hooks to various nav menu items since child pseudo selectors | |
* aren't supported in all browsers. | |
*/ | |
function blazersix_nav_menu_classes( $items, $args ) { |
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 | |
/** | |
* WordPress template tag to allow for CSS classes to be easily filtered across templates. | |
* | |
* @author Brady Vercher (twitter.com/bradyvercher) | |
* @link http://www.blazersix.com/blog/wordpress-class-template-tag/ | |
* | |
* @param string $id Element identifier. | |
* @param array|string $classes Optional. List of default classes as an array or space-separated string. | |
* @param array|string $args Optional. Override defaults. |
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 | |
/** | |
* Plugin Name: Discussion View | |
* Version: 0.1.0 | |
* Description: Display blog posts similar to a the topic view in a forum. | |
* Author: Brady Vercher | |
*/ | |
class DiscussionView { | |
public function load() { |
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 | |
/** | |
* Plugin Name: WP eCommerce Query Hotfix | |
* Description: Allow pre_get_posts hooks attached after wpsc_split_the_query() to run. | |
*/ | |
/** | |
* Fix 'pre_get_post' hooks when WP eCommerce is active. | |
* | |
* The wpsc_split_the_query() pre_get_posts callback attempts to run only once |
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
window.themeName = window.themeName || {}; | |
(function( window, $, undefined ) { | |
'use strict'; | |
// Override the carousel config properties. | |
themeName.config.carousel.autoPlay = true; | |
themeName.setupCarousel = function() { | |
// Override the carousel set up without affecting anything else. |
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
/** | |
* {{singular}} CPT | |
* | |
* @package {{plural}} | |
* @author Your Name <email@example.com> | |
* @license http://www.gnu.org/licenses/gpl-2.0.html | |
* @link http://www.blazersix.com/wordpress-code-generators/ | |
* | |
* @todo Remove unused code and update where needed. | |
* |
NewerOlder