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:
@@ -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);
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user