| @@ -9,9 +9,9 @@ | ||
| 9 | 9 | |
| 10 | 10 | $link = $options['link'] ?? ''; |
| 11 | 11 | $tag = $options['tag'] ?? ''; |
| 12 | 12 | $status = ! empty( $options['status'] ) ? 'true' : 'false'; |
| 13 | -$test = ! empty( $options['mode'] ) ? 'true' : 'false'; | |
| 13 | +$test = ! empty( $options['mode'] ) ? 'true' : 'false'; | |
| 14 | 14 | |
| 15 | 15 | $shortcode = ''; |
| 16 | 16 | if ( ! empty( $options['id'] ) ) { |
| 17 | 17 | $shortcode = '[' . WOWP_Plugin::SHORTCODE . ' id="' . absint( $options['id'] ) . '"]'; |
| @@ -18,103 +18,81 @@ | ||
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | ?> |
| 21 | 21 | |
| 22 | - <div class="wpie-sidebar"> | |
| 22 | +<div class="wpie-sidebar"> | |
| 23 | 23 | |
| 24 | - <h2 class="wpie-title"><?php esc_html_e( 'Publish', 'float-menu' ); ?></h2> | |
| 25 | - <div class="wpie-fields__box"> | |
| 24 | + <h2 class="wpie-title"><?php esc_html_e( 'Publish', 'float-menu' ); ?></h2> | |
| 25 | + <div class="wpie-fields__box"> | |
| 26 | 26 | |
| 27 | - <div class="wpie-field"> | |
| 28 | - <div class="wpie-field__title"><?php esc_html_e( 'Status', 'float-menu' ); ?></div> | |
| 29 | - <label class="wpie-field__label"> | |
| 30 | - <input type="checkbox" name="status" value="true" <?php checked( "true", $status ); ?>> | |
| 31 | - <span class=""><?php esc_html_e( 'Deactivate', 'float-menu' ); ?></span> | |
| 32 | - </label> | |
| 33 | - </div> | |
| 27 | + <div class="wpie-field"> | |
| 28 | + <div class="wpie-field__title"><?php esc_html_e( 'Status', 'float-menu' ); ?></div> | |
| 29 | + <label class="wpie-field__label"> | |
| 30 | + <input type="checkbox" name="status" value="true" <?php checked( "true", $status ); ?>> | |
| 31 | + <span class=""><?php esc_html_e( 'Deactivate', 'float-menu' ); ?></span> | |
| 32 | + </label> | |
| 33 | + </div> | |
| 34 | 34 | |
| 35 | - <div class="wpie-field"> | |
| 36 | - <div class="wpie-field__title"><?php esc_html_e( 'Test mode', 'float-menu' ); ?></div> | |
| 37 | - <label class="wpie-field__label"> | |
| 38 | - <input type="checkbox" name="mode" value="true" <?php checked( "true", $test ); ?>> | |
| 39 | - <span class=""><?php esc_html_e( 'Activate', 'float-menu' ); ?></span> | |
| 40 | - </label> | |
| 41 | - </div> | |
| 35 | + <div class="wpie-field"> | |
| 36 | + <div class="wpie-field__title"><?php esc_html_e( 'Test mode', 'float-menu' ); ?></div> | |
| 37 | + <label class="wpie-field__label"> | |
| 38 | + <input type="checkbox" name="mode" value="true" <?php checked( "true", $test ); ?>> | |
| 39 | + <span class=""><?php esc_html_e( 'Activate', 'float-menu' ); ?></span> | |
| 40 | + </label> | |
| 41 | + </div> | |
| 42 | 42 | |
| 43 | - <div class="wpie-field"> | |
| 44 | - <label class="wpie-field__label has-icon"> | |
| 45 | - <span class="wpie-icon wpie_icon-tag"></span> | |
| 46 | - <input list="wpie-tags" type="text" name="tag" id="tag" | |
| 47 | - value="<?php echo esc_attr( $tag ); ?>"> | |
| 48 | - <datalist id="wpie-tags"> | |
| 49 | - <?php DBManager::display_tags(); ?> | |
| 50 | - </datalist> | |
| 51 | - </label> | |
| 52 | - </div> | |
| 53 | - | |
| 54 | - <div class="wpie-field"> | |
| 55 | - <label class="wpie-field__label has-icon"> | |
| 56 | - <?php if ( ! empty( $link ) ): ?> | |
| 57 | - <a href="<?php echo esc_url( $link ); ?>" target="_blank"> | |
| 58 | - <span class="has-tooltip on-right is-pointer" data-tooltip="Open Link"><span | |
| 59 | - class="wpie-icon wpie_icon-link"></span></span> | |
| 60 | - </a> | |
| 61 | - <?php else: ?> | |
| 62 | - <span class="wpie-icon wpie_icon-link"></span> | |
| 63 | - <?php endif; ?> | |
| 64 | - <input type="url" name="param[link]" id="link" value="<?php echo esc_url( $link ); ?>"> | |
| 65 | - </label> | |
| 66 | - </div> | |
| 67 | - | |
| 68 | - <?php if ( ! empty( $shortcode ) ) : ?> | |
| 69 | - <div class="wpie-field"> | |
| 70 | - <label class="wpie-field__label has-icon"> | |
| 71 | - <span class="has-tooltip on-right is-pointer can-copy" data-tooltip="Copy"><span | |
| 72 | - class="dashicons dashicons-shortcode"></span></span> | |
| 73 | - <input type="text" id="shortcode" value="<?php echo esc_attr( $shortcode ); ?>" readonly> | |
| 74 | - </label> | |
| 75 | - </div> | |
| 76 | - <?php endif; ?> | |
| 77 | - | |
| 43 | + <div class="wpie-field"> | |
| 44 | + <label class="wpie-field__label has-icon"> | |
| 45 | + <span class="dashicons dashicons-tag"></span> | |
| 46 | + <input list="wpie-tags" type="text" name="tag" id="tag" | |
| 47 | + value="<?php echo esc_attr( $tag ); ?>"> | |
| 48 | + <datalist id="wpie-tags"> | |
| 49 | + <?php DBManager::display_tags(); ?> | |
| 50 | + </datalist> | |
| 51 | + </label> | |
| 78 | 52 | </div> |
| 79 | 53 | |
| 80 | - <div class="wpie-actions__box"> | |
| 81 | - | |
| 82 | - <div class="wpie-action__link"> | |
| 83 | - <?php if ( ! empty( $options['id'] ) ): ?> | |
| 84 | - <a class="wpie-link-delete" | |
| 85 | - href="<?php echo esc_url( Link::remove( $options['id'] ) ); ?>"> | |
| 86 | - <?php esc_html_e( 'Delete', 'float-menu' ); ?> | |
| 54 | + <div class="wpie-field"> | |
| 55 | + <label class="wpie-field__label has-icon"> | |
| 56 | + <?php if ( ! empty( $link ) ): ?> | |
| 57 | + <a href="<?php echo esc_url( $link ); ?>" target="_blank"> | |
| 58 | + <span class="dashicons dashicons-admin-links"></span> | |
| 87 | 59 | </a> |
| 60 | + <?php else: ?> | |
| 61 | + <span class="dashicons dashicons-admin-links"></span> | |
| 88 | 62 | <?php endif; ?> |
| 89 | - </div> | |
| 63 | + <input type="url" name="link" id="link" value="<?php echo esc_url( $link ); ?>"> | |
| 64 | + </label> | |
| 65 | + </div> | |
| 90 | 66 | |
| 91 | - <div class="wpie-action__btn"> | |
| 92 | - <span class="spinner"></span> | |
| 93 | - <?php submit_button( null, 'primary', 'submit_settings', false ); ?> | |
| 67 | + <?php if ( ! empty( $shortcode ) ) : ?> | |
| 68 | + <div class="wpie-field"> | |
| 69 | + <label class="wpie-field__label has-icon"> | |
| 70 | + <span class="dashicons dashicons-shortcode"></span> | |
| 71 | + <input type="text" id="shortcode" value="<?php echo esc_attr( $shortcode ); ?>" readonly> | |
| 72 | + </label> | |
| 94 | 73 | </div> |
| 95 | - </div> | |
| 74 | + <?php endif; ?> | |
| 96 | 75 | |
| 97 | 76 | </div> |
| 98 | 77 | |
| 99 | -<?php if ( !class_exists( '\FloatMenuLite\WOWP_PRO' ) ) : ?> | |
| 100 | - <div class="wpie-sidebar wpie-sidebar-features"> | |
| 101 | - <div class="wpie-item_heading"> | |
| 102 | - <span class="wpie-item_heading_icon"> | |
| 103 | - <span class="wpie-icon wpie_icon-rocket wpie-color-danger"></span> | |
| 104 | - </span> | |
| 105 | - <span class="wpie-item_heading_label"> | |
| 106 | - <?php esc_html_e( 'PRO VERSION', 'float-menu' ); ?> | |
| 107 | - </span> | |
| 108 | - <span class="wpie-item_heading_type"></span> | |
| 78 | + <div class="wpie-actions__box"> | |
| 79 | + | |
| 80 | + <div class="wpie-action__link"> | |
| 81 | + <?php if ( ! empty( $options['id'] ) ): ?> | |
| 82 | + <a class="wpie-link-delete" | |
| 83 | + href="<?php echo esc_url( Link::remove( $options['id'] ) ); ?>"> | |
| 84 | + <?php esc_html_e( 'Delete', 'float-menu' ); ?> | |
| 85 | + </a> | |
| 86 | + <?php endif; ?> | |
| 109 | 87 | </div> |
| 110 | 88 | |
| 111 | - <div class="wpie-buttons"> | |
| 112 | - <a href="<?php echo esc_url( WOWP_Plugin::info( 'demo' ) ); ?>" target="_blank" class="wpie-button is-demo">Demo</a> | |
| 113 | - <a href="<?php echo esc_url( WOWP_Plugin::info( 'pro' ) ); ?>" target="_blank" class="wpie-button is-pro">GET | |
| 114 | - PRO</a> | |
| 89 | + <div class="wpie-action__btn"> | |
| 90 | + <?php submit_button( null, 'primary', 'submit_settings', false ); ?> | |
| 115 | 91 | </div> |
| 116 | 92 | </div> |
| 117 | 93 | |
| 94 | +</div> | |
| 95 | + | |
| 118 | 96 | <?php |
| 119 | -endif; | |
| 97 | +require_once plugin_dir_path( __FILE__ ) . 'pro-plugin.php'; | |
| 120 | 98 | |