Rev 11 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download
<?php namespace ProcessWire;/*** _main.php* Main markup file** This file contains all the main markup for the site and outputs the regions* defined in the initialization (_init.php) file. These regions include:** $title: The page title/headline* $content: The markup that appears in the main content/body copy column* $sidebar: The markup that appears in the sidebar column** Of course, you can add as many regions as you like, or choose not to use* them at all! This _init.php > [template].php > _main.php scheme is just* the methodology we chose to use in this particular site profile, and as you* dig deeper, you'll find many others ways to do the same thing.** This file is automatically appended to all template files as a result of* $config->appendTemplateFile = '_main.php'; in /site/config.php.** In any given template file, if you do not want this main markup file* included, go in your admin to Setup > Templates > [some-template] > and* click on the "Files" tab. Check the box to "Disable automatic append of* file _main.php". You would do this if you wanted to echo markup directly* from your template file or if you were using a template file for some other* kind of output like an RSS feed or sitemap.xml, for example.** See the README.txt file for more information.**/?><!-- Header include --><?php include("./head.inc"); ?><!-- Wrapper --><div class="wrapper"><!-- Sidebar --><div class="sidebar"><nav id="sidebar"><div id="dismiss"><i class="fa fa-arrow-left"></i></div><?php// only these 3 options apply to getMenuItems()$options = array('default_title'=> 0, 'default_class'=> 'list-unstyled components', 'current_class_level' => 4);// grab menu items as a WireArray with Menu objects$menuItems = $modules->get('MarkupMenuBuilder')->getMenuItems('menu_main', 2, $options);// build menu from arrayecho buildMenuFromObject(0, $menuItems);?></nav></div><div id="content"><!-- header --><header><div class="container"><div class="row bor_bottom"><div class="col-md-3"><div class="full"><a class="logo" href="<?php echo $homepage->url; ?>"><img src="<?php echo $config->urls->templates; ?>styles/images/logo.png" alt="Home page" /></a></div></div><div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-6"><ul class="social_top_icon"><?phpforeach($g_settings->social_media as $media) {//echo '<li><a href='.($g_settings[$media.'_url'] ?: $page->url.'#').' target="_blank" data-toggle="tooltip" data-placement="bottom" title="'.ucfirst($media).'"><i class="socicon socicon-'.strtolower($media).'"></i></a></li>';echo '<li><a href='.($g_settings[$media.'_url'] ?: $page->url.'#').' data-toggle="tooltip" data-placement="bottom" title="'.ucfirst($media).'"><i class="socicon socicon-'.strtolower($media).'"></i></a></li>';}?></ul></div><div class="col-xl-3 col-lg-3 col-md-3 col-sm-6 col-6"><div class="full"><div class="right_header_info"><ul><li><a href="https://rldactive.sportbitapp.nl/proeflesplanner/"><img class="static" id="imgProef" style="height:30px;" src="<?php echo $config->urls->templates; ?>styles/images/proefles.png" alt="Proefles" data-toggle="tooltip" data-placement="bottom" title="Gratis proefles!"></a></li><li><button type="button" id="sidebarCollapse" style="margin-right: 5px;"><img style="height:30px;" src="<?php echo $config->urls->templates?>styles/images/menu_icon.png" alt="Menu" data-toggle="tooltip" data-placement="bottom" title="menu"></button></li></ul></div></div></div></div></div></header><!-- end header --><!-- start slider section $config->urls->templates; ?>styles/images/banner.jpg ?: --><style>.banner_main {background: url("<?php echo ($page->header_image ? $page->header_image->url : $config->urls->templates.'styles/images/banner_empty.png'); ?>");background-repeat: no-repeat;#background-attachment: fixed;background-size: 100% auto;#background-position: top left;background-color: rgba(255, 255, 255, <?php echo ($page->header_image ? getOpacity($page->header_opacity) : 0.6); ?>);background-blend-mode: lighten;}</style><div class="slider_section banner_main"><div class="container"><div class="row"><div class="col-md-12"><div class="main_text"><?php if ($page->header_headline): ?><h1><?php echo $page->header_headline; ?></br><?php else: ?></br><h1><?php endif; ?><?php if ($page->header_headline2): ?><strong class="bold_text_black"><?php echo strtok($page->header_headline2, " "); ?> </strong><strong class="bold_text"><?php echo strstr($page->header_headline2, " "); ?></strong><?php endif; ?></h1><span><?php if ($page->header_text): ?><?php echo $page->header_text; ?><?php endif; ?></span><?php if ($page->header_button_url and $page->header_button_text): ?><a href="<?php echo $page->header_button_url; ?>"><?php echo $page->header_button_text; ?><i class="fa fa-angle-right" aria-hidden="true"></i></a><?php endif; ?></div></div></div></div></div><!-- end slider section --><!-- two-six_box--><div class="container"><div class="six_box"><div class="row"><?php//count the number of header_banner itemsfor ($i = 1, $banner_count = 0; $i <= 6; $i++) {$banner_list[$i] = "";$banner_url[$i] = "";}if ($g_settings->header_banner_item1) {$banner_count++;$banner_list[$banner_count] = $g_settings->header_banner_item1;$banner_url[$banner_count] = $g_settings->header_banner_url1;};if ($g_settings->header_banner_item2) {$banner_count++;$banner_list[$banner_count] = $g_settings->header_banner_item2;$banner_url[$banner_count] = $g_settings->header_banner_url2;}if ($g_settings->header_banner_item3) {$banner_count++;$banner_list[$banner_count] = $g_settings->header_banner_item3;$banner_url[$banner_count] = $g_settings->header_banner_url3;}if ($g_settings->header_banner_item4) {$banner_count++;$banner_list[$banner_count] = $g_settings->header_banner_item4;$banner_url[$banner_count] = $g_settings->header_banner_url4;}if ($g_settings->header_banner_item5) {$banner_count++;$banner_list[$banner_count] = $g_settings->header_banner_item5;$banner_url[$banner_count] = $g_settings->header_banner_url5;}if ($g_settings->header_banner_item6) {$banner_count++;$banner_list[$banner_count] = $g_settings->header_banner_item6;$banner_url[$banner_count] = $g_settings->header_banner_url6;}$banner_size = 12 / $banner_count;?><?php for ($i = 1; $i <= $banner_count; $i++) { ?><?php if ($banner_list[$i]): ?><div class="col-xl-<?= $banner_size; ?> col-lg-<?= $banner_size; ?> col-md-<?= $banner_size; ?> col-sm-12 pppp"><div class="black_box <?php echo $txt=(($i%2)==0)?" blue_box":""; ?>"><?php if ($banner_url[$i]): ?><a href="<?php echo $banner_url[$i]; ?>"><h3><?php echo $banner_list[$i]; ?></h3></a><?php else: ?><h3><?php echo $banner_list[$i]; ?></h3><?php endif; ?></div></div><?php endif; ?><?php }; ?></div></div></div><!-- end six_box--><!-- page content --><?php echo $content; ?><!-- end page content --></div></div><!-- footer include --><?php include("./foot.inc"); ?>