/** * * @param array $params * @return string */ public function getCode($params) { return "<a href=\"" . $this->getDestination($params) . "\" title=\"" . htmlentities($this->label) . "\"><img src=\"" . Icons::getIcon($this->icon) . "\" /></a>"; }
</a> <?php } ?> <?php if ($delete) { ?> <a href="<?php echo M_Office_Util::getQueryParams(array('module' => $table, 'deleteFromTableRecord' => $do->{$pk}, 'ajaxfromtable' => 1), array_keys($_GET), false); ?> " class="deletelinelink" rel="<?php echo $table . $do->{$pk}; ?> "> <?php echo Icons::getIcon('delete'); ?> </a> <?php } ?> </span> <span><?php echo $this->i('recordhtmlsummary', array('record' => $do)); ?> </span> <?php if ($layouted) { ?> </li> <?php
private function replaceIcons() { preg_match_all("/{ICON:(.+)}/", $this->template, $matches, PREG_SET_ORDER); foreach ($matches as $match) { $translation = htmlentities(Icons::getIcon($match[1])); $this->template = str_ireplace($match[0], $translation, $this->template); } }