PluginProbe
WP Coder – Insert & Manage Code Snippets / 3.4
WP Coder – Insert & Manage Code Snippets v3.4
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
← All changes | includes/pages/sidebar.php +58 -30 3.03.4 View file →
@@ -2,9 +2,9 @@
2 2
3 3 use WPCoder\Dashboard\DBManager;
4 4 use WPCoder\Dashboard\Field;
5 5 use WPCoder\Dashboard\Link;
6 -use WPCoder\WOW_Plugin;
6 +use WPCoder\WPCoder;
7 7
8 8 defined( 'ABSPATH' ) || exit;
9 9
10 10 $default = Field::getDefault();
@@ -12,9 +12,9 @@
12 12 $link = ! empty( $default['param']['link'] ) ? $default['param']['link'] : '';
13 13
14 14 $shortcode = '';
15 15 if ( ! empty( $default['id'] ) ) {
16 - $shortcode = '[' . WOW_Plugin::SHORTCODE . ' id="' . absint( $default['id'] ) . '"]';
16 + $shortcode = '[' . WPCoder::SHORTCODE . ' id="' . absint( $default['id'] ) . '"]';
17 17 }
18 18
19 19 ?>
20 20
@@ -20,9 +20,10 @@
20 20
21 21 <div class="postbox ">
22 22 <div class="postbox-header">
23 23 <h2 class="hndle">
24 - <?php esc_html_e( 'Publish', 'wpcoder' ); ?>
24 + <?php
25 + esc_html_e( 'Publish', 'wpcoder' ); ?>
25 26 </h2>
26 27 </div>
27 28
28 29 <div class="inside">
@@ -31,70 +32,97 @@
31 32
32 33 <div id="minor-publishing">
33 34 <div class="misc-pub-section wowp-sidebar-pub-section">
34 35
35 - <div class="wowp-field has-chackbox">
36 - <span class="label"><?php esc_html_e( 'Status', 'wpcoder' ); ?></span>
37 - <?php Field::checkbox( 'status' ); ?>
38 - <label for="status"><?php esc_html_e( 'Deactivate', 'wpcoder' ); ?></label>
36 + <div class="wowp-field has-checkbox">
37 + <label>
38 + <span class="label"><?php
39 + esc_html_e( 'Status', 'wpcoder' ); ?></span>
40 + <?php
41 + Field::checkbox( 'status' ); ?>
42 + <span><?php
43 + esc_html_e( 'Deactivate', 'wpcoder' ); ?></span>
44 + </label>
45 +
39 46 </div>
40 47
41 - <div class="wowp-field has-chackbox">
42 - <span class="label"><?php esc_html_e( 'Test mode', 'wpcoder' ); ?></span>
43 - <?php Field::checkbox( 'mode' ); ?>
44 - <label for="mode"><?php esc_html_e( 'Activate', 'wpcoder' ); ?></label>
48 + <div class="wowp-field has-checkbox">
49 + <label>
50 + <span class="label"><?php
51 + esc_html_e( 'Test mode', 'wpcoder' ); ?></span>
52 + <?php
53 + Field::checkbox( 'mode' ); ?>
54 + <span><?php
55 + esc_html_e( 'Activate', 'wpcoder' ); ?></span>
56 + </label>
45 57 </div>
46 58
47 59 <div class="wowp-field has-addon border-default">
48 60 <label for="tag" class="is-addon"><span class="dashicons dashicons-tag"></span></label>
49 - <input list="wowp-tags" type="text" name="tag" id="tag"
50 - value="<?php echo esc_attr( $default['tag'] ); ?>">
61 + <input list="wowp-tags" type="text" name="tag" id="tag" value="<?php
62 + echo esc_attr( $default['tag'] ); ?>">
51 63 <datalist id="wowp-tags">
52 - <?php DBManager::display_tags(); ?>
64 + <?php
65 + DBManager::display_tags(); ?>
53 66 </datalist>
54 67 </div>
55 68
56 69 <div class="wowp-field has-addon border-default">
57 70 <label for="link" class="is-addon">
58 - <?php if ( ! empty( $link ) ): ?>
59 - <a href="<?php echo esc_url( $link ); ?>" target="_blank">
71 + <?php
72 + if ( ! empty( $link ) ): ?>
73 + <a href="<?php
74 + echo esc_url( $link ); ?>" target="_blank">
60 75 <span class="dashicons dashicons-admin-links"></span>
61 76 </a>
62 - <?php else: ?>
77 + <?php
78 + else: ?>
63 79 <span class="dashicons dashicons-admin-links"></span>
64 - <?php endif; ?>
80 + <?php
81 + endif; ?>
65 82 </label>
66 - <input type="url" name="param[link]" id="link"
67 - value="<?php echo esc_url( $link ); ?>">
83 + <input type="url" name="param[link]" id="link" value="<?php
84 + echo esc_url( $link ); ?>">
68 85 </div>
69 86
70 - <?php if ( ! empty( $shortcode ) ) : ?>
87 + <?php
88 + if ( ! empty( $shortcode ) ) : ?>
71 89 <div class="wowp-field has-addon border-default">
72 - <label for="shortcode" class="is-addon">
90 + <label for="shortcode" class="is-addon wowp-shortcode-copy">
73 91 <span class="dashicons dashicons-shortcode"></span>
74 92 </label>
75 - <input type="text" id="shortcode" readonly value="<?php echo esc_attr( $shortcode ); ?>">
93 + <input type="text" id="shortcode" readonly value="<?php
94 + echo esc_attr( $shortcode ); ?>">
76 95 </div>
77 - <?php endif; ?>
96 + <?php
97 + endif; ?>
78 98
79 99 </div>
80 100 </div>
101 +
81 102 <div class="major-publishing-actions" id="major-publishing-actions">
82 - <?php if ( ! empty( $default['id'] ) ): ?>
103 + <?php
104 + if ( ! empty( $default['id'] ) ): ?>
83 105 <div id="delete-action">
84 - <a class="submitdelete deletion"
85 - href="<?php echo esc_url( Link::remove( $default['id'] ) ); ?>">
86 - <?php esc_html_e( 'Delete', 'wpcoder' ); ?>
106 + <a class="submitdelete deletion" href="<?php
107 + echo esc_url( Link::remove( $default['id'] ) ); ?>">
108 + <?php
109 + esc_html_e( 'Delete', 'floating-button' ); ?>
87 110 </a>
88 111 </div>
89 - <?php endif; ?>
112 + <?php
113 + endif; ?>
90 114
91 115 <div id="publishing-action">
92 - <?php submit_button( null, 'primary', 'submit_settings', false ); ?>
116 + <?php
117 + submit_button( null, 'primary', 'submit_settings', false ); ?>
93 118 </div>
94 119 <div class="clear"></div>
95 120
96 121 </div>
97 122
123 +
98 124 </div>
99 125 </div>
100 126 </div>
127 +
128 +<?php