Beispiel #1
0
 */
function addHelp()
{
    echo '<p>' . __('Browse and download available Osclass plugins, from a constantly-updated selection. After downloading a plugin, you have to install it and configure it to get it up and running.') . '</p>';
}
osc_add_hook('help_box', 'addHelp');
osc_current_admin_theme_path('market/header.php');
$title = __get('title');
$section = __get('section');
$array = __get('array');
$pagination = __get('pagination');
$sort = __get('sort');
$url_premium = __get('url_premium');
$url_all = __get('url_all');
$aFeatured = __get('aFeatured');
$colors = array_merge(gradienColors(), array_merge(gradienColors(), gradienColors()));
$categories = __get('market_categories');
$categories = isset($categories[$section]) ? $categories[$section] : array();
if ($section == 'plugins' || $section == 'themes') {
    ?>
<div class="grid-market">

    <h2 class="section-title"><?php 
    _e('Featured');
    ?>
</h2>

        <?php 
    foreach ($aFeatured as $item) {
        drawMarketItem($item, $colors[array_rand($colors)]);
    }
Beispiel #2
0
        ?>
</option>
                <?php 
    }
    ?>
            </select>
        </span>
    <?php 
}
?>
    </h2>
    <?php 
// if there are data to be shown
if (isset($array[$section])) {
    if (isset($array['total']) && (int) $array['total'] > 0) {
        $colors = gradienColors();
        foreach ($array[$section] as $item) {
            drawMarketItem($item, $colors[array_rand($colors)]);
        }
        echo '<div class="clear"></div><div class="has-pagination">' . $pagination . '</div>';
    } else {
        ?>
            <div>
                <p class="flashmessage flashmessage-inline flashmessage-error"><?php 
        printf(__('There are no %s that matches your search'), $section);
        ?>
</p>
            </div>
        <?php 
    }
} else {