carousal issue fixed
This commit is contained in:
parent
cafd56a0f5
commit
e0b730d3c5
|
@ -155,13 +155,18 @@ function mep_event_list($atts, $content = null)
|
||||||
echo $time_line_div_start;
|
echo $time_line_div_start;
|
||||||
while ($loop->have_posts()) {
|
while ($loop->have_posts()) {
|
||||||
$loop->the_post();
|
$loop->the_post();
|
||||||
if ($style == 'grid' && (int)$column>0) {
|
|
||||||
|
if ($style == 'grid' && (int)$column>0 && $pagination != 'carousal') {
|
||||||
$columnNumber='column_style';
|
$columnNumber='column_style';
|
||||||
$width=100/(int)$column;
|
$width=100/(int)$column;
|
||||||
|
}elseif($pagination == 'carousal' && $style == 'grid'){
|
||||||
|
$columnNumber = 'grid';
|
||||||
|
$width=100;
|
||||||
} else {
|
} else {
|
||||||
$columnNumber = 'one_column';
|
$columnNumber = 'one_column';
|
||||||
$width=100;
|
$width=100;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the hook where Event Loop List fired from inc/template-parts/event_loop_list.php File
|
* This is the hook where Event Loop List fired from inc/template-parts/event_loop_list.php File
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue