Commit e2fbc617 authored by Liam Morland's avatar Liam Morland
Browse files

Refactor: Use l() in node--uw-event.tpl.php

parent bbbf33e5
......@@ -80,8 +80,6 @@
?>
<?php
global $base_url;
$feed_url = $base_url . "/events/ical/" . $node->nid . "/calendar.ics";
$img_variables = array(
'path' => base_path() . drupal_get_path('module', 'uw_ct_event') . '/css/images/add-calendar-icon-33x20.png',
'alt' => 'Export this event to calendar',
......@@ -91,7 +89,10 @@
);
?>
<?php if(!$teaser): ?>
<h1><?php print $title; ?><a class="individual-event-ical" href="<?php print $feed_url; ?>"><?php print theme('image', $img_variables);?></a></h1>
<h1><?php
print $title;
echo l(theme('image', $img_variables), 'events/ical/' . $node->nid . '/calendar.ics', ['attributes' => ['class' => ['individual-event-ical']], 'html' => TRUE]);
?></h1>
<?php endif; ?>
<div class="clearfix"<?php print $attributes; ?>>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment