skip to main content

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

tab Partner Blogs 301-304 | Cube Creative Design// $currentView = $app->get('current_view_for_sourcer', '');
tab Partner Blogs 301-304 | Cube Creative Design// $bodyClassMenu= $app->get('bodyClassMenu', '');
tab Partner Blogs 301-304 | Cube Creative Design 

tab Partner Blogs 301-304 | Cube Creative Design// echo 'Current View Passed: '.$currentView.'<br>';
tab Partner Blogs 301-304 | Cube Creative Design// echo 'Body Class Passed: '.$bodyClassMenu.'<br>';

tab Partner Blogs 301-304 | Cube Creative Design 

tab Partner Blogs 301-304 | Cube Creative Design// echo
"<br>";
tab Partner Blogs 301-304 | Cube Creative Design// echo "Current view: " . htmlspecialchars($input->get('view'));

tab Partner Blogs 301-304 | Cube Creative Design// echo 'Page Title: <h1>' . htmlspecialchars($pageTitle) . '</h1>';
tab Partner Blogs 301-304 | Cube Creative Design// echo "</pre>";

tab Partner Blogs 301-304 | Cube Creative Design//
tab Partner Blogs 301-304 | Cube Creative Design// Output the titles and view with conditional HTML elements
tab Partner Blogs 301-304 | Cube Creative Design
tab Partner Blogs 301-304 | Cube Creative Designecho '<div class="container">';
tab Partner Blogs 301-304 | Cube Creative Designecho '<div class="row">';
tab Partner Blogs 301-304 | Cube Creative Designecho '<div class="col-xs-12">';
tab Partner Blogs 301-304 | Cube Creative Designecho '<div class="holder">';
tab Partner Blogs 301-304 | Cube Creative Design
tab Partner Blogs 301-304 | Cube Creative Design//echo "blog/".$article->category_alias;
tab Partner Blogs 301-304 | Cube Creative Design$varURL = Uri::getInstance()->toString();
tab Partner Blogs 301-304 | Cube Creative Design$varURLParts = parse_url($varURL);
tab Partner Blogs 301-304 | Cube Creative Design$varCategoryFlag = null;
tab Partner Blogs 301-304 | Cube Creative Design
tab Partner Blogs 301-304 | Cube Creative Designforeach ($varURLParts as $component => $value) {
tab Partner Blogs 301-304 | Cube Creative Designtab Partner Blogs 301-304 | Cube Creative Designif ($component === 'path') {
tab Partner Blogs 301-304 | Cube Creative Designtab Partner Blogs 301-304 | Cube Creative Designtab Partner Blogs 301-304 | Cube Creative Design$value = substr($value, 0, strrpos($value, '/'));
tab Partner Blogs 301-304 | Cube Creative Designtab Partner Blogs 301-304 | Cube Creative Design}
tab Partner Blogs 301-304 | Cube Creative Designtab Partner Blogs 301-304 | Cube Creative Design$arrURLComponents[$component] = ucfirst($component) . ": $value";
tab Partner Blogs 301-304 | Cube Creative Designtab Partner Blogs 301-304 | Cube Creative Design$arrURLValue[$component] = $value;
tab Partner Blogs 301-304 | Cube Creative Design};
tab Partner Blogs 301-304 | Cube Creative Design
tab Partner Blogs 301-304 | Cube Creative Design//echo "<pre>";
tab Partner Blogs 301-304 | Cube Creative Design//var_dump ($arrURLValue);
tab Partner Blogs 301-304 | Cube Creative Design//echo "</pre>";
tab Partner Blogs 301-304 | Cube Creative Design
tab Partner Blogs 301-304 | Cube Creative Design//echo '<a href="'.htmlspecialchars($arrURLValue['path']).'">'.htmlspecialchars($arrURLValue['path']).'</a>';
tab Partner Blogs 301-304 | Cube Creative Design
tab Partner Blogs 301-304 | Cube Creative Designif ($view === 'article') {
tab Partner Blogs 301-304 | Cube Creative Designtab Partner Blogs 301-304 | Cube Creative Designecho '<!--article--><div class="header"><a href="'.htmlspecialchars($arrURLValue['path']).'"> ' . htmlspecialchars($categoryTitle) . '</a></div>';
tab Partner Blogs 301-304 | Cube Creative Design} elseif ($view === 'category') {
tab Partner Blogs 301-304 | Cube Creative Designtab Partner Blogs 301-304 | Cube Creative Designecho '<!--category--><h1 class="header"><a href="'.htmlspecialchars($arrURLValue['path']).'">' . htmlspecialchars($categoryTitle) . '</a></h1>';

tab Partner Blogs 301-304 | Cube Creative Design} 
else {
tab Partner Blogs 301-304 | Cube Creative Designtab Partner Blogs 301-304 | Cube Creative Designecho '<!--else--><h1 class="header">' . htmlspecialchars($categoryTitle) . '</h1>';
tab Partner Blogs 301-304 | Cube Creative Design};
tab Partner Blogs 301-304 | Cube Creative Design
tab Partner Blogs 301-304 | Cube Creative Designecho '</div>';
tab Partner Blogs 301-304 | Cube Creative Designecho '</div>';
tab Partner Blogs 301-304 | Cube Creative Designecho '</div>';
tab Partner Blogs 301-304 | Cube Creative Designecho '</div>';
?>
{/source}