Exemplo n.º 1
0
$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();
?>

<section id="layers-marketplace" class="layers-area-wrapper">

	<?php 
$this->marketplace_header('Marketplace');
?>
Exemplo n.º 2
0
				</div>

				<div class="layers-column layers-span-5">

					<div class="layers-panel">
						<div class="layers-panel-title">
							<h4 class="layers-heading"><?php 
_e('Extensions', 'layerswp');
?>
</h4>
						</div>

						<ul class="layers-list layers-extensions">
							<?php 
foreach ($api->get_extension_list() as $extension_key => $extension_details) {
    ?>
								<li>
									<h3 class="layers-heading">
										<?php 
    echo $extension_details['title'];
    ?>
									</h3>
									<?php 
    if (isset($extension_details['description'])) {
        ?>
										<p>
											<?php 
        echo $extension_details['description'];
        ?>
										</p>