| 1 |
<?php |
| 2 |
$layout_html = ''; |
| 3 |
|
| 4 |
$layout_html .= '<div class="'.$cols.' cfb-box-'.$i.'"> |
| 5 |
<div data-effect="'.$effect.'" data-height="'.$height.'" class="flip"> |
| 6 |
<div class="'.$effect.'">'; |
| 7 |
|
| 8 |
|
| 9 |
$layout_html .= '<div class="face front"> |
| 10 |
<div class="ifb-flip-box-section-with-image cfb-section"> |
| 11 |
<div class="inner-with-image">'; |
| 12 |
|
| 13 |
if(!empty($flipbox_image)){ |
| 14 |
$layout_html .= '<img class="img-thumbnail" src="'.$flipbox_image.'">'; |
| 15 |
} |
| 16 |
else |
| 17 |
{ |
| 18 |
$layout_html .= '<img class="img-thumbnail" src="'.CFB_URL . 'assets/images/black-background.jpg">'; |
| 19 |
} |
| 20 |
|
| 21 |
$layout_html .= '</div> |
| 22 |
</div> |
| 23 |
</div> |
| 24 |
<div class="face back" style="background:'.$flipbox_color_scheme.';"> |
| 25 |
<div class="ifb-flip-box-section-with-image cfb-section"> |
| 26 |
<div class="inner text-center"> |
| 27 |
<div class="image-title"><p><strong>'.$flipbox_title.'</strong></p></div> |
| 28 |
<div class="image-label"><p>'.$flipbox_label.'</p></div> |
| 29 |
<div class="image-desc"><p>'.$flipbox_truncate.'</p></div> |
| 30 |
<div class="flip_link"> |
| 31 |
<p><a target="_blank" href="'.esc_url($flipbox_url).'"><strong>'.$read_more_link.'</strong></a></p> |
| 32 |
</div> |
| 33 |
</div> |
| 34 |
</div> |
| 35 |
</div>'; |
| 36 |
|
| 37 |
|
| 38 |
$layout_html .= '</div></div></div>'; |
| 39 |
|