PHP code example of masterflash-ru / kontakt
1. Go to this page and download the library: Download masterflash-ru/kontakt library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once ('vendor/autoload.php' );
masterflash-ru / kontakt example snippets
'kontakt_en_US' => [
'type' => Segment::class,
'options' => [
'route' => '/en/kontakt' ,
'defaults' => [
'controller' => Controller\IndexController::class,
'action' => 'index' ,
'locale' => 'en_US'
],
],
],
'translator' => [
'locale' => 'en_US' ,
'translation_file_patterns' => [
[
'type' => 'phparray' ,
'base_dir' => __DIR__ . '/../locale' ,
'pattern' => '%s.php' ,
],
],
],
return [
"Ваш email адрес" =>"Your email address" ,
];
"kontakt" =>[
"categories" =>[
'kontakt_page' =>[
'description' =>'Страница контактов + форма' ,
'tpl' => [
'index' => 'kontakt/index/index' ,
'ok' => 'kontakt/index/ok' ,
],
'layout' => null ,
"forma" =>__DIR__ ."/forma.kontakt.config.php" ,
],
'subs' =>[
'description' =>'Всплывающее окно для подписок' ,
'tpl' => [
'index' => 'kontakt/subs/index' ,
'ok' => 'kontakt/subs/ok' ,
],
"forma" =>__DIR__ ."/forma.subs.config.php" ,
],
'call' =>[
'description' =>'Всплывающее окно для обратного звонка' ,
'tpl' => [
'index' => 'kontakt/call/index' ,
'ok' => 'kontakt/call/ok' ,
],
"forma" =>__DIR__ ."/forma.call.config.php" ,
],
],
"enables" =>[
"kontakt_page" =>true ,
"subs" =>false ,
"call" =>false
],
],