File: /var/www/vhosts/creativefellows.nl/okaycolor.creativefellows.nl/src/settings.php
<?php
setlocale(LC_TIME, 'nl_NL');
return [
'settings' => [
'displayErrorDetails' => true, // set to false in production
'addContentLengthHeader' => false, // Allow the web server to send the content-length header
'renderer' => [
'template_path' => __DIR__ . '/../views/'
],
'upload_path' => __DIR__ . '/../upload/',
'upload_folder' => '/upload/',
'site_url' => "http://okaycolor.creativefellows.nl/",
'db' => [
'host' => "localhost",
'user' => "pgshhop_user", // pgshhop_user
'pass' => "hwX8#f71", // hwX8#f71
'dbname'=> "printgarden_shop2019"
],
'html_wrapper' => '<div class="grid-container{class}" id="{id}"><div class="grid-x grid-padding-x">{html}</div></div>',
'logo_primary' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 265 48"><defs><style>.b{clip-path:url(#a)}.c{fill:#1d1d1b}</style><clipPath id="a"><path fill="none" d="M0 0h264.23v48H0z"/></clipPath></defs><g class="b"><path class="c" d="M42.28 16.68c-4.24-1-6.48 1.48-6.48 7.81v10.45h-7.75V9.59h7.24a30.87 30.87 0 0 1-.36 4.49H35c1.32-3 3.72-5.36 7.6-5.1"/></g><path class="c" d="M47.37 9.58h7.75v25.36h-7.75z"/><g class="b"><path class="c" d="M77.83 34.94V18.82c0-2-.56-3.26-2.35-3.26-2.75 0-5 3.36-5 7.09v12.29h-7.8V9.59h7.25a23.54 23.54 0 0 1-.31 4A9.42 9.42 0 0 1 78.09 9c5.66 0 7.49 3.62 7.49 8v17.9M100.32 35.5c-5.87 0-7.76-1.93-7.76-8.16V2.09L100.32 0v9.59h5.51v6h-5.47v10c0 2.6.67 3.48 2.61 3.48a13.15 13.15 0 0 0 2.86-.41v6.17a24.31 24.31 0 0 1-5.51.71M155.45 34.94a34.42 34.42 0 0 1 .25-4.69v-.05a8.86 8.86 0 0 1-8.42 5.25c-4.33 0-7.09-2.45-7.09-6.48 0-5.81 5.82-9.18 15-9.18v-1.63c0-3.16-1.33-4.79-5.31-4.79a15.57 15.57 0 0 0-7.54 2l-.52-4.64a25.36 25.36 0 0 1 8.93-1.68c7.76 0 9.9 3.37 9.9 8.57V28c0 2.2 0 4.8.15 6.94zm-.36-11.48c-8 0-9.7 2.4-9.7 4.6 0 1.88 1.33 3.11 3.48 3.11 3.72 0 6.22-3.57 6.22-7.19M181.66 14.43c-5-.91-7.5 2.61-7.5 10.21v10.3h-5.46V9.59h5.2a34.83 34.83 0 0 1-.5 5.61h.09c1.13-3.42 3.68-6.58 8.42-6.12M202.47 34.94a30 30 0 0 1 .36-4.74h-.1a8.75 8.75 0 0 1-8.27 5.25c-6.22 0-9.33-4.59-9.33-11.93 0-8.73 5.05-14.34 13.26-14.34 1.23 0 2.45.1 3.83.2V0h5.4v34.94zm-.25-21a18.87 18.87 0 0 0-4-.45c-4.33 0-7.29 2.65-7.29 9.48 0 5.1 1.59 8 5.05 8 4 0 6.28-4.79 6.28-9.13M236 22.6h-16.12c-.16 5.86 2.44 8.51 7.49 8.51a17.32 17.32 0 0 0 7.4-1.63l.51 4.34a23.17 23.17 0 0 1-8.77 1.63c-7.91 0-12.25-4.08-12.25-13 0-7.65 4.18-13.36 11.58-13.36 7.25 0 10.36 4.95 10.36 11a23.15 23.15 0 0 1-.2 2.51m-10.4-9.49c-3.06 0-5.21 2.25-5.66 5.66h10.76c.1-3.47-1.89-5.66-5.1-5.66"/></g><path class="c" d="M48.2.01h5.85v5.85H48.2z"/><g class="b"><path class="c" d="M120.13 35.37h5.5c3.22 0 4.7 1.43 4.7 3.62 0 2.75-2.66 4.79-7.4 4.79-3.67 0-6.23-1.53-6.23-4.23a4.23 4.23 0 0 1 .94-2.57 10.52 10.52 0 0 1-3.9-1.62 7.09 7.09 0 0 0-2.44 5.21c0 4.9 4.13 7.45 10.76 7.45 8.16 0 13.67-4.34 13.67-9.74 0-4.75-3.11-7.35-8.62-7.35h-4.33c-3.07 0-4.19-.51-4.19-1.78a2.09 2.09 0 0 1 1.48-1.89 17.06 17.06 0 0 0 2.91.25c7.14 0 11-3.88 11-9.38a5.38 5.38 0 0 0-1.74-4.24h3.88v-4.3h-8.57a18.19 18.19 0 0 0-4.18-.51c-7.24 0-11.33 4.49-11.33 9.84 0 3.16 1.28 5.77 3.78 7.14a4.77 4.77 0 0 0-2.91 4.34 4 4 0 0 0 2.4 3.76l.18.13a9.14 9.14 0 0 0 4 1h.31zm2.9-11.7c-3.67 0-5.71-1.94-5.71-5.26 0-3.11 2.14-5.3 5.76-5.3s5.62 2 5.62 5.35-2.25 5.21-5.67 5.21M258.83 34.94V18.62c0-3.17-.87-5-3.78-5-3.82 0-6.63 4-6.63 9.08v12.24H243V9.59h5.2a33.91 33.91 0 0 1-.35 4.95l.05.05a9.24 9.24 0 0 1 8.82-5.51c5.77 0 7.55 3.62 7.55 8.11v17.75M9.79 23.57c-.4 0-1.12 0-1.83-.06v11.43H0V.51C3 .36 6.22.25 9.79.25c8.78 0 13.57 4 13.57 11.07 0 6.68-4.79 12.25-13.57 12.25M9.64 6.73H7.96v10.1c.51.05 1 .11 1.37.11 3.32-.06 5.82-1.95 5.82-5.31 0-2.91-1.58-4.95-5.51-4.95"/></g></svg>',
'default_email' => 'info@printgarden.nl',
'default_phone' => '0172 42 76 60',
'deliveryspecs_url' => '/aanleverspecificaties',
'm2_price' => 4,
'm2_price_offset' => 0.07,
'start_costs_print' => 0,
'start_costs_offset'=> 60,
'pagination' => 20,
'delivery' => [
"default" =>[
"type"=> 1,
//"product_types" => [1,2,3,4,5],
"selected" => true,
"price" => 7.00,
"max"=> 50,
"label" => "Standaard bezorging",
"desc" => "Tussen 08.00 en 18.00 uur",
"priority" => 0,
"weight" => 30,
"width" => 0,
"height" => 0,
"surface"=> null
],
"express" =>[
"type"=> 1,
//"product_types" => [1,2,3,4,5],
"selected" => false,
"price" => 15.00,
"max"=> 50,
"label" => "Express bezorging",
"desc" => "Vóór 12.00 uur ‘s ochtends",
"priority" => 0,
"weight" => 30,
"width" => null,
"height" => null,
"surface"=> null
],
"rigid_surface" =>[ // = Plaatmateriaal
"type" => 2,
//"product_types" => [2],
"selected" => false,
"price" => 25,
"max"=> 50,
"label" => "Verzendkosten",
"desc" => "Oppervlakte groter dan 1m<sup>2</sup>",
"priority" => 1,
"weight" => 0,
"width" => null,
"height" => null,
"surface"=> 10000
],
"flexible_surface" =>[ // = Sticker, Folie & Spandoeken
"type"=> 3,
//"product_types" => [5],
"selected" => false,
"price" => 15,
"max"=> 50,
"label" => "Verzendkosten",
"desc" => "Afmeting groter dan 175 x 175cm",
"priority" => 0,
"weight" => 0,
"width" => 175,
"height" => 175,
"surface"=> null
],
],
"address_fields" => [
["name" => "company", "type" => "text", "human" => "Bedrijfsnaam","size" => "small-12", "required" => true],
["name" => "firstname", "type" => "text", "human" => "Voornaam"],
["name" => "lastname", "type" => "text", "human" => "Achternaam", "required" => true],
["name" => "address", "type" => "text", "human" => "Adres", "required" => true],
["name" => "number", "type" => "text", "human" => "Huisnummer", "required" => true],
["name" => "zip", "type" => "text", "human" => "Postcode", "required" => true],
["name" => "city", "type" => "text", "human" => "Plaats", "required" => true],
["name" => "phone", "type" => "text", "human" => "Telefoonummer"],
["name" => "country", "type" => "select", "human" => "Land", "options" => ["NL" => "Nederland","BE" => "België","DE" => "Duitsland"]],
["name" => "default_user_address", "type" => "switch", "human" => "Standaard afleveradres?", "options" => ["Ja"," "]],
["type" => "button", "human" => "Toevoegen", "icon"=>"<i class=\"fal fa-plus\"></i>"]
],
"delivery_lead" => ["type" => "input", "human" => "Levering tekst"],
// Monolog settings
'logger' => [
'name' => 'slim-app',
'path' => isset($_ENV['docker']) ? 'php://stdout' : __DIR__ . '/../logs/app.log',
'level' => \Monolog\Logger::DEBUG,
]
]
];
function d($str)
{
echo "<pre>";
print_r($str);
echo "</pre>";
}
?>