Permalink
Browse files

Does some files cleaning.

  • Loading branch information...
JB Lebrun
JB Lebrun committed Oct 1, 2018
1 parent 9959fe6 commit 47daf8d09475739ff1f09d593082b03c2a9dbb3a
@@ -118,7 +118,7 @@ abstract class Theme extends Plugin {
public function __construct($name, $path_type) {
parent::__construct($name, 'theme', $path_type);
}
/*
* Alias to constructor.
* @param string $name
@@ -299,7 +299,7 @@ abstract class Theme extends Plugin {
}
*/
}
/* return default value */
return '';
@@ -346,7 +346,7 @@ abstract class Theme extends Plugin {
public function get_pictURLWithName($pict) {
return $this->get_fileURL('img/picts/'.$pict);
}
/**
* Return img full tag related to pict.
* @param array $params
@@ -356,10 +356,10 @@ abstract class Theme extends Plugin {
/* check params */
$defaultParams = array('pict'=>'', 'size'=>12, 'position'=>'std', 'addMouseover'=>false, 'alt'=>'', 'style'=>'');
$params = array_merge($defaultParams, $params);
/* load main picture */
$url = $this->get_pictURL($params['pict'], $params['size'], $params['position']);
/* build HTML tag */
$result = '<img src="'.$url.'" alt="'.$params['alt'].'"';
if ($params['addMouseover'] == true) {
@@ -369,7 +369,7 @@ abstract class Theme extends Plugin {
if ($params['style'] != '')
$result .= ' style="'.$params['style'].'"';
$result .= ' />';
/* return result */
return $result;
}
@@ -750,4 +750,4 @@ abstract class Theme extends Plugin {
return $this->get_part('layeredMenuFooter');
}
}
?>
?>
@@ -107,7 +107,7 @@ final class GenericMediaPopup extends Input {
if ($camyks->mode == CAMYKS_MODE_SITE and $this->config->vars['insertion'] == 1) {
$this->register_asCaMykSEventHandler('onPageLoad');
}
/* update parameters with picture file URLs */
$this->params['buttonPictures'] = array(
'close' => $this->get_fileURL('img/close.gif'),
@@ -195,7 +195,7 @@ final class GenericMediaPopup extends Input {
}
/**
* Execute handler on body closing.
* Execute handler on page loading.
* @return void
*/
public function execute_onCaMykSPageLoad() {
@@ -276,4 +276,4 @@ final class GenericMediaPopup extends Input {
return $this->config->save();
}
}
?>
?>
@@ -7,7 +7,7 @@
* @version 1.0
* @date Creation: Feb 2016
* @date Modification: Jul 2018
* @copyright 2018 CaMykS Team
* @copyright 2016 - 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
@@ -1007,7 +1007,7 @@ final class Admin_ContentPage extends Module {
* Return key page link.
* @param string $key
* @param string $lg
* @param array $param
* @param array $params
* @return string
*/
public function get_siteKeyPageLink($key='', $lg='', $params=array()) {
Oops, something went wrong.

0 comments on commit 47daf8d

Please sign in to comment.