skip to main content

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

tab Non-Profit Websites: Increase Donations and Awareness// $currentView = $app->get('current_view_for_sourcer', '');
tab Non-Profit Websites: Increase Donations and Awareness// $bodyClassMenu= $app->get('bodyClassMenu', '');
tab Non-Profit Websites: Increase Donations and Awareness 

tab Non-Profit Websites: Increase Donations and Awareness// echo 'Current View Passed: '.$currentView.'<br>';
tab Non-Profit Websites: Increase Donations and Awareness// echo 'Body Class Passed: '.$bodyClassMenu.'<br>';

tab Non-Profit Websites: Increase Donations and Awareness 

tab Non-Profit Websites: Increase Donations and Awareness// echo
"<br>";
tab Non-Profit Websites: Increase Donations and Awareness// echo "Current view: " . htmlspecialchars($input->get('view'));

tab Non-Profit Websites: Increase Donations and Awareness// echo 'Page Title: <h1>' . htmlspecialchars($pageTitle) . '</h1>';
tab Non-Profit Websites: Increase Donations and Awareness// echo "</pre>";

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

tab Non-Profit Websites: Increase Donations and Awareness} 
else {
tab Non-Profit Websites: Increase Donations and Awarenesstab Non-Profit Websites: Increase Donations and Awarenessecho '<!--else--><h1 class="header">' . htmlspecialchars($categoryTitle) . '</h1>';
tab Non-Profit Websites: Increase Donations and Awareness};
tab Non-Profit Websites: Increase Donations and Awareness
tab Non-Profit Websites: Increase Donations and Awarenessecho '</div>';
tab Non-Profit Websites: Increase Donations and Awarenessecho '</div>';
tab Non-Profit Websites: Increase Donations and Awarenessecho '</div>';
tab Non-Profit Websites: Increase Donations and Awarenessecho '</div>';
?>
{/source}