Submit
Path:
~
/
home
/
getwphos
/
public_html
/
brueggemann
/
wp-content
/
plugins
/
wanderland-core
/
shortcodes
/
tabs
/
File Content:
tabs-item.php
<?php namespace WanderlandCore\CPT\Shortcodes\Tabs; use WanderlandCore\Lib; class TabsItem implements Lib\ShortcodeInterface { private $base; function __construct() { $this->base = 'mkdf_tabs_item'; add_action( 'vc_before_init', array( $this, 'vcMap' ) ); } public function getBase() { return $this->base; } public function vcMap() { if ( function_exists( 'vc_map' ) ) { vc_map( array( 'name' => esc_html__( 'Tabs Item', 'wanderland-core' ), 'base' => $this->getBase(), 'as_parent' => array( 'except' => 'vc_row' ), 'as_child' => array( 'only' => 'mkdf_tabs' ), 'category' => esc_html__( 'by WANDERLAND', 'wanderland-core' ), 'icon' => 'icon-wpb-tabs-item extended-custom-icon', 'content_element' => true, 'js_view' => 'VcColumnView', 'params' => array( array( 'type' => 'textfield', 'param_name' => 'tab_title', 'heading' => esc_html__( 'Title', 'wanderland-core' ) ) ) ) ); } } public function render( $atts, $content = null ) { $default_atts = array( 'tab_title' => 'Tab', 'tab_id' => '' ); $params = shortcode_atts( $default_atts, $atts ); $rand_number = rand( 0, 1000 ); $params['tab_title'] = $params['tab_title'] . '-' . $rand_number; $params['content'] = $content; $output = wanderland_core_get_shortcode_module_template_part( 'templates/tab-content', 'tabs', '', $params ); return $output; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
assets
---
0755
templates
---
0755
functions.php
1853 bytes
0644
load.php
211 bytes
0644
tabs-item.php
1557 bytes
0644
tabs.php
2945 bytes
0644
N4ST4R_ID | Naxtarrr