PluginProbe
CSS & JavaScript Toolbox / 6.0.15
CSS & JavaScript Toolbox v6.0.15
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 / new / tmpl / default.html.tmpl

default.html.tmpl in CSS & JavaScript Toolbox 6.0.15, at views/blocks/new/tmpl/default.html.tmpl

75 lines 2.8 KB
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 // Allow view to enqueue scripts and styles.
10 do_action('admin_print_scripts');
11 do_action('admin_print_styles');
12 ?>
13 <html xmlns="http://www.w3.org/1999/xhtml">
14 <head>
15 <?php wp_print_head_scripts() ?>
16 <?php wp_print_styles() ?>
17 </head>
18 <body>
19 <div id="cjtoolbox_popup">
20 <form id="cjtoolbox_new_block_form" class="cjt-form">
21 <fieldset>
22 <ul>
23 <li>
24 <label for="cjt-new-block-name" title="<?php echo cssJSToolbox::getText('Name or title of code block (must be unique and cannot be left blank)') ?>"><?php echo cssJSToolbox::getText('Name') ?>*</label>
25 <input type="text" id="cjt-new-block-name" name="name" maxlength="50" value="" />
26 </li>
27 <li>
28 <label for="cjt-new-block-state" title="<?php echo cssJSToolbox::getText('Tick the checkbox to Activate (turn on) code block') ?>"><?php echo cssJSToolbox::getText('Activate') ?></label>
29 <input type="checkbox" id="cjt-new-block-state" name="state" value="active" checked="checked" />
30 </li>
31 <li>
32 <label for="cjt-new-block-hook" title="<?php echo cssJSToolbox::getText('Set location hook for code block output to: Header or Footer') ?>"><?php echo cssJSToolbox::getText('Location Hook') ?></label>
33 <select name="location" id="cjt-new-block-hook">
34 <?php
35 $locations = array(
36 'header' => cssJSToolbox::getText('Header'),
37 'footer' => cssJSToolbox::getText('Footer'),
38 );
39 foreach ($locations as $key => $displayName) :
40 ?>
41 <option value="<?php echo $key ?>"><?php echo $displayName ?></option>
42 <?php
43 endforeach;
44 ?>
45 </select>
46 </li>
47 <li>
48 <label for="cjt-new-block-position" title="<?php echo cssJSToolbox::getText('Set initial code block position to: First Block or Last Block') ?>"><?php echo cssJSToolbox::getText('Initial Block Position') ?></label>
49 <select name="position" id="cjt-new-block-position">
50 <?php
51 // Static locations.
52 $positions = array(
53 'top' => cssJSToolbox::getText('First Block'),
54 'bottom' => cssJSToolbox::getText('Last Block'),
55 );
56 // Display locations list.
57 foreach ($positions as $position => $displayName) :
58 ?>
59 <option value="<?php echo $position ?>"<?php if ($this->position == $position) : ?> selected="selected"<?php endif; ?>><?php echo $displayName ?></option>
60 <?php
61 endforeach;
62 ?>
63 </select>
64 </li>
65 <li class="last">
66 <input class="cjt-button cancel" type="button" value="<?php echo cssJSToolbox::getText('Cancel') ?>" />
67 <input class="cjt-button save" type="submit" name="submit" value="<?php echo cssJSToolbox::getText('Create') ?>" />
68 </li>
69 </ul>
70 </fieldset>
71 </form>
72 <?php print_footer_scripts() ?>
73 </div>
74 </body>
75 </html>