Exemplo n.º 1
0
function kly_getBreadcrumb($options = array(), $content = '')
{
    $version = isset($options['version']) ? $options['version'] : null;
    $class = is_null($version) ? 'breadcrumbs' : 'breadcrumbs_' . $version;
    $html = '<ul class="' . $class . ' fixclear">';
    $html .= '<li><a href="/">HOME</a></li>';
    $call_parts = wed_getSystemValue('CALL_PARTS');
    $link = null;
    foreach ($call_parts as $call) {
        $link .= !empty($call) ? '/' . $call : null;
        if (!is_null($link)) {
            $html .= '<li><a href="' . $link . '">' . strtoupper($call) . '</a></li>';
        }
    }
    $html .= '</ul>';
    return $html;
}
Exemplo n.º 2
0
<?php

defined('_GOOFY') or die;
/*
 * page_about.php
 *
 * This setup is for the about category pages.
 *
 */
$call_parts = wed_getSystemValue('CALL_PARTS');
$page_code = !empty($call_parts[1]) ? $call_parts[1] : $page_code;
if (is_null($page_code)) {
    $page_html = '[search search_type="Control" heading="Information Listing" /]';
} else {
    $page_html = '[presentation type="content" code="' . $page_code . '" /]';
}
?>

<!doctype html>
<!--[if IE 7 ]>    <html lang="en-gb" class="isie ie7 oldie no-js"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en-gb" class="isie ie8 oldie no-js"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en-gb" class="isie ie9 no-js"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en-gb" class="no-js"> <!--<![endif]-->

<head>
	<title>{{PAGE_TITLE}}</title>
	
	<meta charset="utf-8">
	<meta name="keywords" content="{{META_KEYWORDS}}" />
	<meta name="description" content="{{META_DESCRIPTION}}" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
Exemplo n.º 3
0
<?php

defined('_GOOFY') or die;
ini_set('display_errors', 1);
error_reporting(E_ALL);
$control_codes = wed_getSystemValue('URL_CONTROL');
// First we set page_view to the default value of list
$page_view = 'list';
if (!empty($control_codes[1])) {
    $page_view = 'page';
}
if (!empty($control_codes[2])) {
    $page_view = 'article';
}
var_dump($page_view);
$path = dirname(__FILE__) . DS . 'index.php';
if (file_exists($path)) {
    include $path;
}