Example #1
0
    $curLangLink = '<a href="' . $curPageNameUri . '">Deutsch</a>';
    $curLangHomeLink = $_POST['VCMS_POST_LANG'];
}
if (isset($_POST['VCMS_POST_LANG']) && $_POST['VCMS_POST_LANG'] == 'en') {
    require_once 'templates/wildkogel/inc/lang/en.inc.php';
} else {
    require_once 'templates/wildkogel/inc/lang/de.inc.php';
}
require_once $_SERVER['DOCUMENT_ROOT'] . '/templates/wildkogel/inc/mmClass.inc.php';
$mmFunctionsObj = new mmFunctionsLibrary();
$icons = $mmFunctionsObj->mmGetSiteListDataArray(333, 13);
$iconArr = array('334' => 'iconInfocall', '335' => 'iconRodel', '336' => 'iconGondel', '337' => 'iconWetter', '338' => 'iconLivecam', '339' => 'iconInfo', '340' => 'iconSleep', '341' => 'icoSearch');
require_once $_SERVER['DOCUMENT_ROOT'] . '/templates/wildkogel/inc/mmClass.inc.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/templates/wildkogel/inc/timeClass.inc.php';
$mmFunctionsObj = new mmFunctionsLibrary();
$time = new timeClass();
$siteData = $mmFunctionsObj->mmGetSiteListDataArrayOnce($cms['cms_siteID']);
$imageArr = explode(';', $siteData['seitBackImages']);
foreach ($imageArr as $key => $value) {
    if ($time->checkTimeBanner($value)) {
        $backFileArr[] = $mmFunctionsObj->getPicOnceDataByIdMM($value);
    }
}
$arr = range(0, count($backFileArr) - 1);
shuffle($arr);
if (is_file($_SERVER['DOCUMENT_ROOT'] . '/user_upload/' . $backFileArr[$arr[0]]['bildFile'])) {
    $bg = '/user_upload/' . $backFileArr[$arr[0]]['bildFile'];
} else {
    $bg = '';
}
if (empty($cms['cms_ownFields']['_showCTAHead']) || $cms['cms_ownFields']['_showCTAHead'] == 1) {
Example #2
0
 public function getSiteOgByElements($idSite, $title, $description, $banners = null)
 {
     if ($banners != '') {
         require_once $_SERVER['DOCUMENT_ROOT'] . '/templates/wildkogel/inc/timeClass.inc.php';
         $time = new timeClass();
         $idImagesArr = explode(';', $banners);
         foreach ($idImagesArr as $key => $value) {
             if ($time->checkTimeBanner($value)) {
                 $query = mysql_query("SELECT * FROM vbilder WHERE bildID='{$value}'");
                 $row = mysql_fetch_array($query);
                 $image = $row['bildFile'];
                 break;
             }
         }
     } else {
         $query = mysql_query("SELECT selemConfig,selemPicGal FROM vseitenelemente  WHERE (selemConfig!='' OR selemPicGal!='') AND seitID='{$idSite}' LIMIT 1");
         $row = mysql_fetch_array($query);
         if ($row['selemPicGal'] != '') {
             $idGalleryArr = explode(';', $row['selemPicGal']);
             $id = $idGalleryArr['0'];
             if (!empty($id)) {
                 $query = mysql_query("SELECT * FROM vbildergalerien WHERE galID = '{$id}'");
                 $row = mysql_fetch_array($query);
                 $idImageArr = explode(';', $row['galBilder']);
                 $idImage = $idImageArr[0];
                 if (!empty($idImage)) {
                     $query = mysql_query("SELECT * FROM vbilder WHERE bildID='{$idImage}'");
                     $row = mysql_fetch_array($query);
                     $image = $row['bildFile'];
                 }
             }
         } elseif ($row['selemConfig'] != '') {
             $confArr = json_decode($row['selemConfig']);
             $idImagesArr = explode(';', $confArr->picGal);
             $idImage = $idImageArr[0];
             if (!empty($idImage)) {
                 $query = mysql_query("SELECT * FROM vbilder WHERE bildID='{$idImage}'");
                 $row = mysql_fetch_array($query);
                 $image = $row['bildFile'];
             }
         }
     }
     $og .= '<meta property="fb:app_id" content="1637297743197707" />';
     $og .= '<meta property="og:url" content="' . SITE_URL . $_SERVER['REQUEST_URI'] . '" />';
     if ($image != '') {
         $og .= '<meta property="og:image" content="' . SITE_URL . 'user_upload/' . $image . '" />';
     }
     if ($title != '') {
         $og .= '<meta property="og:title" content="' . $title . '" />';
     }
     if ($description != '') {
         $og .= '<meta property="og:description" content="' . $description . '" />';
     }
     return $og;
 }