PluginProbe
Independent Analytics – WordPress Analytics Plugin / 2.10.4
Independent Analytics – WordPress Analytics Plugin v2.10.4
2.15.5 2.15.4 2.15.3 2.15.2 2.15.1 2.15.0 2.14.10 trunk 1.1 1.10 1.10.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.17.1 1.17.2 1.17.3 1.17.4 1.18 1.18.1 1.19.0 All 120 releases
independent-analytics / views / tables / rows.blade.php
rows.blade.php
66 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 elseif ($table_name == 'clicks'): ?>
32 <div class="data-error">
33 <p>
34 <?php esc_html_e('No click data found', 'independent-analytics'); ?>
35 </p>
36 <?php if(!$has_campaigns): ?>
37 <p>
38 <a href="?page=independent-analytics-click-tracking"
39 class="iawp-button purple">
40 <?php esc_html_e('Edit your tracked links', 'independent-analytics'); ?>
41 </a>
42 </p>
43 <?php endif; ?>
44 </div>
45 <?php endif; ?>
46
47 <?php else: ?>
48 <!-- Some rows -->
49 <?php foreach ($rows as $index => $row): ?>
50 <?php $class = $table_name == 'views' && $row->is_deleted() ? 'iawp-row deleted' : 'iawp-row'; ?>
51 <div class="<?php echo esc_attr($class); ?>" <?php echo $table->get_row_data_attributes($row) ?>>
52 <?php foreach ($all_columns as $column): ?>
53 <?php $class = $column->is_visible() ? 'cell' : 'cell hide'; ?>
54 <div class="<?php echo esc_attr($class); ?>"
55 data-column="<?php echo esc_attr($column->id()); ?>"
56 data-test-visibility="<?php echo $column->is_visible() ? 'visible' : 'hidden'; ?>"
57 >
58 <div class="row-number"><?php echo $index + 1; ?></div>
59 <span class="cell-content"><?php echo wp_kses_post($table->get_cell_content($row, $column)); ?></span>
60 <span class="animator"></span>
61 </div>
62 <?php endforeach ?>
63 </div>
64 <?php endforeach; ?>
65 <?php endif; ?>
66 </div>