Browse Source

Merge branch 'dev'

1.16.1
SteelWagstaff 2 years ago
parent
commit
3a04523eb5
  1. 4
      README.md
  2. 16
      languages/pressbooks-aldine.pot
  3. 90
      partials/contact-form.php
  4. 2
      style.css

4
README.md

@ -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

16
languages/pressbooks-aldine.pot

@ -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
@ -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 ""

90
partials/contact-form.php

@ -31,65 +31,67 @@ $honeypot = 'firstname' . wp_rand();
</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>

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.16.0
Version: 1.16.1
Requires at least: 6.0.2
Tested up to: 6.0.2
Requires PHP: 7.4

Loading…
Cancel
Save