@@ -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 './page194.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page194.tpl.php'; |
|
4 | +if (empty($dolibarr_main_data_root)) { |
|
5 | + require './page194.tpl.php'; |
|
6 | +} else { |
|
7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page194.tpl.php'; |
|
8 | +} |
|
5 | 9 | ?> |
@@ -59,30 +59,30 @@ |
||
59 | 59 | <div><br><div class="text-align: center"> |
60 | 60 | <!--<h2>The latest news...</h2><br><br><br> --> |
61 | 61 | <?php |
62 | - $weblangs->load("main"); |
|
63 | - $fuser = new User($db); |
|
64 | - $arrayofblogs = $websitepage->fetchAll($website->id, 'DESC', 'date_creation', 5, 0, array('type_container'=>'blogpost', 'status'=>1, 'lang'=>'null,'.$websitepage->lang)); |
|
65 | - foreach($arrayofblogs as $blog) |
|
66 | - { |
|
67 | - print '<div class="row justify-content-sm-center row-40">'; |
|
68 | - print '<div class="container blog-box d-xl-inline-block margin-lr-30" style="padding: 20px; box-shadow: -1px 0px 10px 0px rgba(65, 65, 65, 0.12); transition: .3s all ease;">'; |
|
69 | - print '<a class="centpercent" href="'.$blog->pageurl.'.php">'; |
|
70 | - print '<div class="post-boxed-img-wrap"><img src="'.($blog->image ? 'viewimage.php?modulepart=medias&file='.str_replace('template-corporate', $website->ref, $blog->image) : 'medias/image/'.$website->ref.'/calendar.svg"').'" alt="" width="120"></div>'; |
|
71 | - print '<div class="post-boxed-caption">'; |
|
72 | - print '<div class="post-boxed-title font-weight-bold">'.$blog->title.'</div>'; |
|
73 | - print '<ul class="list-inline list-inline-dashed text-uppercase">'; |
|
74 | - print '<li>'.dol_print_date($blog->date_creation, 'daytext', 'tzserver', $weblangs).'</li>'; |
|
75 | - $fuser->fetch($blog->fk_user_creat); |
|
76 | - print '<li><span>by<span> <span class="text-primary">'.$fuser->firstname.'</span></span></li>'; |
|
77 | - print '</ul>'; |
|
78 | - print '<span class="nohover">'.$blog->description.'</span>'; |
|
79 | - print '</div>'; |
|
80 | - //includeContainer($blog->pageurl); |
|
81 | - print '</a>'; |
|
82 | - print '</div>'; |
|
83 | - print '</div>'; |
|
84 | - } |
|
85 | - ?> |
|
62 | + $weblangs->load("main"); |
|
63 | + $fuser = new User($db); |
|
64 | + $arrayofblogs = $websitepage->fetchAll($website->id, 'DESC', 'date_creation', 5, 0, array('type_container'=>'blogpost', 'status'=>1, 'lang'=>'null,'.$websitepage->lang)); |
|
65 | + foreach($arrayofblogs as $blog) |
|
66 | + { |
|
67 | + print '<div class="row justify-content-sm-center row-40">'; |
|
68 | + print '<div class="container blog-box d-xl-inline-block margin-lr-30" style="padding: 20px; box-shadow: -1px 0px 10px 0px rgba(65, 65, 65, 0.12); transition: .3s all ease;">'; |
|
69 | + print '<a class="centpercent" href="'.$blog->pageurl.'.php">'; |
|
70 | + print '<div class="post-boxed-img-wrap"><img src="'.($blog->image ? 'viewimage.php?modulepart=medias&file='.str_replace('template-corporate', $website->ref, $blog->image) : 'medias/image/'.$website->ref.'/calendar.svg"').'" alt="" width="120"></div>'; |
|
71 | + print '<div class="post-boxed-caption">'; |
|
72 | + print '<div class="post-boxed-title font-weight-bold">'.$blog->title.'</div>'; |
|
73 | + print '<ul class="list-inline list-inline-dashed text-uppercase">'; |
|
74 | + print '<li>'.dol_print_date($blog->date_creation, 'daytext', 'tzserver', $weblangs).'</li>'; |
|
75 | + $fuser->fetch($blog->fk_user_creat); |
|
76 | + print '<li><span>by<span> <span class="text-primary">'.$fuser->firstname.'</span></span></li>'; |
|
77 | + print '</ul>'; |
|
78 | + print '<span class="nohover">'.$blog->description.'</span>'; |
|
79 | + print '</div>'; |
|
80 | + //includeContainer($blog->pageurl); |
|
81 | + print '</a>'; |
|
82 | + print '</div>'; |
|
83 | + print '</div>'; |
|
84 | + } |
|
85 | + ?> |
|
86 | 86 | </div></div> |
87 | 87 | </section> |
88 | 88 |
@@ -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 |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $weblangs->load("main"); |
63 | 63 | $fuser = new User($db); |
64 | 64 | $arrayofblogs = $websitepage->fetchAll($website->id, 'DESC', 'date_creation', 5, 0, array('type_container'=>'blogpost', 'status'=>1, 'lang'=>'null,'.$websitepage->lang)); |
65 | - foreach($arrayofblogs as $blog) |
|
65 | + foreach ($arrayofblogs as $blog) |
|
66 | 66 | { |
67 | 67 | print '<div class="row justify-content-sm-center row-40">'; |
68 | 68 | print '<div class="container blog-box d-xl-inline-block margin-lr-30" style="padding: 20px; box-shadow: -1px 0px 10px 0px rgba(65, 65, 65, 0.12); transition: .3s all ease;">'; |
@@ -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,4 +1,8 @@ |
||
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 './page126.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page126.tpl.php'; |
|
4 | +if (empty($dolibarr_main_data_root)) { |
|
5 | + require './page126.tpl.php'; |
|
6 | +} else { |
|
7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page126.tpl.php'; |
|
8 | +} |
@@ -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 './page193.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page193.tpl.php'; |
|
4 | +if (empty($dolibarr_main_data_root)) { |
|
5 | + require './page193.tpl.php'; |
|
6 | +} else { |
|
7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page193.tpl.php'; |
|
8 | +} |
|
5 | 9 | ?> |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | // BEGIN PHP File generated to provide an index.php as Home Page or alias redirector - DO NOT MODIFY - It is just a generated wrapper. |
3 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
4 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once './master.inc.php'; } // Load master if not already loaded |
|
3 | +$websitekey = basename(__DIR__); if (empty($websitepagefile)) $websitepagefile = __FILE__; |
|
4 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { require_once './master.inc.php'; } // Load master if not already loaded |
|
5 | 5 | if (!empty($_GET['pageref']) || !empty($_GET['pagealiasalt']) || !empty($_GET['pageid'])) { |
6 | 6 | require_once DOL_DOCUMENT_ROOT.'/core/lib/website.lib.php'; |
7 | 7 | require_once DOL_DOCUMENT_ROOT.'/core/website.inc.php'; |
@@ -1,6 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | // BEGIN PHP File generated to provide an index.php as Home Page or alias redirector - DO NOT MODIFY - It is just a generated wrapper. |
3 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
3 | +$websitekey=basename(__DIR__); if (empty($websitepagefile)) { |
|
4 | + $websitepagefile=__FILE__; |
|
5 | +} |
|
4 | 6 | if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once './master.inc.php'; } // Load master if not already loaded |
5 | 7 | if (!empty($_GET['pageref']) || !empty($_GET['pagealiasalt']) || !empty($_GET['pageid'])) { |
6 | 8 | require_once DOL_DOCUMENT_ROOT.'/core/lib/website.lib.php'; |
@@ -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 './page182.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page182.tpl.php'; |
|
4 | +if (empty($dolibarr_main_data_root)) { |
|
5 | + require './page182.tpl.php'; |
|
6 | +} else { |
|
7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page182.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 './page179.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page179.tpl.php'; |
|
4 | +if (empty($dolibarr_main_data_root)) { |
|
5 | + require './page179.tpl.php'; |
|
6 | +} else { |
|
7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page179.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 './page192.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page192.tpl.php'; |
|
4 | +if (empty($dolibarr_main_data_root)) { |
|
5 | + require './page192.tpl.php'; |
|
6 | +} else { |
|
7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page192.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 './page191.tpl.php'; else require $dolibarr_main_data_root.'/website/'.$website->ref.'/page191.tpl.php'; |
|
4 | +if (empty($dolibarr_main_data_root)) { |
|
5 | + require './page191.tpl.php'; |
|
6 | +} else { |
|
7 | + require $dolibarr_main_data_root.'/website/'.$website->ref.'/page191.tpl.php'; |
|
8 | +} |
|
5 | 9 | ?> |