Submit
Path:
~
/
home
/
getwphos
/
www
/
ccma
/
wp-content
/
plugins
/
curly-core
/
shortcodes
/
tabs
/
File Content:
tabs-item.php
<?php namespace CurlyCore\CPT\Shortcodes\Tabs; use CurlyCore\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', 'curly-core'), 'base' => $this->getBase(), 'as_parent' => array('except' => 'vc_row'), 'as_child' => array('only' => 'mkdf_tabs'), 'category' => esc_html__('by CURLY', 'curly-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', 'curly-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 = curly_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
elementor-tabs.php
3311 bytes
0644
functions.php
1884 bytes
0644
load.php
196 bytes
0644
tabs-item.php
1802 bytes
0644
tabs.php
3309 bytes
0644
N4ST4R_ID | Naxtarrr