Esempio n. 1
0
// Get the API up and running for the plugin listing
$api = new Layers_API();
$layers_migrator = new Layers_Widget_Migrator();
$valid_types = array('stylekits', 'extensions', 'themes');
$type = isset($_GET['type']) ? $_GET['type'] : 'themes';
if (!in_array($type, $valid_types)) {
    return;
}
?>

<?php 
switch ($type) {
    case 'stylekits':
        $excerpt = __('StyleKits', 'layerswp');
        $products = $api->get_stylekit_list();
        $fallback_url = 'http://bit.ly/layers-stylekits';
        break;
    case 'extensions':
        $excerpt = __('Extensions', 'layerswp');
        $products = $api->get_extension_list();
        $fallback_url = 'http://bit.ly/layers-extensions';
        break;
    default:
        $excerpt = __('Themes', 'layerswp');
        $products = $api->get_theme_list();
        $fallback_url = 'http://bit.ly/layers-themes';
}
$all_authors = array();
?>