Advertisement
vanchelo

Untitled

Apr 12th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. <?php
  2. $q = "SELECT  `contentid`
  3.         FROM  aska1_site_tmplvar_contentvalues
  4.         WHERE `tmplvarid`=59 AND `value`=1
  5.         ";
  6. $qery = $modx->db->query($q);
  7. while ($res = $modx->db->getRow($qery)) {
  8.     $bigres[] = $res[contentid];
  9. }
  10. if ($bigres > 0) {
  11.     $ids = implode(",", $bigres);
  12.     ?>
  13.     <ul id="coverflow2">
  14.         <?php
  15.         echo $modx->runSnippet('Ditto', array(
  16.             'documents' => $ids,
  17.             'depth' => '0',
  18.             'tpl' => 'ditto_rotator',));
  19.         }
  20.         ?>
  21.     </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement