mirror of
https://gitlab.com/ansol/web-ansol.org.git
synced 2024-11-28 16:57:41 +00:00
40 lines
1.1 KiB
Markdown
40 lines
1.1 KiB
Markdown
---
|
|
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";
|
|
|
|
?>
|