Giter VIP home page Giter VIP logo

pegasus-theme's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

rolandinsh

pegasus-theme's Issues

Utilize our Social plugin instead of the current built in social share buttons

The current social share buttons are outdated style-wise and content-wise.

Replace the social buttons on the sub-footer, header, and story template. Also, ensure that older version's social functions do not conflict with the UCF-Social-Plugin's functions.

Changes were previously made to the v6 footer file but reverted since it was out of scope of that PR: See 132c2a8. Those should be good to cherry pick for these updates.

Update V6 header & footer files

Update /v6/footer-front.php, /v6/footer.php, /v6/header-front.php, /v6/header.php and any other related or referenced functionality/markup/styles.

Update JS files

Update JS in /v6/static/js/ as necessary. Some JS might have already been updated with previous Athena updates in this project. This should be completed towards the end of the project to update any remaining functionality and ensure that previous version's stories/pages/etc work correctly.

Update front-end non-version template files to utilize Athena

Update front-page.php, index.php, page.php, 404.php, and single.php to use Athena markup. This might be dependant on the current issue's version being set to 6+, so make sure to take that into consideration. The front-end should still be functional and look correctly if the current issue is set to v5.

Remove logic and existing references to the iPad app

The iPad app hasn't been a thing for a while. We have some leftover settings, markup and js logic still floating around for it that are still impacting frontend markup; the old "available on iPad!" modal in particular is getting flagged in Siteimprove for not being within an ARIA landmark. Removing these should help resolve those accessibility issues and help reduce a little bit of cruft in the theme and WP admin.

Update issue and story version templates

Update versions/v6/templates/issue/default.php, versions/v6/templates/story/default.php, versions/v6/templates/story/photo_essay.php with Athena markup. Also update the related scss files and functions.

Issue Feed

We need to make sure issues that haven't been "published" yet don't show up in the issue list.

Update page content

The pages in PROD have bootstrap markup in the wysiwyg editor that will have to be updated to utilize Athena markup and shortcodes. We can copy over the pages from PROD into QA and update them there, ready to update post-deployment.

The pages:

Update search markup

Update search.php and searchform.php and any other related search functionality/markup/styles. Ensure search functionality for previous version stories, issue pages, and archive pages.

font-family sass mixins in v4 don't generate correct font weights

// Adds Gotham font family styles to an element (using backward-compatible
// font-family declarations for IE8 support.)
// $weight should be a number from 1-9, which references the desired font
// weight (100-900). Default is 4 (400) or 'Book'.
@mixin gotham($weight: 4, $font-style: normal) {
font-family: 'Gotham SSm #{$weight}r', 'Gotham SSm A', 'Gotham SSm B';
font-style: $font-style;
font-weight: #{$weight}00;
}
// Adds Archer font family styles to an element.
// $weight should be a number from 1-9, which references the desired font
// weight (100-900). Default is 4 (400) or 'Book'.
@mixin archer($weight: 4, $font-style: normal) {
@if ($font-style == normal) {
font-family: 'Archer #{$weight}r', 'Archer A', 'Archer B';
} @else if ($font-style == italic) {
font-family: 'Archer #{$weight}i', 'Archer A', 'Archer B';
}
font-style: $font-style;
font-weight: #{$weight}00;
}

We ran into a bug with generated font-weights after upgrading gulp-sass in v4.1.14 where the gotham() mixin at least is not generating accurate font-weight values; e.g. gotham(7) generates a font weight of 70 instead of 700. We may need to update these mixins to calculate weight explicitly instead of appending a literal in front of two 0's; e.g.:

...
$weight-calculated: $weight * 100;
font-weight: $weight-calculated;
...

Remove header_title()

Because we use title-tag theme support instead of wp_title() to print a <title> tag in the document head, this function has no effect and should be removed.

Upgrade Athena Framework to latest version

Description

See title.

Why it's Important

To incorporate accessibility improvements introduced in v1.1.1, and to ensure we're including the latest+greatest updates.

Alternatives

n/a

Possible Implementation

