$cwd = getcwd();
$part = explode('/', $cwd);
$test1 = $part[1];
$test2 = $part[2];
$test3 = $part[3];
include '/' . $test1 . '/' . $test2 . '/bin/felds2.php';
// RESTRICT PAGE
if (str_contains($cb_restrictpages, 'Home')) {
}
echo '<br><br><div class="row mt-1 mb-4 ms-0 me-0">';
// CASE 1: left + right exist
if ($cb_homeleft != "" && $cb_homeright != "") {
{source}getMenu();
$menuname = $menu->getActive()->title;
$lccurrentmenuname = strtolower($menuname);
//RESTRICT PAGE
//
if ($lccurrentmenuname == "documents"){
if (str_contains($cb_restrictpages, 'home') == false)
{
echo '
';
}
if (str_contains($cb_restrictpages, 'home') == true && str_contains($cb_restrictpages, 'Documents') == true)
{
echo '';
}
}
//
if ($lccurrentmenuname !== "documents"){
echo '
';
}
?>{/source}
| Filename |
|---|
| Filename |
|---|
}
// CASE 2: left exists, right empty
if ($cb_homeleft != "" && $cb_homeright == "") {
{source}getMenu();
$menuname = $menu->getActive()->title;
$lccurrentmenuname = strtolower($menuname);
//RESTRICT PAGE
//
if ($lccurrentmenuname == "documents"){
if (str_contains($cb_restrictpages, 'home') == false)
{
echo '
';
}
if (str_contains($cb_restrictpages, 'home') == true && str_contains($cb_restrictpages, 'Documents') == true)
{
echo '';
}
}
//
if ($lccurrentmenuname !== "documents"){
echo '
';
}
?>{/source}
| Filename |
|---|
| Filename |
|---|
}
// CASE 3: left empty, right exists
if ($cb_homeleft == "" && $cb_homeright != "") {
{source}getMenu();
$menuname = $menu->getActive()->title;
$lccurrentmenuname = strtolower($menuname);
//RESTRICT PAGE
//
if ($lccurrentmenuname == "documents"){
if (str_contains($cb_restrictpages, 'home') == false)
{
echo '
';
}
if (str_contains($cb_restrictpages, 'home') == true && str_contains($cb_restrictpages, 'Documents') == true)
{
echo '';
}
}
//
if ($lccurrentmenuname !== "documents"){
echo '
';
}
?>{/source}
| Filename |
|---|
| Filename |
|---|
}
// CASE 4: both empty
if ($cb_homeleft == "" && $cb_homeright == "") {
{source}getMenu();
$menuname = $menu->getActive()->title;
$lccurrentmenuname = strtolower($menuname);
//RESTRICT PAGE
//
if ($lccurrentmenuname == "documents"){
if (str_contains($cb_restrictpages, 'home') == false)
{
echo '
';
}
if (str_contains($cb_restrictpages, 'home') == true && str_contains($cb_restrictpages, 'Documents') == true)
{
echo '';
}
}
//
if ($lccurrentmenuname !== "documents"){
echo '
';
}
?>{/source}
| Filename |
|---|
| Filename |
|---|
}
echo '</div>';
?>{/source}