<?php
/**
 * Language Include File (English)
 * Can overrule set variables in the certain elements
 *
 * @package     Content Templater
 * @version     1.2.2a
 *
 * @author      Peter van Westen <peter@nonumber.nl>
 * @link        http://www.nonumber.nl
 * @copyright   Copyright (C) 2010 NoNumber! All Rights Reserved
 * @license     http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 */

// Ensure this file is being included by a parent file
defined('_JEXEC') or die( 'Restricted access' );

/**
 * Variables that can be overruled:
 * $image
 * $title
 * $description
 * $help
 */

if ( 
		$description == 'Extra help (description)'
	||	$description == 'You can use a couple of variables in your content (and other text fields) that will be handled the moment you insert the template'
) {
	$user =& JFactory::getUser();
	$description = '
		You can use a couple of variables in your content (and other text fields) that will be handled the moment you insert the template.
		<table class="adminlist" style="width:auto;">
			<thead>
				<tr>
					<th style="text-align:left"><label>Syntax</label></th>
					<th style="text-align:left"><label>Description</label></th>
					<th style="text-align:left"><label>Output example</label></th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td style="font-family:monospace">[[user:id]]</td>
					<td>The id number of the user (that chooses the template)</td>
					<td align="center">'.$user->id.'</td>
				</tr>
				<tr>
					<td style="font-family:monospace">[[user:username]]</td>
					<td>The login name of the user (that chooses the template)</td>
					<td align="center">'.$user->username.'</td>
				</tr>
				<tr>
					<td style="font-family:monospace">[[user:name]]</td>
					<td>The name of the user (that chooses the template)</td>
					<td align="center">'.$user->name.'</td>
				</tr>
				<tr>
					<td style="font-family:monospace">[[date:...]]</td>
					<td>Date using <a rel="{handler: \'iframe\', size:{x:window.getSize().scrollSize.x-100, y: window.getSize().size.y-100}}" href="http://www.php.net/manual/function.date.php" class="modal">php date() format</a>. Example: <span style="font-family:monospace">[[date:l, j M Y]]</span></td>
					<td align="center">'.date( 'l, j M Y', time() ).'</td>
				</tr>
			</tbody>
		</table>
		';
}