<div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
  <?php
  $comment_header_class = 'no-user-picture';
  if (!empty($picture)) {
    $comment_header_class = 'media';
  }
  ?>
  <div class="post-heading-wrapper <?php print $comment_header_class; ?>">
    <?php if (!empty($picture)): ?>
      <div class="avatar pull-left">
        <?php print $picture ?>
      </div>
    <?php endif; ?>
    <div class="media-body">
      <div class="content"<?php print $content_attributes; ?>>

        <div class="comment-by">
          <div class="name">
            <?php print render($title_prefix); ?>
            <?php print $author; ?>
            <?php print render($title_suffix); ?>
            <?php if ($new): ?>
              <span class="new"><?php print $new ?></span>
            <?php endif; ?>
          </div>
          <div class="date submitted">     
            <?php // print $permalink;  ?>
            <?php print $created; ?>
          </div>
          <div class="clearfix"></div>
        </div>
        <?php
        // We hide the comments and links now so that we can render them later.
        hide($content['links']);
        print render($content);
        ?>
        <?php if ($signature): ?>
          <div class="user-signature clearfix">
            <?php print $signature ?>
          </div>
        <?php endif; ?>

        <div class="control">
          <?php print render($content['links']) ?>
        </div>
      </div>

    </div>
  </div>
</div>
