Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Relative links for widget controls.

  • Loading branch information...
commit 9c1e09ca4d1a457d4d2fc9182012ad5096a5f6af 1 parent 0fed89d
@ZetaTwo ZetaTwo authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 app/views/layouts/default.ctp
View
11 app/views/layouts/default.ctp
@@ -186,8 +186,8 @@
<? } ?>
<?=$widget['Widget']['content'];?>
<? if(isset($admin) && $admin) { ?>
- <a href="/widgets/edit/<?=$widget['Widget']['id'];?>" title="Edit this Widget"><?php __('edit'); ?></a> |
- <a href="/widgets/delete/<?=$widget['Widget']['id'];?>" title="Delete Widget"><?php __('del'); ?></a>
+ <?=$html->link(__('edit', true),'/widgets/edit/' . $widget['Widget']['id'], array('title' => __('Edit this Widget', true)));?> |
+ <?=$html->link(__('del', true),'/widgets/delete/' . $widget['Widget']['id'], array('title' => __('Delete Widget', true)));?>
<? } ?>
</div>
<?
@@ -196,9 +196,10 @@
if(isset($admin) && $admin):
?>
- <a href="/widgets/add<?php echo $_SERVER['REQUEST_URI']; ?>">
- <img src="/img/icons/plugin_edit.png" alt="Edit"/><?php __('add widgets to this page'); ?>.
- </a>
+ <?=$html->link($html->image('icons/plugin_edit.png', array('alt' => __('Edit', true))) . __('add widgets to this page', true),
+ '/widgets/add',
+ array('escape' => false)
+ ); ?>
<? endif; ?>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.