# css-javascript-toolbox/7.1.2/views/blocks/block/tmpl/content.html.tmpl

CSS &amp; JavaScript Toolbox, version 7.1.2. 31 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/7.1.2/code/views/blocks/block/tmpl/content.html.tmpl
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/7.1.2/raw/views/blocks/block/tmpl/content.html.tmpl
- Modified: 2014-05-06T16:47:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/css-javascript-toolbox/7.1.2/code/views/blocks/block/tmpl/content.html.tmpl#L10-L20`.

```
<?php
/**
* 
*/

// Disallow direct access.
defined('ABSPATH') or die("Access denied");
?>
<?php
	    // Add activeFileId into codeFile object.
	    $this->block->file->activeFileId = $this->block->activeFileId;
			// Hidden fields.
			$fields = array('name', 'type', 'activeFileId');
			foreach ($fields as $field) :
				// Don't output until it has a value
				// It better for traffic, client side
				// should take care of this.
				if (!$fieldValue = $this->block->file->$field) {
					continue;
				}
?>
		<input type="hidden" name="cjtoolbox[<?php echo $this->block->id; ?>][file][<?php echo $field ?>]" value="<?php echo $fieldValue ?>" />
<?php endforeach; ?>
		<div class="cjcontainer">
			<div class="cjcodeblock">
<?php 	echo $this->getTemplate('editor-toolbox', array(), 'tmpl/templates'); ?>
				<div class="datablock">
					<div id="editor-<?php echo $this->block->id ?>" class="code-editor"><?php echo htmlentities($this->block->file->code, null, 'UTF-8') ?></div>
				</div>
			</div>
		</div>
```
