PluginProbe
Advanced Ads – Ad Manager & AdSense / 2.0.21
Advanced Ads – Ad Manager & AdSense v2.0.21
2.0.26 2.0.25 2.0.24 2.0.23 2.0.22 2.0.21 1.38.0 1.39.0 1.39.1 1.39.2 1.39.3 1.39.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.40.0 1.40.1 1.40.2 All 348 releases
advanced-ads / views / admin / table-views-list.php
table-views-list.php
42 lines 994 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Render the view navigation items on the Placement screen.
4 *
5 * @package AdvancedAds
6 * @author Advanced Ads <info@wpadvancedads.com>
7 * @since 1.48.0
8 *
9 * @var array $views List of views.
10 */
11
12 use AdvancedAds\Framework\Utilities\Str;
13
14 ?>
15 <ul class="flex gap-x-2 float-left clear-both mt-2.5 mb-5">
16 <?php
17 foreach ( $views as $index => $view ) :
18 $view = str_replace( [ ')', '(' ], '', $view );
19 $class = [ 'no-underline advads-button button' ];
20 if ( Str::contains( 'current', $view ) || ( $is_all && 'all' === $index ) ) {
21 $class[] = 'button-primary';
22 $view = str_replace( 'class="current"', '" ', $view );
23 } else {
24 $class[] = 'button-secondary';
25 }
26
27 $view = str_replace( '<a ', '<a class="' . esc_attr( join( ' ', $class ) ) . '" ', $view );
28 ?>
29 <li>
30 <?php
31 echo wp_kses(
32 $view,
33 [
34 'a' => [ 'href' => [], 'class' => [], 'aria-current' => [] ],
35 'span' => [ 'class' => [] ],
36 ]
37 );
38 ?>
39 </li>
40 <?php endforeach; ?>
41 </ul>
42