PluginProbe
CSS & JavaScript Toolbox / 8.0.2
CSS & JavaScript Toolbox v8.0.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
css-javascript-toolbox / views / blocks / block / tmpl / content.html.tmpl

content.html.tmpl in CSS & JavaScript Toolbox 8.0.2, at views/blocks/block/tmpl/content.html.tmpl

31 lines 1011 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 *
4 */
5
6 // Disallow direct access.
7 defined('ABSPATH') or die("Access denied");
8 ?>
9 <?php
10 // Add activeFileId into codeFile object.
11 $this->block->file->activeFileId = $this->block->activeFileId;
12 // Hidden fields.
13 $fields = array('name', 'type', 'activeFileId');
14 foreach ($fields as $field) :
15 // Don't output until it has a value
16 // It better for traffic, client side
17 // should take care of this.
18 if (!$fieldValue = $this->block->file->$field) {
19 continue;
20 }
21 ?>
22 <input type="hidden" name="cjtoolbox[<?php echo $this->block->id; ?>][file][<?php echo $field ?>]" value="<?php echo $fieldValue ?>" />
23 <?php endforeach; ?>
24 <div class="cjcontainer">
25 <div class="cjcodeblock">
26 <?php echo $this->getTemplate('editor-toolbox', array(), 'tmpl/templates'); ?>
27 <div class="datablock">
28 <div id="editor-<?php echo $this->block->id ?>" class="code-editor"><?php echo htmlentities($this->block->file->code, null, 'UTF-8') ?></div>
29 </div>
30 </div>
31 </div>