eb4292316d
Bug fixes and consolidation of various thumbnail and resize functionality Changed resize/rotate extensions to use replace image event Added content-disposition header to image responses to provide a human-friendly filename when saving Added more bulk thumbnail regeneration tools Tweaks to bulk actions to correct totals when batching items
16 lines
606 B
PHP
16 lines
606 B
PHP
<?php
|
|
/*
|
|
* Name: QR Codes
|
|
* Author: Zach Hall <zach@sosguy.net> [http://seemslegit.com]
|
|
* Description: Shows a QR Code for downloading an image to cell phones.
|
|
* Based on Artanis's Link to Image Extension <artanis.00@gmail.com>
|
|
* Further modified by Shish to remove the 7MB local QR generator
|
|
* and replace it with a link to google chart APIs
|
|
*/
|
|
class QRImage extends Extension
|
|
{
|
|
public function onDisplayingImage(DisplayingImageEvent $event)
|
|
{
|
|
$this->theme->links_block(make_http(make_link('image/'.$event->image->id.'.'.$event->image->ext)));
|
|
}
|
|
}
|