Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/announcements/announcement_banner.tmpl

[%# WHM Announcements banner template.
    Rendered by Cpanel::Plugins::Components::whostmgr::home::AnnouncementBanner.
    Emits the <whm-announcement-banner> web component: a persistent summary of an
    announcement, shown independently of the modal (including alongside it, the
    first time an admin sees it), with a "Learn More" link back to this same page
    (?show_announcement=<id>) that reopens the modal, and its own dismissible
    close control. Content is data-driven; see the plugin README. -%]
[% title       = announcement.title       ? locale.lextext(announcement.title)       : '';
   description = announcement.description ? locale.lextext(announcement.description) : '';
   cta_text    = announcement.cta_text    ? locale.lextext(announcement.cta_text)    : locale.maketext('Learn More');
-%]
<whm-announcement-banner
    announcement-id="[% announcement.id | html %]"
    announcement-version="[% announcement.announcement_version | html %]"
    cp-security-token="[% cp_security_token | html %]"
    banner-title="[% title | html %]"
    description="[% description | html %]"
    cta-text="[% cta_text | html %]"
    cta-href="?show_announcement=[% announcement.id | uri %]"
    icon-url="[% announcement.icon_url | html %]"
    close-title="[% locale.maketext('Dismiss') | html %]"
></whm-announcement-banner>
Back to Directory