PluginProbe
CSS & JavaScript Toolbox / 8.3.2
CSS & JavaScript Toolbox v8.3.2
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
← All changes | controllers/coupling/shortcode/block/block.php +2 -6 118.3.2 View file →
@@ -93,13 +93,9 @@
93 93 // Get block code, execute it as PHP!
94 94 $blockCode = CJTPHPCodeEvaluator::getInstance($block)->exec(array('cb' => $spi))->getOutput();
95 95 // CJT Shortcode markup interface (CSMI)!
96 96 // CSMI is HTML markup to identify the CJT block Shortcode replacement.
97 -
98 - // CODE UPDATED BY RBJ -- START
99 - $replacement = "\n\n<!-- CJT Shortcode Block ({$block->id}) - {$block->name} - START -->\n<{$this->options['tag']} id='{$spi->containerElementId()}' class='csmi csmi-bid-{$block->id} csmi-{$block->name}'>{$this->content}{$blockCode}</{$this->options['tag']}>\n<!-- CJT Shortcode Block ({$block->id}) - {$block->name} - END -->\n\n";
100 - // CODE UPDATED BY RBJ -- END
101 -
97 + $replacement = "<{$this->options['tag']} id='{$spi->containerElementId()}' class='csmi csmi-bid-{$block->id} csmi-{$block->name}'>{$this->content}{$blockCode}</{$this->options['tag']}>";
102 98 // Get linked templates.
103 99 $linkedStylesheets = '';
104 100 $templates = $model->getLinkedTemplates($block->id);
105 101 $reverseTypes = array_flip(CJTCouplingModel::$templateTypes);
@@ -119,9 +115,9 @@
119 115 $queue->enqueue($template->queueName);
120 116 }
121 117 }
122 118 // Prepend linked Stylesheets to the replacement.
123 - if (isset($linkedStylesheets) && !empty($linkedStylesheets)) {
119 + if (isset($linkedStylesheets)) {
124 120 $replacement = "<style type='text/css'>{$linkedStylesheets}</style>{$replacement}";
125 121 }
126 122 }
127 123 }