function extra_woocommerce_output_related_products_args($args)
{
    if (extra_get_sidebar_class()) {
        $columns = 3;
    } else {
        $columns = 4;
    }
    $args['columns'] = $args['posts_per_page'] = $columns;
    return $args;
}
Beispiel #2
0
<?php

if (extra_get_sidebar_class()) {
    ?>
<div class="et_pb_extra_column_sidebar">
	<?php 
    dynamic_sidebar(extra_sidebar());
    ?>
</div>
<?php 
}
Beispiel #3
0
function extra_sidebar_body_class($classes)
{
    $classes = array_merge($classes, explode(' ', extra_get_sidebar_class()));
    return $classes;
}