PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.8.9
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.8.9
7.8.14 7.8.14.1 7.8.13 7.8.13.1 trunk 3.0 3.1 3.1.1 3.1.2 3.1.3 3.1.4 4.3.2 4.4.4 4.4.5 4.4.5.1 4.4.5.4 4.6 4.6.1.1 4.6.1.4 4.7.0.2 4.7.0.3 4.7.0.7 4.7.0.9 4.7.1.0 4.7.1.1 4.8.0.0 5.0.0 5.0.1 5.0.1.1 5.0.1.2 5.1 5.1.1 5.1.2 5.1.3 5.1.3.1 5.1.3.2 5.1.4 5.1.5 6.0 6.0.1 6.0.2 6.0.3 6.0.4.2 6.0.5 6.0.6.1 6.0.7 6.0.8.1 6.0.9 7.0.0.1 7.0.2 7.0.3 7.0.4 7.1.0 7.1.1 7.2.0 7.2.1 7.3.0 7.3.1 7.3.3 7.3.5 7.3.6 7.3.7 7.4.0 7.4.1 7.4.11 7.4.13 7.4.13.1 7.4.2 7.4.3 7.4.4 7.4.5 7.4.5.1 7.4.5.2 7.4.6 7.4.7 7.5.0 7.6.0 7.6.1 7.6.3 7.6.4 7.6.6 7.7.0 7.7.1 7.8.0 7.8.1 7.8.10 7.8.10.1 7.8.10.2 7.8.11 7.8.12 7.8.12.1 7.8.2 7.8.3 7.8.4 7.8.5 7.8.6 7.8.7 7.8.8 7.8.9 7.8.9.1 7.8.9.2 7.8.9.3
wordpress-popup / views / admin / dashboard / templates / widget-modules.php
wordpress-popup / views / admin / dashboard / templates Last commit date
widget-modules.php 9 months ago widget-pages.php 5 years ago
widget-modules.php
152 lines
1 <?php
2 /**
3 * Template for the widgets that display the modules of each module type.
4 *
5 * @package Hustle
6 * @since 4.0.0
7 */
8
9 ?>
10 <div class="sui-box">
11
12 <div class="sui-box-header">
13
14 <h2 class="sui-box-title">
15 <span class="sui-icon-<?php echo esc_attr( $widget_type ); ?>" aria-hidden="true"></span>
16 <?php echo esc_html( $widget_name ); ?>
17 </h2>
18
19 </div>
20
21 <div class="sui-box-body">
22
23 <p><?php echo esc_html( $description ); ?></p>
24
25 <?php if ( count( $modules ) ) { ?>
26
27 </div>
28
29 <table class="sui-table sui-table-flushed hui-table-dashboard">
30
31 <thead>
32
33 <tr>
34
35 <th><?php esc_html_e( 'Name', 'hustle' ); ?></th>
36 <th class="hui-status"><?php esc_html_e( 'Status', 'hustle' ); ?></th>
37
38 </tr>
39
40 </thead>
41
42 <tbody>
43
44 <?php
45 foreach ( $modules as $module ) {
46
47 $status_class = 'draft';
48 $status_name = esc_html__( 'Draft', 'hustle' );
49
50 if ( $module->active ) {
51 $status_class = 'published';
52 $status_name = esc_html__( 'Published', 'hustle' );
53 }
54 ?>
55
56 <tr>
57
58 <td class="sui-table-item-title"><?php echo esc_attr( $module->module_name ); ?></td>
59
60 <td class="hui-status">
61
62 <div class="hui-status-elements">
63
64 <span class="sui-status-dot sui-<?php echo esc_attr( $status_class ); ?> sui-tooltip"
65 data-tooltip="<?php echo esc_html( $status_name ); ?>">
66 <span aria-hidden="true"></span>
67 </span>
68 <?php
69 $stats_url = add_query_arg(
70 array(
71 'page' => $module->get_listing_page(),
72 'view-stats' => $module->module_id,
73 ),
74 'admin.php'
75 );
76 ?>
77 <a href="<?php echo esc_url( $stats_url ); ?>"
78 class="sui-button-icon sui-tooltip"
79 data-tooltip="<?php esc_html_e( 'View Stats', 'hustle' ); ?>"
80 aria-label="<?php esc_attr_e( 'View Stats', 'hustle' ); ?>">
81 <span class="sui-icon-graph-line" aria-hidden="true"></span>
82 </a>
83
84 <div class="sui-dropdown">
85 <?php
86 // Actions.
87 $this->render(
88 'admin/commons/sui-listing/elements/actions',
89 array(
90 'module' => $module,
91 'dashboard' => true,
92 'smallcaps_singular' => $smallcaps_singular,
93 'capitalize_singular' => $capitalize_singular,
94 )
95 );
96 ?>
97 </div>
98
99 </div>
100
101 </td>
102
103 </tr>
104
105 <?php } ?>
106
107 </tbody>
108
109 </table>
110
111 <div class="sui-box-footer">
112
113 <?php } ?>
114
115 <?php $query_array = array( 'page' => Hustle_Data::get_listing_page_by_module_type( $widget_type ) ); ?>
116
117 <?php if ( $capability['hustle_create'] ) { ?>
118 <a
119 href="
120 <?php
121 if ( ! Hustle_Data::was_free_limit_reached( $widget_type ) ) {
122 $args = array_merge( $query_array, array( 'create-module' => 'true' ) );
123 } else {
124 $args = array_merge( $query_array, array( 'requires-pro' => 'true' ) );
125 }
126 echo esc_url( add_query_arg( $args, 'admin.php' ) );
127 ?>
128 "
129 class="sui-button sui-button-blue"
130 >
131 <span class="sui-icon-plus" aria-hidden="true"></span>
132 <?php esc_html_e( 'Create', 'hustle' ); ?>
133 </a>
134 <?php } ?>
135
136 <?php if ( count( $modules ) ) : ?>
137
138 <div class="sui-actions-right">
139 <p><small><strong>
140 <a href="<?php echo esc_url( add_query_arg( $query_array, 'admin.php' ) ); ?>" style="color: #888888;">
141 <?php /* translators: widget's module type */ ?>
142 <?php printf( esc_html__( 'View all %s', 'hustle' ), esc_html( strtolower( $widget_name ) ) ); ?>
143 </a>
144 </strong></small></p>
145 </div>
146
147 <?php endif; ?>
148
149 </div>
150
151 </div>
152