1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 04:41:53 +02:00

Shortcode fixes and introduction of new format. {SC: get-string} eg. {MYSHORTCODE:w=100&h=50}

This is returned to the shortcode as an array('w'=>100, 'h'=>50);  Use {SETIMAGE:w=100} to set the default thumbnail width.
This commit is contained in:
Cameron
2013-03-11 05:11:58 -07:00
parent 58ef32c990
commit 5436e861f5
3 changed files with 32 additions and 10 deletions

View File

@@ -1,10 +1,9 @@
<?php
// Aloow theme templates to set the default Image Resizing of thumb.php
function setimage_shortcode($parm, $mode)
function setimage_shortcode($parm, $mode='')
{
parse_str($mode,$options);
e107::getParser()->thumbWidth = vartrue($options['w'],100);
e107::getParser()->thumbWidth = vartrue($parm['w'],100);
}
?>