Update plugin.php
This commit is contained in:
parent
accd027915
commit
7067adf6c6
11
plugin.php
11
plugin.php
|
@ -1,11 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
Plugin Name: Preview URL with QR Code
|
Plugin Name: Preview URL with QR Code
|
||||||
Plugin URI: https://github.com/dennydai
|
Plugin URI: https://github.com/SophiaAtkinson/yourls-preview-url-with-qrcode
|
||||||
Description: Preview URLs before you're redirected there
|
Description: Preview URLs before you're redirected there
|
||||||
Version: 1.0
|
Version: 1.1
|
||||||
Author: Denny Dai
|
Author: Sophia Atkinson
|
||||||
Author URI: https://dennydai.github.io
|
Author URI: https:/sophia.wtf
|
||||||
|
Plugin Based Off Of DennyDai's Preview URL with QR Code
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// EDIT THIS
|
// EDIT THIS
|
||||||
|
@ -39,7 +40,7 @@ function dd_preview_show( $keyword ) {
|
||||||
$url = yourls_get_keyword_longurl( $keyword );
|
$url = yourls_get_keyword_longurl( $keyword );
|
||||||
$base = YOURLS_SITE;
|
$base = YOURLS_SITE;
|
||||||
$char = DD_PREVIEW_CHAR;
|
$char = DD_PREVIEW_CHAR;
|
||||||
$qrcode = 'data:image/png;base64,'.base64_encode(file_get_contents('http://chart.apis.google.com/chart?chs=200x200&cht=qr&chld=M&chl='.YOURLS_SITE.'/'.$keyword));
|
$qrcode = 'https://chart.apis.google.com/chart?chs=256x256&cht=qr&chld=M&chl='.YOURLS_SITE.'/'.$keyword;
|
||||||
|
|
||||||
echo <<<HTML
|
echo <<<HTML
|
||||||
<h2>Link Preview</h2>
|
<h2>Link Preview</h2>
|
||||||
|
|
Loading…
Reference in New Issue