@@ -1,5 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | // File generated to wrap the alias page - DO NOT MODIFY - It is just a wrapper to real page |
3 | 3 | global $dolibarr_main_data_root; |
4 | -if (empty($dolibarr_main_data_root)) require './page249.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page249.tpl.php'; |
|
4 | +if (empty($dolibarr_main_data_root)) { |
|
5 | + require './page249.tpl.php'; |
|
6 | +} else { |
|
7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page249.tpl.php'; |
|
8 | +} |
|
5 | 9 | ?> |
@@ -1,5 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | // File generated to wrap the alias page - DO NOT MODIFY - It is just a wrapper to real page |
3 | 3 | global $dolibarr_main_data_root; |
4 | -if (empty($dolibarr_main_data_root)) require './page252.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page252.tpl.php'; |
|
4 | +if (empty($dolibarr_main_data_root)) { |
|
5 | + require './page252.tpl.php'; |
|
6 | +} else { |
|
7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page252.tpl.php'; |
|
8 | +} |
|
5 | 9 | ?> |
@@ -51,10 +51,10 @@ discard block |
||
51 | 51 | |
52 | 52 | |
53 | 53 | <?php $days = ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"]; |
54 | - foreach ($days as $day){ |
|
55 | - echo "<p> $day : " .getDolGlobalString("MAIN_INFO_OPENINGHOURS_$day") ."</p>"; |
|
56 | - } |
|
57 | - ?> |
|
54 | + foreach ($days as $day){ |
|
55 | + echo "<p> $day : " .getDolGlobalString("MAIN_INFO_OPENINGHOURS_$day") ."</p>"; |
|
56 | + } |
|
57 | + ?> |
|
58 | 58 | |
59 | 59 | <p> |
60 | 60 | Tel: |
@@ -69,8 +69,8 @@ discard block |
||
69 | 69 | |
70 | 70 | <ul class="social-icon"> |
71 | 71 | <?php foreach($mysoc->socialnetworks as $key => $value) { |
72 | - print '<li> <a class="btn btn-perso2 btn-floating m-1" href="'. (preg_match('/^http/', $value) ? $value : 'https://www.'.$key.'.com/'.$value).'"><span class="fab fa-'.$key.'"></i></a> </li>'; |
|
73 | - } ?> |
|
72 | + print '<li> <a class="btn btn-perso2 btn-floating m-1" href="'. (preg_match('/^http/', $value) ? $value : 'https://www.'.$key.'.com/'.$value).'"><span class="fab fa-'.$key.'"></i></a> </li>'; |
|
73 | + } ?> |
|
74 | 74 | |
75 | 75 | |
76 | 76 | </ul> |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php // BEGIN PHP |
2 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
3 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
|
2 | +$websitekey = basename(__DIR__); if (empty($websitepagefile)) $websitepagefile = __FILE__; |
|
3 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { |
|
4 | 4 | $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2; |
5 | 5 | require_once ($pathdepth ? str_repeat('../', $pathdepth) : './').'master.inc.php'; |
6 | 6 | } // Not already loaded |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | |
52 | 52 | |
53 | 53 | <?php $days = ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"]; |
54 | - foreach ($days as $day){ |
|
55 | - echo "<p> $day : " .getDolGlobalString("MAIN_INFO_OPENINGHOURS_$day") ."</p>"; |
|
54 | + foreach ($days as $day) { |
|
55 | + echo "<p> $day : ".getDolGlobalString("MAIN_INFO_OPENINGHOURS_$day")."</p>"; |
|
56 | 56 | } |
57 | 57 | ?> |
58 | 58 | |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | <h6 class="text-white mb-lg-4 mb-3">Social</h6> |
69 | 69 | |
70 | 70 | <ul class="social-icon"> |
71 | - <?php foreach($mysoc->socialnetworks as $key => $value) { |
|
72 | - print '<li> <a class="btn btn-perso2 btn-floating m-1" href="'. (preg_match('/^http/', $value) ? $value : 'https://www.'.$key.'.com/'.$value).'"><span class="fab fa-'.$key.'"></i></a> </li>'; |
|
71 | + <?php foreach ($mysoc->socialnetworks as $key => $value) { |
|
72 | + print '<li> <a class="btn btn-perso2 btn-floating m-1" href="'.(preg_match('/^http/', $value) ? $value : 'https://www.'.$key.'.com/'.$value).'"><span class="fab fa-'.$key.'"></i></a> </li>'; |
|
73 | 73 | } ?> |
74 | 74 | |
75 | 75 |
@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php // BEGIN PHP |
2 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
2 | +$websitekey=basename(__DIR__); if (empty($websitepagefile)) { |
|
3 | + $websitepagefile=__FILE__; |
|
4 | +} |
|
3 | 5 | if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
4 | 6 | $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2; |
5 | 7 | require_once ($pathdepth ? str_repeat('../', $pathdepth) : './').'master.inc.php'; |
@@ -26,7 +28,10 @@ discard block |
||
26 | 28 | <!-- Include link to JS file --> |
27 | 29 | <script async src="/javascript.js.php"></script> |
28 | 30 | <!-- Include HTML header from common file --> |
29 | -<?php if (file_exists(DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html")) include DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html"; ?> |
|
31 | +<?php if (file_exists(DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html")) { |
|
32 | + include DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html"; |
|
33 | +} |
|
34 | +?> |
|
30 | 35 | <!-- Include HTML header from page header block --> |
31 | 36 | |
32 | 37 | </head> |
@@ -35,13 +35,13 @@ discard block |
||
35 | 35 | <!-- Enter here your HTML content. Add a section with an id tag and tag contenteditable="true" if you want to use the inline editor for the content --> |
36 | 36 | <?php |
37 | 37 | if (GETPOST('action') == 'sendmail') { |
38 | - include_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php'; |
|
39 | - $from = GETPOST('email', 'alpha'); |
|
40 | - $to = $mysoc->email; |
|
41 | - $message = GETPOST('message', 'alpha'); |
|
42 | - $cmail = new CMailFile('Contact from website', $to, $from, $message); |
|
43 | - if ($cmail->sendfile()) { |
|
44 | - ?> |
|
38 | + include_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php'; |
|
39 | + $from = GETPOST('email', 'alpha'); |
|
40 | + $to = $mysoc->email; |
|
41 | + $message = GETPOST('message', 'alpha'); |
|
42 | + $cmail = new CMailFile('Contact from website', $to, $from, $message); |
|
43 | + if ($cmail->sendfile()) { |
|
44 | + ?> |
|
45 | 45 | <script> |
46 | 46 | alert("Message sent successfully !"); |
47 | 47 | </script> |
@@ -167,10 +167,10 @@ discard block |
||
167 | 167 | |
168 | 168 | <div class=" mb-lg-3"> |
169 | 169 | <?php $days = ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"]; |
170 | - foreach ($days as $day){ |
|
171 | - echo "<p> $day : " .getDolGlobalString("MAIN_INFO_OPENINGHOURS_$day") ."</p>"; |
|
172 | - } |
|
173 | - ?> |
|
170 | + foreach ($days as $day){ |
|
171 | + echo "<p> $day : " .getDolGlobalString("MAIN_INFO_OPENINGHOURS_$day") ."</p>"; |
|
172 | + } |
|
173 | + ?> |
|
174 | 174 | </div> |
175 | 175 | |
176 | 176 | <h5>Weekends</h5> |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php // BEGIN PHP |
2 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
3 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
|
2 | +$websitekey = basename(__DIR__); if (empty($websitepagefile)) $websitepagefile = __FILE__; |
|
3 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { |
|
4 | 4 | $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2; |
5 | 5 | require_once ($pathdepth ? str_repeat('../', $pathdepth) : './').'master.inc.php'; |
6 | 6 | } // Not already loaded |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | <body id="bodywebsite" class="bodywebsite bodywebpage-contact"> |
35 | 35 | <!-- Enter here your HTML content. Add a section with an id tag and tag contenteditable="true" if you want to use the inline editor for the content --> |
36 | 36 | <?php |
37 | -if (GETPOST('action') == 'sendmail') { |
|
37 | +if (GETPOST('action') == 'sendmail') { |
|
38 | 38 | include_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php'; |
39 | 39 | $from = GETPOST('email', 'alpha'); |
40 | 40 | $to = $mysoc->email; |
@@ -167,8 +167,8 @@ discard block |
||
167 | 167 | |
168 | 168 | <div class=" mb-lg-3"> |
169 | 169 | <?php $days = ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"]; |
170 | - foreach ($days as $day){ |
|
171 | - echo "<p> $day : " .getDolGlobalString("MAIN_INFO_OPENINGHOURS_$day") ."</p>"; |
|
170 | + foreach ($days as $day) { |
|
171 | + echo "<p> $day : ".getDolGlobalString("MAIN_INFO_OPENINGHOURS_$day")."</p>"; |
|
172 | 172 | } |
173 | 173 | ?> |
174 | 174 | </div> |
@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php // BEGIN PHP |
2 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
2 | +$websitekey=basename(__DIR__); if (empty($websitepagefile)) { |
|
3 | + $websitepagefile=__FILE__; |
|
4 | +} |
|
3 | 5 | if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
4 | 6 | $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2; |
5 | 7 | require_once ($pathdepth ? str_repeat('../', $pathdepth) : './').'master.inc.php'; |
@@ -26,7 +28,10 @@ discard block |
||
26 | 28 | <!-- Include link to JS file --> |
27 | 29 | <script async src="/javascript.js.php"></script> |
28 | 30 | <!-- Include HTML header from common file --> |
29 | -<?php if (file_exists(DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html")) include DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html"; ?> |
|
31 | +<?php if (file_exists(DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html")) { |
|
32 | + include DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html"; |
|
33 | +} |
|
34 | +?> |
|
30 | 35 | <!-- Include HTML header from page header block --> |
31 | 36 | |
32 | 37 | </head> |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php // BEGIN PHP |
2 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
3 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
|
2 | +$websitekey = basename(__DIR__); if (empty($websitepagefile)) $websitepagefile = __FILE__; |
|
3 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { |
|
4 | 4 | $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2; |
5 | 5 | require_once ($pathdepth ? str_repeat('../', $pathdepth) : './').'master.inc.php'; |
6 | 6 | } // Not already loaded |
@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php // BEGIN PHP |
2 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
2 | +$websitekey=basename(__DIR__); if (empty($websitepagefile)) { |
|
3 | + $websitepagefile=__FILE__; |
|
4 | +} |
|
3 | 5 | if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
4 | 6 | $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2; |
5 | 7 | require_once ($pathdepth ? str_repeat('../', $pathdepth) : './').'master.inc.php'; |
@@ -26,7 +28,10 @@ discard block |
||
26 | 28 | <!-- Include link to JS file --> |
27 | 29 | <script async src="/javascript.js.php"></script> |
28 | 30 | <!-- Include HTML header from common file --> |
29 | -<?php if (file_exists(DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html")) include DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html"; ?> |
|
31 | +<?php if (file_exists(DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html")) { |
|
32 | + include DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html"; |
|
33 | +} |
|
34 | +?> |
|
30 | 35 | <!-- Include HTML header from page header block --> |
31 | 36 | |
32 | 37 | </head> |
@@ -1,5 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | // File generated to wrap the alias page - DO NOT MODIFY - It is just a wrapper to real page |
3 | 3 | global $dolibarr_main_data_root; |
4 | -if (empty($dolibarr_main_data_root)) require './page250.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page250.tpl.php'; |
|
4 | +if (empty($dolibarr_main_data_root)) { |
|
5 | + require './page250.tpl.php'; |
|
6 | +} else { |
|
7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page250.tpl.php'; |
|
8 | +} |
|
5 | 9 | ?> |
@@ -1,5 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | // File generated to wrap the alias page - DO NOT MODIFY - It is just a wrapper to real page |
3 | 3 | global $dolibarr_main_data_root; |
4 | -if (empty($dolibarr_main_data_root)) require './page251.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page251.tpl.php'; |
|
4 | +if (empty($dolibarr_main_data_root)) { |
|
5 | + require './page251.tpl.php'; |
|
6 | +} else { |
|
7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page251.tpl.php'; |
|
8 | +} |
|
5 | 9 | ?> |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | // File generated to link to the master file - DO NOT MODIFY - It is just an include |
3 | 3 | if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
4 | - if (! defined('USEEXTERNALSERVER')) define('USEEXTERNALSERVER', 1); |
|
5 | - require_once '/home/ldestailleur/git/dolibarr_dev/htdocs/master.inc.php'; |
|
4 | + if (! defined('USEEXTERNALSERVER')) define('USEEXTERNALSERVER', 1); |
|
5 | + require_once '/home/ldestailleur/git/dolibarr_dev/htdocs/master.inc.php'; |
|
6 | 6 | } |
7 | 7 | ?> |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | // File generated to link to the master file - DO NOT MODIFY - It is just an include |
3 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
|
4 | - if (! defined('USEEXTERNALSERVER')) define('USEEXTERNALSERVER', 1); |
|
3 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { |
|
4 | + if (!defined('USEEXTERNALSERVER')) define('USEEXTERNALSERVER', 1); |
|
5 | 5 | require_once '/home/ldestailleur/git/dolibarr_dev/htdocs/master.inc.php'; |
6 | 6 | } |
7 | 7 | ?> |
@@ -1,7 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | // File generated to link to the master file - DO NOT MODIFY - It is just an include |
3 | 3 | if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
4 | - if (! defined('USEEXTERNALSERVER')) define('USEEXTERNALSERVER', 1); |
|
4 | + if (! defined('USEEXTERNALSERVER')) { |
|
5 | + define('USEEXTERNALSERVER', 1); |
|
6 | + } |
|
5 | 7 | require_once '/home/ldestailleur/git/dolibarr_dev/htdocs/master.inc.php'; |
6 | 8 | } |
7 | 9 | ?> |
@@ -1,5 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | // File generated to wrap the alias page - DO NOT MODIFY - It is just a wrapper to real page |
3 | 3 | global $dolibarr_main_data_root; |
4 | -if (empty($dolibarr_main_data_root)) require './page248.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page248.tpl.php'; |
|
4 | +if (empty($dolibarr_main_data_root)) { |
|
5 | + require './page248.tpl.php'; |
|
6 | +} else { |
|
7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page248.tpl.php'; |
|
8 | +} |
|
5 | 9 | ?> |