Skip to content

Commit

Permalink
Merge pull request #216 from uriweb/hotfix-single-program
Browse files Browse the repository at this point in the history
Hotfix 2.4.2
  • Loading branch information
bjcfuller authored Aug 26, 2022
2 parents b2c9349 + 5edcd12 commit eb75995
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 15 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@

URI Modern is a WordPress theme designed for the University of Rhode Island. It's designed to replace all themes currently being used on the university's websites, and unify the online brand and experience.

## What's new in 2.4.1
## What's new in 2.4.2

URI Modern 2.4.1 is a technical adjustment release.
URI Modern 2.4.2 is a technical adjustment release.

* Adds the ability to modify certain domains in hard-coded URLs using constants configured in `wp-config.php`
* Provides two changes for `template-parts/single-program.php`:
- Uses the correct function to get the curriculum url
- Officially adds request information button, which existed on production but not in any release

For complete details, see the [commit history](https://github.com/uriweb/uri-modern/pull/213/commits) and the [issue tracker](https://github.com/uriweb/uri-modern/issues).
For complete details, see the [commit history](https://github.com/uriweb/uri-modern/pull/216/commits) and the [issue tracker](https://github.com/uriweb/uri-modern/issues).

## How do I get set up?

Expand All @@ -33,6 +35,6 @@ __Contributors:__ [bjcfuller](https://github.com/bjcfuller), [johnpennypacker](h
__Tags:__ themes
__Requires at least:__ 4.0
__Tested up to:__ 5.6
__Stable tag:__ 2.4.1
__Stable tag:__ 2.4.2
__License:__ GPL-3.0
__Licence URI:__ https://www.gnu.org/licenses/gpl-3.0.html
4 changes: 2 additions & 2 deletions js/script.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uri-modern",
"version": "2.4.1",
"version": "2.4.2",
"description": "URI Modern is a WordPress theme designed for the University of Rhode Island. It's designed to replace all themes currently being used on the university's websites, and unify the online brand and experience.",
"themeName": "URI Modern",
"textDomain": "uri",
Expand Down
4 changes: 2 additions & 2 deletions static/script.static.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions static/style.static.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion template-parts/single-program.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,22 @@
);
?>

<div class="request-information">
<?php

$request_information_link = 'https://admissions.uri.edu/register/request-information';

if ( has_category( 'online' ) ) {
$request_information_link = 'https://web.uri.edu/online/contact/';
} else if ( has_category( 'masters' ) || has_category( 'ph-d' ) || has_category( 'professional-degree' ) || has_category( 'graduate-certificate' ) ) {
$request_information_link = 'https://web.uri.edu/graduate-school/contact-us/';
}

echo do_shortcode( '[cl-button link="' . $request_information_link . '" text="Request Information" style="prominent"]' );

?>
</div>

<hr>

<div class="program-options">
Expand Down Expand Up @@ -149,7 +165,7 @@

<?php
$curriculum_sheets = get_field( 'curriculum_sheets' );
$curriculum_default_link = 'https://' . uri_modern_the_domain( 'web' ) . '/advising/curriculum-sheets-all/';
$curriculum_default_link = 'https://' . uri_modern_get_the_domain( 'web' ) . '/advising/curriculum-sheets-all/';
if ( ( null != $curriculum_sheets || ! empty( $curriculum_sheets ) ) && $curriculum_default_link != $curriculum_sheets ) {
echo '<div class="advising">';
echo '<a href="' . $curriculum_sheets . '"><span class="icon"></span>Advising</a>';
Expand Down

0 comments on commit eb75995

Please sign in to comment.