diff --git a/e107_handlers/shortcode_handler.php b/e107_handlers/shortcode_handler.php index 45c4b04df..b92f22673 100644 --- a/e107_handlers/shortcode_handler.php +++ b/e107_handlers/shortcode_handler.php @@ -445,11 +445,12 @@ class e_parse_shortcode if ($force || !$this->isRegistered($code)) { $this->registered_codes[$code] = array('type' => 'class', 'path' => $path, 'class' => $className); - - if (class_exists($className, false)) - { - $this->scClasses[$className] = new $className(); // Required. Test with e107::getScBatch($className) - } + $this->initShortcodeClass($className); + // if (class_exists($className, false)) + // { + // $this->scClasses[$className] = new $className(); // Required. Test with e107::getScBatch($className) + // echo "CLASS=:".$className; + // } } } } diff --git a/e107_plugins/gallery/e_shortcode.php b/e107_plugins/gallery/e_shortcode.php index 51f4009c9..792a7f1c5 100644 --- a/e107_plugins/gallery/e_shortcode.php +++ b/e107_plugins/gallery/e_shortcode.php @@ -19,16 +19,20 @@ class gallery_shortcodes extends e_shortcode public $slideMode = FALSE; public $slideCount = 1; private $downloadable = FALSE; + private $attFull = null; function init() { $this->downloadable = e107::getPlugPref('gallery','downloadable'); + $pop_w = vartrue(e107::getPlugPref('gallery','pop_w'),1024); + $pop_h = vartrue(e107::getPlugPref('gallery','pop_h'),768); + $this->attFull = 'w='.$pop_w.'&h='.$pop_h.'&x=1'; } function sc_gallery_caption($parm='') { $tp = e107::getParser(); - $text = ""; + $text = "attFull)."' rel='lightbox.Gallery2' >"; $text .= $this->var['media_caption']; $text .= ""; return $text; @@ -61,10 +65,7 @@ class gallery_shortcodes extends e_shortcode $rel = ($this->slideMode == TRUE) ? 'lightbox.SlideGallery' : 'lightbox.Gallery'; $att = 'aw='.$w.'&ah='.$h.'&x=1'; // 'aw=190&ah=150'; - $pop_w = vartrue(e107::getPlugPref('gallery','pop_w'),1024); - $pop_h = vartrue(e107::getPlugPref('gallery','pop_h'),768); - $attFull = 'w='.$pop_w.'&h='.$pop_h.'&x=1'; - $srcFull = $tp->thumbUrl($this->var['media_url'], $attFull); + $srcFull = $tp->thumbUrl($this->var['media_url'], $this->attFull); if(isset($parm['actualPreview'])) { $srcFull = $tp->replaceConstants($this->var['media_url'], 'full'); diff --git a/e107_plugins/tinymce/plugin.xml b/e107_plugins/tinymce/plugin.xml index 526937ab9..250b4405e 100644 --- a/e107_plugins/tinymce/plugin.xml +++ b/e107_plugins/tinymce/plugin.xml @@ -4,4 +4,7 @@ Wysiwyg Text-Area Replacement misc + + + \ No newline at end of file