Browse Source

Merge branch 'dev'

1.16.1
SteelWagstaff 3 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 ## 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 * Full release history available at: https://github.com/pressbooks/pressbooks-aldine/releases
## Upgrade Notice ## Upgrade Notice

16
languages/pressbooks-aldine.pot

@ -2,16 +2,16 @@
# This file is distributed under the GNU GPL v3 or later. # This file is distributed under the GNU GPL v3 or later.
msgid "" msgid ""
msgstr "" 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" "Report-Msgid-Bugs-To: https://github.com/pressbooks/pressbooks-aldine/issues\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\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" "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" "X-Domain: pressbooks-aldine\n"
#. Theme Name of the theme #. Theme Name of the theme
@ -490,23 +490,23 @@ msgstr ""
msgid "Keep this field blank (required)" msgid "Keep this field blank (required)"
msgstr "" msgstr ""
#: partials/contact-form.php:46 #: partials/contact-form.php:47
msgid "Your name (required)" msgid "Your name (required)"
msgstr "" msgstr ""
#: partials/contact-form.php:62 #: partials/contact-form.php:64
msgid "Your email address (required)" msgid "Your email address (required)"
msgstr "" msgstr ""
#: partials/contact-form.php:78 #: partials/contact-form.php:81
msgid "Your institution (required)" msgid "Your institution (required)"
msgstr "" msgstr ""
#: partials/contact-form.php:94 #: partials/contact-form.php:96
msgid "Your message (required)" msgid "Your message (required)"
msgstr "" msgstr ""
#: partials/contact-form.php:98 #: partials/contact-form.php:100
msgid "Send" msgid "Send"
msgstr "" msgstr ""

90
partials/contact-form.php

@ -31,65 +31,67 @@ $honeypot = 'firstname' . wp_rand();
</label> </label>
</p> </p>
<p class="form__row"> <p class="form__row">
<input id="contact-name" <input
<?php id="contact-name"
if ( isset( $contact_form_response['field'] ) && $contact_form_response['field'] === 'visitor_name' ) : <?php if ( isset( $contact_form_response['field'] ) && $contact_form_response['field'] === 'visitor_name' ) : ?>
?> class="error"
class="error"<?php endif; ?> type="text" name="visitor_name" value=" <?php endif; ?>
<?php type="text"
if ( $contact_form_response['status'] === 'error' ) : name="visitor_name"
echo $contact_form_response['values']['visitor_name']; <?php if ( $contact_form_response && $contact_form_response['status'] === 'error' ) : ?>
endif; value="<?php echo $contact_form_response['values']['visitor_name']; ?>"
?> <?php endif; ?>
" required> required
/>
<label for="contact-name"> <label for="contact-name">
<?php _e( 'Your name (required)', 'pressbooks-aldine' ); ?> <?php _e( 'Your name (required)', 'pressbooks-aldine' ); ?>
</label> </label>
</p> </p>
<p class="form__row"> <p class="form__row">
<input id="contact-email" <input
<?php id="contact-email"
if ( isset( $contact_form_response['field'] ) && $contact_form_response['field'] === 'visitor_email' ) : <?php if ( isset( $contact_form_response['field'] ) && $contact_form_response['field'] === 'visitor_email' ) : ?>
?> class="error"
class="error" <?php endif; ?>type="email" name="visitor_email" value=" <?php endif; ?>
<?php type="email"
if ( $contact_form_response['status'] === 'error' ) : name="visitor_email"
echo $contact_form_response['values']['visitor_email']; <?php if ( $contact_form_response && $contact_form_response['status'] === 'error' ) : ?>
endif; value="<?php echo $contact_form_response['values']['visitor_email']; ?>"
?> <?php endif; ?>
" required> required
/>
<label for="contact-email"> <label for="contact-email">
<?php _e( 'Your email address (required)', 'pressbooks-aldine' ); ?> <?php _e( 'Your email address (required)', 'pressbooks-aldine' ); ?>
</label> </label>
</p> </p>
<p class="form__row"> <p class="form__row">
<input id="contact-institution" <input
<?php id="contact-institution"
if ( isset( $contact_form_response['field'] ) && $contact_form_response['field'] === 'visitor_institution' ) : <?php if ( isset( $contact_form_response['field'] ) && $contact_form_response['field'] === 'visitor_institution' ) : ?>
?> class="error"
class="error" <?php endif; ?>type="text" name="visitor_institution" value=" <?php endif; ?>
<?php type="text"
if ( $contact_form_response['status'] === 'error' ) : name="visitor_institution"
echo $contact_form_response['values']['visitor_institution']; <?php if ( $contact_form_response && $contact_form_response['status'] === 'error' ) : ?>
endif; value="<?php echo $contact_form_response['values']['visitor_institution']; ?>"
?> <?php endif; ?>
" required> required
/>
<label for="contact-institution"> <label for="contact-institution">
<?php _e( 'Your institution (required)', 'pressbooks-aldine' ); ?> <?php _e( 'Your institution (required)', 'pressbooks-aldine' ); ?>
</label> </label>
</p> </p>
<p class="form__row"> <p class="form__row">
<textarea id="contact-message" <textarea
<?php id="contact-message"
if ( isset( $contact_form_response['field'] ) && $contact_form_response['field'] === 'message' ) : <?php if ( isset( $contact_form_response['field'] ) && $contact_form_response['field'] === 'message' ) : ?>
?> class="error"
class="error" <?php endif; ?>name="message" required> <?php endif; ?>
<?php name="message"
if ( $contact_form_response['status'] === 'error' ) : required
echo $contact_form_response['values']['message']; ><?php if ( $contact_form_response && $contact_form_response['status'] === 'error' ) : ?>
endif; <?php echo $contact_form_response['values']['message']; ?>
?> <?php endif; ?></textarea>
</textarea>
<label for="contact-message"> <label for="contact-message">
<?php _e( 'Your message (required)', 'pressbooks-aldine' ); ?> <?php _e( 'Your message (required)', 'pressbooks-aldine' ); ?>
</label> </label>

2
style.css

@ -5,7 +5,7 @@ Author: Pressbooks (Book Oven Inc.)
Author URI: https://pressbooks.org 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. 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 Tags: publishing, catalog, pressbooks, default-theme
Version: 1.16.0 Version: 1.16.1
Requires at least: 6.0.2 Requires at least: 6.0.2
Tested up to: 6.0.2 Tested up to: 6.0.2
Requires PHP: 7.4 Requires PHP: 7.4

Loading…
Cancel
Save