Skip to content

Commit

Permalink
Merge pull request #40 from uriweb/release-1.7
Browse files Browse the repository at this point in the history
Release 1.7
  • Loading branch information
alexandragauss authored Jun 29, 2023
2 parents 059a85b + ea9701e commit 4a7457f
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 23 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

Add `[programs-categories]` to a page and a form magically appears.

## What's new in 1.6.0
## What's new in 1.7.0

Program Finder 1.6.0 is a minor release.
Program Finder 1.7.0 is a minor release.

* Adds a composer.json file
* Adds field for customizing the accelerated program link

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

Expand All @@ -26,6 +26,6 @@ __Contributors:__ [johnpennypacker](https://github.com/johnpennypacker), [bjcful
__Tags:__ plugins, shortcodes
__Requires at least:__ 4.0
__Tested up to:__ 5.5
__Stable tag:__ 1.6.0
__Stable tag:__ 1.7.0
__License:__ GPL-3.0
__Licence URI:__ https://www.gnu.org/licenses/gpl-3.0.html
14 changes: 13 additions & 1 deletion inc/uri-program-finder-fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,19 @@ function uri_program_finder_create_taxonomy() {
'type' => 'text',
'instructions' => 'Modify the display language for accelerated programs (if applicable)',
'default_value' => '',
'placeholder' => '',
'placeholder' => 'Optional bachelor's to master's in five years',
'prepend' => '',
'append' => '',
'maxlength' => '',
),
array(
'key' => 'field_649dad533ea3c',
'label' => 'Accelerated program link',
'name' => 'accelerated_link',
'type' => 'text',
'instructions' => 'URL to accelerated program department page (if applicable)',
'default_value' => '',
'placeholder' => 'https://www.uri.edu/programs/abm/',
'prepend' => '',
'append' => '',
'maxlength' => '',
Expand Down
34 changes: 22 additions & 12 deletions package-lock.json

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,7 +1,7 @@
{
"name": "uri-program-finder",
"description": "URI Program Finder",
"version": "1.6.0",
"version": "1.7.0",
"homepage": "https://www.uri.edu",
"repository": {
"type": "git",
Expand Down
15 changes: 11 additions & 4 deletions template-parts/single-program.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,18 @@
<?php if ( $accreditation = uri_modern_get_field( 'accelerated' ) ) { ?>
<div class="accelerated">
<?php
if ( $accelerated_language = uri_modern_get_field( 'accelerated_language' ) ) {
print $accelerated_language;
} else {
echo "<p>Optional bachelor's to master's in five years</p>";
$accelerated_link = 'https://' . uri_modern_get_the_domain() . '/programs/abm/';
$accelerated_language = 'Optional bachelor&#39;s to master&#39;s in five years';

if ( $accelerated_custom_language = uri_modern_get_field( 'accelerated_language' ) ) {
$accelerated_language = $accelerated_custom_language;
}

if ( $accelerated_custom_link = uri_modern_get_field( 'accelerated_link' ) ) {
$accelerated_link = $accelerated_custom_link;
}

echo '<a href="' . $accelerated_link . '">' . $accelerated_language . '</a>';
?>
</div>
<?php } ?>
Expand Down
2 changes: 1 addition & 1 deletion uri-program-finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: URI Program Finder
* Plugin URI: http://www.uri.edu
* Description: Program finder tools
* Version: 1.6.0
* Version: 1.7.0
* Author: URI Web Communications
* Author URI:
*
Expand Down

0 comments on commit 4a7457f

Please sign in to comment.