Node--article--teaser.tpl.php
How do I make an node--article--teaser.tpl.php?
What is a node--article--teaser.tpl.php? How do you make a node--article--teaser.tpl.php? This script and codes were developed by Hamiltopia on 17 November 2022, Thursday.
Node--article--teaser.tpl.php - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>node--article--teaser.tpl.php</title>
</head>
<body> <!-- THIS Mutherfucker right here -->
<?php print $node->field_audio_track['und'][0]['uri']; ?>
<div class="node-tease teaser-alt" title="<?php print $title ?>">
<article itemscope itemtype="http://schema.org/NewsArticle" <?php print $attributes; ?>> <!-- Section --> <?php print render($content['field_section']); ?> <!-- Voodoo for video in media --> <?php $has_video = FALSE; if (!empty($node->field_media)) { foreach ($node->field_media['und'] as $nodemedia) { if ($nodemedia['type'] == 'video') { $has_video = TRUE; break; } else { continue; } } } ?> <!-- Media --> <?php if(!empty($node->field_media)) { $preview_image_url = ''; foreach($node->field_media['und'] as $nodemedia) { if($nodemedia['type'] == 'video' ) { continue; } else { $preview_image_url = image_style_url('teaser_alt', $nodemedia['uri']); break; } } ?> <a href="<?php print $node_url ?>" title="<?php print $title ?>" class="tease-thumb clearfix image-type-<?php print $node->field_media['und'][0]['type']; ?>"><img src="<?php print $preview_image_url ?>" title="<?php print $title ?>" alt="<?php print $title ?>"><span><?php print $title.($has_video ? ': Watch the Video' : ''); ?></span></a> <?php } ?> <!-- Teaser COpy --> <div class="teaser-copy"> <header> <!-- Title --> <?php if (!empty($content['field_short_title'])): ?> <h2<?php print $title_attributes; ?>><a href="<?php print $node_url ?>" title="<?php print $node->field_short_title['und'][0]['value']; ?>"><?php print $node->field_short_title['und'][0]['value'].($has_video ? ' [+Video]' : ''); ?> </a></h2> <?php else: ?> <h2<?php print $title_attributes; ?>><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title.($has_video ? ' [+Video]' : ''); ?></a></h2> <?php endif; ?> <!-- Authors --> <div class="node_author-inline clearfix"> <?php print render(field_view_field('node', $node, 'field_authors', array( 'label' => 'hidden', 'type' => 'formatter_authors_formatter', 'settings' => array( 'format' => 'csv', ), ))); ?> </div> </header> <div<?php print $content_attributes; ?>><!-- Content --> <div class="body-copy"><!-- Body --> <?php if(!empty($node->body['und'][0]['summary'])) { print "<p>"; } $instance = array('settings' => array('text_processing' => TRUE, 'trim_length' => 100), 'type' => 'text_summary_or_trimmed'); print render(text_field_formatter_view('node', $node, NULL, $instance, LANGUAGE_NONE, $node->body[LANGUAGE_NONE], $instance)); if(!empty($node->body['und'][0]['summary'])) { print "</p>"; } ?> </div><!-- END: Body --> <ul class="comment-gallery"><!-- Comment & Gallery links --> <!-- Comment Count --> <li><p class="comment-count"><a href="/comments/<?php print $node->nid; ?>#disqus_thread" data-disqus-identifier="node/<?php print $node->nid; ?>" itemprop="discussionUrl">Comments</a></p></li> <!-- Gallery--> <?php if(!empty($node->field_associate_an_image_gallery)) { ?> <li><p class="related-gallery"><a href="<?php print url('photos/'.$node->field_associate_an_image_gallery['und'][0]['target_id']); ?>" title="Click to view the Photo Gallery">Photo Gallery</a></p></li> <?php } ?> </ul><!-- END: Comment & Gallery links --> </div><!-- END: Content --> </div><!-- END: TEaser Copy -->
</article>
</div>
</body>
</html>
Developer | Hamiltopia |
Username | hamiltopia |
Uploaded | November 17, 2022 |
Rating | 3 |
Size | 2,410 Kb |
Views | 10,120 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Custom.js - July 2014 | 3,865 Kb |
Masterpiece v2 | 10,686 Kb |
Simple Responsive Breakpoints | 1,956 Kb |
AAPB - Browsing Topics Filter | 4,331 Kb |
Node--article--full.tpl.php | 3,317 Kb |
Page Piling files | 5,759 Kb |
Palette | 7,234 Kb |
RARE Prototype | 3,472 Kb |
Bootstrap Template | 8,954 Kb |
Treehouse | 23,716 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
My Starter Kit For Codepen | Dkdesign | 2,012 Kb |
Two column of responsive height | Fixie | 2,908 Kb |
Direction-icon | Alexandremasy | 3,323 Kb |
Pure CSS Torch Light | Juliendargelos | 2,727 Kb |
The Walking Raymarcher | Xorxor_hu | 7,934 Kb |
Hamburger Menu Animation | Salmanraza | 2,580 Kb |
Css or Czz.. | Judag | 4,111 Kb |
Hovers with popups | Zacharyolson | 2,380 Kb |
Flying Bee | Pwsm50 | 3,711 Kb |
Fellowship of the Ring | Aussieyang | 2,639 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!