| @@ -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 | } |