Your IP : 216.73.216.55


Current Path : /home/giteleslfp/www/administrator/components/com_templateck/views/fonts/tmpl/
Upload File :
Current File : /home/giteleslfp/www/administrator/components/com_templateck/views/fonts/tmpl/default.php

<?php
/**
 * @name		Template Creator CK
 * @package		com_templateck
 * @copyright	Copyright (C) 2013. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 * @author		Cedric Keiflin - http://www.template-creator.com - http://www.joomlack.fr
 */
// No direct access to this file
defined('TCK_LOADED') or die('Restricted access');

$document = JFactory::getDocument();
$document->addStyleSheet('components/com_templateck/assets/admin.css');
$document->addStyleSheet('components/com_templateck/assets/ckframework.css');

// load the fontface css
$this->_callfonts();
?>
<form action="<?php echo JRoute::_('index.php'); ?>" method="post" name="adminForm" id="adminForm" class="ckadminarea">
	<div class="ckalert"><?php echo TCK_Text::_('CK_GOOGLEFONT_INSTALL_INFOS'); ?></div>
	<div id="editcell">
		<table class="table table-striped">
			<thead>
				<tr>
					<th width="5">
						<?php echo TCK_Text::_('CK_NUM'); ?>
					</th>
					<th width="20">

					</th>
					<th>
						<?php echo TCK_Text::_('CK_FONTKIT'); ?>
					</th>
					<th>
						<?php echo TCK_Text::_('CK_FONTFAMILIES'); ?>
					</th>
					<th>
						<?php echo TCK_Text::_('CK_ADDITONAL_FONTS'); ?>
					</th>
					<th>
						<?php echo TCK_Text::_('CK_SUBSET'); ?>
					</th>
					<th width="1%" nowrap="nowrap">
						<?php echo TCK_Text::_('CK_PUBLISHED'); ?>
					</th>
					<th width="1%" nowrap="nowrap">
						<?php echo TCK_Text::_('ID'); ?>
					</th>
				</tr>

			</thead>
			<?php
			$k = 0;
			for ($i = 0, $n = count($this->fonts); $i < $n; $i++) {
				$font = &$this->fonts[$i];
				$checked = JHTML::_('grid.id', $i, $font->id);
				?>
				<tr class="<?php echo "row$k"; ?>">
					<td>
	<?php echo $i + 1; ?>
					</td>
					<td>
	<?php echo $checked; ?>
					</td>
					<td>
	<?php echo $font->name; ?>
					</td>
					<td>
	<?php
	$fonts = explode(",", $font->fontfamilies);
	foreach ($fonts as $fontfamily) {
		echo " <span style=\"font-size:16px;font-family:'" . $fontfamily . "';\"> " . $fontfamily . " </span> ";
	}
	?>
					</td>
					<td>
						<?php echo (isset($font->alternatives) ? $font->alternatives : '' ) ; ?>
					</td>
					<td>
						<?php echo (isset($font->subset) ? $font->subset : '' ) ; ?>
					</td>
					<td align="center">
						<?php echo ($font->published ? '<span class="icon-publish"></span>' : '<span class="icon-unpublish"></span>'); ?>
					</td>
					<td align="center">
						<?php echo $font->id; ?>
					</td>
				</tr>
				<?php
				$k = 1 - $k;
			}
			?>
		</table>
	</div>

	<input type="hidden" name="option" value="com_templateck" />
	<input type="hidden" name="view" value="fonts" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="boxchecked" value="0" />
	<?php echo JHtml::_('form.token'); ?>
</form>