<?php
// [h1]
function h1($atts, $content = null) {
$defaults = array('align' => '', 'color' => '');
extract( shortcode_atts( $defaults, $atts ) );
$tag_class = '';
$tag_class .= !empty($align) ? " {$align}" : '';
$tag_class .= !empty($color) ? " {$color}" : '';
ob_start(); ?>
<h1 class="<?php echo $tag_class;?>"><?php echo do_shortcode($content); ?></h1>
<?php $output = ob_get_clean();
return $output;
}
add_shortcode('h1', 'h1');
?>