| @@ -1,19 +1,23 @@ | ||
| 1 | 1 | <div class="betterdocs-list-grid-icon tabs-nav"> |
| 2 | - <a | |
| 3 | - class="<?php esc_attr_e( $helper::is_active( 'list', $active_tab ) );?> icon-wrap icon-wrap-1" | |
| 4 | - href="<?php esc_attr_e( esc_url( $url ) );?>&mode=list" data-toggle-target=".tab-content-1"> | |
| 5 | - <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"> | |
| 6 | - <path d="M3 12H21M3 6H21M3 18H21" stroke="#475467" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | |
| 7 | - </svg> | |
| 8 | - </a> | |
| 9 | - <a | |
| 10 | - class="<?php esc_attr_e( $helper::is_active( 'grid', $active_tab ) );?> icon-wrap icon-wrap-2" | |
| 11 | - href="<?php esc_attr_e( esc_url( $url ) );?>&mode=grid" data-toggle-target=".tab-content-2"> | |
| 12 | - <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"> | |
| 13 | - <path d="M10 3H3V10H10V3Z" stroke="#475467" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | |
| 14 | - <path d="M21 3H14V10H21V3Z" stroke="#475467" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | |
| 15 | - <path d="M21 14H14V21H21V14Z" stroke="#475467" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | |
| 16 | - <path d="M10 14H3V21H10V14Z" stroke="#475467" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | |
| 17 | - </svg> | |
| 18 | - </a> | |
| 2 | + <a | |
| 3 | + class="<?php | |
| 4 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 5 | + exit; | |
| 6 | +} | |
| 7 | +echo esc_attr( $helper::is_active( 'list', $active_tab ) ); ?> icon-wrap icon-wrap-1" | |
| 8 | + href="<?php echo esc_attr( esc_url( $url ) ); ?>&mode=list" data-toggle-target=".tab-content-1"> | |
| 9 | + <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"> | |
| 10 | + <path d="M3 12H21M3 6H21M3 18H21" stroke="#475467" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | |
| 11 | + </svg> | |
| 12 | + </a> | |
| 13 | + <a | |
| 14 | + class="<?php echo esc_attr( $helper::is_active( 'grid', $active_tab ) ); ?> icon-wrap icon-wrap-2" | |
| 15 | + href="<?php echo esc_attr( esc_url( $url ) ); ?>&mode=grid" data-toggle-target=".tab-content-2"> | |
| 16 | + <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"> | |
| 17 | + <path d="M10 3H3V10H10V3Z" stroke="#475467" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | |
| 18 | + <path d="M21 3H14V10H21V3Z" stroke="#475467" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | |
| 19 | + <path d="M21 14H14V21H21V14Z" stroke="#475467" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | |
| 20 | + <path d="M10 14H3V21H10V14Z" stroke="#475467" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | |
| 21 | + </svg> | |
| 22 | + </a> | |
| 19 | 23 | </div> |