?>
                    <h2 class="article-title">
                      <?php 
                echo $item['title'];
                ?>
                    </h2>
                  <?php 
            }
            ?>
                  <?php 
            if (!empty($item['category'])) {
                ?>
                    <?php 
                $class = '';
                if (!empty($item['raw_category'])) {
                    $class = latintimes_html_class($item['raw_category']);
                }
                ?>
                    <span class="article-category category-<?php 
                print $class;
                ?>
">
                      <?php 
                print $item['category'];
                ?>
                    </span>
                  <?php 
            }
            ?>
                  
                  <?php 
<article class="article-teaser">
  <div class="small-teaser">

    <?php 
if (!empty($node->field_categories['und'][0]['tid'])) {
    $category = taxonomy_term_load($node->field_categories['und'][0]['tid']);
    $category->class = latintimes_html_class($category->name);
    ?>
      <div class="article-category category-<?php 
    print $category->class;
    ?>
">
        <?php 
    print l($category->name, 'taxonomy/term/' . $category->tid);
    ?>
      </div>
    <?php 
}
?>

    <div class="article-title">
      <?php 
echo $title;
?>
    </div>

  </div>
</article>
Esempio n. 3
0
    if (!empty($title)) {
        ?>
          <h2 class="article-title">
            <?php 
        echo $title;
        ?>
          </h2>
        <?php 
    }
    ?>
      
      <?php 
    if (!empty($node->field_categories['und'][0]['tid'])) {
        $term = taxonomy_term_load($node->field_categories['und'][0]['tid']);
        if ($term) {
            $class = latintimes_html_class($term->name);
            $category = l($term->name, 'taxonomy/term/' . $term->tid);
        }
    }
    if ($node->type == 'pulse') {
        $class = 'pulse';
        $category = l('Pulse', 'pulse');
    }
    ?>
      <?php 
    if (!empty($category)) {
        ?>
        <span class="article-category category-<?php 
        print $class;
        ?>
">