Espaces éditables dans Sliding Login

 

remplacer le contenu du fichier sliding_login/blocks/sliding_login/view.php par le code suivant:

<?php defined('C5_EXECUTE') or die(_("Access Denied."));

$c = Page::getCurrentPage();
if ($c->isEditMode()) {
?>
<div class="ccm-edit-mode-disabled-item" style="height: 140px">
<div style="padding: 60px 0px 0px 0px"><?php echo t('Slider Login disabled in edit mode.')?></div>
</div>
</div>
</div>
<div>
<?php
$a = new Area('sliding_login_left');
$a->display($c);
?>
<?php
$a = new Area('sliding_login_right');
$a->display($c);
?>
</div>
<div>
<div>

<?php
} else {
?>
<div id="citytech_toppanel">
<div id="panel">
<div class="content clearfix">
<div class="left" style="width:300px;">
<?php
$a = new Area('sliding_login_left');
$a->display($c);
?>
</div>
<div class="left" style="font-size:13px; margin:10px 0 0 80px; color:#FFFFFF; width:500px">
<?php
$a = new Area('sliding_login_right');
$a->display($c);
?>
</div>
</div>
</div> <!-- /login -->

<!-- The tab on top -->
<div class="tab">
<ul class="login">
<li class="left">&nbsp;</li>
<li>
<span style="float:left; margin-right:6px; font-weight:bold"><?php /*echo t('Hello %s', $userName)*/?></span>
<span class="sep" style="float:left; margin-right:6px"></span>
<span id="toggle" style="float:left">
<a id="open" class="open" href="#"><?php echo t('Open')?></a>
<a id="close" style="display: none;" class="close" href="#"><?php echo t('Close')?></a>
</span>
</li>
<li class="right">&nbsp;</li>
</ul>
</div> <!-- / top -->
</div>

<?php
} //end if
?>

<script type="text/javascript">
$(document).ready(function(){

$('#citytech_toggle').click(function(){
$('#citytech_login_panel').slideUp('fast', function() {
$("#citytech_forgetpass_panel").slideDown('slow');
$("#toggle_text").hide();
$("#toggle_text_new").show();
});
});

$('#citytech_toggle_new').click(function(){
$('#citytech_forgetpass_panel').slideUp('fast', function() {
$("#citytech_login_panel").slideDown('slow');
$("#toggle_text").show();
$("#toggle_text_new").hide();
});
});
});
</script>