<main class="shop zero"><ul class="top"><li><a class="ajax block" href="/<?=$top['link']?>">
<img alt="" class="icon" src="/design/icons/<?=$top['icon']?>.png"><?=$top['text']?></a></li></ul><? if ($seeds) : ?><h3>Семена</h3>
<? if (!$storage) : ?><p class="notice"><img alt="" class="icos" src="/design/icons/cross.png">Недостаточно места на складе для 
покупки семян.</p><? else: ?><ul class="seed"><li><article class="shop seed"><img alt="" class="seed" src="/design/shop/seeds/<?=PLANT['image_1']?>.png">
<h4><span class="color"><?=PLANT['name_1']?></span> (<?=$count['flower']['count'] .' шт.'; ?>)</h4><p>
<img alt="" class="icos" src="/design/icons/money.png">Цена: <?=PRICE['seed_1']?> монет</p></article><? if ($buy['flower_1']) : ?><ul class="shop">
<? if ($buy['flower_1']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/1/count/1/token/<?=TOKEN?>">+1</a></li><? endif; ?>
<? if ($buy['flower_3']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/1/count/3/token/<?=TOKEN?>">+3</a></li><? endif; ?>
<? if ($buy['flower_5']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/1/count/5/token/<?=TOKEN?>">+5</a></li><? endif; ?>
<? if ($buy['flower_10']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/1/count/10/token/<?=TOKEN?>">+10</a></li><? endif; ?></ul>
<? else: ?><p class="center"><img alt="" class="icos" src="/design/icons/cross.png">Не хватает <?=$GAME->word($balance['flower'], 'монеты', 'монет', 'монет')?> 
для покупки цветов.</p><? endif; ?></li><li><article class="shop seed"><img alt="" class="seed" src="/design/shop/seeds/<?=PLANT['image_2']?>.png">
<h4><span class="color"><?=PLANT['name_2']?></span> (<?=$count['wheat']['count'] .' шт.'; ?>)</h4><p>
<img alt="" class="icos" src="/design/icons/money.png">Цена: <?=PRICE['seed_2']?> монет</p></article><? if ($buy['wheat_1']) : ?><ul class="shop">
<? if ($buy['wheat_1']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/2/count/1/token/<?=TOKEN?>">+1</a></li><? endif; ?>
<? if ($buy['wheat_3']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/2/count/3/token/<?=TOKEN?>">+3</a></li><? endif; ?>
<? if ($buy['wheat_5']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/2/count/5/token/<?=TOKEN?>">+5</a></li><? endif; ?>
<? if ($buy['wheat_10']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/2/count/10/token/<?=TOKEN?>">+10</a></li><? endif; ?></ul>
<? else: ?><p class="center"><img alt="" class="icos" src="/design/icons/cross.png">Не хватает <?=$GAME->word($balance['wheat'], 'монеты', 'монет', 'монет')?> 
для покупки пшеницы.</p><? endif; ?></li><li><article class="shop seed"><img alt="" class="seed" src="/design/shop/seeds/<?=PLANT['image_3']?>.png">
<h4><span class="color"><?=PLANT['name_3']?></span> (<?=$count['corn']['count'] .' шт.'; ?>)</h4><p>
<img alt="" class="icos" src="/design/icons/money.png">Цена: <?=PRICE['seed_3']?> монет</p></article><? if ($buy['corn_1']) : ?><ul class="shop">
<? if ($buy['corn_1']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/3/count/1/token/<?=TOKEN?>">+1</a></li><? endif; ?>
<? if ($buy['corn_3']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/3/count/3/token/<?=TOKEN?>">+3</a></li><? endif; ?>
<? if ($buy['corn_5']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/3/count/5/token/<?=TOKEN?>">+5</a></li><? endif; ?>
<? if ($buy['corn_10']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/3/count/10/token/<?=TOKEN?>">+10</a></li><? endif; ?></ul>
<? else: ?><p class="center"><img alt="" class="icos" src="/design/icons/cross.png">Не хватает <?=$GAME->word($balance['corn'], 'монеты', 'монет', 'монет')?> 
для покупки кукурузы.</p><? endif; ?></li><li><article class="shop seed"><img alt="" class="seed" src="/design/shop/seeds/<?=PLANT['image_4']?>.png">
<h4><span class="color"><?=PLANT['name_4']?></span> (<?=$count['strawberry']['count'] .' шт.'; ?>)</h4><p>
<img alt="" class="icos" src="/design/icons/money.png">Цена: <?=PRICE['seed_4']?> монет</p></article><? if ($buy['strawberry_1']) : ?><ul class="shop">
<? if ($buy['strawberry_1']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/4/count/1/token/<?=TOKEN?>">+1</a></li><? endif; ?>
<? if ($buy['strawberry_3']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/4/count/3/token/<?=TOKEN?>">+3</a></li><? endif; ?>
<? if ($buy['strawberry_5']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/4/count/5/token/<?=TOKEN?>">+5</a></li><? endif; ?>
<? if ($buy['strawberry_10']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/4/count/10/token/<?=TOKEN?>">+10</a></li><? endif; ?></ul>
<? else: ?><p class="center"><img alt="" class="icos" src="/design/icons/cross.png">Не хватает <?=$GAME->word($balance['strawberry'], 'монеты', 'монет', 'монет')?> 
для покупки клубники.</p><? endif; ?></li><li><article class="shop seed"><img alt="" class="seed" src="/design/shop/seeds/<?=PLANT['image_5']?>.png">
<h4><span class="color"><?=PLANT['name_5']?></span> (<?=$count['watermelon']['count'] .' шт.'; ?>)</h4><p>
<img alt="" class="icos" src="/design/icons/money.png">Цена: <?=PRICE['seed_5']?> монет</p></article><? if ($buy['watermelon_1']) : ?><ul class="shop">
<? if ($buy['watermelon_1']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/5/count/1/token/<?=TOKEN?>">+1</a></li><? endif; ?>
<? if ($buy['watermelon_3']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/5/count/3/token/<?=TOKEN?>">+3</a></li><? endif; ?>
<? if ($buy['watermelon_5']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/5/count/5/token/<?=TOKEN?>">+5</a></li><? endif; ?>
<? if ($buy['watermelon_10']) : ?><li><a class="ajax button shop" href="/shop/<?=$link?>buy/seed/5/count/10/token/<?=TOKEN?>">+10</a></li><? endif; ?></ul>
<? else: ?><p class="center"><img alt="" class="icos" src="/design/icons/cross.png">Не хватает <?=$GAME->word($balance['watermelon'], 'монеты', 'монет', 'монет')?> 
для покупки арбуза.</p><? endif; ?></li></ul><? endif; ?><? endif; ?><? if ($animal) : ?><h3<?=$line?>>Животные</h3><ul>
<li><? if ($post['chicken']['link']) : ?><a class="ajax list" href="/<?=$post['chicken']['url']?>/token/<?=TOKEN?>">
<? endif; ?><article class="shop pet"><img alt="" class="shop pet" src="/design/shop/animal/chicken.png">
<h4><?=ANIMAL['name_1']?></h4><p><img alt="" class="icos" src="/design/icons/<?=$post['chicken']['icon']?>.png">
<?=$post['chicken']['text']?></p></article><? if ($post['chicken']['link']) : ?></a><? endif; ?></li>
<li><? if ($post['sheep']['link']) : ?><a class="ajax list" href="/<?=$post['sheep']['url']?>/token/<?=TOKEN?>">
<? endif; ?><article class="shop pet"><img alt="" class="shop pet" src="/design/shop/animal/sheep.png">
<h4><?=ANIMAL['name_2']?></h4><p><img alt="" class="icos" src="/design/icons/<?=$post['sheep']['icon']?>.png">
<?=$post['sheep']['text']?></p></article><? if ($post['sheep']['link']) : ?></a><? endif; ?></li>
<li><? if ($post['cow']['link']) : ?><a class="ajax list" href="/<?=$post['cow']['url']?>/token/<?=TOKEN?>">
<? endif; ?><article class="shop pet"><img alt="" class="shop pet" src="/design/shop/animal/cow.png">
<h4><?=ANIMAL['name_3']?></h4><p><img alt="" class="icos" src="/design/icons/<?=$post['cow']['icon']?>.png">
<?=$post['cow']['text']?></p></article><? if ($post['cow']['link']) : ?></a><? endif; ?></li>
</ul><? endif; ?><? if ($technic) : ?><h3<?=$line?>>Техника</h3>
<ul><li><? if ($post['knitter']['link']) : ?><a class="ajax list" href="/<?=$post['knitter']['url']?>/token/<?=TOKEN?>">
<? endif; ?><article class="shop tech"><img alt="" class="shop tech" src="/design/shop/technic/knitter.png">
<h4><?=TECHNIC['name_1']?></h4><p><img alt="" class="icos" src="/design/icons/<?=$post['knitter']['icon']?>.png">
<?=$post['knitter']['text']?></p></article><? if ($post['knitter']['link']) : ?></a><? endif; ?></li>
<li><? if ($post['freezer']['link']) : ?><a class="ajax list" href="/<?=$post['freezer']['url']?>/token/<?=TOKEN?>">
<? endif; ?><article class="shop tech"><img alt="" class="shop tech" src="/design/shop/technic/freezer.png">
<h4><?=TECHNIC['name_2']?></h4><p><img alt="" class="icos" src="/design/icons/<?=$post['freezer']['icon']?>.png">
<?=$post['freezer']['text']?></p></article><? if ($post['freezer']['link']) : ?></a><? endif; ?></li>
<li><? if ($post['bakery']['link']) : ?><a class="ajax list" href="/<?=$post['bakery']['url']?>/token/<?=TOKEN?>">
<? endif; ?><article class="shop tech"><img alt="" class="shop tech" src="/design/shop/technic/bakery.png">
<h4><?=TECHNIC['name_3']?></h4><p><img alt="" class="icos" src="/design/icons/<?=$post['bakery']['icon']?>.png">
<?=$post['bakery']['text']?></p></article><? if ($post['bakery']['link']) : ?></a><? endif; ?></li></ul><? endif; ?></main>