Widgets
We recommend that the widgets below are short coded into a page.
Another way is to programmatically load in the widget shortcode in a post or page template (https://developer.wordpress.org/reference/functions/do_shortcode/).
Even though it is possible to affect most configurations by sending in parameters directly in the shortcode of the widgets, other plugins such as https://wordpress.org/plugins/amr-shortcode-any-widget/ allowing for multiple instances and configurations, might be a helpful alternative when you have different pages for different languages.
All widgets are left quite spars when it comes to styling so we recommend that you to style them yourself with CSS to fit your theme.
MFN News feed
This widget creates a news room to display all the news. It can be configured only to show specific tags along the the title. You can also template the different sections.
Shortcode example
Params | Values |
lang The selected language of the news items, default is |
|
year Filter news list by a specific year |
|
showyears Show the year filter section above the news list |
|
yearstype Filtering style for year |
|
showfilter Show category filter section above the news list |
|
filtertype Filtering style for category |
|
filtertags Customize the category filter tags (Comma separated) *Works only for filtertype=dropdown |
|
groupbyyear Group news items by year |
|
showpagination Show pagination, default |
|
showpreview Show preview excerpt of a news item, default |
|
pagelen Number of news items to show per page, default |
|
previewlen Amount of characters to show of the preview excerpt, shows a maximum of 250 characters |
|
tags Tags comma separated, to filter on. You can also screen out just non-regulatory press releases by entering: or show items of a specific type with |
|
onlytagsallowed Tags comma separated, limits which tags to be shown in the news items list, if false no tags will be shown |
|
skipcustomtags Will prevent showing custom tags in the news list, default |
|
timestampformat Set the timestamp format of the publish date, default |
|
tzlocation Set the timezone location for the publish date, default |
|
disclaimertag Used to trigger a redirect to a 'disclaimer wall' URL (when clicking the title of the release in the list) if the release includes the specific tag | eg. mfn-cus-disclaimer |
disclaimerurl The URL to redirect to which has the disclaimer wall (usually the relative url of an IPO-page) | eg /ipo |
showthumbnail Displays a thumbnail below the title (of the featured image) |
|
thumbnailsize Override the default size of the thumbnail, default is |
|
shownotfound Will display a "Not Found" message when filtering yields no results |
|
fromyear Set "from year" for the desired period | 2017 eg. |
forcelocale Forces the language of the news feed to be in the set language, independent of the language in wordpress |
|
If you would like to customize the HTML or add a specific class to the news item you can use the template
parameter to ad your custom HTML template into the shortcode:
Custom news item template example
The same is possible for the tag list or year list:
Custom tag template example
Custom year template example
Custom thumbnail template example
MFN Report Archive
MFN Report Archive V2
In our plugin release v0.0.58, we've added a new Report Archive V2 widget which uses our new Report Archive API.
Our new API makes it possible for us to deliver a more extensive archive which supports different types of media (except for just the PDF), for example video, audio, webcast-link etc. The main difference is that the widget loads in the report archive externally. We set up the archive template and settings initially in our backend (per project) and then deliver a widget id.
Shortcode example
The widget_id
is a specific ID for a widget that is externally maintained by MFN. It will be provided to you by your MFN technical contact.
Params | Values |
widget_id The widget id / token | {Provided by MFN) |
lang The language of the reports to be listed. Default is |
|
MFN Report Archive (Deprecated)
Do not use unless your wordpress plugin is version 0.0.57 or prior.
This widget creates an archive for financial reports. It is configurable and supports fiscal year offset, generic titles (eg. Interim Q1 2019) as well as displaying a thumbnails of the reports in the archive.
Shortcode example
Params | Values |
showfilter Show the filter section, default: |
|
showdate Show the date, default: |
|
showyear Show the year, default: |
|
fromyear Set "from year" for the desired period | |
toyear Set "to year" for the desired period | |
showheading Show the heading, default |
|
showthumbnail Show report thumbnail image, default |
|
showgenerictitle Show a generic title (Instead of the title of the report), default |
|
usefiscalyear Enable fiscal year period support, default |
|
usefiscalyearoffset Offset for the fiscal year period |
|
useproxiedattachments Use cached attachments for thumbnails if available, default |
|
lang Set the language of the reports, default |
|
limit Limit number of reports to show, default |
|
offset Drop X number of items from start of the list |
|
MFN Subscription Widget
The subscription widget enables users to easily add a subscription form that makes it possible for visitors of the website to sign up, to receive emails with the latest press releases.
Shortcode example
Thewidget_id
is a specific ID for a widget that is externally maintained by MFN. It will be provided to you by your MFN technical contact.
Params | Values |
widget_id The widget id / token | {Provided by MFN) |
lang The language of the subscription widget. Default is |
|
Last updated