Example #1
0
@extends(app('oxygen.layout'))

@section('content')

<?php 
use Oxygen\Core\Html\Header\Header;
$header = Header::fromBlueprint($blueprint, Lang::get('oxygen/mod-marketplace::ui.home.title'));
?>

<div class="Block">
    {!! $header->render() !!}
</div>

<div class="Row--layout Row--alignTop">
    @include('oxygen/mod-marketplace::filters', ['fields' => $fields])
    <div class="Cell-twoThirds Cell--last Row--layout">
        @if(empty($results['results']))
            <h2 class="heading-gamma">No results</h2>
        @else
            <?php 
$i = 0;
?>
            @foreach($paginator as $package)
                <?php 
$i++;
?>
                <a href="{{{ URL::route('marketplace.getDetails', $package->getSplitName()) }}}" class="Marketplace-item Header Header--block Block Cell-oneThird<?php 
if ($i % 3 === 0) {
    echo ' Cell--last';
}
?>
Example #2
0
@extends(app('oxygen.layout'))

@section('content')

<?php 
use Carbon\Carbon;
use Oxygen\Core\Html\Header\Header;
use Oxygen\Core\Html\Toolbar\ButtonToolbarItem;
use Oxygen\Core\Html\Toolbar\DisabledToolbarItem;
$header = Header::fromBlueprint($blueprint, $package->getPrettyName());
$previous = URL::previous();
$url = $previous === URL::to('/') || $previous === URL::current() ? URL::route($blueprint->getRouteName('getHome')) : $previous;
$header->setBackLink($url);
?>

<div class="Block">
    {!! $header->render() !!}
</div>

<div class="Block">
    <div class="Row Row--border Row--highlight Row--singleLine">
        <div class="Cell-oneThird Text--alignCenter">
            @if($package->hasIcon())
                <img src="{{{ $package->getIcon()}}}">
            @else
                <div class="Icon-container">
                    <span class="Icon Icon--gigantic Icon--light Icon-dropbox"></span>
                </div>
            @endif
        </div>
        <div class="Cell-twoThirds Cell--last">
            @endif
            @foreach($paginator as $package)
                <?php 
$header = Header::fromBlueprint($blueprint, $package->getPrettyName(), ['vendor' => $package->getSplitname()[0], 'package' => $package->getSplitname()[1]], Header::TYPE_SMALL, 'item');
if ($package->getPrettyName() !== $package->getName()) {
    $header->setSubtitle($package->getName());
}
echo $header->render();
$providers = $package->getProviders();
?>
                @if(!empty($providers))
                    <div class="Row--visual">
                        <div class="Text--indent">
                            @foreach($providers as $provider)
                                <?php 
$header = Header::fromBlueprint($blueprint, $provider['name'], ['provider' => $provider['class']], Header::TYPE_TINY, 'provider');
$header->setSubtitle($provider['class']);
echo $header->render();
?>
                                <p>{{{ $provider['description'] }}}</p>
                            @endforeach
                        </div>
                    </div>
                @endif
            @endforeach
        </div>
    </div>
    @if(!empty($installed))
        <div class="Row">
            {{ $paginator->render() }}
        </div>
@extends(app('oxygen.layout'))

@section('content')

<?php 
use Carbon\Carbon;
use Oxygen\Core\Html\Header\Header;
use Oxygen\Core\Html\Form\Form;
$header = Header::fromBlueprint($blueprint, Lang::get('oxygen/mod-marketplace::ui.installProgress.title'));
$header->setBackLink(URL::route($blueprint->getRouteName('getHome')));
?>

<div class="Block">
    {!! $header->render() !!}
</div>

<div class="Block">
    <?php 
$form = new Form($blueprint->getAction('postInstallProgress'));
$form->setId('progressForm');
echo $form->render();
?>
    <div class="Row--visual">
        <div class="ProgressBar" id="install-progress"><span class="ProgressBar-fill" style="width: 100%;"></span></div>
        <div class="ProgressBar-message">
            <span class="ProgressBar-message-item"></span>
            <span class="ProgressBar-message-section">
                Step
                <span class="ProgressBar-message-section-count">0</span>
                -
                <span class="ProgressBar-message-section-message">Contacting Server</span>