Browse Source

Fix failing tests.

pull/55/head
Ned Zimmerman 7 years ago
parent
commit
5268033590
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 6
      assets/styles/layouts/_catalog.scss
  2. 2
      dist/mix-manifest.json
  3. 2
      dist/styles/aldine.css
  4. 2
      inc/helpers/namespace.php
  5. 2
      partials/book.php
  6. 2
      partials/content-page-catalog.php

6
assets/styles/layouts/_catalog.scss

@ -1,3 +1,5 @@
// stylelint-disable no-descending-specificity
fieldset {
border-top: solid 2px var(--accent);
font-family: $font-family-sans-serif;
@ -211,7 +213,7 @@ fieldset {
border-bottom: solid 2px var(--accent);
}
fieldset div:not(hidden) {
fieldset div:not([hidden]) {
position: absolute;
width: 100%;
background: var(--body-bg);
@ -276,7 +278,7 @@ fieldset {
margin-bottom: 0;
}
fieldset div:not(hidden) {
fieldset div:not([hidden]) {
position: relative;
border: 0;
}

2
dist/mix-manifest.json vendored

@ -1,6 +1,6 @@
{
"/scripts/aldine.js": "/scripts/aldine.js?id=a166171314fdc227903c",
"/styles/aldine.css": "/styles/aldine.css?id=728f9c04264f59ea9db3",
"/styles/aldine.css": "/styles/aldine.css?id=00b0c10d93f464c01cc5",
"/styles/editor.css": "/styles/editor.css?id=10e3f4b144847aa8d75e",
"/scripts/customizer.js": "/scripts/customizer.js?id=decf119933e3b2d4b210"
}

2
dist/styles/aldine.css vendored

File diff suppressed because one or more lines are too long

2
inc/helpers/namespace.php

@ -7,7 +7,7 @@
namespace Aldine\Helpers;
use \Pressbooks\Licensing;
use Pressbooks\Licensing;
/**
* Get catalog data.

2
partials/book.php

@ -12,7 +12,7 @@ $date = ( isset( $book['metadata']['datePublished'] ) ) ? str_replace( '-', '',
<a href="<?php echo $book['link']; ?>"><?php echo maybe_truncate_string( $book['metadata']['name'] ); ?></a>
</p>
<?php /* <?php if (isset( $book['metadata']['author'] ) ) { ?>
<p class="book__author">
<p class="book__author">
<?php _e( 'By', 'pressbooks-aldine' ); ?> <?php foreach ( $book['metadata']['author'] as $author ) {
echo $author['name'];
} ?>

2
partials/content-page-catalog.php

@ -42,7 +42,7 @@ $available_subjects = get_available_subjects( $catalog_data );
if ( array_key_exists( $key, $available_subjects ) ) : ?>
<h3><span class="label"><?php echo $val['label']; ?></span></h3>
<?php foreach ( $val['children'] as $k => $v ) :
if ( in_array( $k, $available_subjects[$key] ) ) : ?>
if ( in_array( $k, $available_subjects[ $key ], true ) ) : ?>
<input type="radio" name="subject" id="<?php echo $k; ?>" value="<?php echo $k; ?>" <?php checked( $subject, $k ); ?>>
<label for="<?php echo $k; ?>"><span class="label"><?php echo $v; ?></span> <svg class="checked"><use xlink:href="#checkmark" /></svg></label>
<?php endif; ?>

Loading…
Cancel
Save