Ejemplo n.º 1
0
 $content[] = '<h3>' . $info['name'] . '</h3>';
 $content[] = '<p class=detail>' . $info['description'] . '</p>';
 $content[] = '<p class=folder>' . str_replace('%s', "skin/{$config['skin']}/", $lng['LNG_TEMPLATE_FOLDER']) . '</p>';
 $content[] = '</article>';
 $content[] = '</article>';
 $content[] = '<article class="list clear">';
 $content[] = '<h2>{LNG_TEMPLATE_OTHER}</h2>';
 // รายการแรกที่แสดง
 $l = sizeof($colors);
 $c = 1;
 $n = 1;
 $start = $list_per_page * ($page - 1);
 $max = min($count, $start + $list_per_page);
 for ($r = $start; $r < $max; $r++) {
     $text = $themes[$r];
     $info = gcms::parse_theme("{$dir}/{$text}/style.css");
     $row = '<article class=item>';
     $n++;
     if (isset($info['responsive'])) {
         $row .= '<span title=Responsive class=icon-responsive></span>';
     }
     $c = $c == 4 ? 0 : $c + 1;
     $row .= '<span class=preview style="background-image:url(' . WEB_URL . '/skin/' . $text . '/screenshot.jpg)" title="{LNG_THUMBNAIL}"></span>';
     $row .= '<h3>' . $info['name'] . '</h3>';
     $row .= '<p class=detail>' . $info['description'] . '</p>';
     $row .= '<p class=folder>' . str_replace('%s', 'skin/' . $text . '/', $lng['LNG_TEMPLATE_FOLDER']) . '</p>';
     $row .= '<p>';
     $row .= '<a href="index.php?module=template&amp;page=' . $page . '&amp;action=use&amp;theme=' . $text . '">{LNG_TEMPLATE_SELECT}</a>&nbsp;|&nbsp;';
     $row .= '<a href="index.php?module=template&amp;page=' . $page . '&amp;action=delete&amp;theme=' . $text . '">{LNG_DELETE}</a>';
     $row .= '</p>';
     $row .= '</article>';