tonephp / tonephp
0.1.14
2022-11-25 20:53 UTC
Requires
- php: >=7.2.0
- vlucas/phpdotenv: ^4.0
- vlucas/valitron: ^1.4
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
- Create Currency widget - currency-widget.md
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
- Create Menu widget - menu-widget.md