busiest-day-of-week.blade.php
11 months ago
busiest-time-of-day.blade.php
11 months ago
layout.blade.php
11 months ago
line-chart.blade.php
11 months ago
map.blade.php
11 months ago
new-sessions.blade.php
11 months ago
pie-chart.blade.php
11 months ago
quick-stats.blade.php
11 months ago
recent-conversions.blade.php
11 months ago
recent-views.blade.php
11 months ago
top-ten.blade.php
11 months ago
layout.blade.php
37 lines
| 1 | @php /** @var \IAWP\Env $env */ @endphp |
| 2 | @php /** @var \IAWP\Overview\Modules\Module $module */ @endphp |
| 3 | @php /** @var bool $is_loaded */ @endphp |
| 4 | @php /** @var bool $is_empty */ @endphp |
| 5 | @php /** @var ?array $dataset */ @endphp |
| 6 | |
| 7 | <div class="iawp-module <?php echo $module->is_full_width() ? 'full-width' : ''; ?>" |
| 8 | data-controller="module" |
| 9 | data-module-module-id-value="<?php echo esc_attr($module->id()); ?>" |
| 10 | data-module-has-dataset-value="<?php echo $module->has_dataset() ? 'true' : 'false'; ?>" |
| 11 | > |
| 12 | <header class="module-header"> |
| 13 | <div class="module-icon"><?php |
| 14 | echo iawp_blade()->run('icons.overview.' . $module->module_type()); ?> |
| 15 | </div> |
| 16 | <div class="module-title-container"> |
| 17 | <h2><?php echo sanitize_text_field($module->name()); ?></h2> |
| 18 | <p><?php echo sanitize_text_field($module->subtitle()); ?></p> |
| 19 | </div> |
| 20 | <div class="module-action-links"> |
| 21 | <button data-action="module#edit" class="edit-module-button"><span class="dashicons dashicons-admin-generic"></span></button> |
| 22 | <button data-action="module#toggleWidth" class="toggle-width-button"><span class="dashicons dashicons-columns"></span></button> |
| 23 | <button data-action="module#delete" class="delete-module-button"><span class="dashicons dashicons-trash"></span></button> |
| 24 | </div> |
| 25 | </header> |
| 26 | <div class="module-contents"> |
| 27 | <div class="<?php echo esc_attr($module->module_type()); ?> <?php echo $is_loaded ? "is-loaded" : "is-loading"; ?> <?php echo $is_empty ? "is-empty" : ""; ?>"><?php |
| 28 | echo iawp_blade()->run('overview.modules.' . $module->module_type(), [ |
| 29 | 'module' => $module, |
| 30 | 'dataset' => $dataset, |
| 31 | 'is_empty' => $is_empty, |
| 32 | 'is_loaded' => $is_loaded, |
| 33 | ]); ?> |
| 34 | </div> |
| 35 | </div> |
| 36 | </div> |
| 37 |