| 1 |
<?php |
| 2 |
/** |
| 3 |
* |
| 4 |
*/ |
| 5 |
|
| 6 |
// Diallow direct access. |
| 7 |
defined('ABSPATH') or die("Access denied"); |
| 8 |
?> |
| 9 |
<div id="cjtoolbox-admin" class="wrap"> |
| 10 |
<?php |
| 11 |
$content = ''; |
| 12 |
echo CJTBlocksManagerView::trigger('CJTBlocksManagerView.loadglobalcomponents', $content); |
| 13 |
?> |
| 14 |
<?php require CJTOOLBOX_VIEWS_PATH . '/blocks/block/tmpl/codefile/codefile.html.tmpl' ?> |
| 15 |
<div id="custom-icon" class="icon32 blocks-icon32"></div> |
| 16 |
<h2><?php echo cssJSToolbox::getText('CSS & Javascript Toolbox') ?></h2> |
| 17 |
<div id="cjt-banner-bar-right"> |
| 18 |
<span class="cjt-banner-link"> |
| 19 |
<a target="_blank" href="http://<?php echo cssJSToolbox::CJT_WEB_SITE_DOMAIN ?>/support/"><?php echo cssJSToolbox::getText('Support Forum') ?></a> | |
| 20 |
<a target="_blank" href="http://<?php echo cssJSToolbox::CJT_WEB_SITE_DOMAIN ?>/documentation/"><?php echo cssJSToolbox::getText('Online Documentation') ?></a> |
| 21 |
</span> |
| 22 |
</div> |
| 23 |
<div id="cjtoolbox-blocks-page-form" method="post"> |
| 24 |
<?php wp_nonce_field('cjtoolbox'); ?> |
| 25 |
<?php wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false); ?> |
| 26 |
<?php wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false); ?> |
| 27 |
<input type="hidden" id="cjt-hasBlocks" value="<?php echo $this->hasBlocks ? 'true' : 'false' ?>" /> |
| 28 |
<input type="hidden" id="cjt-securityToken" value="<?php echo $this->securityToken ?>" /> |
| 29 |
<div id="poststuff" class="metabox-holder"> |
| 30 |
<div id="post-body"> |
| 31 |
<?php if ($this->backupId) : ?> |
| 32 |
<p id="cjt-info"><?php echo cssJSToolbox::getText('You have now restored the code blocks from the current backup. Nothing is saved until you click "Restore" button. To revert back to the previous code blocks and discard this action, simply click the "Cancel Restore" button.') ?></p> |
| 33 |
<?php endif; ?> |
| 34 |
<?php echo $this->getTemplate('toolbox', array('location' => 'top')); ?> |
| 35 |
<?php do_meta_boxes($this->pageHook, 'normal', null); ?> |
| 36 |
<div id="cjt-noblocks-intro"<?php if ($this->hasBlocks) : ?> style="display:none"<?php endif; ?>> |
| 37 |
<?php echo $this->getTemplate('intro', array(), 'tmpl/help') ?> |
| 38 |
</div> |
| 39 |
<?php echo $this->getTemplate('toolbox', array('location' => 'bottom')); ?> |
| 40 |
</div> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
<div id="cjt-inline-popup"></div> |
| 44 |
</div> |