Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chaplean/outdated-browser-bundle
https://github.com/chaplean/outdated-browser-bundle
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chaplean/outdated-browser-bundle
- Owner: chaplean
- Created: 2019-07-10T07:23:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-26T00:51:23.000Z (almost 3 years ago)
- Last Synced: 2024-04-02T13:49:26.492Z (9 months ago)
- Language: HTML
- Size: 1000 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Getting Started With Chaplean Outdated Browser Bundle
=====================================================# 1. Add me in AppKernel
app/AppKernel.php:
```php
...
/**
* @return array
*/
public function registerBundles()
{
return array(
...
new Chaplean\Bundle\OutdatedBrowserBundle\ChapleanOutdatedBrowserBundle(),
);
}
...
```# 2. Define config (Optionnal)
app/config/config.yml:
```yaml
# default option
chaplean_outdated_browser:
background_color: '#f25648'
color: '#ffffff'
lower_than: 'transform'
template: 'ChapleanOutdatedBrowserBundle:Template:outdated.html.twig'
````lower_than` can take:
* "IE11","borderImage"
* "IE10", "transform" (Default property)
* "IE9", "boxShadow"
* "IE8", "borderSpacing"# 3. Update assetic
Add this bundle in assetic config:
```yaml
assetic:
bundles: ['ChapleanOutdatedBrowserBundle']
```# 4. Add routes
Include a routing in global routing
app/config/routing.yml:
```yaml
chaplean_outdated_browser_bundle:
resource: "@ChapleanOutdatedBrowserBundle/Resources/config/routing.yml"
prefix: /
```# 5. Add script in layout
In layout html add me simply:
Version unminified:
```html```
Version minified:
```html```