2 Block Project buttons
Robin edited this page 2026-11-22 20:33:43 +01:00

Project buttons

The download button of a project, with its version and date under it, and a link to its source code. For the page that presents the project.

        [ Download ]   Source code
   Version 1.3.0 · 12 November 2026 · GPL-2.0-or-later

It always offers the latest release: when you publish 1.4.0 on the forge, the button downloads 1.4.0 without any change to the page.

Panel

Set Appearance to Panel, the version large for a framed download area:

  ┌───────────────────────────────────────────────────────────────┐
  │ LATEST VERSION                                                │
  │ 1.3.0  NEW                          [ ⤓ Download 1.3.0 ]      │
  │ Released 2 days ago · GPL-2.0-or-later    Source code         │
  └───────────────────────────────────────────────────────────────┘

The box takes a light tint of the text colour, so it suits your theme in light and dark mode. The settings below apply to it as well: position, details shown, button texts. On a phone, its content stacks.

The version in the button

Write %s in Download button text: Download %s shows Download 1.3.0, and follows every new release. The panel's default text already does it.

Which project

Project → The project of this page (default): the project whose Presentation page is the page being edited (see Projects). Set it once in Pluginception and every block of the page follows. Or choose a project by name in the list.

In the editor, the block says Choose a project in the block settings, or link this page to a project when it finds none; visitors see nothing.

Settings

Project

Setting Default
Project The project of this page see above
Appearance Buttons or Panel, the version large
Layout Side by side or Stacked
Position Centre Left, Centre, Right: the buttons and their texts move together

Buttons

Setting Default
Download button on
Download button text Download (panel: Download %s) leave empty for the translated default; %s = the version
Source code on
Source code shown as A text link or A button
Source code button text View the source code leave empty for the translated default

Details (centred under the buttons)

Setting Default Example
Version on Version 1.3.0
Date on 12 November 2026, with New for a recent release
Date shown as Date or Time since ("2 days ago", the exact date in the tooltip)
Licence on GPL-2.0-or-later
File name off widget-1.3.0.zip
Requirements off WordPress 6.7 or later · PHP 8.4 or later
Number of downloads off 1,250 downloads

Licences are shown with their standard SPDX name: "GPLv2 or later", "GPL 2.0 or later" and "GPL-2.0+" all read GPL-2.0-or-later. A licence the plugin does not recognise is shown as written on the forge.

The New badge marks a release younger than 14 days (see Settings).

Without a release

  • No release on the forge: Work in progress: no release yet, no download button, the source code link stays.
  • Releases not read yet: Release information is being read.

Look

The buttons are your theme's buttons (the Download button is the theme's main button), in your theme's colours, in light and dark mode. The block's colour, spacing and font size settings apply as for any block.