tonephp/tonephp

0.1.14 2022-11-25 20:53 UTC

README

Create site using Starter Kit 🚀

Follow this link to start using TonePHP - tonephp/starter-kit

DOCS

Currency widget

Currency widget usage

-- Insert currency select in file app/components/header/header.php:

Add this line into the div with class "header__cell"

<?php new \app\widgets\currency\Currency(); ?>

-- Edit file app/components/hero/hero.php:

Add this code after the div with class "hero__logo"

<div>
  <?=\app\widgets\currency\Currency::calculatePriceWithCurrency(100);?>
</div>

How to create Currency widget

Menu widget

Menu widget usage

-- Insert this code in the file app/components/header/header.php:

Add this code after the first div with class "header__cell"

<div class="header__cell">
    <?php new \app\widgets\menu\Menu([
        'tpl' => APP . '/widgets/menu/templates/menu/menu.php',
        'container' => 'ul',
    ]);?>
</div>

How to create Menu widget