Skip to content

Commit

Permalink
add legend
Browse files Browse the repository at this point in the history
  • Loading branch information
Walker committed Apr 9, 2019
1 parent c70f210 commit 3f8dcc4
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion shortcodes/ic-enfold-vslider.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,15 @@ function popup_elements()
"std" => __("Slide Content goes here", 'avia_framework' ) ,
),
)
),
),

array(
"name" => __("Legend", 'avia_framework' ),
"desc" => __("Enter the number legend", 'avia_framework' ) ,
"id" => "legend",
"std" => "",
"type" => "input"
),

array(
"type" => "close_div",
Expand Down Expand Up @@ -198,6 +206,7 @@ function shortcode_handler($atts, $content = "", $shortcodename = "", $meta = ""
'custom_class' => '',
'custom_markup' => $meta['custom_markup'],
'content' => ShortcodeHelper::shortcode2array($content, 1),
'legend' => '',
'av-desktop-hide'=>'',
'av-medium-hide'=>'',
'av-small-hide'=>'',
Expand All @@ -219,6 +228,10 @@ function shortcode_handler($atts, $content = "", $shortcodename = "", $meta = ""
?>
<template id="<?php echo $p_uid; ?>">
<ic-vslider class="ic-enfold-vslider-container<?php echo $custom_class; ?>">
<?php if (!empty($legend)): ?>
<template #legend-text><?php echo $legend; ?></template>
<?php endif; ?>

<?php foreach ($content as $slide): extract ($slide['attr']); ?>
<ic-vslider-slide
title="<?php echo $title; ?>"
Expand Down

0 comments on commit 3f8dcc4

Please sign in to comment.