Skip to content

Commit

Permalink
fixing up the image helper usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Oct 4, 2012
1 parent 3b67418 commit cee1516
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Core/Filter/View/Helper/FilterHelper.php
Expand Up @@ -54,8 +54,9 @@ public function form($model, $filter = array()) {
}

$output .= $this->Form->button(
$this->Html->image(
$this->Image->getRelativePath(array('actions'), 'filter'),
$this->Image->image(
'actions',
'filter',
array(
'width' => '16px'
)
Expand Down
5 changes: 3 additions & 2 deletions Core/Menus/View/MenuItems/admin_index.ctp
Expand Up @@ -104,8 +104,9 @@
</td>
<td>
<?php
echo $this->Html->image(
$this->Image->getRelativePath('actions', 'add'),
echo $this->Image->image(
'actions',
'add',
array(
'width' => '16px',
'url' => array(
Expand Down
5 changes: 3 additions & 2 deletions Core/Newsletter/View/NewsletterSubscribers/admin_index.ctp
Expand Up @@ -65,8 +65,9 @@
<?php
echo $newsletterSubscriber['NewsletterSubscriber']['subscriber_name'];
if(!empty($newsletterSubscriber['User']['id'])) {
echo $this->Html->image(
$this->Image->getRelativePath('actions', 'new-window'),
echo $this->Image->image(
'actions',
'new-window',
array(
'title' => __d('newsletter', 'View'),
'alt' => __d('newsletter', 'View'),
Expand Down

0 comments on commit cee1516

Please sign in to comment.