Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $q = "SELECT `contentid`
- FROM aska1_site_tmplvar_contentvalues
- WHERE `tmplvarid`=59 AND `value`=1
- ";
- $qery = $modx->db->query($q);
- while ($res = $modx->db->getRow($qery)) {
- $bigres[] = $res[contentid];
- }
- if ($bigres > 0) {
- $ids = implode(",", $bigres);
- ?>
- <ul id="coverflow2">
- <?php
- echo $modx->runSnippet('Ditto', array(
- 'documents' => $ids,
- 'depth' => '0',
- 'tpl' => 'ditto_rotator',));
- }
- ?>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement