PluginProbe
Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code / 2.2.2
Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code v2.2.2
5.5.3 3.1.0 3.2.0 3.2.1 3.3.0 3.4.0 3.4.1 3.4.2 3.4.3 3.5.0 3.5.1 3.5.2 3.6.0 3.7.0 3.8.0 3.8.1 3.8.2 3.8.3 4.0.0 4.0.2 4.0.3 4.0.4 4.0.5 4.1.0 4.1.1 All 78 releases
copy-the-code / includes / add-new-form.php

add-new-form.php in Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code 2.2.2, at includes/add-new-form.php

139 lines 6.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Add new Page
4 *
5 * @package Copy the Code
6 * @since 2.0.0
7 */
8
9 ?>
10 <div class="wrap copy-the-code">
11 <div class="wrap">
12 <h1><?php echo esc_html( COPY_THE_CODE_TITLE ); ?> <small>v<?php echo esc_html( COPY_THE_CODE_VER ); ?></small></h1>
13
14 <p class="description"><?php _e( 'Add the new button as per your requirement. See more with <a href="https://maheshwaghmare.com/doc/copy-anything-to-clipboard/" target="_blank">getting started guide</a>', 'copy-the-code' ); ?></p>
15
16 <div id="poststuff">
17 <div id="post-body" class="columns-2">
18 <div id="post-body-content">
19
20 <form enctype="multipart/form-data" method="post">
21 <div class="tabs">
22 <div id="tab-general">
23 <table class="form-table">
24 <tr>
25 <th scope="row"><?php _e( 'Selector', 'copy-the-code' ); ?></th>
26 <td>
27 <fieldset>
28 <input type="text" name="selector" class="regular-text" value="<?php echo esc_attr( $data['selector'] ); ?>" />
29 <p class="description"><?php _e( 'It is the selector which contain the content which you want to copy.<br/>Default its &lt;pre&gt; html tag.', 'copy-the-code' ); ?></p>
30 </fieldset>
31 </td>
32 </tr>
33
34 <tr>
35 <th scope="row"><?php _e( 'Style', 'copy-the-code' ); ?></th>
36 <td>
37 <fieldset>
38 <select name="style" class="style">
39 <option value="button">Button</option>
40 <option value="svg-icon">SVG Icon</option>
41 <option value="cover">Cover</option>
42 </select>
43
44 </fieldset>
45 <p class="description"><?php _e( 'Select the button style.', 'copy-the-code' ); ?></p>
46 </td>
47 </tr>
48 <tr>
49 <th scope="row"><?php _e( 'Button Position', 'copy-the-code' ); ?></th>
50 <td>
51 <fieldset>
52 <select name="button-position" class="button-position">
53 <option value="inside" <?php selected( $data['button-position'], 'inside' ); ?>><?php echo 'Inside'; ?></option>
54 <option value="outside" <?php selected( $data['button-position'], 'outside' ); ?>><?php echo 'Outside'; ?></option>
55 </select>
56 <p class="description"><?php _e( 'Button Position Inside/Outside. Default Inside.', 'copy-the-code' ); ?></p>
57 </fieldset>
58 </td>
59 </tr>
60 </table>
61 </div>
62 <div id="tab-style">
63 <table class="form-table">
64 <tr>
65 <th scope="row"><?php _e( 'Button Text', 'copy-the-code' ); ?></th>
66 <td>
67 <fieldset>
68 <input type="text" name="button-text" class="regular-text" value="<?php echo esc_attr( $data['button-text'] ); ?>" />
69 <p class="description"><?php _e( 'Copy button text. Default \'Copy\'.', 'copy-the-code' ); ?></p>
70 </fieldset>
71 </td>
72 </tr>
73 <tr>
74 <th scope="row"><?php _e( 'Button Copy Text', 'copy-the-code' ); ?></th>
75 <td>
76 <fieldset>
77 <input type="text" name="button-copy-text" class="regular-text" value="<?php echo esc_attr( $data['button-copy-text'] ); ?>" />
78 <p class="description"><?php _e( 'Copy button text which appear after click on it. Default \'Copied!\'.', 'copy-the-code' ); ?></p>
79 </fieldset>
80 </td>
81 </tr>
82 <tr>
83 <th scope="row"><?php _e( 'Button Title', 'copy-the-code' ); ?></th>
84 <td>
85 <fieldset>
86 <input type="text" name="button-title" class="regular-text" value="<?php echo esc_attr( $data['button-title'] ); ?>" />
87 <p class="description"><?php _e( 'It is showing on hover on the button. Default \'Copy to Clipboard\'.', 'copy-the-code' ); ?></p>
88 </fieldset>
89 </td>
90 </tr>
91 </table>
92 </div>
93 </div>
94
95 <input type="hidden" name="message" value="saved" />
96 <?php wp_nonce_field( 'copy-the-code-nonce', 'copy-the-code' ); ?>
97
98 <?php submit_button( 'Create' ); ?>
99 </form>
100 </div>
101 <div class="postbox-container" id="postbox-container-1">
102 <h3>Preview:</h3>
103 <div id="preview"></div>
104
105 <div class="postbox">
106 <h2 class="hndle"><span><?php _e( 'Getting Started', 'copy-the-code' ); ?></span></h2>
107 <div class="inside">
108 <ul class="items">
109 <li>» <a style="text-decoration: none;" target="_blank" href="https://maheshwaghmare.com/doc/copy-anything-to-clipboard/#how-does-it-work"><?php esc_html_e( 'How does it work?', 'copy-the-code' ); ?></a></li>
110 <li>» <a style="text-decoration: none;" target="_blank" href="https://maheshwaghmare.com/doc/copy-anything-to-clipboard/#what-is-the-selector"><?php esc_html_e( 'What is the selector?', 'copy-the-code' ); ?></a></li>
111 <li>» <a style="text-decoration: none;" target="_blank" href="https://maheshwaghmare.com/doc/copy-anything-to-clipboard/#example-1-using-html-tag-as-a-selector"><?php esc_html_e( 'Example 1 - Using HTML tag as a selector', 'copy-the-code' ); ?></a></li>
112 <li>» <a style="text-decoration: none;" target="_blank" href="https://maheshwaghmare.com/doc/copy-anything-to-clipboard/#example-2-using-class-as-a-selector"><?php esc_html_e( 'Example 2 - Using class as a selector', 'copy-the-code' ); ?></a></li>
113 <li>» <a style="text-decoration: none;" target="_blank" href="https://maheshwaghmare.com/doc/copy-anything-to-clipboard/#example-3-using-id-as-a-selector"><?php esc_html_e( 'Example 3 - Using ID as a selector', 'copy-the-code' ); ?></a></li>
114 <li>» <a style="text-decoration: none;" target="_blank" href="https://maheshwaghmare.com/doc/copy-anything-to-clipboard/#example-4-using-nested-selector"><?php esc_html_e( 'Example 4 - Using nested selector', 'copy-the-code' ); ?></a></li>
115 </ul>
116 </div>
117 </div>
118
119 <div class="postbox">
120 <h2 class="hndle"><span><?php _e( 'Support', 'copy-the-code' ); ?></span></h2>
121 <div class="inside">
122 <p><?php _e( 'Do you have any issue with this plugin? Or Do you have any suggessions?', 'copy-the-code' ); ?></p>
123 <p><?php _e( 'Please don\'t hesitate to <a href="http://maheshwaghmare.wordpress.com/?p=999" target="_blank">send request »</a>.', 'copy-the-code' ); ?></p>
124 </div>
125 </div>
126
127 <div class="postbox">
128 <h2 class="hndle"><span><?php _e( 'Donate', 'copy-the-code' ); ?></span></h2>
129 <div class="inside">
130 <p><?php _e( 'Would you like to support the advancement of this plugin?', 'copy-the-code' ); ?></p>
131 <a href="https://www.paypal.me/mwaghmare7/" target="_blank" class="button button-primary"><?php _e( 'Donate Now!', 'copy-the-code' ); ?></a>
132 </div>
133 </div>
134 </div>
135 </div>
136 </div>
137 </div>
138 </div>
139