Skip to content

Commit

Permalink
Addressing #69, #88, #89, #90
Browse files Browse the repository at this point in the history
  • Loading branch information
shramee committed Dec 3, 2015
1 parent b20a31c commit 2904f51
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion inc/pro/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ body.eighteen-tags-pro-active .site-header-cart li a {
top: -25px;
left: 100%;
cursor: pointer;
padding: 0 0.7em;
padding: 0 12px 0 11px;
}

.hamburger-open .header-toggle {
Expand Down
1 change: 0 additions & 1 deletion inc/pro/includes/vars-n-funcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ function eighteen_tags_pro_fields () {
'label' => 'Hamburger Label',
'section' => 'Primary Navigation',
'type' => 'text',
'default' => 'Menu',
),
array(
'id' => 'pri-nav-font',
Expand Down
4 changes: 3 additions & 1 deletion inc/structure/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,11 @@ function eighteen_tags_skip_links() {
*/
function eighteen_tags_hamburger_menu() {
if ( strpos( get_theme_mod( 'eighteen-tags-pro-nav-style' ), 'hamburger' ) ) {
$label = get_theme_mod( 'eighteen-tags-pro-pri-nav-label' );
$class = $label ? 'header-toggle has-label' : 'header-toggle';
?>
<div class="overlay hamburger-overlay"></div>
<a class="header-toggle" aria-controls="header" aria-expanded="false"><?php echo get_theme_mod( 'eighteen-tags-pro-pri-nav-label', 'Menu' ); ?></a>
<a class="<?php echo $class; ?>" aria-controls="header" aria-expanded="false"><?php echo $label; ?></a>
<?php
}
}
Expand Down
2 changes: 1 addition & 1 deletion inc/styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
padding : 1em;
}

#masthead, .single .woocommerce-breadcrumb {
.single #masthead, .single .woocommerce-breadcrumb {
margin-bottom: 0;
}

Expand Down
6 changes: 5 additions & 1 deletion single.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@
<div></div>
<header class="entry-header">
<?php
if (has_post_thumbnail( get_the_ID() ) ) {
if ( has_post_thumbnail( get_the_ID() ) ) {
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
echo "<div class='etp-full-width-image-bg' style=\"background-image: url('{$image[0]}')\"></div>";
?>
<?php
} else {
?>
<div class="margin-bottom"></div>
<?php
}
?>
<div class="col-full">
Expand Down
4 changes: 0 additions & 4 deletions style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1418,10 +1418,6 @@ fieldset legend {
margin-left: .53em;
}

.header-toggle:before {
margin: 0.7em;
}

.primary-navigation {
display: none;
}
Expand Down
5 changes: 5 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1081,6 +1081,7 @@ a:focus {
}

.content-area,
.margin-bottom,
.widget-area {
margin-bottom: 2.618em;
}
Expand Down Expand Up @@ -1440,6 +1441,10 @@ fieldset legend {
.header-toggle:before {
display: inline;
vertical-align: middle;
margin: 0;
}

.header-toggle.has-label:before {
margin: 0 0.5em 0 0;
}

Expand Down

0 comments on commit 2904f51

Please sign in to comment.