skip to main content

{source}<?php
tab Displaying Portfolio Item: Town of Highlands, NCuse Joomla\CMS\Uri\Uri;
tab Displaying Portfolio Item: Town of Highlands, NC// Get the current view
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC$input = $app->input;
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC$view = $input->get('view');
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC$layout = $input->get('layout');
tab Displaying Portfolio Item: Town of Highlands, NC
tab Displaying Portfolio Item: Town of Highlands, NC// Get the page title
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC$pageTitle = $document->getTitle();
tab Displaying Portfolio Item: Town of Highlands, NC
tab Displaying Portfolio Item: Town of Highlands, NC// Initialize category title variable
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC$categoryTitle = '';
tab Displaying Portfolio Item: Town of Highlands, NC
tab Displaying Portfolio Item: Town of Highlands, NC// Check if the view is an article or a category
tab Displaying Portfolio Item: Town of Highlands, NCif ($view === 'article' && isset($article)) {
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC// Get the category id from the article object
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC$categoryId = $article->catid;
tab Displaying Portfolio Item: Town of Highlands, NC
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC// Load the category
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC$category = \JCategories::getInstance('Content')->get($categoryId);
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC$categoryTitle = $category->title;
tab Displaying Portfolio Item: Town of Highlands, NC} elseif ($view === 'category') {
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC// Get the category id
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC$categoryId = $input->getInt('id');
tab Displaying Portfolio Item: Town of Highlands, NC
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC// Load the category
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC$category = \JCategories::getInstance('Content')->get($categoryId);
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC$categoryTitle = $category->title;
tab Displaying Portfolio Item: Town of Highlands, NC}
tab Displaying Portfolio Item: Town of Highlands, NC// 
tab Displaying Portfolio Item: Town of Highlands, NC// echo "<pre>";
tab Displaying Portfolio Item: Town of Highlands, NC// echo 'View: ' . htmlspecialchars($view) . '<br>';
tab Displaying Portfolio Item: Town of Highlands, NC// echo 'Layout: ' . htmlspecialchars($layout) . '<br>';
tab Displaying Portfolio Item: Town of Highlands, NC// echo "View later: " . htmlspecialchars($viewLater) . '<br>';
tab Displaying Portfolio Item: Town of Highlands, NC 

tab Displaying Portfolio Item: Town of Highlands, NC// $currentView = $app->get('current_view_for_sourcer', '');
tab Displaying Portfolio Item: Town of Highlands, NC// $bodyClassMenu= $app->get('bodyClassMenu', '');
tab Displaying Portfolio Item: Town of Highlands, NC 

tab Displaying Portfolio Item: Town of Highlands, NC// echo 'Current View Passed: '.$currentView.'<br>';
tab Displaying Portfolio Item: Town of Highlands, NC// echo 'Body Class Passed: '.$bodyClassMenu.'<br>';

tab Displaying Portfolio Item: Town of Highlands, NC 

tab Displaying Portfolio Item: Town of Highlands, NC// echo
"<br>";
tab Displaying Portfolio Item: Town of Highlands, NC// echo "Current view: " . htmlspecialchars($input->get('view'));

tab Displaying Portfolio Item: Town of Highlands, NC// echo 'Page Title: <h1>' . htmlspecialchars($pageTitle) . '</h1>';
tab Displaying Portfolio Item: Town of Highlands, NC// echo "</pre>";

tab Displaying Portfolio Item: Town of Highlands, NC//
tab Displaying Portfolio Item: Town of Highlands, NC// Output the titles and view with conditional HTML elements
tab Displaying Portfolio Item: Town of Highlands, NC
tab Displaying Portfolio Item: Town of Highlands, NCecho '<div class="container">';
tab Displaying Portfolio Item: Town of Highlands, NCecho '<div class="row">';
tab Displaying Portfolio Item: Town of Highlands, NCecho '<div class="col-xs-12">';
tab Displaying Portfolio Item: Town of Highlands, NCecho '<div class="holder">';
tab Displaying Portfolio Item: Town of Highlands, NC
tab Displaying Portfolio Item: Town of Highlands, NC//echo "blog/".$article->category_alias;
tab Displaying Portfolio Item: Town of Highlands, NC$varURL = Uri::getInstance()->toString();
tab Displaying Portfolio Item: Town of Highlands, NC$varURLParts = parse_url($varURL);
tab Displaying Portfolio Item: Town of Highlands, NC$varCategoryFlag = null;
tab Displaying Portfolio Item: Town of Highlands, NC
tab Displaying Portfolio Item: Town of Highlands, NCforeach ($varURLParts as $component => $value) {
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NCif ($component === 'path') {
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC$value = substr($value, 0, strrpos($value, '/'));
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC}
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC$arrURLComponents[$component] = ucfirst($component) . ": $value";
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NC$arrURLValue[$component] = $value;
tab Displaying Portfolio Item: Town of Highlands, NC};
tab Displaying Portfolio Item: Town of Highlands, NC
tab Displaying Portfolio Item: Town of Highlands, NC//echo "<pre>";
tab Displaying Portfolio Item: Town of Highlands, NC//var_dump ($arrURLValue);
tab Displaying Portfolio Item: Town of Highlands, NC//echo "</pre>";
tab Displaying Portfolio Item: Town of Highlands, NC
tab Displaying Portfolio Item: Town of Highlands, NC//echo '<a href="'.htmlspecialchars($arrURLValue['path']).'">'.htmlspecialchars($arrURLValue['path']).'</a>';
tab Displaying Portfolio Item: Town of Highlands, NC
tab Displaying Portfolio Item: Town of Highlands, NCif ($view === 'article') {
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NCecho '<!--article--><div class="header"><a href="'.htmlspecialchars($arrURLValue['path']).'"> ' . htmlspecialchars($categoryTitle) . '</a></div>';
tab Displaying Portfolio Item: Town of Highlands, NC} elseif ($view === 'category') {
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NCecho '<!--category--><h1 class="header"><a href="'.htmlspecialchars($arrURLValue['path']).'">' . htmlspecialchars($categoryTitle) . '</a></h1>';

tab Displaying Portfolio Item: Town of Highlands, NC} 
else {
tab Displaying Portfolio Item: Town of Highlands, NCtab Displaying Portfolio Item: Town of Highlands, NCecho '<!--else--><h1 class="header">' . htmlspecialchars($categoryTitle) . '</h1>';
tab Displaying Portfolio Item: Town of Highlands, NC};
tab Displaying Portfolio Item: Town of Highlands, NC
tab Displaying Portfolio Item: Town of Highlands, NCecho '</div>';
tab Displaying Portfolio Item: Town of Highlands, NCecho '</div>';
tab Displaying Portfolio Item: Town of Highlands, NCecho '</div>';
tab Displaying Portfolio Item: Town of Highlands, NCecho '</div>';
?>
{/source}

Town of Highlands

The Town of Highlands is a mountain town in the heart of Western North Carolina. Town leaders sought a website upgrade that would appeal to both its permanent and seasonal residents while representing the area’s features and being an easy method of sharing information, such as meeting information and minutes.

 

Cube Creative Design developed a site that visually features the leaf-viewing season. From a user experience perspective, the site is easy for older residents to use, and includes social media integration. Town leaders can quickly and easily update information for residents.

Town of Highlands