Setting to Split Frontpage Blocks

Issue #796 new
Jeremy Hopkins created an issue

Add a setting to allow a portion of the front page blocks to display at the bottom of the page above the footer.

A single select with values 1-7 (for number of block rows) could be set. By altering

get_block_regions($settingsname = 'blocklayoutlayoutrow', $classnamebeginswith = 'frnt-market-')

to

get_block_regions($settingsname = 'blocklayoutlayoutrow', $classnamebeginswith = 'frnt-market-', $from = 1, $to = 7)

we could control the number of rows returned by the function.

The function call on line 74 of frontpage.php would call from 1 to the settings value and another function call could be added above the footer around line 116 which called from the settings value to 7.

So, the new setting would split the current loop 1 - 7 allowing x rows to be rendered in their current position and y to be rendered at the bottom of the page making the front page more flexible.

Assuming this wouldn't break anything in the dashboard which uses the same function I think this feature could be added very easily.

Comments (0)

  1. Log in to comment