<?php defined('IN_DESTOON') or exit('Access Denied'); $comment = 0; if (isset($MODULE[16])) { $table = $DT_PRE . 'mall_comment'; $comment = 1; $STARS = $L['star_type']; $view = isset($view) ? 1 : 0; $url = "file={$file}"; if ($view) { $url .= "&view={$view}"; $condition = "buyer='{$username}' AND buyer_star>0"; } else { $condition = "seller='{$username}' AND seller_star>0"; } $demo_url = userurl($username, $url . '&page={destoon_page}', $domain); $r = $db->get_one("SELECT COUNT(*) AS num FROM {$table} WHERE {$condition}", 'CACHE'); $items = $r['num']; $pages = home_pages($items, $pagesize, $demo_url, $page); $lists = array(); if ($items) { $result = $db->query("SELECT * FROM {$table} WHERE {$condition} ORDER BY itemid DESC LIMIT {$offset},{$pagesize}"); while ($r = $db->fetch_array($result)) { $lists[] = $r; } $db->free_result($result); } } include template('credit', $template);
<div id="main" class="clearfix"> <div class="intro shadow clearfix"> <div class="col-xs-12"> <div class="col-xs-9 no-float"> <p><?php the_excerpt(); ?> </p> </div> </div> </div> <div class="cont-servicios"> <div class="clearfix"> <div class="cont-interior col-xs-12"> <?php if (function_exists('home_pages')) { home_pages("id=" . $post->ID . "&class=hpage&childs=true"); } ?> </div> </div> </div> </div> <!--/main--> </div> <?php } } ?> <?php get_footer();