trAvis - MANAGER
Edit File: ordered-list.php
<?php namespace BaristaEdge\Modules\Shortcodes\OrderedList; use BaristaEdge\Modules\Shortcodes\Lib\ShortcodeInterface; class OrderedList implements ShortcodeInterface{ private $base; function __construct() { $this->base = 'edgtf_list_ordered'; add_action('vc_before_init', array($this, 'vcMap')); } public function getBase() { return $this->base; } public function vcMap() { vc_map( array( 'name' => esc_html__('Edge List - Ordered', 'baristawp'), 'base' => $this->base, 'icon' => 'icon-wpb-ordered-list extended-custom-icon', 'category' => esc_html__('by EDGE', 'baristawp'), 'allowed_container_element' => 'vc_row', 'params' => array( array( 'type' => 'textarea_html', 'holder' => 'div', 'class' => '', 'heading' => esc_html__('Content', 'baristawp'), 'param_name' => 'content', 'value' => '<ol><li>Lorem Ipsum</li><li>Lorem Ipsum</li><li>Lorem Ipsum</li></ol>', 'description' => '' ) ) ) ); } public function render($atts, $content = null) { $content = preg_replace('#^<\/p>|<p>$#', '', $content); $html = '<div class= "edgtf-ordered-list" >' . do_shortcode($content) . '</div>'; return $html; } }