Skip to content

Provides a shortcode for displaying the latest issues of Pegasus, UCF's official alumni magazine.

Notifications You must be signed in to change notification settings

UCF/UCF-Pegasus-List-Shortcode

Repository files navigation

UCF Pegasus Issues List

Provides a shortcode for displaying the latest issues of Pegasus, UCF's official alumni magazine.

Description

Provides a shortcode for displaying the latest issues of Pegasus, UCF's official alumni magazine.

Documentation

Head over to the Pegasus List Shortcode plugin wiki for detailed information about this plugin, installation instructions, and more.

Changelog

1.1.2

Enhancements:

  • Added composer file.

1.1.1

Enhancements:

  • Updated the "modern" layout to support the Athena Framework v1.1.1+

1.1.0

Enhancements:

  • Added new "modern" layout for the [ucf-pegasus-list] shortcode, which displays the cover story for each issue in the list styles to match the UCF News Plugin's modern news layout.

1.0.2

Enhancements:

  • Upgraded gulp and added editorconfig file
  • Added absolute file includes to the plugin's main file
  • Moved layout definitions to their own folder in the repo

Bug Fixes:

  • Fixed issue with the [ucf-pegasus-list]'s title attribute not allowing empty values to be passed to it to omit the title <h2> in the default layout
  • Updated the default layout's "Read More" button to link to the issue's cover story instead of the issue itself
  • Fixed a couple of typos

1.0.1

Enhancements:

  • Added ability to specify a fallback message when no issues are available to display (via inner shortcode contents, similarly to some of our other shortcodes). Example usage: [ucf-pegasus-list]No results found.[/ucf-pegasus-list]

Bugfixes:

  • Fixed incorrect constant name "HOUR_IN_SECONDS", which prevented transient expiration times from being set properly.
  • Updated default feed settings to point to ucf.edu/pegasus/ instead of pegasus.ucf.edu
  • Added check in ucf_pegasus_list_display_default_content() to ensure $items is an array if it is set
  • Added additional hardening to UCF_Pegasus_List_Feed::get_issues() to ensure the feed response looks valid

1.0.0

  • Initial release

Upgrade Notice

n/a

Development

Enabling debug mode in your wp-config.php file is recommended during development to help catch warnings and bugs.

Requirements

  • node
  • gulp-cli

Instructions

  1. Clone the UCF-Pegasus-List-Shortcode repo into your local development environment, within your WordPress installation's plugins/ directory: git clone https://github.com/UCF/UCF-Pegasus-List-Shortcode.git
  2. cd into the new UCF-Pegasus-List-Shortcode directory, and run npm install to install required packages for development into node_modules/ within the repo
  3. Run gulp default to process assets.
  4. If you haven't already done so, create a new WordPress site on your development environment to test this plugin against.
  5. Activate this plugin on your development WordPress site.
  6. Configure plugin settings from the WordPress admin under "Settings > UCF Pegasus List".

Other Notes

  • This plugin's README.md file is automatically generated. Please only make modifications to the README.txt file, and make sure the gulp readme command has been run before committing README changes.

About

Provides a shortcode for displaying the latest issues of Pegasus, UCF's official alumni magazine.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published