Skip to content

Instantly share code, notes, and snippets.

@giovannipds
Last active June 13, 2020 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giovannipds/9841e6dbd6907c682f63b9ac441b5611 to your computer and use it in GitHub Desktop.
Save giovannipds/9841e6dbd6907c682f63b9ac441b5611 to your computer and use it in GitHub Desktop.
Ezoom Weird Stuff
<!-- Normal Lazy Load -->
<?= lazyload([
'src' => base_url('image/resize_canvas?w=470&h=360&fit=inside&src=https://cdn.sagaentretenimento.com.br/uploads/2016/06/22113456521528.jpg'),
'alt' => 'Dev Star',
'class' => 'lazyload',
'id' => 'dev-star'
]); ?>
<!-- Lazy Load By Event -->
<?= lazyload([
'src' => base_url('image/resize_crop?w=470&h=360&src=http://stmedia.bolsamania.com/web/img/images_uploaded/c/6/luke_skywalker_joven_620x350.jpg'),
'alt' => 'Dev Falcon',
'tag' => 'a',
'href' => '#',
'class' => 'lazyload ondemand',
'id' => 'dev-falcon',
'view' => '<p style="padding-top: 50px;"><strong>'.T_('Clique acima para carregar a imagem').'</strong></p>'
]); ?>
<!-- Lang Strings -->
<?= T_('Política de Privacidade'); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment