PluginProbe
Hide/Remove Metadata / 1.2
Hide/Remove Metadata v1.2
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, at partials/dashboard-display.php

92 lines 4.2 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 // Use nonce for verification.
28 wp_nonce_field( basename( __FILE__ ), 'hide_metadata_nounce' );
29 ?>
30 <div id="hide_metadata_main" class="hide-metadata-main">
31 <form method="post" action="options.php">
32 <?php settings_fields( 'hide-metadata-group' ); ?>
33 <?php
34 $settings = hide_metadata_get_options();
35 ?>
36 <div class="option-container">
37 <table class="form-table" bgcolor="white">
38 <tbody>
39 <tr>
40 <th>
41 <?php esc_html_e( 'Hide By', 'hide-metadata' ); ?>
42 </th>
43 <td>
44 <select name="hide_metadata_options[hide_by]" id="hide_metadata_options[hide_by]">
45 <option value="css" <?php echo selected( $settings['hide_by'], 'css', false ); ?> ><?php esc_html_e( 'CSS', 'hide-metadata' ); ?></option>
46 <option value="php" <?php echo selected( $settings['hide_by'], 'php', false ); ?> ><?php esc_html_e( 'PHP', 'hide-metadata' ); ?></option>
47 </select>
48 <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>
49 </td>
50 </tr>
51 <tr>
52 <th scope="row"><?php esc_html_e( 'Hide author', 'hide-metadata' ); ?></th>
53 <td>
54 <div class="module-header <?php echo $settings['hide_author'] ? 'active' : 'inactive'; ?>">
55 <div class="switch">
56 <input type="checkbox" id="hide_metadata_options[hide_author]" name="hide_metadata_options[hide_author]" class="shm-input-switch" rel="hide_author" <?php checked( true, $settings['hide_author'] ); ?> >
57 <label for="hide_metadata_options[hide_author]"></label>
58 </div>
59 </div>
60 </td>
61 </tr>
62 <tr>
63 <th scope="row"><?php esc_html_e( 'Hide published date', 'hide-metadata' ); ?></th>
64 <td>
65 <div class="module-header <?php echo $settings['hide_date'] ? 'active' : 'inactive'; ?>">
66 <div class="switch">
67 <input type="checkbox" id="hide_metadata_options[hide_date]" name="hide_metadata_options[hide_date]" class="shm-input-switch" rel="hide_date" <?php checked( true, $settings['hide_date'] ); ?> >
68 <label for="hide_metadata_options[hide_date]"></label>
69 </div>
70 </div>
71 </td>
72 </tr>
73
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