skip to main content

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

tab Displaying Portfolio Item: Cates Property Services// $currentView = $app->get('current_view_for_sourcer', '');
tab Displaying Portfolio Item: Cates Property Services// $bodyClassMenu= $app->get('bodyClassMenu', '');
tab Displaying Portfolio Item: Cates Property Services 

tab Displaying Portfolio Item: Cates Property Services// echo 'Current View Passed: '.$currentView.'<br>';
tab Displaying Portfolio Item: Cates Property Services// echo 'Body Class Passed: '.$bodyClassMenu.'<br>';

tab Displaying Portfolio Item: Cates Property Services 

tab Displaying Portfolio Item: Cates Property Services// echo
"<br>";
tab Displaying Portfolio Item: Cates Property Services// echo "Current view: " . htmlspecialchars($input->get('view'));

tab Displaying Portfolio Item: Cates Property Services// echo 'Page Title: <h1>' . htmlspecialchars($pageTitle) . '</h1>';
tab Displaying Portfolio Item: Cates Property Services// echo "</pre>";

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

tab Displaying Portfolio Item: Cates Property Services} 
else {
tab Displaying Portfolio Item: Cates Property Servicestab Displaying Portfolio Item: Cates Property Servicesecho '<!--else--><h1 class="header">' . htmlspecialchars($categoryTitle) . '</h1>';
tab Displaying Portfolio Item: Cates Property Services};
tab Displaying Portfolio Item: Cates Property Services
tab Displaying Portfolio Item: Cates Property Servicesecho '</div>';
tab Displaying Portfolio Item: Cates Property Servicesecho '</div>';
tab Displaying Portfolio Item: Cates Property Servicesecho '</div>';
tab Displaying Portfolio Item: Cates Property Servicesecho '</div>';
?>
{/source}

Cates Property Services

Cube Creative worked with Cates Property Services in Piney Flats, TN to create a custom responsive and search engine optimized website built with Joomla! CMS.

Cates Property Services