Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 12... Línea 12...
12
// GNU General Public License for more details.
12
// GNU General Public License for more details.
13
//
13
//
14
// You should have received a copy of the GNU General Public License
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
Línea 16... Línea -...
16
 
-
 
17
/**
-
 
18
 * Mustache helper render pix icons.
-
 
19
 *
-
 
20
 * @package    core
-
 
21
 * @category   output
-
 
22
 * @copyright  2015 Damyon Wiese
-
 
23
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
-
 
24
 */
-
 
25
 
16
 
Línea 26... Línea 17...
26
namespace core\output;
17
namespace core\output;
27
 
-
 
Línea 28... Línea 18...
28
use Mustache_LambdaHelper;
18
 
29
use renderer_base;
19
use Mustache_LambdaHelper;
30
 
20
 
-
 
21
/**
31
/**
22
 * This class will call pix_icon with the section content.
32
 * This class will call pix_icon with the section content.
23
 *
33
 *
-
 
34
 * @copyright  2015 Damyon Wiese
24
 * @package core
35
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25
 * @copyright  2015 Damyon Wiese
36
 * @since      2.9
-
 
37
 */
26
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38
class mustache_pix_helper {
27
 */
Línea 39... Línea 28...
39
 
28
class mustache_pix_helper {
40
    /** @var renderer_base $renderer A reference to the renderer in use */
29
    /** @var renderer_base $renderer A reference to the renderer in use */
Línea 78... Línea 67...
78
        $text = htmlspecialchars_decode($text, ENT_COMPAT);
67
        $text = htmlspecialchars_decode($text, ENT_COMPAT);
Línea 79... Línea 68...
79
 
68
 
80
        return trim($this->renderer->pix_icon($key, $text, $component));
69
        return trim($this->renderer->pix_icon($key, $text, $component));
81
    }
70
    }
82
}
-