From: Anthony Talarico Date: Wed, 16 Dec 2015 14:22:57 +0000 (-0500) Subject: adding custom product category plugin X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=cac30d75d401439b910f7fe871d8c96e5effa31a;p=WP-Themes%2Fmichsci.git adding custom product category plugin --- diff --git a/archive-miproduct.php b/archive-miproduct.php new file mode 100644 index 0000000..39e1547 --- /dev/null +++ b/archive-miproduct.php @@ -0,0 +1,83 @@ + + +
+ +
id="interior"> + +
+
+ +
  • +

    +
    + 'michsci_category', + + 'hierarchical' => true, + + 'hide_empty' => true + ) ); ?> + +
    +
  • +
    + + +
    + +
    + ID)) == 0 ) { ?> +
    > + +
    +

    + +
    + ID, 'blog-feed-front'); ?> + + + + + + +
    +
    +
    + + + +
    +

    +
    + +
    + +
    + diff --git a/archive.php b/archive.php index 1f706c9..93e336f 100644 --- a/archive.php +++ b/archive.php @@ -1,7 +1,7 @@
    id="interior"> - +
    diff --git a/functions.php b/functions.php index 6d3e572..37a59c5 100644 --- a/functions.php +++ b/functions.php @@ -24,6 +24,7 @@ if (!function_exists('glm_quicksite_widget_init')) { } + /** * get_menu_options * @@ -40,7 +41,7 @@ function glm_get_menu_options() return $menu_options; } -/** + register_nav_menus(array( 'top-bar' => 'Site Navigation', //'mobile-off-canvas' => 'Mobile', @@ -60,7 +61,7 @@ if ( ! function_exists( 'michsci_top_bar' ) ) { 'after' => '', // after each link 'link_before' => '', // before each link text 'link_after' => '', // after each link text - 'depth' => 3, // limit the depth of the nav + // limit the depth of the nav 'fallback_cb' => false, // fallback function (see below) 'walker' => new MichiganSci_Top_Bar_Walker() )); @@ -81,7 +82,7 @@ class MichiganSci_Top_Bar_Walker extends Walker_Nav_Menu { } } endif; -*/ + /** * glm_page_menu * @@ -276,3 +277,6 @@ function mytheme_search_loop() { add_action('thematic_searchloop', 'mytheme_search_loop'); // End of the Contextual/Highlight Search functions ?> + + + diff --git a/parts/top-bar.php b/parts/top-bar.php index d154377..23e9429 100644 --- a/parts/top-bar.php +++ b/parts/top-bar.php @@ -1,6 +1,6 @@