Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Hybrid Core 1.2 updates and move the breadcrumb trail to header.php w…

…here it belongs.

git-svn-id: http://svn.locallylost.com/themes/prototype/trunk@822 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information...
commit 6e0a7b30efa3e3ad6e447b6d1859cc668f9d711d 1 parent 54c9583
greenshady authored

Showing 2 changed files with 5 additions and 25 deletions. Show diff stats Hide diff stats

  1. +2 24 functions.php
  2. +3 1 header.php
26 functions.php
@@ -20,7 +20,7 @@
20 20 *
21 21 * @package Prototype
22 22 * @subpackage Functions
23   - * @version 0.2.0
  23 + * @version 0.3.0
24 24 * @author Justin Tadlock <justin@justintadlock.com>
25 25 * @copyright Copyright (c) 2010 - 2011, Justin Tadlock
26 26 * @link http://themehybrid.com/themes/prototype
@@ -50,9 +50,7 @@ function prototype_theme_setup() {
50 50 add_theme_support( 'hybrid-core-sidebars', array( 'primary', 'secondary', 'header', 'subsidiary', 'after-singular' ) );
51 51 add_theme_support( 'hybrid-core-widgets' );
52 52 add_theme_support( 'hybrid-core-shortcodes' );
53   - add_theme_support( 'hybrid-core-post-meta-box' );
54   - add_theme_support( 'hybrid-core-theme-settings' );
55   - add_theme_support( 'hybrid-core-meta-box-footer' );
  53 + add_theme_support( 'hybrid-core-theme-settings', array( 'about', 'footer' ) );
56 54 add_theme_support( 'hybrid-core-drop-downs' );
57 55 add_theme_support( 'hybrid-core-seo' );
58 56 add_theme_support( 'hybrid-core-template-hierarchy' );
@@ -70,12 +68,6 @@ function prototype_theme_setup() {
70 68 add_theme_support( 'automatic-feed-links' );
71 69 add_custom_background();
72 70
73   - /* Add the breadcrumb trail just after the container is open. */
74   - add_action( "{$prefix}_open_main", 'breadcrumb_trail' );
75   -
76   - /* Filter the breadcrumb trail arguments. */
77   - add_filter( 'breadcrumb_trail_args', 'prototype_breadcrumb_trail_args' );
78   -
79 71 /* Add the search form to the secondary menu. */
80 72 add_action( "{$prefix}_close_menu_secondary", 'get_search_form' );
81 73
@@ -88,20 +80,6 @@ function prototype_theme_setup() {
88 80 }
89 81
90 82 /**
91   - * Custom breadcrumb trail arguments.
92   - *
93   - * @since 0.1.0
94   - */
95   -function prototype_breadcrumb_trail_args( $args ) {
96   -
97   - /* Change the text before the breadcrumb trail. */
98   - $args['before'] = __( 'You are here:', hybrid_get_textdomain() );
99   -
100   - /* Return the filtered arguments. */
101   - return $args;
102   -}
103   -
104   -/**
105 83 * Function for deciding which pages should have a one-column layout.
106 84 *
107 85 * @since 0.1.0
4 header.php
@@ -65,4 +65,6 @@
65 65
66 66 <div class="wrap">
67 67
68   - <?php do_atomic( 'open_main' ); // prototype_open_main ?>
  68 + <?php do_atomic( 'open_main' ); // prototype_open_main ?>
  69 +
  70 + <?php if ( current_theme_supports( 'breadcrumb-trail' ) ) breadcrumb_trail( array( 'before' => __( 'You are here:', hybrid_get_textdomain() ) ) ); ?>

0 comments on commit 6e0a7b3

Please sign in to comment.
Something went wrong with that request. Please try again.