コード例 #1
0
<?php

/**
 * @var array
 * @var $state string
 */
use hipanel\modules\domain\models\Domain;
use yii\helpers\Html;
use yii\helpers\Url;
/** @var array $line */
$addToCartPath = '/domain/domain/add-to-cart-registration';
?>

<div class="domain-iso-line
    <?php 
echo Domain::setIsotopeFilterValue($line['zone']);
?>
    <?php 
echo $line['isAvailable'] ? 'available' : 'unavailable';
?>
    <?php 
echo $line['fqdn'] === $requestedDomain ? 'popular' : $requestedDomain;
?>
">
    <div
        class="domain-line <?php 
echo $line['isAvailable'] === true ? 'checked' : '';
?>
"
        data-domain="<?php 
echo $line['fqdn'];
コード例 #2
0
<?php

use hipanel\modules\domain\forms\CheckForm;
use hipanel\modules\domain\models\Domain;
use yii\helpers\Html;
use yii\helpers\Url;
/** @var CheckForm $model */
$addToCartPath = '/domain/domain/add-to-cart-registration';
?>

<div class="domain-iso-line
    <?php 
echo Domain::setIsotopeFilterValue($model->zone);
?>
    <?php 
echo $model->isAvailable ? 'available' : 'unavailable';
?>
    <?php 
//= $line['fqdn'] === $requestedDomain ? 'popular' : $requestedDomain
?>
">
    <div
        class="domain-line <?php 
echo $model->isAvailable ? 'checked' : '';
?>
"
        data-domain="<?php 
echo $model->fqdn;
?>
">
        <div class="col-md-5 col-sm-12 col-xs-12">