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 woo_shortcode_post_comments ( $atts ) { | |
global $post; | |
$defaults = array( | |
'zero' => 'No Comments', | |
'one' => 'One Comment', | |
'more' => '% Comments', | |
'hide_if_off' => 'enabled', | |
'closed_text' => apply_filters( 'woo_post_more_comment_closed_text', __( 'Comments are closed', 'woothemes' ) ), | |
'before' => '', |
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 | |
if ( ! defined( 'ABSPATH' ) ) exit; | |
/** | |
* Topics Grid Template | |
* | |
* Here we setup all HTML pertaining to the topics grid. | |
* | |
* @package WooFramework | |
* @subpackage Template | |
*/ |
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 woo_metaboxes_add($woo_metaboxes) { | |
$woo_metaboxes[] = array( | |
"name" => "url", | |
"label" => "Custom Slider URl", | |
"type" => "text", | |
"desc" => "Enter a custom URL for the slide title here" | |
); | |
return $woo_metaboxes; |
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 thedate( get_option( 'date_format' ) ); echo ' • '; the_time( get_option( 'time_format' ) ); echo ' • '; the_author_posts_link(); if ( comments_open() ) { echo ' • '; comments_popup_link( _( 'Leave a comment', 'woothemes' ), _( '1 Comment', 'woothemes' ), _( '% Comments', 'woothemes' ) ); } ?> |
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 the_excerpt(); ?> |
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
class description_walker extends Walker_Nav_Menu | |
{ | |
function start_el(&$output, $item, $depth, $args) | |
{ | |
global $wp_query; | |
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; | |
$class_names = $value = ''; | |
$classes = empty( $item->classes ) ? array() : (array) $item->classes; |
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
#navigation #main-nav .menu-item span.description { | |
display: block; | |
font-size: 11px; | |
font-style: italic; | |
} |
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
// Display the "Business" slider above the default WordPress homepage. | |
add_action( 'get_header', 'woo_custom_load_biz_slider', 10 ); | |
function woo_custom_load_biz_slider () { | |
if ( is_front_page() && ! is_paged() ) { | |
add_action( 'woo_main_before_home', 'woo_slider_biz', 10 ); | |
add_action( 'woo_main_before_home', 'woo_custom_reset_biz_query', 11 ); | |
add_action( 'woo_load_slider_js', '__return_true', 10 ); | |
add_filter( 'body_class', 'woo_custom_add_business_bodyclass', 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 | |
/** | |
* Template Name: Business | |
* | |
* The business page template displays your posts with a "business"-style | |
* content slider at the top. | |
* | |
* @package WooFramework | |
* @subpackage Template | |
*/ |
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
#content-top { | |
position:absolute !important; | |
height:400px !important; | |
} |