// Anpassung Dateiname $ersetzen = array( 'ä' => 'ae', 'ö' => 'oe', 'ü' => 'ue', 'ß' => 'ss', ' ' => '-', '\\' => '-', '/' => '-', '&' => 'und', '.' => '', ':' => '-', '(' => '', ')' => '', '\'' => '', '"' => '', '>' => '', '<' => '', '´' => '', '`' => '', '?' => '', '%' => '', '!' => '', '§' => '', '$' => '', '’' => '', '®' => '', ',' => '' ); $nameNav = strtr(mb_strtolower(html_entity_decode(trim($nameNav), ENT_QUOTES, 'UTF-8'),'UTF-8'),$ersetzen); // navBereich $navBereich = strtoupper(str_replace("-","",$navBereich)); // if ($navRendermode == "0") { $renderMode = "preview"; } elseif ($navRendermode == "1") { $renderMode = "smartedit"; } else { $renderMode = "publish"; } // Pfade zu CSS und JS für RedDot Modus if ($renderMode != "publish") { $urlMainCSS = "/CMS/PlugIns/bankaustria/css/all_min_reddot.css"; $urlHtml5Shiv = "/CMS/PlugIns/bankaustria/js/html5shiv.js"; $urlHtml5PrintShiv = "/CMS/PlugIns/bankaustria/js/html5-printshiv.js"; $urlRespondJS = "/CMS/PlugIns/bankaustria/js/Respond.js"; $urlMainJS = "/CMS/PlugIns/bankaustria/js/all_min_reddot.js"; $urlVideoJS = "/CMS/PlugIns/bankaustria/js/videojs.js"; $urlSwfJS = "/CMS/PlugIns/bankaustria/js/swfobject.js"; $urlValidateJS = "/CMS/PlugIns/bankaustria/js/jquery.validate.min.js"; if ($pageResponsive) { $urlMainCSS = "/CMS/PlugIns/bankaustria/css/all_min_responsive_reddot.css"; $urlMainJS = "/CMS/PlugIns/bankaustria/js/all_min_responsive_reddot.js"; } if (isset($pageCashback)) { $urlMainCSS = "/CMS/PlugIns/bankaustria/css/all_min_cashback_reddot.css"; $urlMainJS = "/CMS/PlugIns/bankaustria/js/all_min_cashback.js"; $urlGoogleJS = "/CMS/PlugIns/bankaustria/js/googleMaps.min.js"; $urlXdomainJS = "/CMS/PlugIns/bankaustria/js/jquery.xdomainrequest.min.js"; } if (isset($pageDiversity)) { $urlMainCSS = "/CMS/PlugIns/bankaustria/css/all_min_diversity_reddot.css"; $urlMainJS = "/CMS/PlugIns/bankaustria/js/all_min_diversity.js"; } if (isset($pageMobileBankingApp)) { $urlMainCSS = "/CMS/PlugIns/bankaustria/css/all_min_mbapp_reddot.css"; $urlMainJS = "/CMS/PlugIns/bankaustria/js/all_min_mbapp.js"; } } // Spezielle Variablen $javascriptCall = ""; $tabsCall = ""; $pageTabsCount = 0; $sliderVideoStart = ""; $sliderVideoCall = ""; $sliderVideoEvent = ""; $sliderMainCall = ""; $sliderMainCount = 0; $sliderMiniCall = ""; $sliderMiniCount = 0; $sliderAutoPlay = "true"; $sliderDelay = "10000"; $sliderWidth = "700"; $sliderHeight = "240"; $sliderStartPanel = "1"; $sliderSWFObject = ""; $teaserArea = false; $sidebarArea = false; $panelArea = false; $footerArea = false; $pageImageTxt = ""; $pageImageUrl = ""; $pageImageFile = ""; $pageContainsFlash = false; $pageContainsVideo = false; $pageContainsError = false; $pageContainsReader = false; $pageContainsForm = ""; $rdErrorMessage = ""; //Individueller Code für Sprachvarianten oder Microsites // Tabellen Script function replaceTable($tables) { if (!function_exists('handleTableContent')) { function handleTableContent($matches) { //var_dump($matches); $typ = $matches[2]; $content = $matches[3]; $total = isset($matches[0]) ? $matches[0] : ''; $tableclass = ''; if ($typ == 'TabSpaltenTitel') { $content = preg_replace_callback ('!(]*>\s*)]*)>(.*?)(.*?)!si',function ($match){ return $match[1] . ''.$match[3].''.$match[4]; }, $content); } else { $pos = stripos($content,''); $content = preg_replace_callback('!]*)>(.*?)!si',function($match){ return ''.$match[2].''; },substr($content,0,$pos)).substr($content,$pos); if ($typ == 'TabAbwechselndeZeilen') { $content = substr($content,0,$pos).preg_replace_callback('!]*)>(.*?)\s*(]*)>(.*?))?!smi',function ($match){ $con = (isset($match[5]) && $match[5] != '' ) ? ''.$match[5].'' : ''; return ''.$match[2].''. $con; },substr($content,$pos)); } if ($typ == 'table-nostyle') { $tableclass = ' class="table-nostyle"'; } } return ''.$content.''; } } $tables = preg_replace_callback('/]*class="?(.*?)"[^>]*?|[^>]*)[^>]*>(.*?)<\/table>/si','handleTableContent',$tables); //]*class="?(.*?)"[^>]*?|[^>]*)[^>]*>(.*?)<\/table> //]*class="?(.*?)"[^>]*?[^>]*|[^>]*[^>]*?[^>]*)>(.*?)<\/table> $tables = str_replace('\"','"',$tables); $tables = str_replace("\'","'",$tables); return $tables; } function replaceTableOld($tables) { if (!function_exists('handleTableContent')) { function handleTableContent($typ,$content,$total='') { $tableclass = ''; if ($typ == 'TabSpaltenTitel') { $content = preg_replace('!(]*>\s*)]*)>(.*?)(.*?)!si','\1\3\4', $content); } else { $pos = stripos($content,''); $content = preg_replace('!]*)>(.*?)!si','\2',substr($content,0,$pos)).substr($content,$pos); if ($typ == 'TabAbwechselndeZeilen') { $content = substr($content,0,$pos).preg_replace('!]*)>(.*?)\s*(]*)>(.*?))?!esmi','\'\2\'.(\'\5\' != \'\' ? \'\5\' : \'\')',substr($content,$pos)); } if ($typ == 'table-nostyle') { $tableclass = ' class="table-nostyle"'; } } return ''.$content.''; } } $tables = preg_replace('/]*>(.*?)<\/table>/esi','handleTableContent("\1","\2","\0");',$tables); //temporärer Bugfix, müssen wir im preg_replace ausbessern, da es ein Problem mit img gibt $tables=str_replace('\"','"',$tables); $tables=str_replace("\'","'",$tables); return $tables; } function gridCountFunction($minusCount) { global $gridCount; global $pageType; global $sidebarArea; global $echoClear; $gridCountOld = $gridCount; $gridCount = $gridCount-$minusCount; if ($sidebarArea) { if ($gridCount == 0) { if ($gridCountOld == 3) { echo " alpha omega"; } else { echo " omega"; } $echoClear = true; $gridCount = 3; } elseif ($gridCount+$minusCount == 3) { echo " alpha"; } } else { if ($pageType == "startseite") { if ($gridCount == 0) { if ($gridCountOld == 12) { echo " alpha omega"; } else { echo " omega"; } $echoClear = true; $gridCount = 12; } elseif ($gridCount+$minusCount == 12) { echo " alpha"; } } elseif ($pageType == "uebersichtseite") { if ($gridCount == 0) { if ($gridCountOld == 9) { echo " alpha omega"; } else { echo " omega"; } $echoClear = true; $gridCount = 9; } elseif ($gridCount+$minusCount == 9) { echo " alpha"; } } elseif ($pageType == "subseite") { if ($gridCount == 0) { if ($gridCountOld == 6) { echo " alpha omega"; } else { echo " omega"; } $echoClear = true; $gridCount = 6; } elseif ($gridCount+$minusCount == 6) { echo " alpha"; } } } } Newsletter-2016 | Bank Austria