COVID-19 Banner (version 0.1)

COVID-19 Banner creates and assigns a custom module featuring a custom banner where you can put information related to your community or business affected by the Wuhan (China) originated coronavirus 2020 pandemic.

Screenshots

Image


Known Issues & Limitations

  • There are currently no known issues or limitations


Installation & Update

To add this Profile repository to your Tiki add the line below to your Admin (Control Panels) → "Profiles" → "Advanced" tab → "Repository URLs" text area:
https://profiles.luciash.eu/profiles

If you do an update please do not forget to unassign the previous version of the profile module in Modules, otherwise you will end up with multiple versions of the module applied.

By hitting the Apply Now button on Control PanelsProfiles control panel (or Forget and Re-apply if you want to do an update) the following YAML code will be applied:

YAML
objects:
 -
  type: module
  data:
   name: COVID-19 Banner 0.1
   groups: [ Admins ]
   position: bottom
   order: 999
   params:
    nobox: y
   custom: |
    <style type="text/css">{literal}
    .covid19-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    padding: 1rem;
    z-index: 999;
    }
    .hidden {display: none}
    {/literal}</style>{jq}{literal}
    if (getCookie('covid19-banner') != 'hidden') {
      $('.covid19-banner').removeClass('hidden').hide().delay('500').fadeIn('slow');
    }
    $('.covid19-close').on('click', function(event) {
     event.preventDefault();
     $('.covid19-banner').fadeOut('slow');
     setCookie("covid19-banner","hidden");
    });
    {/literal}{/jq}<div class="alert alert-danger covid19-banner hidden"><p><strong>Due to the COVID-19 pandemic situation, we are ...</strong></p> <a class="btn btn-danger covid19-close" href="#">Close</a></div>


Usage

This profile creates a custom module with a "COVID-19 Banner" in it.
The module will be assigned to the bottom modules zone but the banner will appear on fixed position on the top of your website.

After applying the profile the module is visible only to Admins. When you are done with the customization and the module content is ready to be published just edit the assigned module in the bottom zone and remove the Admins group from the groups field.

You can put whatever you want instead of the "Due to the COVID-19 pandemic situation, we are ..." text.

When you click the Close button, a cookie named covid19-banner is stored in your browser and the module content will be hidden.

Uninstall

Just unassign and delete the module on the Admin → Modules page.