Skip to content

Commit

Permalink
[+] Compatibilité PluXml 5.4
Browse files Browse the repository at this point in the history
[+] Mise à jour script timthumb en 2.8.14
[+] Déplacement du cache de timthumb dans le dossiers /plugins
  • Loading branch information
Stephane committed Jun 2, 2015
1 parent b3c5106 commit 621e0ee
Show file tree
Hide file tree
Showing 9 changed files with 251 additions and 142 deletions.
10 changes: 4 additions & 6 deletions admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
exit;
}
?>
<h2><?php echo $plxPlugin->getInfo('title') ?></h2>

<form action="plugin.php?p=plxMyCoinSlider" method="post" id="form_plxMyCoinSlider">
<table class="table">
<thead>
Expand Down Expand Up @@ -60,12 +60,10 @@
?>
</tbody>
</table>
<p class="center">
<p class="in-action-bar" class="center">
<?php echo plxToken::getTokenPostMethod() ?>
<input class="button update " type="submit" name="update" value="<?php $plxPlugin->lang('L_UPDATE') ?>" />
</p>
<p>
<?php plxUtils::printSelect('selection', array( '' => L_FOR_SELECTION, 'delete' => $plxPlugin->getLang('L_DELETE')), '') ?>
<input class="button submit" type="submit" name="submit" value="<?php echo L_OK ?>" />
<input class="button submit" type="submit" name="submit" value="<?php echo L_OK ?>" />&nbsp;&nbsp;&nbsp;
<input class="button update " type="submit" name="update" value="<?php $plxPlugin->lang('L_UPDATE') ?>" />
</p>
</form>
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## Version 1.2.1 (01/06/2015) ##
[+] Compatibilité PluXml 5.4
[+] Mise à jour script timthumb en 2.8.14
[+] Déplacement du cache de timthumb dans le dossiers /plugins

## Version 1.2 (04/10/2013) ##
[+] Paramétrage de l'utilisation (oui/non) de la version de jquery intégrée au plugin
[+] Ajout des balises alt pour les images
Expand Down
88 changes: 58 additions & 30 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,38 +37,66 @@
$parms['links'] = $plxPlugin->getParam('links')!='' ? $plxPlugin->getParam('links') : false;
$parms['hoverPause'] = $plxPlugin->getParam('hoverPause')!='' ? $plxPlugin->getParam('hoverPause') : true;
?>

<h2><?php echo $plxPlugin->getInfo('title') ?></h2>

