";
$output .= "<{$markup} class='template-page content " . avia_layout_class( 'content', false ) . " units'>";
$output .= "
";
$output .= "
";
}
}
return $output;
}
}
if( ! function_exists( 'avia_section_close_markup' ) )
{
function avia_section_close_markup()
{
global $avia_section_markup, $avia_config;
if( ! empty( $avia_section_markup ) )
{
$avia_section_markup = false;
$close_markup = '';
}
else
{
$close_markup = '
';
}
return $close_markup;
}
}
if( ! function_exists( 'avia_section_after_element_content' ) )
{
function avia_section_after_element_content( $meta, $second_id = '', $skipSecond = false, $extra = '' )
{
$output = '
'; //close section
$output .= $extra;
//if the next tag is a section dont create a new section from this shortcode
if( ! empty( $meta['siblings']['next']['tag'] ) && in_array( $meta['siblings']['next']['tag'], AviaBuilder::$full_el ) )
{
$skipSecond = true;
}
//if there is no next element dont create a new section.
if( empty( $meta['siblings']['next']['tag'] ) )
{
$skipSecond = true;
}
if( empty( $skipSecond ) )
{
$output .= avia_new_section( array( 'close' => false, 'id' => $second_id ) );
}
return $output;
}
}