This release has been dedicated to bugs fixes and other improvements to the platform. With this release, some of the following fixes have been pushed:
- Multiple carousels in a post responsive to manual scroll
- Timeline block: displaying images in full size
- Sitemap: all columns are displayed in alphabetical order
- Submenu block: different styles are displaying correctly the menus on pages, as they were some time ago
Read on to find out more about the above mentioned and some other bugs and improvements included in this release.
Release v1.51 (24/4/2019)
Bug Fixes 🐛
- PLANET-3432 – Timeline block: image size too small.
- The images displayed inside a timeline block were small sized. Now this has been fixed and the images will be displayed in full size.
Before
After
- PLANET-3433 – Sitemap – Alphabetical order
- On the Sitemap page, the ‘About Greenpeace’ section was not displaying results in alphabetical order, as it happens under Act, Explore and Articles columns. This has been fixed now and the pages under About Greenpeace or About us columns should also appear in alphabetical order.
- PLANET-3434 – Timeline block: Description text should use Lora font
- The font in the timeline block is incorrect. Every text element is displayed in Roboto (Date, Headline, Media Credit, Caption, Navigation (both arrow sliders and date nav) – but the content description at least should appear as Lora. This is now working as it should.
- PLANET-3467 – Submenu block: problems with styles
- Something happened and broke the way the submenu was being displayed.
- When using the Short full-width style the text started to appear in a single column when it should appear in multiple columns.
- When using the Short sidebar style, the text appear with bullets, regardless of which List Style is chosen.
- Something happened and broke the way the submenu was being displayed.
Short full-width style
Before
After
Short sidebar style
Before
After
- PLANET-3469 – Take Action Page Selector – Campaign in Article
- The campaign was overriding the text, so the text was not able to be read anymore. This was reported happening on the MENA site and is now fixed.
- PLANET-3503 – Fix GPSEA link in country selector
-
The GPSEA link in the country selector was redirecting to their archive. This has been updated and now redirects to /southeastasia.
-
Geek alert
(this section is dedicated to developers or web editors with advanced tech knowledge)
- PLANET-3495 – Fix JS error on P4 admin section due to country selector
- Fix js error that occurs in the P4 admin panel when adding a Block or opening a Page which already has one or more blocks. See attachment.
- PLANET-3419 – Improve twig rendering times in search results 2.
- Enable Timber template caching
- PLANET-3435 – Restructure P4_Master_Site class code
- The register_header_metabox function has reached 301 lines! Hence, the following changes were pushed:1. Should be broken down to 4 smaller functions based on purpose.register_meta_box_header, register_meta_box_post, register_meta_box_open_graph, register_meta_box_campaign2. All these new smaller functions and probably ‘cmb2_after_form_do_js_validation’ as well should be moved out into their own class.
- PLANET-3498 – Dev Report in P4 admin pages
- Developers wanted to be able to easily see in a p4 site which versions (tag, branch, git hash) of each greenpeace package is used. Therefore, the following improvement has been implemented:
- Create a report in the admin pages of p4 that shows the above data.Methodology:1) In postdeploy tasks run a script that picks that data and saves it to the wordpress database as a wp option2) In the master-theme create a report that reads that data (if that data exists)
- Developers wanted to be able to easily see in a p4 site which versions (tag, branch, git hash) of each greenpeace package is used. Therefore, the following improvement has been implemented: