# wp-coder/3.2/includes/pages/sidebar.php

WP Coder – Insert &amp; Manage Code Snippets, version 3.2. 129 lines.

- Page: https://pluginprobe.com/plugins/wp-coder/3.2/code/includes/pages/sidebar.php
- Raw: https://pluginprobe.com/plugins/wp-coder/3.2/raw/includes/pages/sidebar.php
- Modified: 2023-11-14T11:04:22+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/wp-coder/3.2/code/includes/pages/sidebar.php#L10-L20`.

```php
<?php

use WPCoder\Dashboard\DBManager;
use WPCoder\Dashboard\Field;
use WPCoder\Dashboard\Link;
use WPCoder\WPCoder;

defined( 'ABSPATH' ) || exit;

$default = Field::getDefault();

$link = ! empty( $default['param']['link'] ) ? $default['param']['link'] : '';

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

?>

<div class="postbox ">
    <div class="postbox-header">
        <h2 class="hndle">
			<?php
			esc_html_e( 'Publish', 'wpcoder' ); ?>
        </h2>
    </div>

    <div class="inside">

        <div class="submitbox wowp-sidebar" id="submitpost">

            <div id="minor-publishing">
                <div class="misc-pub-section wowp-sidebar-pub-section">

                    <div class="wowp-field has-checkbox">
                        <label>
                            <span class="label"><?php
	                            esc_html_e( 'Status', 'wpcoder' ); ?></span>
							<?php
							Field::checkbox( 'status' ); ?>
                            <span><?php
								esc_html_e( 'Deactivate', 'wpcoder' ); ?></span>
                        </label>

                    </div>

                    <div class="wowp-field has-checkbox">
                        <label>
                            <span class="label"><?php
	                            esc_html_e( 'Test mode', 'wpcoder' ); ?></span>
							<?php
							Field::checkbox( 'mode' ); ?>
                            <span><?php
								esc_html_e( 'Activate', 'wpcoder' ); ?></span>
                        </label>
                    </div>

                    <div class="wowp-field has-addon border-default">
                        <label for="tag" class="is-addon"><span class="dashicons dashicons-tag"></span></label>
                        <input list="wowp-tags" type="text" name="tag" id="tag" value="<?php
						echo esc_attr( $default['tag'] ); ?>">
                        <datalist id="wowp-tags">
							<?php
							DBManager::display_tags(); ?>
                        </datalist>
                    </div>

                    <div class="wowp-field has-addon border-default">
                        <label for="link" class="is-addon">
							<?php
							if ( ! empty( $link ) ): ?>
                                <a href="<?php
								echo esc_url( $link ); ?>" target="_blank">
                                    <span class="dashicons dashicons-admin-links"></span>
                                </a>
							<?php
							else: ?>
                                <span class="dashicons dashicons-admin-links"></span>
							<?php
							endif; ?>
                        </label>
                        <input type="url" name="param[link]" id="link" value="<?php
						echo esc_url( $link ); ?>">
                    </div>

					<?php
					if ( ! empty( $shortcode ) ) : ?>
                        <div class="wowp-field has-addon border-default">
                            <label for="shortcode" class="is-addon wowp-shortcode-copy">
                                <span class="dashicons dashicons-shortcode"></span>
                            </label>
                            <input type="text" id="shortcode" readonly value="<?php
							echo esc_attr( $shortcode ); ?>">
                        </div>
					<?php
					endif; ?>

                </div>
            </div>

            <div class="major-publishing-actions" id="major-publishing-actions">
				<?php
				if ( ! empty( $default['id'] ) ): ?>
                    <div id="delete-action">
                        <a class="submitdelete deletion" href="<?php
						echo esc_url( Link::remove( $default['id'] ) ); ?>">
							<?php
							esc_html_e( 'Delete', 'floating-button' ); ?>
                        </a>
                    </div>
				<?php
				endif; ?>

                <div id="publishing-action">
					<?php
					submit_button( null, 'primary', 'submit_settings', false ); ?>
                </div>
                <div class="clear"></div>

            </div>


        </div>
    </div>
</div>

<?php

```
