PluginProbe
Hide/Remove Metadata / 1.2.7
Hide/Remove Metadata v1.2.7
trunk 1.0.0 1.0.1 1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.1
hide-metadata / partials / dashboard-display.php

dashboard-display.php in Hide/Remove Metadata 1.2.7, at partials/dashboard-display.php

92 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Provide a admin area view for the plugin
5 *
6 * This file is used to markup the admin-facing aspects of the plugin.
7 *
8 * @link https://catchplugins.com/plugins/hide-metadata
9 * @since 1.0.0
10 *
11 * @package Hide_Metadata
12 * @subpackage Hide_Metadata/partials
13 */
14 ?>
15
16 <div id="hide-metadata">
17 <div class="content-wrapper">
18 <div class="header">
19 <h2><?php esc_html_e( 'Settings', 'hide-metadata' ); ?></h2>
20 </div> <!-- .Header -->
21 <div class="content">
22 <?php if ( isset( $_GET['settings-updated'] ) ) { ?>
23 <div id="message" class="notice updated fade">
24 <p><strong><?php esc_html_e( 'Plugin Options Saved.', 'hide-metadata' ); ?></strong></p>
25 </div>
26 <?php } ?>
27 <?php
28 // Use nonce for verification.
29 wp_nonce_field( HIDE_METADATA_BASENAME, 'hide_metadata_nonce' );
30 ?>
31 <div id="hide_metadata_main" class="hide-metadata-main">
32 <form method="post" action="options.php">
33 <?php settings_fields( 'hide-metadata-group' ); ?>
34 <?php
35 $settings = hide_metadata_get_options();
36 ?>
37 <div class="option-container">
38 <table class="form-table" bgcolor="white">
39 <tbody>
40 <tr>
41 <th>
42 <?php esc_html_e( 'Hide By', 'hide-metadata' ); ?>
43 </th>
44 <td>
45 <select name="hide_metadata_options[hide_by]" id="hide_metadata_options[hide_by]">
46 <option value="css" <?php echo selected( $settings['hide_by'], 'css', false ); ?> ><?php esc_html_e( 'CSS', 'hide-metadata' ); ?></option>
47 <option value="php" <?php echo selected( $settings['hide_by'], 'php', false ); ?> ><?php esc_html_e( 'PHP', 'hide-metadata' ); ?></option>
48 </select>
49 <span class="dashicons dashicons-info tooltip" title="<?php esc_html_e( 'Whether you want to hide it with CSS only or you remove it from the Page/Code.', 'hide-metadata' ); ?>"></span>
50 </td>
51 </tr>
52 <tr>
53 <th scope="row"><?php esc_html_e( 'Hide author', 'hide-metadata' ); ?></th>
54 <td>
55 <div class="module-header <?php echo $settings['hide_author'] ? 'active' : 'inactive'; ?>">
56 <div class="switch">
57 <input type="checkbox" id="hide_metadata_options[hide_author]" value="1" name="hide_metadata_options[hide_author]" class="shm-input-switch" rel="hide_author" <?php checked( 1, $settings['hide_author'] ); ?> >
58 <label for="hide_metadata_options[hide_author]"></label>
59 </div>
60 </div>
61 </td>
62 </tr>
63 <tr>
64 <th scope="row"><?php esc_html_e( 'Hide published date', 'hide-metadata' ); ?></th>
65 <td>
66 <div class="module-header <?php echo $settings['hide_date'] ? 'active' : 'inactive'; ?>">
67 <div class="switch">
68 <input type="checkbox" id="hide_metadata_options[hide_date]" value="1" name="hide_metadata_options[hide_date]" class="shm-input-switch" rel="hide_date" <?php checked( 1, $settings['hide_date'] ); ?> >
69 <label for="hide_metadata_options[hide_date]"></label>
70 </div>
71 </div>
72 </td>
73 </tr>
74 <tr>
75 <th scope="row"><?php esc_html_e( 'Reset Options', 'hide-metadata' ); ?></th>
76 <td>
77 <?php
78 echo '<input name="hide_metadata_options[reset]" id="hide_metadata_options[reset]" type="checkbox" value="1" class="hide_metadata_options[reset]" />' . esc_html__( 'Check to reset', 'hide-metadata' );
79 ?>
80 <span class="dashicons dashicons-info tooltip" title="<?php esc_html_e( 'Caution: Reset all settings to default.', 'hide-metadata' ); ?>"></span>
81 </td>
82 </tr>
83 </tbody>
84 </table>
85 <?php submit_button( esc_html__( 'Save Changes', 'hide-metadata' ) ); ?>
86 </div><!-- .option-container -->
87 </form>
88 </div><!-- sticky_main -->
89 </div><!-- .content -->
90 </div><!-- .content-wrapper -->
91 </div><!---hide-metadata-->
92