Submit
Path:
~
/
home
/
getwphos
/
public_html
/
brueggemann
/
wp-content
/
plugins
/
wanderland-core
/
shortcodes
/
accordions
/
File Content:
accordion-tab.php
<?php namespace WanderlandCore\CPT\Shortcodes\AccordionTab; use WanderlandCore\Lib; class AccordionTab implements Lib\ShortcodeInterface { private $base; function __construct() { $this->base = 'mkdf_accordion_tab'; 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__( 'Accordion Tab', 'wanderland-core' ), "base" => $this->base, "as_child" => array( 'only' => 'mkdf_accordion' ), 'is_container' => true, "category" => esc_html__( 'by WANDERLAND', 'wanderland-core' ), "icon" => "icon-wpb-accordion-tab extended-custom-icon", "show_settings_on_create" => true, "js_view" => 'VcColumnView', "params" => array( array( 'type' => 'textfield', 'param_name' => 'title', 'heading' => esc_html__( 'Title', 'wanderland-core' ), 'description' => esc_html__( 'Enter accordion section title', 'wanderland-core' ) ), array( 'type' => 'dropdown', 'param_name' => 'title_tag', 'heading' => esc_html__( 'Title Tag', 'wanderland-core' ), 'value' => array_flip( wanderland_mikado_get_title_tag( true, array( 'p' => 'p' ) ) ), ) ) ) ); } } public function render( $atts, $content = null ) { $default_atts = array( 'title' => 'Section', 'title_tag' => 'h5' ); $params = shortcode_atts( $default_atts, $atts ); $params['content'] = $content; $params['title_tag'] = ! empty( $params['title_tag'] ) ? $params['title_tag'] : $default_atts['title_tag']; $output = wanderland_core_get_shortcode_module_template_part( 'templates/accordion-template', 'accordions', '', $params ); return $output; } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
assets
---
0755
templates
---
0755
accordion-tab.php
1998 bytes
0644
accordion.php
3552 bytes
0644
functions.php
1952 bytes
0644
load.php
238 bytes
0644
N4ST4R_ID | Naxtarrr