Your IP : 216.73.216.43


Current Path : /home/cbequiperp/www/components/com_flexicontent/tmpl_common/seo/category/layouts/
Upload File :
Current File : /home/cbequiperp/www/components/com_flexicontent/tmpl_common/seo/category/layouts/title.php

<?php
/**
 * Create an appropriate document title, using things like
 *
 * - category title
 * - site name
 * - CATEGORY FILTER VALUES 
 *
 * This improves SEO of your content
 *
 * And then set them using the following commands
 * - HTML DOCUMENT TITLE <title>     --    $document->setTitle(...);
 * - PAGE TITLE <h1>                 --    $item->title =  ' ... ' . $item->title . ' ... ';
 *
 * Example of useful field data (following code is testing code to prints them)
 *

	echo '<pre>';
	$filter_A = $filters['some_fieldname'];   // One of the category view's filters
	$filter_A->raw_values;                    // Array of raw uncompressed field VALUEs, to test use:    // echo '<pre>'; print_r($field_A->raw_values); echo '</pre>';
	$filter_A->basic_texts;                   // Array of basic textual display of VALUEs, to test use:  // echo '<pre>'; print_r($field_A->basic_texts); echo '</pre>';
	echo JText::_('LANG_STRING_NAME');        // A Joomla language string
	echo '<pre>';

 *
 */


/**
 * Use the page heading as document title, (already calculated above via 'appropriate' logic ...)
 * or the overriden custom <title> ... set via parameter
 */
$doc_title = empty($meta_params)
	? $params->get('page_title')
	: $meta_params->get('page_title', $params->get('page_title'));


/**
 * Check and prepend or append site name to page title
 */
if ($doc_title != $app->getCfg('sitename'))
{
	if ($app->getCfg('sitename_pagetitles', 0) == 1)
	{
		$doc_title = JText::sprintf('JPAGETITLE', $app->getCfg('sitename'), $doc_title);
	}
	elseif ($app->getCfg('sitename_pagetitles', 0) == 2)
	{
		$doc_title = JText::sprintf('JPAGETITLE', $doc_title, $app->getCfg('sitename'));
	}
}


/**
 * Finally, set document title
 */
$document->setTitle($doc_title);


/**
 * Optional modify the category title too (This is typically used inside <H1> tags as page's title)
 */
//$category->title = ' ... ' . $category->title . ' ... ';