7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-11-22 22:31:32 +00:00
web-ansol.org/imported-content/_posts/2013-05-04-teste.md

40 lines
1.1 KiB
Markdown
Raw Normal View History

2021-09-18 02:21:31 +00:00
---
categories: []
metadata:
slide:
- slide_value: 0
node_id: 160
layout: page
title: teste
created: 1367693029
date: 2013-05-04
---
<?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";
?>