Skip to content
No description, website, or topics provided.
PHP HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets/img
languages/pl
views
.gitignore
Bootstrap.php
README.md
composer.json

README.md

old-browser-alert

This is a simple notification when an old browser is detected. Currently only old Internet Explorer (prior to 8.0) and Firefox (prior to 1.3.6) versions are detected.

Installation

In main application directory:

maniple module-install /path/to/old-browser-alert

Usage

Make sure the bootstrap class of a module has 'old-browser-alert' added to _moduleDeps property, to avoid any "view helper not found" exceptions.

In view scripts (typically in layouts) before HEAD tag insert:

{% do oldBrowserAlert().appendStyle() %}

Make sure headStyle() helper is rendered in the layout's HEAD tag. At the beginning of the BODY tag insert:

{{ oldBrowserAlert() }}

Whenever an old browser is detected the alert is rendered in the view script, otherwise nothing happens.

You can’t perform that action at this time.