Skip to content

Commit

Permalink
fix issue #103
Browse files Browse the repository at this point in the history
  • Loading branch information
bassjobsen committed Feb 5, 2014
1 parent 8dc5562 commit f7ef304
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 34 deletions.
48 changes: 32 additions & 16 deletions functions/jbst-header-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,23 +117,8 @@ function jbst_body_open() {
<?php
}

/*
==========================================================
Logo out side navar
==========================================================
*/
//


function jbst_logooustside()
{
$extraclasses = apply_filters('jbst_logooustside_classes',array());
$string = '<div class="container"><div class="row"><div class="col-xs-12"><div class="logo-outside-nav container'.(($extraclasses)?' '.implode('',$extraclasses):'').'">';
$string .= jbst_logo();
$string .= '</div></div></div></div>';
return $string;
}

/*
==========================================================
jbst Main Nav
Expand Down Expand Up @@ -185,7 +170,7 @@ function jbst_main_navbar() {
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<?php if(get_theme_mod('logo_image_position', logo_image_position) == 'in-nav') {echo jbst_logo();} ?>
<?php if(get_theme_mod('logo_image_position', logo_image_position) == 'in-nav') {echo apply_filters('jbst_logo',jbst_logo());} ?>
</div>


Expand Down Expand Up @@ -332,6 +317,37 @@ function jbst_top_content_wrapper() {
<div class="row">';
}

/*
==========================================================
CUSTOM LOGO
==========================================================
*/

function jbst_logo() {
$custom_logo = get_theme_mod( 'logo_image', logo_image);
if ($custom_logo)
{
return "<a id='logo-link-container' href='".home_url()."' title='".esc_attr( get_bloginfo( 'name', 'display' ) )."'><img class='site-logo' src='$custom_logo' alt='".esc_attr( get_bloginfo( 'name', 'display' ) )."' /></a>";
}
return '<a class="navbar-brand" href="'. home_url() . '">' . get_bloginfo('name') . '</a>';
}

/*
==========================================================
Logo out side navar
==========================================================
*/
//


function jbst_logooustside()
{
$extraclasses = apply_filters('jbst_logooustside_classes',array());
$string = '<div class="container"><div class="row"><div class="col-xs-12"><div class="logo-outside-nav container'.(($extraclasses)?' '.implode('',$extraclasses):'').'">';
$string .= apply_filters('jbst_logo',jbst_logo());
$string .= '</div></div></div></div>';
return $string;
}


/*
Expand Down
2 changes: 1 addition & 1 deletion library/assets/css/wpless2css.css

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions library/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,23 +258,6 @@ function jbst_typography() {

}

/*
==========================================================
CUSTOM LOGO
==========================================================
*/

function jbst_logo() {
$custom_logo = get_theme_mod( 'logo_image', logo_image);
if ($custom_logo)
{
return "<a id='logo-link-container' href='".home_url()."' title='".esc_attr( get_bloginfo( 'name', 'display' ) )."'><img class='site-logo' src='$custom_logo' alt='".esc_attr( get_bloginfo( 'name', 'display' ) )."' /></a>";
}
return '<a class="navbar-brand" href="'. home_url() . '">' . get_bloginfo('name') . '</a>';
}




/*
==========================================================
Expand Down

0 comments on commit f7ef304

Please sign in to comment.