PluginProbe
Essential Widgets / 1.3
Essential Widgets v1.3
3.2.1 3.3 3.2 trunk 1.0.0 1.0.1 1.1 1.2 1.2.1 1.2.2 1.3 1.4 1.4.1 1.5 1.6 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.8 1.9 2.0 2.1 2.2 All 31 releases
essential-widgets / admin / partials / dashboard-display.php

dashboard-display.php in Essential Widgets 1.3, at admin/partials/dashboard-display.php

50 lines 2.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
9 * @since 1.0.0
10 *
11 * @package Essential_Widgets
12 * @subpackage Essential_Widgets/admin/partials
13 */
14 ?>
15
16 <!-- This file should primarily consist of HTML with a little bit of PHP. -->
17
18 <div id="essential-widgets" class="ew-main">
19 <div class="content-wrapper">
20 <div class="header">
21 <h2><?php esc_html_e( 'Settings', 'essential-widgets' ); ?></h2>
22 </div> <!-- .Header -->
23 <div class="content">
24
25 <p class="info">
26 <span class="dashicons dashicons-info"></span> <?php esc_html_e( 'Switch the widgets On/Off as necessary in the section below.', 'essential-widgets' ); ?> <br />
27 <a class="" href="<?php echo esc_url( admin_url( 'widgets.php' ) ); ?>"><?php esc_html_e( 'Click here to manage the widgets', 'essential-widgets' ); ?></a>
28 </p>
29
30 <div class="module-container ew-options">
31 <?php
32 $options = essential_widgets_get_options( 'essential_widgets_options' );
33 $widget_list = essential_widgets_list();
34 foreach ( $widget_list as $key => $value ) :
35 ?>
36 <div id="module-<?php echo $key; ?>" class="catch-modules">
37 <div class="module-header <?php echo $options[$key] ? 'active' : 'inactive'; ?>">
38 <h3 class="module-title"><?php echo $value; ?></h3>
39 <div class="switch">
40 <input type="checkbox" id="<?php echo $key; ?>" class="input-switch" rel="<?php echo $key; ?>" <?php checked( true, $options[$key] ); ?> >
41 <label for="<?php echo $key; ?>"></label>
42 </div>
43 <div class="loader"></div>
44 </div><!-- .module-header -->
45 </div><!-- .catch-modules -->
46 <?php endforeach; ?>
47 </div><!-- .module-container -->
48 </div><!-- .content -->
49 </div><!-- .content-wrapper -->
50 </div> <!-- .ect-main-->