Submit
Path:
~
/
home
/
getwphos
/
public_html
/
techniquetechs
/
wp-content
/
themes
/
plexify
/
elements
/
templates
/
pxl_tabs
/
File Content:
layout-2.php
<?php extract($settings); if(count($tabs_list) > 0){ $tab_bd_ids = []; ?> <div class="pxl-tabs layout-2"> <div class="tabs-title d-flex"> <?php foreach ($tabs_list as $key => $tab) : $title_key = $widget->get_repeater_setting_key( 'tab_title', 'tabs_list', $key ); $tabs_title[$title_key] = $tab['tab_title']; $widget->add_inline_editing_attributes( $title_key, 'basic' ); $widget->add_render_attribute( $title_key, [ 'class' => [ 'tab-title' ], 'data-target' => '#' . $element_id.'-'.$tab['_id'], ] ); if($active_tab == $key + 1){ $widget->add_render_attribute( $title_key, 'class', 'active'); } ?> <span <?php pxl_print_html($widget->get_render_attribute_string( $title_key )); ?>><?php pxl_print_html($tab['tab_title']); ?></span> <?php endforeach; ?> </div> <div class="tabs-content"> <?php foreach ($tabs_list as $key => $tab): $content_key = $widget->get_repeater_setting_key( 'tab_content', 'tabs_list', $key ); $tabs_content = ''; if($tab['content_type'] == 'template'){ if(!empty($tab['content_template'])){ $content = Elementor\Plugin::$instance->frontend->get_builder_content_for_display( (int)$tab['content_template']); $tabs_content = $content; $tab_bd_ids[] = (int)$tab['content_template']; } }elseif($tab['content_type'] == 'df'){ $tabs_content = $tab['tab_content']; } $widget->add_render_attribute( $content_key, [ 'class' => [ 'tab-content' ], 'id' => $element_id.'-'.$tab['_id'], ] ); if($tab['content_type'] == 'df'){ $widget->add_inline_editing_attributes( $content_key, 'advanced' ); } $inner_style = ''; if($active_tab == $key + 1){ $widget->add_render_attribute( $content_key, 'class', 'active'); $inner_style = 'style="display:block;"'; } ?> <div <?php pxl_print_html($widget->get_render_attribute_string( $content_key )); ?>> <div class="content-inner" <?php pxl_print_html($inner_style); ?>> <?php pxl_print_html($tabs_content); ?> </div> </div> <?php endforeach; ?> </div> </div> <?php } ?>
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
layout-1.php
2448 bytes
0644
layout-2.php
2448 bytes
0644
N4ST4R_ID | Naxtarrr