This file contains hidden or 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 | |
| function extraTextTranslate($text){ | |
| /************ | |
| * Negrita * | |
| ***********/ | |
| $text = str_replace('*','<b>',$text); | |
| $lastPos = 0; | |
| $positions = array(); | |
| while (($lastPos = strpos($text, '<b>', $lastPos))!== false) { |
This file contains hidden or 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
| public class Vote{ | |
| public void upvote(Comentario comentario,Button upButton){ | |
| if(upButton.isChecked){ | |
| upButton.unCheck(); | |
| comentario.setPuntuacion(comentario.getPuntuacion()-1); | |
| }else{ | |
| comentario.setPuntuacion(comentario.getPuntuacion()+1); | |
| } | |
| } |
NewerOlder