new: Horizontal Archive Menu

Post Reply
arfa
Master Bludit
Posts: 156
Joined: Tue Jul 04, 2017 4:31 am
Location: New Zealand
Has thanked: 13 times
Been thanked: 26 times

As posts build up they fall off the bottom of the main page and into pagination – you get a numbered link. The plugin builds a horizontal menu divided into years, with optional months as a sub-menu, providing a top level view of all posts (not static or sticky) – by title. New posts are automatically added to the menu. Here is a screenshot - the date indicates how long ago this was started.
Image

Numbered items are configurable.

Screen size is a horizontal limitation and 390px wide allows nine years across. This can be fairly easily increased with a bit of code tweaking. Twelve months across fits just fine down to 370px.

As a bonus there is a custom-menu builder that has parent headings with sub-menu links. It uses the same horizontal format and can be set, using shortcode, on individual pages. Or (see 'Global') using qualifiers on a range of pages. These menus can be edited.

I started this quite a while ago so it is well tested. Release was delayed by adding the custom-menu option.

https://plugins.bludit.com/plugin/horiz ... chive-menu

PS - 👍🏼 to Diego & Edi for their patience and hard work with Bludit!
arfa
Master Bludit
Posts: 156
Joined: Tue Jul 04, 2017 4:31 am
Location: New Zealand
Has thanked: 13 times
Been thanked: 26 times

A good friend, who is using H.A.M., chided me over my intro above: "[extra years] can be fairly easily increased with a bit of code tweaking." and asked if it was so easy why was it not a built in option? So, here are three additional config. options...

1 - Show first year using FOUR digits? yes/no
2 - Show the apostrophe for subsequent years? yes/no

If the first is 'no' then it is set as per subsequent years.
With both set to 'no' it allows at least 13 years across a 390px screen.

I asked AI what the average life of a blog is...
"The average blog is abandoned within 3 months.
Only a small percentage of blogs last longer than a year."
Thirteen should do most of us :)

3 - While I was in code-mode I also added the option to set the link-item width.

Custom menus are not affected by these settings, although the background colours are used in common to maintain menu visual continuity.

If you are upgrading an existing install you can just replace
> plugin.php
> hMenuBuild.php

Happy hamming - Kusalo
Post Reply