7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-11-30 01:28:49 +00:00
web-ansol.org/content/noticias/2013-05-04-teste.md
2021-10-28 15:52:49 +01:00

43 lines
1.1 KiB
Markdown

---
categories: []
metadata:
slide:
- slide_value: 0
node_id: 160
layout: page
title: teste
created: 1367693029
date: 2013-05-04
aliases:
- "/node/160/"
- "/page/160/"
---
<?php
$query = new EntityFieldQuery;
$entities = $query
->entityCondition('entity_type', 'node')
->propertyCondition('status', 1)
->fieldCondition('field_slide','value', '1', '=')
->execute();
#print '<strong>Nodes!</strong><br clear="all" />';
#var_dump($entities);
$nodes = node_load_multiple(array_keys($entities['node']));
#print render(node_view_multiple($nodes, 'teaser'));
print " <div id='slideshow'>\n";
$slideCtl="";
foreach ($nodes as $node) {
$slideCtl = $slideCtl . " <li><a href='#'></a></li>\n";
print " <div class='slider-item'><div class='content container_12'><div class='grid_12'>";
print render(node_view($node, 'teaser'));
print " </div></div></div>";
}
print " </div>\n <div id='slider-controls-wrapper'><div id='slider-controls' class='container_12'><ul id='slider-navigation'>" . $slideCtl . " </ul></div></div>\n";
?>