| @@ -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\WPCoder; | |
| 6 | +use WPCoder\WOW_Plugin; | |
| 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 = '[' . WPCoder::SHORTCODE . ' id="' . absint( $default['id'] ) . '"]'; | |
| 16 | + $shortcode = '[' . WOW_Plugin::SHORTCODE . ' id="' . absint( $default['id'] ) . '"]'; | |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | ?> |
| 20 | 20 | |
| @@ -20,10 +20,9 @@ | ||
| 20 | 20 | |
| 21 | 21 | <div class="postbox "> |
| 22 | 22 | <div class="postbox-header"> |
| 23 | 23 | <h2 class="hndle"> |
| 24 | - <?php | |
| 25 | - esc_html_e( 'Publish', 'wpcoder' ); ?> | |
| 24 | + <?php esc_html_e( 'Publish', 'wpcoder' ); ?> | |
| 26 | 25 | </h2> |
| 27 | 26 | </div> |
| 28 | 27 | |
| 29 | 28 | <div class="inside"> |
| @@ -32,97 +31,70 @@ | ||
| 32 | 31 | |
| 33 | 32 | <div id="minor-publishing"> |
| 34 | 33 | <div class="misc-pub-section wowp-sidebar-pub-section"> |
| 35 | 34 | |
| 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 | - | |
| 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> | |
| 46 | 39 | </div> |
| 47 | 40 | |
| 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> | |
| 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> | |
| 57 | 45 | </div> |
| 58 | 46 | |
| 59 | 47 | <div class="wowp-field has-addon border-default"> |
| 60 | 48 | <label for="tag" class="is-addon"><span class="dashicons dashicons-tag"></span></label> |
| 61 | - <input list="wowp-tags" type="text" name="tag" id="tag" value="<?php | |
| 62 | - echo esc_attr( $default['tag'] ); ?>"> | |
| 49 | + <input list="wowp-tags" type="text" name="tag" id="tag" | |
| 50 | + value="<?php echo esc_attr( $default['tag'] ); ?>"> | |
| 63 | 51 | <datalist id="wowp-tags"> |
| 64 | - <?php | |
| 65 | - DBManager::display_tags(); ?> | |
| 52 | + <?php DBManager::display_tags(); ?> | |
| 66 | 53 | </datalist> |
| 67 | 54 | </div> |
| 68 | 55 | |
| 69 | 56 | <div class="wowp-field has-addon border-default"> |
| 70 | 57 | <label for="link" class="is-addon"> |
| 71 | - <?php | |
| 72 | - if ( ! empty( $link ) ): ?> | |
| 73 | - <a href="<?php | |
| 74 | - echo esc_url( $link ); ?>" target="_blank"> | |
| 58 | + <?php if ( ! empty( $link ) ): ?> | |
| 59 | + <a href="<?php echo esc_url( $link ); ?>" target="_blank"> | |
| 75 | 60 | <span class="dashicons dashicons-admin-links"></span> |
| 76 | 61 | </a> |
| 77 | - <?php | |
| 78 | - else: ?> | |
| 62 | + <?php else: ?> | |
| 79 | 63 | <span class="dashicons dashicons-admin-links"></span> |
| 80 | - <?php | |
| 81 | - endif; ?> | |
| 64 | + <?php endif; ?> | |
| 82 | 65 | </label> |
| 83 | - <input type="url" name="param[link]" id="link" value="<?php | |
| 84 | - echo esc_url( $link ); ?>"> | |
| 66 | + <input type="url" name="param[link]" id="link" | |
| 67 | + value="<?php echo esc_url( $link ); ?>"> | |
| 85 | 68 | </div> |
| 86 | 69 | |
| 87 | - <?php | |
| 88 | - if ( ! empty( $shortcode ) ) : ?> | |
| 70 | + <?php if ( ! empty( $shortcode ) ) : ?> | |
| 89 | 71 | <div class="wowp-field has-addon border-default"> |
| 90 | - <label for="shortcode" class="is-addon wowp-shortcode-copy"> | |
| 72 | + <label for="shortcode" class="is-addon"> | |
| 91 | 73 | <span class="dashicons dashicons-shortcode"></span> |
| 92 | 74 | </label> |
| 93 | - <input type="text" id="shortcode" readonly value="<?php | |
| 94 | - echo esc_attr( $shortcode ); ?>"> | |
| 75 | + <input type="text" id="shortcode" readonly value="<?php echo esc_attr( $shortcode ); ?>"> | |
| 95 | 76 | </div> |
| 96 | - <?php | |
| 97 | - endif; ?> | |
| 77 | + <?php endif; ?> | |
| 98 | 78 | |
| 99 | 79 | </div> |
| 100 | 80 | </div> |
| 101 | - | |
| 102 | 81 | <div class="major-publishing-actions" id="major-publishing-actions"> |
| 103 | - <?php | |
| 104 | - if ( ! empty( $default['id'] ) ): ?> | |
| 82 | + <?php if ( ! empty( $default['id'] ) ): ?> | |
| 105 | 83 | <div id="delete-action"> |
| 106 | - <a class="submitdelete deletion" href="<?php | |
| 107 | - echo esc_url( Link::remove( $default['id'] ) ); ?>"> | |
| 108 | - <?php | |
| 109 | - esc_html_e( 'Delete', 'floating-button' ); ?> | |
| 84 | + <a class="submitdelete deletion" | |
| 85 | + href="<?php echo esc_url( Link::remove( $default['id'] ) ); ?>"> | |
| 86 | + <?php esc_html_e( 'Delete', 'wpcoder' ); ?> | |
| 110 | 87 | </a> |
| 111 | 88 | </div> |
| 112 | - <?php | |
| 113 | - endif; ?> | |
| 89 | + <?php endif; ?> | |
| 114 | 90 | |
| 115 | 91 | <div id="publishing-action"> |
| 116 | - <?php | |
| 117 | - submit_button( null, 'primary', 'submit_settings', false ); ?> | |
| 92 | + <?php submit_button( null, 'primary', 'submit_settings', false ); ?> | |
| 118 | 93 | </div> |
| 119 | 94 | <div class="clear"></div> |
| 120 | 95 | |
| 121 | 96 | </div> |
| 122 | 97 | |
| 123 | - | |
| 124 | 98 | </div> |
| 125 | 99 | </div> |
| 126 | 100 | </div> |
| 127 | - | |
| 128 | -<?php | |