forked from Cavemanon/cavepaintings
use google charts for QR code generation, save 7MB
This commit is contained in:
@@ -2,9 +2,8 @@
|
||||
class QRImageTheme extends Themelet {
|
||||
public function links_block($link) {
|
||||
global $page;
|
||||
$base_href = get_base_href();
|
||||
$page->add_block( new Block(
|
||||
"QR Code","<img src='$base_href/ext/qr_code/qr_img.php?d=$link&s=3' />","left",50));
|
||||
"QR Code","<img src='http://chart.apis.google.com/chart?chs=150x150&cht=qr&chl=$link' />","left",50));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user