Update package.json and re-run gulp tasks.

Additional context

n/a

Resolve ejs vulnerability

Consider removing bootstrap-sass's build assets and package.json to resolve the ejs vulnerability in 3.3.4, since bootstrap is added to the theme manually and those build assets are not in use.

Older Pegasus stories pulled into the Related Stories sidebar have larger thumbnails

Older Pegasus stories pulled into the Related Stories sidebar section have a larger thumbnail size than the pulled in News stories or v5 Pegasus stories.

For example: https://www.ucf.edu/pegasus/powering-potential/
The 'Custom Solar Sculpture Built by UCF Students' story's thumbnail image size.

It's preferred that these stories thumbnails are the same size as the other Related Stories in the sidebar, if possible, ensuring that the older thumbnails are not cropped too much to where they are cutting out important parts of the image.

Story Style Tweaks

There are some style adjustments we could make for the Story post type that would help improve the spacing, readability and usage of classes throughout the stories:

  • Headings in stories are adjusted to have a custom font face, size, and color in https://github.com/UCF/Pegasus-Theme/blob/master/versions/v6/functions.php#L35. The .h1, .h2, .h3, .h4, .h5, .h6, .display-1, .display-2, .display-3, .display-4 should be displayed the same/similarly to their respective heading/display tag, in order to discourage assigning text to headings and creating custom styles.
  • Increase the margin/spacing above and below the image/image captions. The images are a little too close together and to other content as it is.
  • Increase margin/spacing above headings. Headings throughout the story should have a little bit more breathing room in order to create a pause in reading.
  • font-size-* classes should be relative to what the story's new font-size is, the current font-size with .font-size-sm applied is too small relative to the story text font size.

Improve keyboard accessibility of pulldown nav menu

We should probably look at replacing the existing pulldown menu logic to use an Athena navbar + collapse buttons, and incorporate relevant aria attributes to improve the user experience for keyboard and screenreader users.

Additionally, we need to ensure each link in the nav bar has a visible focus state--currently, the Pegasus logo's outline is not visible.

Update theme-help/options files

Update includes/theme-help.php, includes/theme-options.php with updated theme information as necessary.

Also update images in static/img/theme-help/ as necessary.

UCF Header script needs to be enqueued with `use-bootstrap-overrides` option for versions using Bootstrap 2

array( 'name' => 'ucfhb-script', 'src' => '//universityheader.ucf.edu/bar/js/university-header.js?use-1200-breakpoint=1', ),

The UCF Header is enqueued on all versions using the use-1200-breakpoint option. Versions that utilize Bootstrap 2 need the use-bootstrap-overrides option set instead, which fixes excess left- and right-hand padding on the bar at mobile sizes.

Determine which versions use Bootstrap 2, and implement this option for those versions in some way. Consider moving enqueueing of the header script out of the main functions/config.php and into version-specific functions/config.php files.

Update/remove static/ files

Update/remove any files, images, css, js in static/ as necessary. Make sure to ensure that previous version's stories, pages, etc still look & function correctly.

Lazy loading of images in headers, footers broke with v6

With the introduction of display_story_callout() to globally display story links/thumbnails, we lost the custom markup required for the lazy load js included in the theme to function properly.

We should consider either:

  • Updating display_story_callout() to omit the image src attribute in favor of using data-original
  • Or, de-queue jquery.lazyload.min.js in v6, and activate the lazysizes plugin like we use on other sites

Update V6 template files

Update /v6/templates/issue/ and /v6/templates/story/ files as necessary and any other related or referenced functionality/markup/styles.

Mobile header pulldown toggle has no text alternative

WYSIWYG Updates to support Athena

Make any WYSIWYG adjustments to support Athena and the Athena Shortcode Plugin. Also ensure compatibility with old Pegasus story versions.

Update SCSS files

Update SCSS styles in /v6/static/scss/ as necessary. Many of the styles might have already been updated with previous Athena updates in this project. This should be completed towards the end of the project to update any remaining styles and ensure that old version's stories and pages display correctly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.