Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
SteelWagstaff committed Oct 17, 2022
2 parents bc1a834 + f61b4bc commit 3a04523
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 55 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ Aldine is the default theme for the home page of [Pressbooks](https://pressbooks

## Changelog

### 1.16.0
### 1.16.1

* See: https://github.com/pressbooks/pressbooks-aldine/releases/tag/1.16.0
* See: https://github.com/pressbooks/pressbooks-aldine/releases/tag/1.16.1
* Full release history available at: https://github.com/pressbooks/pressbooks-aldine/releases

## Upgrade Notice
Expand Down
16 changes: 8 additions & 8 deletions languages/pressbooks-aldine.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
# This file is distributed under the GNU GPL v3 or later.
msgid ""
msgstr ""
"Project-Id-Version: Aldine 1.16.0-dev\n"
"Project-Id-Version: Aldine 1.16.1\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-26T19:56:58+00:00\n"
"POT-Creation-Date: 2022-10-17T15:53:25+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.6.0\n"
"X-Generator: WP-CLI 2.7.0\n"
"X-Domain: pressbooks-aldine\n"

#. Theme Name of the theme
Expand Down Expand Up @@ -490,23 +490,23 @@ msgstr ""
msgid "Keep this field blank (required)"
msgstr ""

#: partials/contact-form.php:46
#: partials/contact-form.php:47
msgid "Your name (required)"
msgstr ""

#: partials/contact-form.php:62
#: partials/contact-form.php:64
msgid "Your email address (required)"
msgstr ""

#: partials/contact-form.php:78
#: partials/contact-form.php:81
msgid "Your institution (required)"
msgstr ""

#: partials/contact-form.php:94
#: partials/contact-form.php:96
msgid "Your message (required)"
msgstr ""

#: partials/contact-form.php:98
#: partials/contact-form.php:100
msgid "Send"
msgstr ""

Expand Down
90 changes: 46 additions & 44 deletions partials/contact-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,65 +31,67 @@
</label>
</p>
<p class="form__row">
<input id="contact-name"
<?php
if ( isset( $contact_form_response['field'] ) && $contact_form_response['field'] === 'visitor_name' ) :
?>
class="error"<?php endif; ?> type="text" name="visitor_name" value="
<?php
if ( $contact_form_response['status'] === 'error' ) :
echo $contact_form_response['values']['visitor_name'];
endif;
?>
" required>
<input
id="contact-name"
<?php if ( isset( $contact_form_response['field'] ) && $contact_form_response['field'] === 'visitor_name' ) : ?>
class="error"
<?php endif; ?>
type="text"
name="visitor_name"
<?php if ( $contact_form_response && $contact_form_response['status'] === 'error' ) : ?>
value="<?php echo $contact_form_response['values']['visitor_name']; ?>"
<?php endif; ?>
required
/>
<label for="contact-name">
<?php _e( 'Your name (required)', 'pressbooks-aldine' ); ?>
</label>
</p>
<p class="form__row">
<input id="contact-email"
<?php
if ( isset( $contact_form_response['field'] ) && $contact_form_response['field'] === 'visitor_email' ) :
?>
class="error" <?php endif; ?>type="email" name="visitor_email" value="
<?php
if ( $contact_form_response['status'] === 'error' ) :
echo $contact_form_response['values']['visitor_email'];
endif;
?>
" required>
<input
id="contact-email"
<?php if ( isset( $contact_form_response['field'] ) && $contact_form_response['field'] === 'visitor_email' ) : ?>
class="error"
<?php endif; ?>
type="email"
name="visitor_email"
<?php if ( $contact_form_response && $contact_form_response['status'] === 'error' ) : ?>
value="<?php echo $contact_form_response['values']['visitor_email']; ?>"
<?php endif; ?>
required
/>
<label for="contact-email">
<?php _e( 'Your email address (required)', 'pressbooks-aldine' ); ?>
</label>
</p>
<p class="form__row">
<input id="contact-institution"
<?php
if ( isset( $contact_form_response['field'] ) && $contact_form_response['field'] === 'visitor_institution' ) :
?>
class="error" <?php endif; ?>type="text" name="visitor_institution" value="
<?php
if ( $contact_form_response['status'] === 'error' ) :
echo $contact_form_response['values']['visitor_institution'];
endif;
?>
" required>
<input
id="contact-institution"
<?php if ( isset( $contact_form_response['field'] ) && $contact_form_response['field'] === 'visitor_institution' ) : ?>
class="error"
<?php endif; ?>
type="text"
name="visitor_institution"
<?php if ( $contact_form_response && $contact_form_response['status'] === 'error' ) : ?>
value="<?php echo $contact_form_response['values']['visitor_institution']; ?>"
<?php endif; ?>
required
/>
<label for="contact-institution">
<?php _e( 'Your institution (required)', 'pressbooks-aldine' ); ?>
</label>
</p>
<p class="form__row">
<textarea id="contact-message"
<?php
if ( isset( $contact_form_response['field'] ) && $contact_form_response['field'] === 'message' ) :
?>
class="error" <?php endif; ?>name="message" required>
<?php
if ( $contact_form_response['status'] === 'error' ) :
echo $contact_form_response['values']['message'];
endif;
?>
</textarea>
<textarea
id="contact-message"
<?php if ( isset( $contact_form_response['field'] ) && $contact_form_response['field'] === 'message' ) : ?>
class="error"
<?php endif; ?>
name="message"
required
><?php if ( $contact_form_response && $contact_form_response['status'] === 'error' ) : ?>
<?php echo $contact_form_response['values']['message']; ?>
<?php endif; ?></textarea>
<label for="contact-message">
<?php _e( 'Your message (required)', 'pressbooks-aldine' ); ?>
</label>
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 world’s first publisher.
Tags: publishing, catalog, pressbooks, default-theme
Version: 1.16.0
Version: 1.16.1
Requires at least: 6.0.2
Tested up to: 6.0.2
Requires PHP: 7.4
Expand Down

0 comments on commit 3a04523

Please sign in to comment.