| 1 |
<?php |
| 2 |
/** |
| 3 |
* |
| 4 |
*/ |
| 5 |
|
| 6 |
// Disallow direct access. |
| 7 |
defined('ABSPATH') or die("Access denied"); |
| 8 |
?> |
| 9 |
<div class="cjt-toolbox edit-block-name"> |
| 10 |
<input type="text" class="block-name" value="" maxlength="50"> |
| 11 |
<div class="icons-group"> |
| 12 |
<a class="cjt-tb-link cancel" title="<?php echo cssJSToolbox::getText('Cancel editing code block title') ?>"></a> |
| 13 |
<a class="cjt-tb-link save" title="<?php echo cssJSToolbox::getText('Save code block title') ?>"></a> |
| 14 |
</div> |
| 15 |
</div> |
| 16 |
<?php echo $this->getTemplate('toolbox', array(), 'tmpl/templates') ?> |
| 17 |
<input type="hidden" name="blocks[]" value="<?php echo $this->block->id ?>" /> |
| 18 |
<?php |
| 19 |
// Hidden fields. |
| 20 |
$fields = array('name', 'state', 'location'); |
| 21 |
foreach ($fields as $field) : |
| 22 |
?> |
| 23 |
<input type="hidden" name="cjtoolbox[<?php echo $this->block->id; ?>][<?php echo $field ?>]" value="<?php echo $this->block->$field ?>" /> |
| 24 |
<?php endforeach; ?> |
| 25 |
<?php |
| 26 |
if (!$this->isClosed) { |
| 27 |
echo $this->getTemplate('content'); |
| 28 |
} |
| 29 |
?> |