Permalink
Browse files

Normalises files format, indents more nicely the code and makes the A…

…dminPage template, ready to be parsed by Doxygen.
  • Loading branch information...
JB Lebrun
JB Lebrun committed Aug 1, 2018
1 parent 2eb16ac commit f248f20973f94693a197fa035b448387abf4b992
@@ -1,54 +1,54 @@
<?php
/*
* CaMykS Engine
* Developed by : camyks.net
* Author : CaMykS Team <camyks.contact@gmail.com>
* CaMykS Version : 1.0a
* Object Version : 1.0
* Object Type : Plugin / Template
* Creation Date : Sep 2005
* Last Modif Date : Jan 2008
* History :
* * 05-09-xx : Initial File
* * 08-01-07 : Rebuild template as an object
* * 08-07-11 : Rebuild template for more compatibility
*
* AdminPage template object
*/
/**
* @brief AdminPage Template.
* <br /> Template designed for admin mode.
* @details Plugin / Template Engine
* @file plugin/template/AdminPage/AdminPage.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0
* @date Creation: Sep 2005
* @date Modification: Aug 2018
* @copyright 2005 - 2018 CaMykS Team
* @note This program is distributed as is - WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
class AdminPage extends Template {
/*
* constructor
* @param string $path_type
*/
function AdminPage ( $path_type ) {
parent::Template('AdminPage', $path_type );
/* set template title */
$this->title = 'Admin';
/* set plugin version */
$this->version = '1.0';
/* set plugin package */
$this->plugin_package = 'System';
/* set plugin author */
$this->author_name = 'CaMykS Team';
$this->author_mail = 'camyks.contact@gmail.com';
$this->author_group = 'camyks.net';
/* initialise template variables */
$this->modules = 2;
}
/* specific tool methods */
/*
* return signature image URL
* @return string
* @access private
*/
function get_signPicture() {
global $camyks;
$default = $this->get_fileURL('img/sign_fr.png');
return $this->get_fileURL('img/sign_'.$camyks->current_language.'.png', null, $default);
}
/**
* AdminPage Template class.
*/
final class AdminPage extends Template {
/**
* Class constructor.
* @param string $path_type
* @return void
*/
public function __construct($path_type) {
parent::__construct('AdminPage', $path_type);
/* overwrite Plugin information */
$this->version = '1.0';
$this->plugin_package = 'System';
/* overwrite Template information */
$this->title = 'Admin';
$this->modules = 2;
/* author information */
$this->author_name = 'CaMykS Team';
$this->author_mail = 'camyks.contact@gmail.com';
$this->author_group = 'camyks.net';
}
/* specific tool methods */
/**
* Return signature image URL.
* @return string
*/
protected function get_signPicture() {
global $camyks;
$default = $this->get_fileURL('img/sign_fr.png');
return $this->get_fileURL('img/sign_'.$camyks->current_language.'.png', null, $default);
}
}
?>
?>
@@ -1,47 +1,53 @@
<?php
/*
* CaMykS Engine
* Developed by : camyks.net
* Author : CaMykS Team <camyks.contact@gmail.com>
* CaMykS Version : 1.0b
* Object Version : 1.0
* Object Type : Plugin / Template Layout
* Creation Date : Sep 2005
* Last Modif Date : Jan 2018
*
* AdminPage Template Main HTML
*/
/**
* @brief AdminPage Template main layout
* @details Plugin / Template layout
* @file plugin/template/AdminPage/main.html.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0
* @date Creation: Oct 2005
* @date Modification: Aug 2018
* @copyright 2005 - 2018 CaMykS Team
* @note This program is distributed as is - WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* @cond Exclude
*/
global $camyks;
?>
<div id="adminengine_main">
<div id="pageHeader">
<?php if ($this->get_fileURL('img/banner.jpg') == '') : ?>
<div id="pageHeaderTitle" class="eTitle1">
<?=$camyks->get_translation('site_admin', $camyks->site_conf['site_title']);?>
<?= $camyks->get_translation('site_admin', $camyks->get_confValue('site_title')); ?>
</div>
<?php else : ?>
<?php else : ?>
<div id="pageHeaderBanner">
<img src="<?=$this->get_fileURL('img/banner.jpg');?>" alt="<?=$camyks->get_translation('site_admin', $camyks->site_conf['site_title']);?>" style="margin:0 auto; border:none;" />
<img src="<?= $this->get_fileURL('img/banner.jpg'); ?>" alt="<?= $camyks->get_translation('site_admin', $camyks->get_confValue('site_title')); ?>" style="margin:0 auto; border:none;" />
</div>
<?php endif; ?>
<div id="pageHeaderBar">
<?=$this->display_module(1);?>
<?= $this->display_module(1); ?>
</div>
</div>
<div id="pageContent">
<?=$this->display_module(0);?>
<?= $this->display_module(0); ?>
</div>
<div id="pageFooter">
<div id="pageFooterVersion">
CaMykS - version <?=$camyks->version;?>
CaMykS - version <?= $camyks->version; ?>
</div>
<div id="pageFooterEngine">
<a href="<?=$camyks->website?>" class="img" target="_blank">
<img src="<?=$this->get_signPicture()?>" alt="Powered By CaMykS" border="0" />
<a href="<?= $camyks->website; ?>" class="img" target="_blank">
<img src="<?= $this->get_signPicture(); ?>" alt="Powered By CaMykS" border="0" />
</a>
</div>
</div>
</div>
<div id="adminengine_modalPopupBackground" style="z-index:9000">
&nbsp;
</div>
</div>
<?php
/**
* @endcond Exclude
*/
?>
@@ -1,14 +1,14 @@
/*
* CaMykS Engine
* Developed by : camyks.net
* Author : CaMykS Team <camyks.contact@gmail.com>
* CaMykS Version : 1.0
* Object Version : 1.0
* Object Type : Plugin / Template CSS Styles
* Creation Date : Mar 2007
* Last Modif Date : Jan 2018
*
* AdminPage CSS styles
/**
* @brief AdminPage Template default CSS styles
* @details Plugin / Template CSS styles
* @file plugin/template/AdminPage/style.css
* @author CaMykS Team
* @version 1.0
* @date Creation: Mar 2007
* @date Modification: Apr 2018
* @copyright 2007 - 2018 CaMykS Team
* @note This program is distributed as is - WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#pageHeader{width:700px; margin:0 auto;}
#pageHeaderTitle{padding:32px 0 16px !important; text-align:center !important; height:80px !important; margin:0px !important; box-sizing:border-box;}
@@ -27,7 +27,7 @@ a.img{font-size:0px;}

/* handheld adaptations */
@media screen and (max-width: 670px) {
#pageFooterEngine{text-align:left; padding:12px 5px; margin: 0; width:50%;}
#pageFooterEngine img {max-width:100%;}
#pageFooterVersion{float:right; padding: 15px 5px; text-align:right; color:#9f9bb0; width:50%; font-size: 10px;}
#pageFooterEngine{text-align:left; padding:12px 5px; margin: 0; width:50%;}
#pageFooterEngine img {max-width:100%;}
#pageFooterVersion{float:right; padding: 15px 5px; text-align:right; color:#9f9bb0; width:50%; font-size: 10px;}
}
@@ -1,16 +1,17 @@
<?php
/*
* CaMykS Engine
* Developed by : camyks.net
* Author : CaMykS Team <camyks.contact@gmail.com>
* Camyks Version : 1.0a
* Object Version : 1.0
* Object Type : Plugin / Template Thumb
* Creation Date : Oct 2005
* Last Modif Date : Jan 2008
*
* Admin Template Thumb HTML
*/
/**
* @brief AdminPage Template thumb layout
* @details Plugin / Template thumb
* @file plugin/template/AdminPage/thumb.html.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0
* @date Creation: Oct 2005
* @date Modification: Aug 2018
* @copyright 2005 - 2018 CaMykS Team
* @note This program is distributed as is - WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* @cond Exclude
*/
?>
<table cellspacing="0" cellpadding="0" border="1" style="width:200px; height:120px;">
<tr>
@@ -29,3 +30,8 @@
</td>
</tr>
</table>
<?php
/**
* @endcond Exclude
*/
?>

0 comments on commit f248f20

Please sign in to comment.