Esempio n. 1
0
function axiom_sc_gap_wrapper($str)
{
    // Move VC row and column and wrapper inside gap
    $str_new = preg_replace('/(<div\\s+class="[^"]*vc_row[^>]*>)[\\r\\n\\s]*(<div\\s+class="[^"]*vc_col[^>]*>)[\\r\\n\\s]*(<div\\s+class="[^"]*wpb_wrapper[^>]*>)[\\r\\n\\s]*(' . axiom_sc_gap_start() . ')/i', '\\4\\1\\2\\3', $str);
    if ($str_new != $str) {
        $str_new = preg_replace('/(' . axiom_sc_gap_end() . ')[\\r\\n\\s]*(<\\/div>)[\\r\\n\\s]*(<\\/div>)[\\r\\n\\s]*(<\\/div>)/i', '\\2\\3\\4\\1', $str_new);
    }
    // Gap layout
    return str_replace(array(axiom_sc_gap_start(), axiom_sc_gap_end()), array(axiom_close_all_wrappers(false) . '<div class="sc_gap">', '</div>' . axiom_open_all_wrappers(false)), $str_new);
}
Esempio n. 2
0
				</div>
				<div class="sc_scroll_controls_wrap"><a class="sc_scroll_prev" href="#"></a><a class="sc_scroll_next" href="#"></a></div>
			</div>
			<?php 
        } else {
            if (axiom_get_template_property('related', 'need_columns')) {
                ?>
				</div>
			<?php 
            }
        }
        ?>

			<?php 
        if ($need_wrap) {
            axiom_close_wrapper();
        }
        ?>

		</section>
		<?php 
    }
    if ($body_style != 'fullscreen' && !$sidebar_present) {
        axiom_open_all_wrappers();
    }
}
if ($need_dummy) {
    ?>
	<section class="related_wrap related_wrap_empty"></section>
	<?php 
}