OwlCyberSecurity - MANAGER
Edit File: list-section.php
<?php /** * Pearl List */ add_shortcode( 'pearl_list_section', 'pearl_list_section' ); function pearl_list_section( $atts ) { extract( shortcode_atts( array( 'style' => 'dot', 'list' => '', 'layout' => 'fullwidth' ), $atts ) ); ob_start(); $list = explode( '*', $list ); if ( is_array( $list ) && ! empty( $list ) ) { if ( $style == 'dot' ) { ?> <ul class="pearl-list-one <?php echo $layout; ?>"> <?php foreach ( $list as $item ) { if ( ! empty( $item ) ) { echo '<li><span>' . $item . '</span></li>'; } } ?> </ul> <?php } else if ( $style == 'check' ) { ?> <ul class="pearl-list-two"> <?php foreach ( $list as $item ) { if ( ! empty( $item ) ) { echo '<li><i class="icon-checkmark"></i><span>' . $item . '</span></li>'; } } ?> </ul> <?php } else if ( $style == 'arrow' ) { ?> <ul class="pearl-list-three"> <?php foreach ( $list as $item ) { if ( ! empty( $item ) ) { echo '<li><a><i class="icon-arrow-long-right"></i> ' . $item . '</a></li>'; } } ?> </ul> <?php } ?> <?php } return ob_get_clean(); } /** * Pearl List */ vc_map( array( "name" => esc_html__( "Pearl List", 'pearl-medical-framework' ), "base" => "pearl_list_section", "class" => "", "category" => esc_html__( "MedicalGuide Theme", 'pearl-medical-framework' ), "params" => array( array( "type" => "dropdown", "class" => "", "heading" => esc_html__( "List Style", 'pearl-medical-framework' ), "param_name" => "style", "value" => array( 'Dot' => 'dot', 'Check' => 'check', 'Arrow' => 'arrow' ), "admin_label" => true, ), array( "type" => "pearl_clone_one", "heading" => esc_html__( "List Items", 'pearl-medical-framework' ), "param_name" => "list", ), array( "type" => "dropdown", "class" => "", "heading" => esc_html__( "Layout", 'pearl-medical-framework' ), "param_name" => "layout", "value" => array( 'Fullwidth' => 'fullwidth', 'Columns' => 'columns' ), "admin_label" => true, "dependency" => array( 'element' => 'style', 'value' => array( 'dot' ) ) ) ) ) );