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 Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
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_filter( 'comment_form_default_fields', 'woo_custom_comment_form_fields', 20 ); | |
function woo_custom_comment_form_fields ( $fields ) { | |
$commenter = wp_get_current_commenter(); | |
$req = get_option( 'require_name_email' ); | |
$aria_req = ( $req ? " aria-required='true'" : '' ); | |
$fields = array( |
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="logo"> | |
<?php | |
// Website heading/logo and description text. | |
if ( isset( $woo_options['woo_logo'] ) && ( '' != $woo_options['woo_logo'] ) ) { | |
$logo_url = $woo_options['woo_logo']; | |
if ( is_ssl() ) $logo_url = str_replace( 'http://', 'https://', $logo_url ); | |
echo '<a href="' . esc_url( $site_url ) . '" title="' . esc_attr( $site_description ) . '"><img src="' . esc_url( $logo_url ) . '" alt="' . esc_attr( $site_title ) . '" /></a>' . "\n"; | |
} // End IF Statement | |
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
.star-rating{float:right;width:80px;height:16px;background:url(../images/star.png) repeat-x left 0} | |
.star-rating span{background:url(../images/star.png) repeat-x left -32px;height:0;padding-top:16px;overflow:hidden;float:left} | |
.hreview-aggregate .star-rating{margin:10px 0 0 0} | |
#review_form #respond{position:static;margin:0;width:auto;padding:0 0 0;background:transparent none;border:0} | |
#review_form #respond:after{content:"";display:block;clear:both} | |
#review_form #respond p{margin:0 0 10px} | |
#review_form #respond .form-submit input{left:auto} | |
#review_form #respond textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%} | |
p.stars:after{content:"";display:block;clear:both} | |
p.stars span{width:80px;height:16px;position:relative;float:left;background:url(../images/star.png) repeat-x left 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
<?php | |
/** | |
* The default template for displaying content | |
*/ | |
global $woo_options; | |
/** | |
* The Variables | |
* |
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: Blog | |
* | |
* The blog page template displays the "blog-style" template on a sub-page. | |
* | |
* @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
<?php | |
/** | |
* Post Content Template | |
* | |
* This template is the default page content template. It is used to display the content of the | |
* `single.php` template file, contextually, as well as in archive lists or search results. | |
* | |
* @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
// Exclude categories on the homepage. | |
add_filter( 'pre_get_posts', 'custom_exclude_categories_homepage', 10 ); | |
function custom_exclude_categories_homepage ( $query ) { | |
if($query->is_home()){ | |
$excluded_cats = array(45); | |
$query->set( 'category__not_in', $excluded_cats ); | |
$query->parse_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
<?php | |
// Do not delete these lines | |
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) | |
die ('Please do not load this page directly. Thanks!'); | |
if ( post_password_required() ) { ?> | |
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.', 'woothemes') ?></p> | |
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 | |
// File Security Check | |
if ( ! function_exists( 'wp' ) && ! empty( $_SERVER['SCRIPT_FILENAME'] ) && basename( __FILE__ ) == basename( $_SERVER['SCRIPT_FILENAME'] ) ) { | |
die ( 'You do not have sufficient permissions to access this page!' ); | |
} | |
?><?php | |
/** | |
* Index Template | |
* | |
* Here we setup all logic and XHTML that is required for the index template, used as both the homepage |
OlderNewer