Node--article--teaser.tpl.php

Developer
Size
2,410 Kb
Views
10,120

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 Previews

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>
Node--article--teaser.tpl.php - Script Codes
Node--article--teaser.tpl.php - Script Codes
Home Page Home
Developer Hamiltopia
Username hamiltopia
Uploaded November 17, 2022
Rating 3
Size 2,410 Kb
Views 10,120
Do you need developer help for Node--article--teaser.tpl.php?

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!

Hamiltopia (hamiltopia) Script Codes
Create amazing love letters with AI!

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!