Provides a shortcode for displaying the latest issues of Pegasus, UCF's official alumni magazine.
Provides a shortcode for displaying the latest issues of Pegasus, UCF's official alumni magazine.
Head over to the Pegasus List Shortcode plugin wiki for detailed information about this plugin, installation instructions, and more.
Enhancements:
- Added composer file.
Enhancements:
- Updated the "modern" layout to support the Athena Framework v1.1.1+
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.
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
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
- Initial release
n/a
Enabling debug mode in your wp-config.php
file is recommended during development to help catch warnings and bugs.
- node
- gulp-cli
- 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
cd
into the new UCF-Pegasus-List-Shortcode directory, and runnpm install
to install required packages for development intonode_modules/
within the repo- Run
gulp default
to process assets. - If you haven't already done so, create a new WordPress site on your development environment to test this plugin against.
- Activate this plugin on your development WordPress site.
- Configure plugin settings from the WordPress admin under "Settings > UCF Pegasus List".
- 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.