Commit a937cc93 by rajshah

background color fixed in challenges section

parent e43def48
......@@ -51,7 +51,6 @@ if (isset($cmws) && is_array($cmws) && !empty($cmws)):
<?php foreach ($cmws_gal as $i => $gallery_item):
$img = $gallery_item['img'] ?: '';
$layout = $gallery_item['layout'] ?: '';
$new = $layout[0];
$class_name = !empty($layout) ? explode(':', $layout[0]) : 'none';
$class_name = $class_name[0];?>
<div class="gallery-item <?php echo $class_name; ?>">
......
......@@ -54,13 +54,15 @@ if(have_rows('content')):
<?php $index=0;?>
<?php while(have_rows('content')):
the_row();
$bgClass = get_sub_field('background_colour');
$class_name = !empty($bgClass) ? explode(':', $bgClass) : 'none';
$class_name = $class_name[0];
$image_position = get_sub_field('image_position');
$image = get_sub_field('image');
if($index===0):
?>
<div class="ONLY-TEXT-SECTION py-80
<?php echo (get_sub_field('background_colour')=='dark')?'background-dark':'bg-primary';?>">
<div class="ONLY-TEXT-SECTION py-80 <?php echo $class_name;?>">
<div class="container">
<div class="row justify-content-between">
<div class="col-lg-5 col-xl-4 order-lg-2">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment