<!-- header area -->
    <header class="wrapper clearfix">

        <div id="banner">
        	<div id="logo"><a href=""><img src="<?php 
echo TEMPLATE_DIR;
?>
/images/basic-logo.png" alt="logo"></a></div>
        </div>

        <!-- main navigation -->
        <nav id="topnav" role="navigation">
        <div class="menu-toggle">Menu</div>
          <?php 
show_menu2($aMenu = 1, $aStart = SM2_ROOT, $aMaxLevel = SM2_ALL, $aOptions = SM2_ALL, $aItemOpen = '<li[if(class==menu-current){ class="current"}]>[a][menu_title]</a>', $aItemClose = '</li>', $aMenuOpen = '<ul>', $aMenuClose = '</ul>', $aTopItemOpen = false, $aTopMenuOpen = '<ul class="srt-menu" id="menu-main-navigation">');
?>
		</nav><!-- #topnav -->
    </header><!-- end header -->


<section id="page-header" class="clearfix">
<!-- responsive FlexSlider image slideshow -->
  <div class="wrapper">
	<h1><?php 
echo page_title();
?>
</h1>
  </div>
</section>
Example #2
0
<!-- END frontend login -->
	<div id="frontedit">[[editthispage]]</div>
</div>    <!-- END left column -->   

	<!-- Content -->
	
	<div id="cont">
	<?php 
page_content(1);
?>
	
	</div>
	<br style="clear: both;" />
	<div id="foot">
	<?php 
show_menu2(2, SM2_ROOT, SM2_ALL, SM2_TRIM | SM2_PRETTY | SM2_XHTML_STRICT);
?>
	</div>

<!-- Block Bottom -->
	<div id="basic">
	<div id="links"><?php 
page_footer();
?>
</div>
	<div id="design"><a href='http://cms-lab.com'>Design by CMS-LAB</a></div>
	</div>
</div>
<?php 
get_page_footers();
?>
Example #3
0
<div class="container">
    <div class="burger--container">
        <div class="burger-menu">
            <div class="burger--line"></div>
            <div class="burger--line"></div>
            <div class="burger--line"></div>
        </div>
    </div>

    <?php 
show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL, '[li][a][menu_title]</a>', '</li>', '[ul]', '</ul>', false, '<ul class="main-nav">');
?>
</div>
Example #4
0
 function show_menu()
 {
     return show_menu2();
 }
Example #5
0
    $oZEN->clean_up_content($page_content_1);
}
ob_start();
page_content(2);
$page_content_2 = ob_get_clean();
ob_start();
get_page_footers();
$get_page_footers = ob_get_clean();
/**	********
 *	News ...
 */
require_once dirname(__FILE__) . "/classes/c_zenlike_news.php";
$oZEN_news = new c_zenlike_news($database, $parser, $loader);
/**	******************
 *	Experimental(-s):
 */
//	1	Display max. xxx chars in the news teaser.
$oZEN_news->max_chars = -1;
// 170;
//	2	Evaluate given droplets inside the News-teaser first.
$oZEN_news->evalDroplets = true;
/**
 *	Our page values at once ...
 *
 */
$frontend_values = array('LEPTON_PATH' => LEPTON_PATH, 'LEPTON_URL' => LEPTON_URL, 'TEMPLATE_DIR' => TEMPLATE_DIR, 'DEFAULT_CHARSET' => DEFAULT_CHARSET, 'SHOW_SEARCH' => SHOW_SEARCH, 'page_description' => $oZEN->head['description'], 'page_keywords' => $oZEN->head['keywords'], 'page_title' => $oZEN->head['title'], 'page_header' => $page_header, 'page_footer' => page_footer('Y', true), 'page_headers' => $get_page_headers, 'main_menu' => show_menu2(1, SM2_ROOT, SM2_ROOT + 1, SM2_TRIM | SM2_PRETTY | SM2_XHTML_STRICT | SM2_NO_TITLE | SM2_BUFFER), 'sub_menu' => show_menu2(2, SM2_CURR + 1, SM2_CURR + 1, SM2_TRIM | SM2_PRETTY | SM2_BUFFER | SM2_XHTML_STRICT | SM2_NO_TITLE, '[li][a][menu_title]</a>', '</li>', '', ''), 'news' => $oZEN->module_on_page('news') === false ? $oZEN_news->get_news() : "", 'page_content_1' => $page_content_1, 'page_content_2' => $page_content_2, 'page_footers' => $get_page_footers);
/**
 *	At last we're parsing the template and echo the result.
 *	That's it - finshed.
 */
echo $parser->render('@frontend/page.lte', $frontend_values);
				</div>
				
			</div>
		
			<div id="line_2">
		
				<div id="content_2">
									
					<div id="right">
			
					<div id="left">
				
						<div id="menu">
						
							<?php 
show_menu2();
?>
					
						</div>
					<?php 
if (SHOW_SEARCH) {
    ?>
	
						<div id="wb-search">
						
							<div id="search_absolute">
						
								<form name="search" action="<?php 
    echo WB_URL;
    ?>
/search/index.php" method="get">
<div class="hero">
<?php 
} else {
    $contentheadline = "<h1>" . PAGE_TITLE . "</h1>";
}
?>
	<div class="navbg">
	<div class="center">
		<div class="row">
			<div class="fg12 nav">
			<a id="menu-button"><img src="<?php 
echo TEMPLATE_DIR;
?>
/menu.png" alt="" width="32" height="32" /></a>
			<?php 
show_menu2($aMenu = 1, $aStart = SM2_ROOT, $aMaxLevel = SM2_ALL, $aOptions = SM2_ALL, $aItemOpen = '[li][a][menu_title]</a>', $aItemClose = '</li>', $aMenuOpen = '<ul>', $aMenuClose = '</ul>', $aTopItemOpen = false, $aTopMenuOpen = '<ul id="main-menu" class="sm sm-clean collapsed">');
?>
			</div>
		</div>
		</div>
		<div class="clearfix"></div>
		</div>
<?php 
if ($hero) {
    ?>
		<div class="row">
			<div class="fg12 top">
				<?php 
    echo "<h1>" . PAGE_TITLE . "</h1>";
    ?>
			</div>
Example #8
0
show_menu2($aMenu = 1, $aStart = SM2_ROOT, $aMaxLevel = SM2_START, $aOptions = SM2_ALL | SM2_PRETTY, $aItemOpen = '[li]<a href="[url]" target="[target]" class="item">[menu_title]</a>', $aItemClose = '</li>', $aMenuOpen = '[ul]', $aMenuClose = '</ul>', $aTopItemOpen = false, $aTopMenuOpen = false);
?>
</div>


<!-- Page Contents -->
<div class="pusher">
  <div class="ui inverted vertical masthead center aligned segment">

    <div class="ui container">
      <div class="ui large secondary inverted pointing menu">
        <a class="toc item">
          <i class="sidebar icon"></i>
        </a>
	<?php 
show_menu2($aMenu = 1, $aStart = SM2_ROOT, $aMaxLevel = SM2_START, $aOptions = SM2_ALL | SM2_PRETTY, $aItemOpen = '[li]<a href="[url]" target="[target]" class="item">[menu_title]</a>', $aItemClose = '</li>', $aMenuOpen = '[ul]', $aMenuClose = '</ul>', $aTopItemOpen = false, $aTopMenuOpen = false);
?>
      </div>
    </div>

    <div class="ui text container">
      <h1 class="ui green header">
        LEPTON CMS
      </h1>
      <h2>feel free to keep it strictly simple...</h2>
      <div class="ui huge primary positive button"><a href="http://lepton-cms.org" target="_blank">Get LEPTON <i class="right arrow icon"></i></a></div>
    </div>

  </div>

  <div class="ui vertical stripe segment">
function show_menu1($aMenu = 1, $aStartLevel = 0, $aRecurse = -1, $aCollapse = true, $aItemTemplate = '<li><span[class]>[a][menu_title][/a]</span>', $aItemFooter = '</li>', $aMenuHeader = '<ul>', $aMenuFooter = '</ul>', $aDefaultClass = ' class="menu_default"', $aCurrentClass = ' class="menu_current"', $aParent = 0)
{
    static $formatter;
    if (!isset($formatter)) {
        $formatter = new SM2_ShowMenuFormatter();
    }
    $formatter->itemTemplate = $aItemTemplate;
    $formatter->itemFooter = $aItemFooter;
    $formatter->menuHeader = $aMenuHeader;
    $formatter->menuFooter = $aMenuFooter;
    $formatter->defaultClass = $aDefaultClass;
    $formatter->currentClass = $aCurrentClass;
    $start = SM2_ROOT + $aStartLevel;
    if ($aParent != 0) {
        $start = $aParent;
    }
    $maxLevel = 0;
    if ($aRecurse == 0) {
        return;
    }
    if ($aRecurse < 0) {
        $maxLevel = SM2_ALL;
    } else {
        $maxLevel = SM2_START + $aRecurse - 1;
    }
    $flags = $aCollapse ? SM2_TRIM : SM2_ALL;
    // special case for default case
    if ($aStartLevel == 0 && $aRecurse == -1 && $aCollapse) {
        $maxLevel = SM2_CURR + 1;
    }
    show_menu2($aMenu, $start, $maxLevel, $flags, $formatter);
}
Example #10
0
    require_once LEPTON_PATH . "/modules/lib_twig/library.php";
}
// prependpath to make sure, twig is looking in this module template folder first
$loader->prependPath(dirname(__FILE__) . "/css/");
//load classes
require_once LEPTON_PATH . "/modules/lib_twig/classes/class.twig_utilities.php";
$twig_util = new twig_utilities($parser, $loader);
// End of template-engines settings.
// ----------------- edit cases depending on the pages -----------------
switch (PAGE_ID) {
    case 1:
        $template_name = "start.lte";
        break;
    case 100:
        $template_name = "left_sidebar.lte";
        break;
    case 2:
    case 3:
        $template_name = "full_width.lte";
        break;
    case 101:
        $template_name = "no_sidebar_centered.lte";
        break;
    default:
        $template_name = "right_sidebar.lte";
}
/*
 * All the fixed page_content is defined here...
 */
$page_content = array('DEFAULT_CHARSET' => defined('DEFAULT_CHARSET') ? DEFAULT_CHARSET : 'utf-8', 'simplepagehead' => $twig_util->capture_echo("simplepagehead();"), 'page_title1' => $twig_util->capture_echo("page_title();"), 'page_title' => PAGE_TITLE, 'description' => $twig_util->capture_echo("page_description();"), 'keywords' => $twig_util->capture_echo("page_keywords();"), 'TEMPLATE_DIR' => TEMPLATE_DIR, 'page_id' => PAGE_ID, 'home_url' => LEPTON_URL, 'viewport' => "<meta name='viewport' content='width=device-width, initial-scale=1'>", 'meta_ie' => "<meta http-equiv='X-UA-Compatible' content='IE=EmulateIE7' />", 'ie6_no' => "<!--[if lte IE 6]><script type='text/javascript' charset='utf-8' src='" . TEMPLATE_DIR . "/ie_js/ie6_no.js'></script><![endif]-->", 'ie7_no' => "<!--[if lte IE 7]><script type='text/javascript' charset='utf-8' src='" . TEMPLATE_DIR . "/ie_js/ie7_no.js'></script><![endif]-->", 'css_ie' => "<!--[if lte IE 8]><style type='text/css' media='all'>@import '" . TEMPLATE_DIR . "/css/css-ie.css'</style><![endif]-->", 'jquery' => "<script type='text/javascript' src='" . LEPTON_URL . "/modules/lib_jquery/jquery-core/jquery-core.min.js' ></script>", 'migrate' => "<script type='text/javascript' src='" . LEPTON_URL . "/modules/lib_jquery/jquery-core/jquery-migrate.min.js' ></script>", 'custom' => "<script type='text/javascript' src='" . TEMPLATE_DIR . "/js/spacious-custom.js' ></script>", 'get_page_headers' => $twig_util->capture_echo("get_page_headers();"), 'lep_header' => $twig_util->capture_echo("page_header();"), 'logo' => "<a href='" . LEPTON_URL . "'><img src='" . TEMPLATE_DIR . "/img/logo.png' width='100' height='100' alt='home' title='logo' /></a>", 'my_name' => "<a href='" . LEPTON_URL . "' title='de website titel' rel='home'><span style='font: normal 32px impact,chicago; color: #ff0000; '>de website titel</span></a>", 'headimage' => "<a href='" . LEPTON_URL . "'><img class='head_img' src='" . TEMPLATE_DIR . "/img/1.jpg' width='900' height='180' alt='home' title='home'/></a>", 'menu_name' => "Menu", 'content1' => $twig_util->capture_echo("page_content(1);"), 'content2' => $twig_util->capture_echo("page_content(2);"), 'content3' => $twig_util->capture_echo("page_content(3);"), 'content4' => $twig_util->capture_echo("page_content(4);"), 'content5' => $twig_util->capture_echo("page_content(5);"), 'content0' => $twig_util->capture_echo("page_content(6);"), 'navimain' => show_menu2(1, SM2_ROOT, SM2_ALL, SM2_TRIM | SM2_BUFFER | SM2_PRETTY), 'navipsdo' => show_menu2(3, SM2_ROOT, SM2_ALL, SM2_TRIM | SM2_BUFFER | SM2_PRETTY), 'breadcrumb' => show_menu2(1, SM2_ROOT, SM2_MAX + 1, SM2_CRUMB | SM2_BUFFER, '<span class="[class]"> >> [a][menu_title]</a>', '</span>', '', '', 'Kruimelpad: <span class="[class]" >> [a][menu_title]</a>'), 'navifoot' => show_menu2(2, SM2_ROOT, SM2_START, SM2_TRIM | SM2_BUFFER | SM2_PRETTY), 'cycle' => "<script type='text/javascript' src='" . TEMPLATE_DIR . "/js/jquery.cycle.all.min.js' ></script>", 'slider' => "<script type='text/javascript' src='" . TEMPLATE_DIR . "/js/spacious-slider-setting.js' ></script>", 'navigation' => "<script type='text/javascript' src='" . TEMPLATE_DIR . "/js/navigation.js' ></script>", 'footer1' => "title 1", 'footer1_text' => "<p>Een eerste vaste tekst of wat je ervan maakt in index.php die op alle pagina's komt</p>", 'footer2' => "Titel 2", 'footer2_text' => "<p>Een tweede vaste tekst of wat je ervan maakt in index.php die op alle pagina's komt</p>", 'footer3' => "Links", 'footer4' => "Contact", 'footer4_text' => '<a href="[wblink5]"><img src="' . TEMPLATE_DIR . '/img/foot2a.png" alt="Contact Us" width="64" height="64" /></a>', 'power' => '<a href="http://www.contracthulp.nl">Powered by <span style="font: normal 16px impact,chicago; color: #ff0000; ">ContractHulp</span></a>', 'lep_footer' => $twig_util->capture_echo("page_footer();") . '<a href="[wblink4]"> Website Eigenaar</a>');
echo $parser->render($template_name, $page_content);
Example #11
0
    ?>
	
	<td style="padding: 10px; background-color: #FFF;" valign="top">
		<table summary="" cellpadding="0" cellspacing="0" border="0" width="150" align="center" class="menu">
		<tr>
			<td class="border">
				<img src="<?php 
    echo TEMPLATE_DIR;
    ?>
/images/menu_top.gif" border="0" alt="" />
			</td>
		</tr>
		<tr>
			<td width="170">
				<?php 
    show_menu2(0, SM2_ROOT, SM2_CURR + 1, SM2_TRIM, '<li><span class="menu-default">[ac][menu_title]</a></span>', '</li>', '<ul>', '</ul>');
    ?>
			</td>
		</tr>
		<tr>
			<td class="border">
				<img src="<?php 
    echo TEMPLATE_DIR;
    ?>
/images/menu_bottom.gif" border="0" alt="" />
			</td>
		</tr>
		</table>
		
		
		<!-- frontend search -->
Example #12
0
function Dwoo_Plugin_show_menu(Dwoo $dwoo, $aMenu = 0, $aStart = SM2_ROOT, $aMaxLevel = -1999, $aOptions = SM2_TRIM, $aItemOpen = false, $aItemClose = false, $aMenuOpen = false, $aMenuClose = false, $aTopItemOpen = false, $aTopMenuOpen = false)
{
    if (CAT_Helper_Page::isMaintenance() && !CAT_Users::is_root()) {
        return false;
    }
    if (strpos($aOptions, 'SM2_PRETTY') !== false) {
        return "<strong>Error:</strong> show_menu() does not support the SM2_PRETTY Flag!";
    }
    // Set variables to replace strings with constants
    $search_values = array('SM2_ROOT', 'SM2_CURR', 'SM2_ALLMENU', 'SM2_START', 'SM2_MAX', 'SM2_ALLINFO', 'SM2_ALL', 'SM2_TRIM', 'SM2_CRUMB', 'SM2_SIBLING', 'SM2_NUMCLASS', 'SM2_NOCACHE', 'SM2_PRETTY', 'SM2_ESCAPE', 'SM2_NOESCAPE', 'SM2_BUFFER', 'SM2_CURRTREE', 'SM2_SHOWHIDDEN', 'SM2_XHTML_STRICT', 'SM2_NO_TITLE', 'SM2_ARRAY');
    $replace_values = array(SM2_ROOT, SM2_CURR, SM2_ALLMENU, SM2_START, SM2_MAX, SM2_ALLINFO, SM2_ALL, SM2_TRIM, SM2_CRUMB, SM2_SIBLING, SM2_NUMCLASS, SM2_NOCACHE, SM2_PRETTY, SM2_ESCAPE, SM2_NOESCAPE, SM2_BUFFER, SM2_CURRTREE, SM2_SHOWHIDDEN, SM2_XHTML_STRICT, SM2_NO_TITLE, '');
    // Check if function shall return an array or the menu
    $direct_output = strpos($aOptions, 'SM2_ARRAY') === false ? true : false;
    // Check if SM2_BUFFER is set, when SM2_ARRAY is set (otherwise simply replace SM2_ARRAY with SM2_BUFFER
    $aOptions = !$direct_output && strpos($aOptions, 'SM2_BUFFER') === false ? str_replace('SM2_ARRAY', 'SM2_BUFFER', $aOptions) : $aOptions;
    // Replace all Strings with constants
    $aStart = str_replace($search_values, $replace_values, $aStart);
    $aMaxLevel = str_replace($search_values, $replace_values, $aMaxLevel);
    $aOptions = str_replace($search_values, $replace_values, $aOptions);
    // Among all constants get to bit values
    $Menu = among_constants($aMenu);
    $Start = among_constants($aStart);
    $MaxLevel = among_constants($aMaxLevel);
    $Options = among_constants($aOptions);
    if ($direct_output) {
        show_menu2($Menu, $Start, $MaxLevel, $Options, $aItemOpen, $aItemClose, $aMenuOpen, $aMenuClose, $aTopItemOpen, $aTopMenuOpen);
    } else {
        $result = show_menu2($Menu, $Start, $MaxLevel, $Options);
        $search = array('</li><li', '</a><ul', '</li></ul>', '</ul></li>', '</a></li>');
        $replace = array('</li>|<li', '</a>|<ul', '</li>|</ul>', '</ul>|</li>', '</a>|</li>');
        $result = str_replace($search, $replace, $result);
        $walk = explode('|', $result);
        $menu = array();
        $level = 0;
        foreach ($walk as $index => $item) {
            trim($item);
            if ($item == '</li>') {
                $menu[] = array('type' => 'link_end', 'level' => $level);
                continue;
            }
            if ($item == '</ul>') {
                $menu[] = array('type' => 'level_end', 'level' => $level);
                $level--;
                continue;
            }
            if (strpos($item, '<ul') !== false) {
                $ul = substr($item, 0, strpos($item, '<li'));
                $level++;
                $link = array();
                $link['type'] = 'level_start';
                $link['level'] = $level;
                preg_match_all('/([a-zA-Z]*[a-zA-Z])\\s{0,3}[=]\\s{0,3}("[^"\\r\\n]*)"/', $ul, $attr);
                foreach ($attr as $attributes) {
                    foreach ($attributes as $attribut) {
                        if (strpos($attribut, "=") !== false) {
                            list($key, $value) = explode("=", $attribut);
                            $value = trim($value);
                            $value = trim(substr($value, 1, strlen($value) - 2));
                            if (!empty($value)) {
                                $link[$key] = $value;
                            }
                        }
                    }
                }
                $menu[] = $link;
                $item = trim(substr($item, strpos($item, '<li')));
            }
            if (strpos($item, '<li') !== false) {
                $link = array();
                $link['type'] = 'link_start';
                $link['level'] = $level;
                preg_match_all('/([a-zA-Z]*[a-zA-Z])\\s{0,3}[=]\\s{0,3}("[^"\\r\\n]*)"/', $item, $attr);
                foreach ($attr as $attributes) {
                    foreach ($attributes as $attribut) {
                        if (strpos($attribut, "=") !== false) {
                            list($key, $value) = explode("=", $attribut);
                            $value = trim($value);
                            $value = trim(substr($value, 1, strlen($value) - 2));
                            $link[$key] = $value;
                        }
                    }
                }
                $link['pagename'] = pathinfo($link['href'], PATHINFO_FILENAME);
                $menu[] = $link;
            }
        }
        return $menu;
    }
    // end loop for SM2_ARRAY
}
Example #13
0
 */
if (!defined("LOGIN_URL")) {
    define("LOGIN_URL", "");
}
if (!defined("LOGOUT_URL")) {
    define("LOGOUT_URL", "");
}
if (!defined("FORGOT_URL")) {
    define("FORGOT_URL", "");
}
if (!defined("PREFERENCES_URL")) {
    define("PREFERENCES_URL", "");
}
require_once __DIR__ . "/info.php";
/**	*******************************
 *	Initialize Twig template engine
 */
global $parser, $loader;
if (!isset($parser)) {
    require_once LEPTON_PATH . "/modules/lib_twig/library.php";
}
// prependpath to make sure, Twig is looking in this module template folder first
$loader->prependPath(dirname(__FILE__) . "/templates/");
// Load additional classes
require_once LEPTON_PATH . "/modules/lib_twig/classes/class.twig_utilities.php";
$twig_util = new twig_utilities($parser, $loader);
/**
 *	Collecting the pagedata
 */
$page_content = array('LEPTON_URL' => LEPTON_URL, 'DEFAULT_CHARSET' => DEFAULT_CHARSET, 'WEBSITE_TITLE' => WEBSITE_TITLE, 'page_title' => PAGE_TITLE, 'TEMPLATE_DIR' => TEMPLATE_DIR, 'PAGE_EXTENSION' => PAGE_EXTENSION, 'LOGIN_URL' => LOGIN_URL, 'LOGIN_URL' => LOGIN_URL, 'FORGOT_URL' => FORGOT_URL, 'FRONTEND_SIGNUP' => is_numeric(FRONTEND_SIGNUP) ? 1 : 0, 'FRONTEND_LOGIN_ADMIN_0' => (FRONTEND_LOGIN and !$admin->is_authenticated()) ? 1 : 0, 'FRONTEND_LOGIN_ADMIN_1' => (FRONTEND_LOGIN and $admin->is_authenticated()) ? 1 : 0, 'LOGOUT_URL' => LOGOUT_URL, 'PREFERENCES_URL' => PREFERENCES_URL, 'admin_display_name' => $admin->get_display_name(), 'module_files' => $twig_util->capture_echo("get_page_headers();"), 'SHOW_SEARCH' => defined('SHOW_SEARCH') ? 1 : 0, 'TEXT_SEARCH' => $TEXT['SEARCH'], 'template_version' => $template_version, 'main_menu_1' => show_menu2(1, SM2_ROOT, SM2_ROOT + 1, SM2_TRIM | SM2_PRETTY | SM2_XHTML_STRICT | SM2_NO_TITLE | SM2_BUFFER), 'page_content' => $twig_util->capture_echo("page_content();"), 'TEXT' => $TEXT, 'MENU' => $MENU, 'page_description' => page_description(true), 'page_keywords' => page_keywords(true), 'WEBSITE_FOOTER' => WEBSITE_FOOTER);
echo $parser->render('page.lte', $page_content);