Browse Source

Merge branch dev into gutenberg

pull/46/head
Ned Zimmerman 8 years ago
parent
commit
a88453c212
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 12
      assets/styles/components/_forms.scss
  2. 4
      assets/styles/layouts/_page-catalog.scss
  3. 2
      assets/styles/layouts/_page-home.scss
  4. 3
      composer.json
  5. 50
      composer.lock
  6. 4
      dist/mix-manifest.json
  7. 2
      dist/styles/aldine.css
  8. 2
      dist/styles/editor.css
  9. 10
      functions.php
  10. 40
      inc/actions/namespace.php
  11. 40
      inc/customizer/namespace.php
  12. 18
      inc/helpers/namespace.php
  13. 58
      inc/shortcodes/namespace.php
  14. 294
      languages/pressbooks-aldine.pot
  15. 8
      package-lock.json
  16. 9
      package.json
  17. 6
      yarn.lock

12
assets/styles/components/_forms.scss

@ -16,7 +16,7 @@ textarea {
border-top: 0;
border-right: 0;
border-left: 0;
border-bottom: solid 2px var(--black, #000);
border-bottom: solid 2px var(--body-text);
border-radius: 0;
padding: 0 0 1.5em;
font-size: 1rem;
@ -52,11 +52,11 @@ input[type="submit"] {
text-align: center;
&--error {
color: var(--error, #c00);
color: var(--error);
}
&--success {
color: var(--success, #070);
color: var(--success);
}
}
@ -89,10 +89,10 @@ input[type="submit"] {
}
}
&.error {
border-bottom: solid 2px #c00;
border-bottom: solid 2px var(--error);
+ label {
color: #c00;
color: var(--error);
}
}
}
@ -112,7 +112,7 @@ input[type="submit"] {
align-items: center;
width: 100%;
padding: rem(65) 0 rem(120);
background: #f6f6f6;
background: var(--body-bg-alt);
h2 {
margin-bottom: rem(40);

4
assets/styles/layouts/_page-catalog.scss

@ -55,7 +55,7 @@ fieldset {
h2 {
[aria-expanded="true"] {
border-bottom: solid 2px var(--accent);
background: #fafdff;
background: var(--body-bg-alt);
}
}
@ -145,7 +145,7 @@ fieldset {
font-family: $font-family-sans-serif;
a {
color: #000;
color: var(--body-text);
&:hover,
&:focus {

2
assets/styles/layouts/_page-home.scss

@ -56,7 +56,7 @@
margin-top: 0;
path {
fill: var(--primary, $brand);
fill: var(--primary);
}
}
}

3
composer.json

@ -20,7 +20,8 @@
"php": ">=7",
"composer/installers": "~1.0",
"pressbooks/mix": "^2.1",
"soberwp/intervention": "1.2.0-p"
"soberwp/intervention": "1.2.0-p",
"spatie/color": "^1.1"
},
"require-dev": {
"humanmade/coding-standards": "^0.2.1",

50
composer.lock generated

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "6a3f76d94f447a4cac0b1b48e01e07d0",
"content-hash": "edad2ef6112644b56c39a416914d8b0f",
"packages": [
{
"name": "composer/installers",
@ -209,6 +209,54 @@
"wordpress"
],
"time": "2017-08-26T12:21:27+00:00"
},
{
"name": "spatie/color",
"version": "1.1.1",
"source": {
"type": "git",
"url": "https://github.com/spatie/color.git",
"reference": "5c424dbfa919cc7acdacbf6fdcedb89f790bc04b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spatie/color/zipball/5c424dbfa919cc7acdacbf6fdcedb89f790bc04b",
"reference": "5c424dbfa919cc7acdacbf6fdcedb89f790bc04b",
"shasum": ""
},
"require": {
"php": "^7.0"
},
"require-dev": {
"phpunit/phpunit": "5.*"
},
"type": "library",
"autoload": {
"psr-4": {
"Spatie\\Color\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Sebastian De Deyne",
"email": "sebastian@spatie.be",
"homepage": "https://spatie.be",
"role": "Developer"
}
],
"description": "A little library to handle color conversions",
"homepage": "https://github.com/spatie/color",
"keywords": [
"color",
"conversion",
"rgb",
"spatie"
],
"time": "2017-02-03T10:05:49+00:00"
}
],
"packages-dev": [

4
dist/mix-manifest.json vendored

@ -1,7 +1,7 @@
{
"/scripts/aldine.js": "/scripts/aldine.js?id=1f58027f7de9942caf57",
"/styles/aldine.css": "/styles/aldine.css?id=aa47048cd3a38bde8f17",
"/styles/editor.css": "/styles/editor.css?id=d96762ab5918cde0c2e1",
"/styles/aldine.css": "/styles/aldine.css?id=64d45897bcfc07773489",
"/styles/editor.css": "/styles/editor.css?id=0037fd3d0c494f2ea50c",
"/styles/blocks/page-section/editor.css":
"/styles/blocks/page-section/editor.css?id=d41d8cd98f00b204e980",
"/scripts/customizer.js": "/scripts/customizer.js?id=1b0d3cfc1d85f460af53",

2
dist/styles/aldine.css vendored

File diff suppressed because one or more lines are too long

2
dist/styles/editor.css vendored

File diff suppressed because one or more lines are too long

10
functions.php

@ -10,7 +10,7 @@
/**
* Ensure dependencies are loaded
*/
if ( ! class_exists( 'PressbooksMix\\Assets' ) ) {
if ( ! class_exists( 'Spatie\\Color\\Hex' ) ) {
$composer = get_template_directory() . '/vendor/autoload.php';
if ( ! file_exists( $composer ) ) {
wp_die( sprintf(
@ -29,6 +29,7 @@ $includes = [
'customizer',
'filters',
'helpers',
'shortcodes',
'tags',
];
@ -52,10 +53,17 @@ add_filter( 'body_class', '\Aldine\Filters\body_classes' );
add_filter( 'excerpt_more', '\Aldine\Filters\excerpt_more' );
add_filter( 'query_vars', '\Aldine\Filters\register_query_vars' );
add_filter( 'wp_nav_menu_items', '\Aldine\Filters\adjust_menu', 10, 2 );
add_filter( 'the_content', 'do_shortcode' );
add_action( 'widgets_init', '\Aldine\Actions\widgets_init' );
add_action( 'wp_enqueue_scripts', '\Aldine\Actions\enqueue_assets' );
add_action( 'updated_option', '\Aldine\Actions\add_color_variants', 10, 3 );
add_action( 'customize_register', '\Aldine\Customizer\customize_register' );
add_action( 'customize_preview_init', '\Aldine\Customizer\customize_preview_js' );
add_action( 'customize_controls_enqueue_scripts', '\Aldine\Customizer\enqueue_color_contrast_validator' );
// Shortcodes
add_shortcode( 'aldine_page_section', '\Aldine\Shortcodes\page_section' );
add_shortcode( 'aldine_call_to_action', '\Aldine\Shortcodes\call_to_action' );
// Catalog page: Network admin controls
add_action( 'admin_enqueue_scripts', '\Aldine\Admin\admin_scripts' );

40
inc/actions/namespace.php

@ -6,6 +6,9 @@
namespace Aldine\Actions;
use Spatie\Color\Hex;
use Spatie\Color\Rgb;
use Spatie\Color\Rgba;
use PressbooksMix\Assets;
/**
@ -165,25 +168,28 @@ function content_width() {
* @return void
*/
function output_custom_colors() {
if ( defined( 'PB_PLUGIN_VERSION' ) ) {
echo \Pressbooks\Admin\Branding\get_customizer_colors();
} else {
$colors = [
'primary',
'accent',
'primary_fg',
'accent_fg',
'primary_dark',
'accent_dark',
'primary_alpha',
'accent_alpha',
'header_text',
];
$values = [];
foreach ( $colors as $k ) {
$v = get_option( "pb_network_color_$k" );
if ( $v ) {
$values[ $k ] = $v;
}
}
$output = '';
if ( ! empty( $values ) ) {
$output .= '<style type="text/css">:root{';
foreach ( $values as $k => $v ) {
@ -192,8 +198,8 @@ function output_custom_colors() {
}
$output .= '}</style>';
}
echo $output;
}
}
/**
@ -221,7 +227,29 @@ function hide_catalog_content_editor() {
}
}
/*
/**
* Add dark and alpha variants for customizer colors on update.
*
* @since 1.0.0
*/
function add_color_variants( $option, $old_value, $value ) {
if ( ! in_array( $option, [ 'pb_network_color_primary', 'pb_network_color_accent' ], true ) ) {
return;
}
$color = Hex::fromString( $value );
$color = $color->toRgb();
$color_alpha = $color->toRgba( 0.25 );
$color_dark = new Rgb(
$color->red() * 0.9,
$color->green() * 0.9,
$color->blue() * 0.9
);
update_option( $option . '_dark', (string) $color_dark );
update_option( $option . '_alpha', (string) $color_alpha );
}
/**
* Enqueue block editor assets.
*/
function enqueue_block_editor_assets() {

40
inc/customizer/namespace.php

@ -12,7 +12,7 @@ use PressbooksMix\Assets;
/**
* Add postMessage support for site title and description for the Theme Customizer.
*
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
* @param \WP_Customize_Manager $wp_customize Theme Customizer object.
*/
function customize_register( \WP_Customize_Manager $wp_customize ) {
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
@ -169,18 +169,30 @@ function customize_preview_js() {
$assets->setSrcDirectory( 'assets' )->setDistDirectory( 'dist' );
wp_enqueue_script( 'aldine/customizer', $assets->getPath( 'scripts/customizer.js' ), [ 'customize-preview' ], false, null );
// TODO @codingStandardsIgnoreStart
// wp_enqueue_script( 'wcag-validate-customizer-color-contrast', get_template_directory_uri() . '/lib/customizer-validate-wcag-color-contrast/customizer-validate-wcag-color-contrast.js', [ 'customize-controls' ] );
}
/**
* @see https://github.com/soderlind/customizer-validate-wcag-color-contrast
*/
function enqueue_color_contrast_validator() {
$handle = 'wcag-validate-customizer-color-contrast';
wp_enqueue_script(
$handle,
get_template_directory_uri() . '/lib/customizer-validate-wcag-color-contrast/customizer-validate-wcag-color-contrast.js',
[ 'customize-controls' ]
);
$exports = [
'validate_color_contrast' => [
'pb_network_color_primary_fg' => [ 'pb_network_color_primary' ],
'pb_network_color_accent_fg' => [ 'pb_network_color_accent' ],
],
];
// $exports = [
// 'validate_color_contrast' => [
// 'pb_network_color_primary_fg' => [ 'pb_network_color_primary' ],
// 'pb_network_color_accent_fg' => [ 'pb_network_color_accent' ],
// ],
// ];
// wp_scripts()->add_data(
// 'wcag-validate-customizer-color-contrast',
// 'data',
// sprintf( 'var _validateWCAGColorContrastExports = %s;', wp_json_encode( $exports ) )
// ); // @codingStandardsIgnoreEnd
wp_scripts()->add_data(
$handle,
'data',
sprintf( 'var _validateWCAGColorContrastExports = %s;', wp_json_encode( $exports ) )
);
}

18
inc/helpers/namespace.php

@ -28,11 +28,15 @@ function get_catalog_data( $page = 1, $per_page = 10, $orderby = 'title', $licen
/**
* Filter the WP_Site_Query args for the catalog display.
*
* @since 5.0.0
* @since 1.0.0
*/
$args = apply_filters(
'pb_aldine_catalog_query_args',
/** @deprecated */
/**
* @deprecated 1.0.0
*
* @see Pressbooks Publisher
*/
apply_filters(
'pb_publisher_catalog_query_args',
[
@ -185,6 +189,14 @@ function get_default_menu( $items = '' ) {
__( 'Admin', 'pressbooks-aldine' )
);
}
$user_info = get_userdata( get_current_user_id() );
if ( $user_info->primary_blog ) {
$items .= sprintf(
'<li><a href="%1$s">%2$s</a></li>',
get_blogaddress_by_id( $user_info->primary_blog ) . 'wp-admin/index.php?page=pb_catalog',
__( 'My Books', 'pressbooks-aldine' )
);
}
$items .= sprintf(
'<li><a href="%1$s">%2$s</a></li>',
wp_logout_url( get_permalink() ),
@ -296,7 +308,7 @@ function handle_contact_form_submission() {
function has_sections( $post_id ) {
$post_content = get_post_field( 'post_content', $post_id );
if ( ! empty( $post_content ) ) {
if ( strpos( $post_content, 'page-section' ) ) {
if ( strpos( $post_content, 'page-section' ) || strpos( $post_content, 'aldine_page_section' ) ) {
return true;
} else {
return false;

58
inc/shortcodes/namespace.php

@ -0,0 +1,58 @@
<?php
/**
* Aldine Shortcodes
*
* @package Aldine
*/
namespace Aldine\Shortcodes;
/**
* Shortcode for Page Section.
*
* @param array $atts
* @param string $content
*
* @return string
*/
function page_section( $atts, $content = null ) {
$atts = shortcode_atts(
[
'title' => 'Page Section',
'variant' => '',
],
$atts,
'aldine_page_section'
);
return sprintf(
'<div class="page-section%1$s"><h2>%2$s</h2>%3$s</div>',
( $atts['variant'] ) ? " page-section--{$atts['variant']}" : '',
$atts['title'],
$content
);
}
/**
* Shortcode for custom Call to Action.
*
* @param array $atts
*
* @return string
*/
function call_to_action( $atts ) {
$atts = shortcode_atts(
[
'link' => '#',
'text' => 'Call To Action',
],
$atts,
'aldine_call_to_action'
);
return sprintf(
'<a class="call-to-action" href="%1$s" title="%2$s">%2$s</a>',
$atts['link'],
$atts['text']
);
}

294
languages/pressbooks-aldine.pot

@ -1,4 +1,4 @@
# Copyright (C) 2017 pressbooks-aldine
# Copyright (C) 2018 pressbooks-aldine
# This file is distributed under the same license as the pressbooks-aldine package.
msgid ""
msgstr ""
@ -19,15 +19,7 @@ msgid "Oops! That page can&rsquo;t be found."
msgstr ""
#: ../404.php:21
msgid "It looks like nothing was found at this location. Maybe try one of the links below or a search?"
msgstr ""
#: ../404.php:30
msgid "Most Used Categories"
msgstr ""
#: ../404.php:47
msgid "Try looking in the monthly archives. %1$s"
msgid "It looks like nothing was found at this location."
msgstr ""
#: ../comments.php:34
@ -45,11 +37,11 @@ msgstr[1] ""
msgid "Comments are closed."
msgstr ""
#: ../footer.php:36
#: ../footer.php:40, ../footer.php:44
msgid "%s on Facebook"
msgstr ""
#: ../footer.php:41
#: ../footer.php:48, ../footer.php:52
msgid "%s on Twitter"
msgstr ""
@ -61,66 +53,140 @@ msgstr ""
msgid "You must run <code>composer install</code> from the Aldine directory."
msgstr ""
#: ../functions.php:81
msgid "Network Footer Menu"
#: ../header.php:44
msgid "Skip to content"
msgstr ""
#: ../header.php:60
msgid "Logo for %s"
msgstr ""
#: ../functions.php:150
msgid "Front Page Content"
#: ../inc/intervention.php:12
msgid "Hello,"
msgstr ""
#: ../inc/actions/namespace.php:45, ../inc/activation/namespace.php:109
msgid "Primary Menu"
msgstr ""
#: ../functions.php:162
#: ../inc/actions/namespace.php:46, ../inc/activation/namespace.php:130
msgid "Footer Menu"
msgstr ""
#: ../inc/actions/namespace.php:101
msgid "Network Footer Block 1"
msgstr ""
#: ../functions.php:172
#: ../inc/actions/namespace.php:111
msgid "Network Footer Block 2"
msgstr ""
#: ../header.php:25
msgid "Skip to content"
#: ../inc/actions/namespace.php:136
msgid "Increase Font Size"
msgstr ""
#: ../header.php:29
msgid "Toggle menu"
#: ../inc/actions/namespace.php:137
msgid "Decrease Font Size"
msgstr ""
#: ../header.php:39
msgid "Sign in"
#: ../inc/actions/namespace.php:217
msgid "This page displays your network catalog, so there is no content to edit."
msgstr ""
#: ../header.php:41
msgid "Sign up"
#: ../inc/activation/namespace.php:25
msgid "About Pressbooks"
msgstr ""
#: ../header.php:43
msgid "Admin"
#: ../inc/activation/namespace.php:26
msgid "Pressbooks is easy-to-use book writing software that lets you create a book in all the formats you need to publish."
msgstr ""
#: ../header.php:45
msgid "Sign out"
#: ../inc/activation/namespace.php:27
msgid "Learn More"
msgstr ""
#: ../inc/intervention.php:12
msgid "Hello,"
#: ../inc/activation/namespace.php:34, ../inc/activation/namespace.php:135, ../inc/activation/namespace.php:141
msgid "About"
msgstr ""
#: ../inc/activation/namespace.php:19
msgid "About"
#: ../inc/activation/namespace.php:39
msgid "Pressbooks is simple book production software. You can use Pressbooks to publish textbooks, scholarly monographs, syllabi, fiction and non-fiction books, white papers, and more in multiple formats including:"
msgstr ""
#: ../inc/activation/namespace.php:40
msgid "MOBI (for Kindle ebooks)"
msgstr ""
#: ../inc/activation/namespace.php:23
#: ../inc/activation/namespace.php:41
msgid "EPUB (for all other ebookstores)"
msgstr ""
#: ../inc/activation/namespace.php:42
msgid "designed PDF (for print-on-demand and digital distribution)"
msgstr ""
#: ../inc/activation/namespace.php:45
msgid "For more information about Pressbooks, %s."
msgstr ""
#: ../inc/activation/namespace.php:46
msgid "see here"
msgstr ""
#: ../inc/activation/namespace.php:52, ../inc/activation/namespace.php:165, ../inc/activation/namespace.php:171
msgid "Help"
msgstr ""
#: ../inc/activation/namespace.php:27, ../page-catalog.php:4
#: ../inc/activation/namespace.php:58
msgid "The easiest way to get started with Pressbooks is to follow our %1$s. Or, you can review our %2$s."
msgstr ""
#: ../inc/activation/namespace.php:59
msgid "4 Step Guide to Making a Book on Pressbooks"
msgstr ""
#: ../inc/activation/namespace.php:60
msgid "Guide to Using Pressbooks"
msgstr ""
#: ../inc/activation/namespace.php:62
msgid "If you require further assistance, please contact your network manager."
msgstr ""
#: ../inc/activation/namespace.php:67, ../inc/activation/namespace.php:114, ../inc/activation/namespace.php:120, ../inc/activation/namespace.php:150, ../inc/activation/namespace.php:156, ../page-catalog.php:4
msgid "Catalog"
msgstr ""
#: ../inc/activation/namespace.php:31
#: ../inc/activation/namespace.php:71, ../inc/helpers/namespace.php:162
msgid "Home"
msgstr ""
#: ../inc/admin/namespace.php:30
msgid "Catalog updated."
msgstr ""
#: ../inc/admin/namespace.php:31
msgid "Sorry, but your catalog was not updated. Please try again."
msgstr ""
#: ../inc/admin/namespace.php:32
msgid "Dismiss this notice."
msgstr ""
#: ../inc/admin/namespace.php:61
msgid "In Catalog"
msgstr ""
#: ../inc/admin/namespace.php:72
msgctxt "pressbooks-aldine"
msgid "Show in Catalog"
msgstr ""
#: ../inc/admin/namespace.php:73
msgctxt "pressbooks-aldine"
msgid "This book is private, so you can&rsquo;t display it in your catalog."
msgstr ""
#: ../inc/customizer/namespace.php:37
msgid "Primary Color"
msgstr ""
@ -189,103 +255,119 @@ msgstr ""
msgid "Contact Form Title"
msgstr ""
#: ../inc/filters/namespace.php:38
#: ../inc/filters/namespace.php:60
msgid "Continued"
msgstr ""
#: ../inc/helpers/namespace.php:103
#: ../inc/filters/namespace.php:84
msgid "Page Section"
msgstr ""
#: ../inc/filters/namespace.php:90
msgid "Page Section (Accent)"
msgstr ""
#: ../inc/filters/namespace.php:96
msgid "Page Section (Bordered)"
msgstr ""
#: ../inc/filters/namespace.php:102
msgid "Page Section (Borderless)"
msgstr ""
#: ../inc/filters/namespace.php:108
msgid "Call to Action"
msgstr ""
#: ../inc/helpers/namespace.php:168
msgid "Contact"
msgstr ""
#: ../inc/helpers/namespace.php:175
msgid "Sign In"
msgstr ""
#: ../inc/helpers/namespace.php:181
msgid "Sign Up"
msgstr ""
#: ../inc/helpers/namespace.php:189
msgid "Admin"
msgstr ""
#: ../inc/helpers/namespace.php:197
msgid "My Books"
msgstr ""
#: ../inc/helpers/namespace.php:203
msgid "Sign Out"
msgstr ""
#: ../inc/helpers/namespace.php:256
msgid "Name is required."
msgstr ""
#: ../inc/helpers/namespace.php:107
#: ../inc/helpers/namespace.php:260
msgid "Email is required."
msgstr ""
#: ../inc/helpers/namespace.php:111
#: ../inc/helpers/namespace.php:264
msgid "Email is invalid."
msgstr ""
#: ../inc/helpers/namespace.php:115
#: ../inc/helpers/namespace.php:268
msgid "Institution is required."
msgstr ""
#: ../inc/helpers/namespace.php:119
#: ../inc/helpers/namespace.php:272
msgid "Message is required."
msgstr ""
#: ../inc/helpers/namespace.php:125
#: ../inc/helpers/namespace.php:278
msgid "Contact Form Submission from %s"
msgstr ""
#: ../inc/helpers/namespace.php:136
#: ../inc/helpers/namespace.php:289
msgid "Your message was sent!"
msgstr ""
#: ../inc/helpers/namespace.php:139
#: ../inc/helpers/namespace.php:292
msgid "Your message could not be sent."
msgstr ""
#: ../partials/book.php:19
msgid "About this book &rarr;"
#: ../partials/book.php:27
msgid "About this book"
msgstr ""
#: ../partials/contact-form.php:11
msgid "Contact Us"
msgstr ""
#: ../partials/contact-form.php:25
#: ../partials/contact-form.php:29
msgid "Your name (required)"
msgstr ""
#: ../partials/contact-form.php:25
msgid "Your name*"
msgstr ""
#: ../partials/contact-form.php:29
#: ../partials/contact-form.php:37
msgid "Your email address (required)"
msgstr ""
#: ../partials/contact-form.php:29
msgid "Your email*"
msgstr ""
#: ../partials/contact-form.php:33
#: ../partials/contact-form.php:45
msgid "Your institution (required)"
msgstr ""
#: ../partials/contact-form.php:33
msgid "Your institution*"
msgstr ""
#: ../partials/contact-form.php:37
#: ../partials/contact-form.php:53
msgid "Your message (required)"
msgstr ""
#: ../partials/contact-form.php:37
msgid "Your message here*"
msgstr ""
#: ../partials/contact-form.php:40
#: ../partials/contact-form.php:57
msgid "Send"
msgstr ""
#: ../partials/content-front-page.php:19
#: ../partials/content-front-page.php:17
msgid "Our Latest Titles"
msgstr ""
#: ../partials/content-front-page.php:33
msgid "About Pressbooks"
msgstr ""
#: ../partials/content-front-page.php:34
msgid "Pressbooks is easy-to-use book writing software that lets you create a book in all the formats you need to publish."
msgstr ""
#: ../partials/content-front-page.php:35
msgid "Learn More"
msgstr ""
#: ../partials/content-front-page.php:56
#: ../partials/content-front-page.php:52
msgid "View Complete Catalog"
msgstr ""
@ -305,40 +387,44 @@ msgstr ""
msgid "It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help."
msgstr ""
#: ../partials/content-page-catalog.php:33
msgid "Search by titles or keyword"
#: ../partials/content-page-catalog.php:17
msgid "Filter by Subject"
msgstr ""
#: ../partials/content-page-catalog.php:19
msgid "All Subjects"
msgstr ""
#: ../partials/content-page-catalog.php:36
msgid "Filter by"
#: ../partials/content-page-catalog.php:35
msgid "Filter by License"
msgstr ""
#: ../partials/content-page-catalog.php:52
msgid "Licenses"
#: ../partials/content-page-catalog.php:37
msgid "All Licenses"
msgstr ""
#: ../partials/content-page-catalog.php:61
#: ../partials/content-page-catalog.php:46
msgid "Sort by"
msgstr ""
#: ../partials/content-page-catalog.php:63
#: ../partials/content-page-catalog.php:49
msgid "Title"
msgstr ""
#: ../partials/content-page-catalog.php:64
#: ../partials/content-page-catalog.php:50
msgid "Subject"
msgstr ""
#: ../partials/content-page-catalog.php:65
#: ../partials/content-page-catalog.php:51
msgid "Latest"
msgstr ""
#: ../partials/content-page-catalog.php:76
msgid "Previous"
#: ../partials/content-page-catalog.php:58
msgid "Clear Filters"
msgstr ""
#: ../partials/content-page-catalog.php:86
msgid "Next"
#: ../partials/content-page-catalog.php:59
msgid "Submit"
msgstr ""
#: ../partials/content-page.php:22, ../partials/content.php:45
@ -353,6 +439,20 @@ msgstr ""
msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
msgstr ""
#: ../partials/paged-navigation.php:2
msgid "Navigation"
msgstr ""
#: ../search.php:21
msgid "Search Results for: %s"
msgstr ""
#: ../searchform.php:3
msgctxt "label"
msgid "Search Catalog"
msgstr ""
#: ../searchform.php:6
msgctxt "submit button"
msgid "Search"
msgstr ""

8
package-lock.json generated

@ -1,6 +1,6 @@
{
"name": "@pressbooks/pressbooks-aldine",
"version": "1.0.0-beta.2",
"version": "1.0.0-rc.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -284,9 +284,9 @@
}
},
"aetna": {
"version": "1.0.0-alpha.3",
"resolved": "https://registry.npmjs.org/aetna/-/aetna-1.0.0-alpha.3.tgz",
"integrity": "sha512-2/2ymhwu74C3DYaX+6Y4b5j5jh0DaXnBWfyMh1DU2H64i2ib5dSKA2oYUFv1vQnL7niplxWUrmGBXaisL1i28Q==",
"version": "1.0.0-alpha.7",
"resolved": "https://registry.npmjs.org/aetna/-/aetna-1.0.0-alpha.7.tgz",
"integrity": "sha512-Y5g4ndWyX6c3GWR7YJT7Yn5p0SWNSEigRHXbKX6lUKaMe7K0HzL/A6MJm44iFa5mmuGS8uQFHFxdq0mLvHJWOg==",
"requires": {
"@frctl/fractal": "1.1.7"
}

9
package.json

@ -1,6 +1,6 @@
{
"name": "@pressbooks/pressbooks-aldine",
"version": "1.0.0-beta.2",
"version": "1.0.0-rc.0",
"author": "Pressbooks (Book Oven Inc.) <code@pressbooks.com>",
"homepage": "https://github.com/pressbooks/pressbooks-aldine/",
"description": "Aldine is the root theme for Pressbooks.",
@ -41,9 +41,10 @@
"cross-env NODE_ENV=development webpack --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"rmdist": "rimraf dist",
"lint": "npm run -s lint:scripts && npm run -s lint:styles",
"lint:scripts": "node_modules/eslint/bin/eslint.js \"assets/scripts/*.js\"",
"lint:scripts":
"cross-env NODE_ENV=development node_modules/eslint/bin/eslint.js \"assets/scripts/*.js\"",
"lint:styles":
"node_modules/stylelint/bin/stylelint.js \"assets/styles/**/*.scss\" --syntax scss",
"cross-env NODE_ENV=development node_modules/stylelint/bin/stylelint.js \"assets/styles/**/*.scss\" --syntax scss",
"test": "npm run -s lint"
},
"engines": {
@ -53,7 +54,7 @@
"pressbooks-build-tools": "^0.10.0"
},
"dependencies": {
"aetna": "^1.0.0-alpha.3",
"aetna": "^1.0.0-alpha.7",
"isotope-layout": "^3.0.5",
"jquery-bridget": "^2.0.1",
"js-cookie": "^2.2.0",

6
yarn.lock

@ -178,9 +178,9 @@ adjust-sourcemap-loader@^1.1.0:
object-path "^0.9.2"
regex-parser "^2.2.1"
aetna@^1.0.0-alpha.3:
version "1.0.0-alpha.3"
resolved "https://registry.yarnpkg.com/aetna/-/aetna-1.0.0-alpha.3.tgz#c520d4a0f66ff13829e54d8ef123de43bf469b35"
aetna@^1.0.0-alpha.7:
version "1.0.0-alpha.7"
resolved "https://registry.yarnpkg.com/aetna/-/aetna-1.0.0-alpha.7.tgz#5f18cae26b417b439a7cd56cc44a46590c7cfa7c"
dependencies:
"@frctl/fractal" "^1.1.7"

Loading…
Cancel
Save