| @@ -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,66 +32,90 @@ | ||
| 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,4 +122,40 @@ | ||
| 97 | 122 | |
| 98 | 123 | </div> |
| 99 | 124 | </div> |
| 100 | 125 | </div> |
| 126 | + | |
| 127 | + <div id="download_categorydiv" class="postbox wowp-feature-box"> | |
| 128 | + <div class="postbox-header"> | |
| 129 | + <h2 class="hndle">PRO Functions</h2> | |
| 130 | + </div> | |
| 131 | + <div class="inside"> | |
| 132 | + | |
| 133 | + <div class="submitbox wowp-sidebar" id="wpcoder-template"> | |
| 134 | + | |
| 135 | + <div class="misc-pub-section wowp-sidebar-pub-section"> | |
| 136 | + <dl class="wowp-feature"> | |
| 137 | + <dt class="wowp-feature-title">Create Custom templates</dt> | |
| 138 | + <dd class="wowp-feature-desc">Design custom templates for pages, posts, categories, and more, infusing your unique code for brand-aligned layouts.</dd> | |
| 139 | + | |
| 140 | + <dt class="wowp-feature-title">Dequeue CSS and JS</dt> | |
| 141 | + <dd class="wowp-feature-desc">Increase site speed by adding only selected styles/scripts and removing redundant resources from the queue to optimize user experience.</dd> | |
| 142 | + | |
| 143 | + <dt class="wowp-feature-title">Conditional Logic</dt> | |
| 144 | + <dd class="wowp-feature-desc">Utilize our Conditional Logic rule to dictate where your code will work: Pages Rules, Devices Rules, Scheduled, Browsers Rules, Users Rules, Language Rules</dd> | |
| 145 | + | |
| 146 | + <dt class="wowp-feature-title">Uses extra Tools</dt> | |
| 147 | + <dd class="wowp-feature-desc">Enable Style and Script on the Login Page, Enable Maintenance Mode, Enable Extra Icon Enable Breadcrumbs</dd> | |
| 148 | + | |
| 149 | + <dt class="wowp-feature-title">Shortcode Attributes</dt> | |
| 150 | + <dd class="wowp-feature-desc">Add custom attributes for shortcodes. Embed these attributes into your HTML code for tailored content display.</dd> | |
| 151 | + | |
| 152 | + <dt class="wowp-feature-title minimal-price">Minimal Price</dt> | |
| 153 | + <dd class="wowp-feature-desc">Get PRO function for minimal cost 👍</dd> | |
| 154 | + </dl> | |
| 155 | + <a href="https://wpcoder.pro/" target="_blank">Read More about PRO</a> | |
| 156 | + </div> | |
| 157 | + </div> | |
| 158 | + </div> | |
| 159 | + </div> | |
| 160 | + | |
| 161 | +<?php | |