示例#1
0
<div class="bulk_options">
  <button class="btn" name="delete" data-delete-msg="' . $LANG['delete_msg'] . '">' . $LANG['delete_all'] . '</button>
</div>';
            $per_page = 5;
            $page = isset($_GET['page']) ? $_GET['page'] : 1;
            $pages = ceil(count($themes['dirs']) / $per_page);
            if ($page * $per_page > $pages) {
                $page = $pages;
            }
            $start = ($page - 1) * $per_page;
            foreach (array_slice($themes['dirs'], $start, $per_page) as $item) {
                echo '<li><input type="checkbox" name="id[' . $item . ']"' . ($current == $item ? ' disabled' : '') . ' />

  <div style="display: table;">';
                echo '<img src="' . \query\main::theme_avatar(str_replace(DIR . '/', '', current(glob(DIR . '/' . THEMES_LOC . '/' . $item . '/preview.[jpg][pni][gf]')))) . '" alt="" style="width: 85px; height: 85px;" />';
                echo '<div class="info-div"><h2>' . ($current == $item ? '<span class="msg-success">' . $LANG['themes_used'] . '</span> ' : '') . $item . '</h2>

  <div class="info-bar">';
                if ($info = template::read_theme_info_file($item)) {
                    $infos = array();
                    if (isset($info['version'])) {
                        $infos[] = $LANG['themes_version'] . ': <b>' . htmlspecialchars($info['version']) . '</b>';
                    }
                    if (isset($info['published_by'])) {
                        $infos[] = $LANG['themes_published_by'] . ': <b>' . htmlspecialchars($info['published_by']) . '</b>';
                    }
                    if (isset($info['publisher_url'])) {
                        $infos[] = $LANG['themes_publisher_url'] . ': <a href="' . htmlspecialchars($info['publisher_url']) . '" target="_blank">' . htmlspecialchars($info['publisher_url']) . '</a>';
                    }
                    if (isset($info['description'])) {