Browse Source

Merge branch 'dev'

1.16.0
SteelWagstaff 2 years ago
parent
commit
bc1a83464a
  1. 6
      README.md
  2. 19
      header.php
  3. 8
      languages/pressbooks-aldine.pot
  4. 2
      style.css

6
README.md

@ -12,7 +12,7 @@ Contributors: conner_bw, greatislander, steelwagstaff
Tags: publishing, catalog, pressbooks, default-theme
Requires at least: 6.0.2
Tested up to: 6.0.2
Stable tag: 1.15.0
Stable tag: 1.16.0
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
@ -31,9 +31,9 @@ Aldine is the default theme for the home page of [Pressbooks](https://pressbooks
## Changelog
### 1.15.0
### 1.16.0
* See: https://github.com/pressbooks/pressbooks-aldine/releases/tag/1.15.0
* See: https://github.com/pressbooks/pressbooks-aldine/releases/tag/1.16.0
* Full release history available at: https://github.com/pressbooks/pressbooks-aldine/releases
## Upgrade Notice

19
header.php

@ -20,7 +20,7 @@
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<body <?php body_class(); ?> data-barba="wrapper">
<svg style="display: none;" xmlns="http://www.w3.org/2000/svg">
<defs>
<symbol id="icon-pressbooks" fill="currentColor" viewBox="0 0 45 44">
@ -45,14 +45,19 @@
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'pressbooks-aldine' ); ?></a>
<header class="header" role="banner" style="background-image: url(
<?php
if ( is_front_page() ) {
if ( has_header_image() ) {
echo( get_header_image() );
if ( has_post_thumbnail() ) {
echo get_the_post_thumbnail_url();
} else {
if ( is_front_page() ) {
if ( has_header_image() ) {
echo( get_header_image() );
} else {
echo get_template_directory_uri() . '/dist/images/header.jpg';
}
} else {
echo get_template_directory_uri() . '/dist/images/header.jpg';
echo get_template_directory_uri() . '/dist/images/catalog-header.jpg';
}
} else {
echo get_template_directory_uri() . '/dist/images/catalog-header.jpg';
}
?>
);">

8
languages/pressbooks-aldine.pot

@ -2,14 +2,14 @@
# This file is distributed under the GNU GPL v3 or later.
msgid ""
msgstr ""
"Project-Id-Version: Aldine 1.15.0\n"
"Project-Id-Version: Aldine 1.16.0-dev\n"
"Report-Msgid-Bugs-To: https://github.com/pressbooks/pressbooks-aldine/issues\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2022-09-12T23:16:57+00:00\n"
"POT-Creation-Date: 2022-09-26T19:56:58+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.6.0\n"
"X-Domain: pressbooks-aldine\n"
@ -118,11 +118,11 @@ msgid "Skip to content"
msgstr ""
#. translators: %s name of network
#: header.php:70
#: header.php:75
msgid "Logo for %s"
msgstr ""
#: header.php:81
#: header.php:86
msgid "Toggle Menu"
msgstr ""

2
style.css

@ -5,7 +5,7 @@ Author: Pressbooks (Book Oven Inc.)
Author URI: https://pressbooks.org
Description: Aldine is the default theme for the home page of Pressbooks networks. It is named for the Aldine Press, founded by Aldus Manutius in 1494, who is regarded by many as the worlds first publisher.
Tags: publishing, catalog, pressbooks, default-theme
Version: 1.15.0
Version: 1.16.0
Requires at least: 6.0.2
Tested up to: 6.0.2
Requires PHP: 7.4

Loading…
Cancel
Save