<form action="parametres_plugin.php?p=plxMyCoinSlider" method="post" id="form_plxMyCoinSlider">
<style>
form.inline-form label {
width: 300px;
}
</style>
<form class="inline-form" action="parametres_plugin.php?p=plxMyCoinSlider" method="post" id="form_plxMyCoinSlider">
<fieldset>
<p class="field"><label for="id_jquery"><?php $plxPlugin->lang('L_JQUERY') ?></label></p>
<?php plxUtils::printSelect('jquery',array('1'=>$plxPlugin->getLang('L_YES'),'0'=>$plxPlugin->getLang('L_NO')),$parms['jquery']) ?>
<p class="field"><label for="id_width"><?php $plxPlugin->lang('L_WIDTH') ?></label></p>
<?php plxUtils::printInput('width',$parms['width'],'text','4-4') ?>
<p class="field"><label for="id_height"><?php $plxPlugin->lang('L_HEIGHT') ?></label></p>
<?php plxUtils::printInput('height',$parms['height'],'text','4-4') ?>
<p class="field"><label for="id_spw"><?php $plxPlugin->lang('L_SPW') ?></label></p>
<?php plxUtils::printInput('spw',$parms['spw'],'text','2-2') ?>
<p class="field"><label for="id_sph"><?php $plxPlugin->lang('L_SPH') ?></label></p>
<?php plxUtils::printInput('sph',$parms['sph'],'text','2-2') ?>
<p class="field"><label for="id_delay"><?php $plxPlugin->lang('L_DELAY') ?></label></p>
<?php plxUtils::printInput('delay',$parms['delay'],'text','4-4') ?>
<p class="field"><label for="id_sdelay"><?php $plxPlugin->lang('L_SDELAY') ?></label></p>
<?php plxUtils::printInput('sDelay',$parms['sDelay'],'text','4-4') ?>
<p class="field"><label for="id_opacity"><?php $plxPlugin->lang('L_OPACITY') ?></label></p>
<?php plxUtils::printInput('opacity',$parms['opacity'],'text','4-4') ?>
<p class="field"><label for="id_titleSpeed"><?php $plxPlugin->lang('L_TITLESPEED') ?></label></p>
<?php plxUtils::printInput('titleSpeed',$parms['titleSpeed'],'text','4-4') ?>
<p class="field"><label for="id_effect"><?php $plxPlugin->lang('L_EFFECT') ?></label></p>
<?php plxUtils::printSelect('effect',array('random'=>$plxPlugin->getLang('L_RANDOM'),'swirl'=>$plxPlugin->getLang('L_SWIRL'),'rain'=>$plxPlugin->getLang('L_RAIN'),'straight'=>$plxPlugin->getLang('L_STRAIGHT')),$parms['effect']) ?>
<p class="field"><label for="id_navigation"><?php $plxPlugin->lang('L_NAVIGATION') ?></label></p>
<?php plxUtils::printSelect('navigation',array('1'=>$plxPlugin->getLang('L_YES'),'0'=>$plxPlugin->getLang('L_NO')),$parms['navigation']) ?>
<p class="field"><label for="id_links"><?php $plxPlugin->lang('L_LINKS') ?></label></p>
<?php plxUtils::printSelect('links',array('1'=>$plxPlugin->getLang('L_YES'),'0'=>$plxPlugin->getLang('L_NO')),$parms['links']) ?>
<p class="field"><label for="id_hoverPause"><?php $plxPlugin->lang('L_HOVERPAUSE') ?></label></p>
<?php plxUtils::printSelect('hoverPause',array('1'=>$plxPlugin->getLang('L_YES'),'0'=>$plxPlugin->getLang('L_NO')),$parms['hoverPause']) ?>
<p>
<label for="id_jquery"><?php $plxPlugin->lang('L_JQUERY') ?></label>
<?php plxUtils::printSelect('jquery',array('1'=>$plxPlugin->getLang('L_YES'),'0'=>$plxPlugin->getLang('L_NO')),$parms['jquery']) ?>
</p>
<p>
<label for="id_width"><?php $plxPlugin->lang('L_WIDTH') ?></label>
<?php plxUtils::printInput('width',$parms['width'],'text','4-4') ?>
</p>
<p>
<label for="id_height"><?php $plxPlugin->lang('L_HEIGHT') ?></label>
<?php plxUtils::printInput('height',$parms['height'],'text','4-4') ?>
</p>
<p>
<label for="id_spw"><?php $plxPlugin->lang('L_SPW') ?></label>
<?php plxUtils::printInput('spw',$parms['spw'],'text','2-2') ?>
</p>
<p>
<label for="id_sph"><?php $plxPlugin->lang('L_SPH') ?></label>
<?php plxUtils::printInput('sph',$parms['sph'],'text','2-2') ?>
</p>
<p>
<label for="id_delay"><?php $plxPlugin->lang('L_DELAY') ?></label>
<?php plxUtils::printInput('delay',$parms['delay'],'text','4-4') ?>
</p>
<p>
<label for="id_sdelay"><?php $plxPlugin->lang('L_SDELAY') ?></label>
<?php plxUtils::printInput('sDelay',$parms['sDelay'],'text','4-4') ?>
</p>
<p>
<label for="id_opacity"><?php $plxPlugin->lang('L_OPACITY') ?></label>
<?php plxUtils::printInput('opacity',$parms['opacity'],'text','4-4') ?>
</p>
<p>
<label for="id_titleSpeed"><?php $plxPlugin->lang('L_TITLESPEED') ?></label>
<?php plxUtils::printInput('titleSpeed',$parms['titleSpeed'],'text','4-4') ?>
</p>
<p>
<label for="id_effect"><?php $plxPlugin->lang('L_EFFECT') ?></label>
<?php plxUtils::printSelect('effect',array('random'=>$plxPlugin->getLang('L_RANDOM'),'swirl'=>$plxPlugin->getLang('L_SWIRL'),'rain'=>$plxPlugin->getLang('L_RAIN'),'straight'=>$plxPlugin->getLang('L_STRAIGHT')),$parms['effect']) ?>
</p>
<p>
<label for="id_navigation"><?php $plxPlugin->lang('L_NAVIGATION') ?></label>
<?php plxUtils::printSelect('navigation',array('1'=>$plxPlugin->getLang('L_YES'),'0'=>$plxPlugin->getLang('L_NO')),$parms['navigation']) ?>
</p>
<p>
<label for="id_links"><?php $plxPlugin->lang('L_LINKS') ?></label>
<?php plxUtils::printSelect('links',array('1'=>$plxPlugin->getLang('L_YES'),'0'=>$plxPlugin->getLang('L_NO')),$parms['links']) ?>
</p>
<p>
<label for="id_hoverPause"><?php $plxPlugin->lang('L_HOVERPAUSE') ?></label>
<?php plxUtils::printSelect('hoverPause',array('1'=>$plxPlugin->getLang('L_YES'),'0'=>$plxPlugin->getLang('L_NO')),$parms['hoverPause']) ?>
</p>
<p class="in-action-bar">
<?php echo plxToken::getTokenPostMethod() ?>
<input type="submit" name="submit" value="<?php $plxPlugin->lang('L_SAVE') ?>" />
</p>
Expand Down
4 changes: 2 additions & 2 deletions infos.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<document>
<title><![CDATA[MyCoinSlider]]></title>
<author><![CDATA[Stephane F.]]></author>
<version>1.2</version>
<date>04/10/2013</date>
<version>1.2.1</version>
<date>01/06/2015</date>
<site>http://pluxopolis.net</site>
<description><![CDATA[Image slider with unique effects]]></description>
<requirements></requirements>
Expand Down
Empty file removed lib/cache/index.html
Empty file.
6 changes: 3 additions & 3 deletions lib/class.plx.coinslider.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@ public function editSlides($content, $action=false) {
$save = $this->aSlides;

# suppression
if(!empty($content['selection']) AND $content['selection']=='delete' AND isset($content['idSlide'])) {
if(isset($content['selection']) AND $content['selection']=='delete' AND isset($content['idSlide'])) {
foreach($content['idSlide'] as $slide_id) {
# suppression du parametre
unset($this->aSlides[$slide_id]);
$action = true;
}
}
# ajout d'un nouveau slide à partir du gestionnaire de médias
if(isset($content['selection']) AND (!empty($content['selection'][0]) OR !empty($content['selection'][1])) AND isset($content['idFile'])) {
if(isset($content['selection']) AND !empty($content['selection']) AND isset($content['idFile'])) {
$plxAdmin = plxAdmin::getInstance();
$root = $plxAdmin->aConf['images'];
$root = $plxAdmin->aConf['medias'];
if($content['folder']=='.') $content['folder']='';
foreach($content['idFile'] as $filename) {
$slide_id = $this->nextIdSlide();
Expand Down
5 changes: 5 additions & 0 deletions lib/timthumb-config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

if(! defined('FILE_CACHE_DIRECTORY') ) define ('FILE_CACHE_DIRECTORY', '../../cache');

?>
Loading

0 comments on commit 621e0ee

Please sign in to comment.