column-picker-modal.blade.php
2 years ago
group-select.blade.php
2 years ago
rows.blade.php
2 years ago
table-toolbar.blade.php
2 years ago
table.blade.php
2 years ago
rows.blade.php
52 lines
| 1 | <div id="iawp-rows" class="iawp-rows" data-number-of-shown-rows="<?php echo esc_attr($number_of_shown_rows) ?>"> |
| 2 | <?php if ($number_of_shown_rows == 0): ?> |
| 3 | <!-- No rows --> |
| 4 | <?php if ($table_name == 'views'): ?> |
| 5 | <p id="data-error" |
| 6 | class="data-error"><?php esc_html_e('No views found', 'independent-analytics'); ?></p> |
| 7 | <?php elseif ($table_name == 'referrers'): ?> |
| 8 | <p id="data-error" |
| 9 | class="data-error"><?php esc_html_e('No referrers found', 'independent-analytics'); ?></p> |
| 10 | <?php elseif ($table_name == 'geo'): ?> |
| 11 | <p id="data-error" |
| 12 | class="data-error"><?php esc_html_e('No geographic data found', 'independent-analytics'); ?></p> |
| 13 | <?php elseif ($table_name == 'devices'): ?> |
| 14 | <p id="data-error" |
| 15 | class="data-error"><?php esc_html_e('No device data found', 'independent-analytics'); ?></p> |
| 16 | <?php elseif ($table_name == 'campaigns'): ?> |
| 17 | <div class="data-error"> |
| 18 | |
| 19 | <p> |
| 20 | <?php esc_html_e('No campaign data found', 'independent-analytics'); ?> |
| 21 | </p> |
| 22 | <?php if(!$has_campaigns): ?> |
| 23 | <p> |
| 24 | <a href="?page=independent-analytics-campaign-builder" |
| 25 | class="iawp-button purple"> |
| 26 | <?php esc_html_e('Create your first campaign', 'independent-analytics'); ?> |
| 27 | </a> |
| 28 | </p> |
| 29 | <?php endif; ?> |
| 30 | </div> |
| 31 | <?php endif; ?> |
| 32 | |
| 33 | <?php else: ?> |
| 34 | <!-- Some rows --> |
| 35 | <?php foreach ($rows as $index => $row): ?> |
| 36 | <?php $class = $table_name == 'views' && $row->is_deleted() ? 'iawp-row deleted' : 'iawp-row'; ?> |
| 37 | <div class="<?php echo esc_attr($class); ?>" <?php echo $table->get_row_data_attributes($row) ?>> |
| 38 | <?php foreach ($all_columns as $column): ?> |
| 39 | <?php $class = $column->visible() ? 'cell' : 'cell hide'; ?> |
| 40 | <div class="<?php echo esc_attr($class); ?>" |
| 41 | data-column="<?php echo esc_attr($column->id()); ?>" |
| 42 | data-test-visibility="<?php echo $column->visible() ? 'visible' : 'hidden'; ?>" |
| 43 | > |
| 44 | <div class="row-number"><?php echo $index + 1; ?></div> |
| 45 | <span class="cell-content"><?php echo wp_kses_post($table->get_cell_content($row, $column)); ?></span> |
| 46 | <span class="animator"></span> |
| 47 | </div> |
| 48 | <?php endforeach ?> |
| 49 | </div> |
| 50 | <?php endforeach; ?> |
| 51 | <?php endif; ?> |
| 52 | </div> |