This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Récupération de la boite a restaurer | |
$mbox = driver_mel::gi()->getUser($this->rc->plugins->get_plugin('mel')->get_user_bal(), false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Inclure le fichier includes.php | |
include_once 'includes/libm2.php'; | |
// Utilisation des namespaces | |
/* | |
* Possibilité de faire | |
* use LibMelanie\Api\Melanie2; | |
* au lieu de | |
* use LibMelanie\Api\Melanie2\User; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($this->toolbar) { | |
if ($this->rc->config->get('ismobile', false)) { | |
// add the buttons to the main toolbar | |
$this->add_button(array('command' => 'plugin.markasjunk2.junk', 'type' => 'link', 'class' => 'button buttonPas markasjunk2 disabled', 'classact' => 'button markasjunk2', 'classsel' => 'button markasjunk2Sel', 'title' => 'markasjunk2.buttonjunk', 'label' => 'junk', 'style' => $display_junk), 'toolbar_mobile'); | |
$this->add_button(array('command' => 'plugin.markasjunk2.not_junk', 'type' => 'link', 'class' => 'button buttonPas markasnotjunk2 disabled', 'classact' => 'button markasnotjunk2', 'classsel' => 'button markasnotjunk2Sel', 'title' => 'markasjunk2.buttonnotjunk', 'label' => 'markasjunk2.notjunk', 'style' => $display_not_junk), 'toolbar_mobile'); | |
} | |
else { | |
// add the buttons to the main toolbar | |
$this->add_button(array('command' => 'plugin.markasjunk2.junk', 'type' => 'link', 'class' => 'button buttonPas markasjunk2 disabled', 'classact' => 'button markasjunk2', 'classs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#messagelist li span.mobile_text { | |
height: 20px; | |
width: 20px; | |
text-indent: -9999px; | |
} | |
#messagelist li span.from span span { | |
margin-left: 25px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Are we using the mobile skin or not ? | |
if ($this->api->output->type == 'html') { | |
if ($this->isMobile() && strpos($skin, '_mobile') === false) { | |
$skin = 'melanie2_larry_mobile'; | |
$this->rc->config->set('skin', $skin); | |
$this->rc->output->set_env('skin', $skin); | |
$this->rc->output->set_skin($skin); | |
} | |
elseif (! $this->isMobile() && strpos($skin, '_mobile') !== false) { |