| 1 |
<?php |
<?php |
| 2 |
// $Id: content_slider.module,v 1.1.2.2 2008/12/015 12:59:40 ebizondrupalservices Exp $ |
// $Id: content_slider.module,v 1.1.2.4 2008/12/14 19:24:45 ebizondrupalservices Exp $ |
| 3 |
|
|
| 4 |
|
|
| 5 |
/** |
/** |
| 170 |
} |
} |
| 171 |
|
|
| 172 |
$output_body = ''; |
$output_body = ''; |
| 173 |
$sql = " SELECT n.nid, teaser FROM {node} n INNER JOIN {node_revisions} r ON n.nid=r.nid "." WHERE n.status=1 AND n.type='$content_type' LIMIT 5"; |
$sql = " SELECT n.nid, teaser FROM {node} n INNER JOIN {node_revisions} r ON n.nid=r.nid "." WHERE n.status=1 AND n.type='$content_type' ORDER BY n.created LIMIT 5"; |
| 174 |
$results = db_query($sql); |
$results = db_query($sql); |
| 175 |
|
|
| 176 |
$output_body .= '<div id="slider1" class="sliderwrapper">'."\n"; |
$output_body .= '<div id="slider1" class="sliderwrapper">'."\n"; |
| 206 |
$output_body .= '</script>'; |
$output_body .= '</script>'; |
| 207 |
|
|
| 208 |
|
|
| 209 |
$output_body .= '</div>'; |
//$output_body .= '</div>'; |
| 210 |
|
|
| 211 |
|
|
| 212 |
$block['subject'] = 'Content Slider 1'; |
$block['subject'] = 'Content Slider 1'; |