45 lines
1.4 KiB
PHP
45 lines
1.4 KiB
PHP
|
|
<?php
|
|||
|
|
/**
|
|||
|
|
* @version 2.0.12 alpharegistration $
|
|||
|
|
* @package alpharegistration
|
|||
|
|
* @copyright Copyright <EFBFBD> 2009-2010 - Bernard Gilly - All rights reserved.
|
|||
|
|
* @license GNU/GPL
|
|||
|
|
* @author Bernard Gilly
|
|||
|
|
* @author mail contact@alphaplug.com
|
|||
|
|
* @website www.alphaplug.com
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
// no direct access
|
|||
|
|
defined('_JEXEC') or die('Restricted access');
|
|||
|
|
|
|||
|
|
function arg_CopySite ($align='center') {
|
|||
|
|
// Get Copyright for Backend
|
|||
|
|
$copyStart = 2009;
|
|||
|
|
$copyNow = date('Y');
|
|||
|
|
if ($copyStart == $copyNow) {
|
|||
|
|
$copySite = $copyStart;
|
|||
|
|
} else {
|
|||
|
|
$copySite = $copyStart." - ".$copyNow ;
|
|||
|
|
}
|
|||
|
|
$_copyright = "<div align=\"$align\"><span class=\"small\"><b>AlphaRegistration v2.0.12</b> © $copySite"
|
|||
|
|
. " - Bernard Gilly - <a href=\"http://www.alphaplug.com\" target=\"_blank\">www.alphaplug.com</a><br />"
|
|||
|
|
. "AlphaRegistration is Free Software released under the <a href=\"http://www.gnu.org/licenses/gpl-2.0.html\" target=\"_blank\">GNU/GPL License</a></span></div>";
|
|||
|
|
echo $_copyright;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
function arg_createIconPanel( $link, $image, $text, $javascript='', $class='' ) {
|
|||
|
|
|
|||
|
|
$image = JURI::base(true)."/components/com_alpharegistration/assets/images/" . $image;
|
|||
|
|
?>
|
|||
|
|
<div style="float:left;">
|
|||
|
|
<div class="icon">
|
|||
|
|
<a <?php echo $class; ?> href="<?php echo $link; ?>" <?php echo $javascript; ?>>
|
|||
|
|
<img src="<?php echo $image; ?>" alt="<?php echo $text; ?>" align="top" border="0" />
|
|||
|
|
<span><?php echo $text; ?></span>
|
|||
|
|
</a>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<?php
|
|||
|
|
}
|
|||
|
|
?>
|