1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
<?php ! defined( 'ABSPATH' ) && exit(); ?><div class="totalpoll-tabs-container has-tabs totalpoll-settings"> <div class="totalpoll-tabs"> <?php /** * Fires before settings tabs. * * @since 4.0.0 */ do_action( 'totalpoll/actions/before/admin/editor/settings/tabs', $this ); ?>
<?php $firstTab = key( $settingsTabs ) ?> <?php foreach ( $settingsTabs as $tabId => $tab ): ?> <div class="totalpoll-tabs-item <?php echo $tabId == $firstTab ? 'active' : ''; ?>" tab-switch="editor>settings>general><?php echo esc_attr( $tabId ); ?>"> <span class="dashicons dashicons-<?php echo esc_attr( $tab['icon'] ); ?>"></span> <?php echo esc_html( $tab['label'] ); ?> </div> <?php endforeach; ?>
<?php /** * Fires after settings tabs. * * @since 4.0.0 */ do_action( 'totalpoll/actions/after/admin/editor/settings/tabs', $this ); ?> </div> <div class="totalpoll-tabs-content"> <?php foreach ( $settingsTabs as $tabId => $tab ): ?> <div class="totalpoll-tab-content <?php echo $tabId == $firstTab ? 'active' : ''; ?>" tab="editor>settings>general><?php echo esc_attr( $tabId ); ?>"> <?php /** * Fires before settings tab content. * * @since 4.0.0 */ do_action( 'totalpoll/actions/before/admin/editor/settings/tabs/content', $tabId );
$path = empty( $tab['file'] ) ? __DIR__ . "/{$tabId}/index.php" : $tab['file']; if ( file_exists( $path ) ): include_once $path; elseif ( ! empty( $tab['tabs'] ) ): include __DIR__ . '/subtab.php'; endif;
/** * Fires after settings tab content. * * @since 4.0.0 */ do_action( 'totalpoll/actions/after/admin/editor/settings/tabs/content', $tabId ); ?> </div> <?php endforeach; ?> </div> </div>
|