2017 © Pedro Peláez
 

library thumbnail-helper

Nette template helper for lazy creating of thumbnails

image

flame/thumbnail-helper

Nette template helper for lazy creating of thumbnails

  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Thumbnail-Helper

Nette template helper for lazy creating of thumbnails, (*1)

Instalation

Examples is based on Nette version 2.0.12, but the package is compatible with @dev version too, (*2)

Register "thumb" extension

In bootstrap.php, (*3)

\Flame\Thumb\DI\ThumbExtension::register($configurator);

Register "thumb" helper


/** * Base presenter for all application presenters. */ abstract class BasePresenter extends Presenter { /** * @param null $class * @return \Nette\Templating\ITemplate */ protected function createTemplate($class = null) { $template = parent::createTemplate($class); /** @var \Flame\Thumb\IRegister $thumb */ $thumb = $this->context->getByType('Flame\Thumb\IRegister'); $thumb->register($template); return $template; } }

Set variables (Optional)

In config.neon, (*4)

    thumb:
        paths:
            base: %wwwDir%
            thumbs: /media/thumbs

That's all! Enjoy it!, (*5)

The Versions

26/08 2013

dev-modules

dev-modules https://github.com/flame-org/Thumbnail-Helper

Nette template helper for lazy creating of thumbnails

  Sources   Download

BSD-2-Clause-FreeBSD

The Requires

 

template helper thumbnails nette flame

26/08 2013

v3.0

3.0.0.0 https://github.com/flame-org/Thumbnail-Helper

Nette template helper for lazy creating of thumbnails

  Sources   Download

BSD-2-Clause-FreeBSD

The Requires

 

template helper thumbnails nette flame

22/08 2013

dev-master

9999999-dev https://github.com/flame-org/Thumbnail-Helper

Nette template helper for lazy creating of thumbnails

  Sources   Download

BSD-2-Clause-FreeBSD

The Requires

 

template helper thumbnails nette flame

22/08 2013

v2.0

2.0.0.0 https://github.com/flame-org/Thumbnail-Helper

Nette template helper for lazy creating of thumbnails

  Sources   Download

BSD-2-Clause-FreeBSD

The Requires

 

template helper thumbnails nette flame

12/05 2013

v1.0

1.0.0.0 https://github.com/flame-org/Thumbnail-Helper

Nette template helper for lazy creating of thumbnails

  Sources   Download

BSD-2-Clause-FreeBSD

The Requires

 

The Development Requires

framework simple nette tools flame jsifalda