skip to main content

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

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

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

tab Displaying Portfolio Item: the 1915 

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

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

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

tab Displaying Portfolio Item: the 1915} 
else {
tab Displaying Portfolio Item: the 1915tab Displaying Portfolio Item: the 1915echo '<!--else--><h1 class="header">' . htmlspecialchars($categoryTitle) . '</h1>';
tab Displaying Portfolio Item: the 1915};
tab Displaying Portfolio Item: the 1915
tab Displaying Portfolio Item: the 1915echo '</div>';
tab Displaying Portfolio Item: the 1915echo '</div>';
tab Displaying Portfolio Item: the 1915echo '</div>';
tab Displaying Portfolio Item: the 1915echo '</div>';
?>
{/source}

The 1915

Cube Creative worked with The 1915 in Wilkesboro, NC area to create a custom responsive and search engine optimized website built with Joomla CMS.

the 1915