dev-master
9999999-devYii2 helper to lazy load images and/or to convert image captions into div markups (like wordpress)
MIT
The Requires
by Chris Backhouse
extension yii2
Yii2 helper to lazy load images and/or to convert image captions into div markups (like wordpress)
Yii2 helper to lazy load images and/or to convert image captions into div markups (like wordpress), (*1)
*Note: This project is still in DEV and is therefore not fully tested / stable, (*2)
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
php composer.phar require --prefer-dist chrisb34/yii2-lazyload "*"
or add, (*5)
"chrisb34/yii2-lazyload": "*"
to the require section of your composer.json
file., (*6)
In a view add the lazyload widget as follows;, (*7)
use chrisb34/lazyload; echo LazyLoad::widget([ // the data model 'model' => $model // the model attribute that holds the html to convert 'contentProperty' => 'attributeName', ... other config options - see source code ])
see http://yii2.chris-backhouse.com for more details, (*8)
This uses the jquery plugins:, (*9)
Lazy Load Plugin for jQuery - Mika Tuupola http://www.appelsiini.net/projects/lazyload, (*10)
jCaption: jQuery Image Captions with Customizable Markup, Style and Animation - Joel Sutherland http://www.newmediacampaigns.com/blog/jcaption-a-jquery-plugin-for-simple-image-captions#download, (*11)
Yii2 helper to lazy load images and/or to convert image captions into div markups (like wordpress)
MIT
extension yii2