Exemple #1
0
/**
 * Add the subtitle to the widget titles
 */
function widget_subtitle($title, $instance = '', $id = '')
{
    if ('opening_time' === $id) {
        return $title;
    } else {
        if (0 === strlen(trim($title))) {
            return '';
        } else {
            if (strstr($title, "//")) {
                $parts = explode("//", $title);
                foreach ($parts as $part) {
                    $trimmed[] = trim($part);
                }
                $h2 = '<h2>';
                $h2 .= lighted_title($trimmed[0]);
                $h2 .= '</h2>';
                $h5 = '<h5>';
                $h5 .= $trimmed[1];
                $h5 .= '</h5>';
                return $h2 . $h5;
            } else {
                return '<h2>' . lighted_title($title) . '</h2>';
            }
        }
    }
}
Exemple #2
0
<?php 
    /*
    http://themeshaper.com/2012/11/04/the-wordpress-theme-comments-template/
    http://chipcullen.com/altering-the-comment-form-in-wordpress/
    */
    ?>


<div class="span<?php 
    echo $main_class_span;
    ?>
">
	<div class="lined">
		<h2><?php 
    echo lighted_title(__('Write a Comment', 'carpress_wp'));
    ?>
</h2>
		<h5><?php 
    _e('Fields with * are required', 'carpress_wp');
    ?>
</h5>
		<span class="bolded-line"></span>
	</div>
</div>

<div class="span<?php 
    echo $main_class_span;
    ?>
">
<?php