<?php
/*
 * Name: Separator
 * Section: content
 * Description: Separator
 *
 */

/** @var array $options */
/** @var array $composer */

$default_options = array(
    'color'=>'#dddddd',
    'height'=>1,
    'block_padding_top'=>20,
    'block_padding_bottom'=>20,
    'block_padding_right'=>20,
    'block_padding_left'=>20,
    'block_background'=>''

);

$options = array_merge($default_options, $options);
$options['block_padding_top'] = max((int)$options['block_padding_top'], 5);
$options['block_padding_bottom'] = max((int)$options['block_padding_bottom'], 5);


?>


<table border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation">
    <tr>
        <td style="border-bottom: <?php echo esc_attr($options['height']) ?>px solid <?php echo sanitize_hex_color($options['color']) ?>;"></td>
    </tr>
</table>
