# float-menu/7.0.4/admin/settings/sidebar.php

Float menu – awesome floating side menu, version 7.0.4. 99 lines.

- Page: https://pluginprobe.com/plugins/float-menu/7.0.4/code/admin/settings/sidebar.php
- Raw: https://pluginprobe.com/plugins/float-menu/7.0.4/raw/admin/settings/sidebar.php
- Modified: 2025-03-19T12:51:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/float-menu/7.0.4/code/admin/settings/sidebar.php#L10-L20`.

```php
<?php

use FloatMenuLite\Admin\DBManager;
use FloatMenuLite\Admin\Link;
use FloatMenuLite\Admin\Settings;
use FloatMenuLite\WOWP_Plugin;

defined( 'ABSPATH' ) || exit;

$link   = $options['link'] ?? '';
$tag    = $options['tag'] ?? '';
$status = ! empty( $options['status'] ) ? 'true' : 'false';
$test = ! empty( $options['mode'] ) ? 'true' : 'false';

$shortcode = '';
if ( ! empty( $options['id'] ) ) {
	$shortcode = '[' . WOWP_Plugin::SHORTCODE . ' id="' . absint( $options['id'] ) . '"]';
}

?>

<div class="wpie-sidebar">

    <h2 class="wpie-title"><?php esc_html_e( 'Publish', 'float-menu' ); ?></h2>
    <div class="wpie-fields__box">

        <div class="wpie-field">
            <div class="wpie-field__title"><?php esc_html_e( 'Status', 'float-menu' ); ?></div>
            <label class="wpie-field__label">
                <input type="checkbox" name="status" value="true" <?php checked( "true", $status ); ?>>
                <span class=""><?php esc_html_e( 'Deactivate', 'float-menu' ); ?></span>
            </label>
        </div>

        <div class="wpie-field">
            <div class="wpie-field__title"><?php esc_html_e( 'Test mode', 'float-menu' ); ?></div>
            <label class="wpie-field__label">
                <input type="checkbox" name="mode" value="true" <?php checked( "true", $test ); ?>>
                <span class=""><?php esc_html_e( 'Activate', 'float-menu' ); ?></span>
            </label>
        </div>

        <div class="wpie-field">
            <label class="wpie-field__label has-icon">
                <span class="wpie-icon wpie_icon-tag"></span>
                <input list="wpie-tags" type="text" name="tag" id="tag"
                       value="<?php echo esc_attr( $tag ); ?>">
                <datalist id="wpie-tags">
					<?php DBManager::display_tags(); ?>
                </datalist>
            </label>
        </div>

        <div class="wpie-field">
            <label class="wpie-field__label has-icon">
				<?php if ( ! empty( $link ) ): ?>
                    <a href="<?php echo esc_url( $link ); ?>" target="_blank">
                        <span class="has-tooltip on-right is-pointer" data-tooltip="Open Link"><span class="wpie-icon wpie_icon-link"></span></span>
                    </a>
				<?php else: ?>
                    <span class="wpie-icon wpie_icon-link"></span>
				<?php endif; ?>
                <input type="url" name="link" id="link" value="<?php echo esc_url( $link ); ?>">
            </label>
        </div>

		<?php if ( ! empty( $shortcode ) ) : ?>
            <div class="wpie-field">
                <label class="wpie-field__label has-icon">
                    <span class="has-tooltip on-right is-pointer can-copy" data-tooltip="Copy"><span class="dashicons dashicons-shortcode" ></span></span>
                    <input type="text" id="shortcode" value="<?php echo esc_attr( $shortcode ); ?>" readonly>
                </label>
            </div>
		<?php endif; ?>

    </div>

    <div class="wpie-actions__box">

        <div class="wpie-action__link">
			<?php if ( ! empty( $options['id'] ) ): ?>
                <a class="wpie-link-delete"
                   href="<?php echo esc_url( Link::remove( $options['id'] ) ); ?>">
					<?php esc_html_e( 'Delete', 'float-menu' ); ?>
                </a>
			<?php endif; ?>
        </div>

        <div class="wpie-action__btn">
            <span class="spinner"></span>
			<?php submit_button( null, 'primary', 'submit_settings', false ); ?>
        </div>
    </div>

</div>

<?php
require_once plugin_dir_path( __FILE__ ) . 'pro-plugin.php';

```
