forked from rho_n/hpr_generator
Add absolute_path MACRO
Used with baseurl to make a path relative or absolute.
This commit is contained in:
@@ -17,11 +17,11 @@
|
||||
on h.hostid = e.hostid '
|
||||
) %-->
|
||||
<tr height="80" bgcolor="#CCCCCC">
|
||||
<td><img src="./images/<!--% get_avatar(host.hostid) %-->" height="80" width="80" alt="avatar" /></td>
|
||||
<td><img src="<!--% absolute_path(baseurl) %-->images/<!--% get_avatar(host.hostid) %-->" height="80" width="80" alt="avatar" /></td>
|
||||
|
||||
<td><strong><!--% host.host %--></strong><br />
|
||||
|
||||
Host ID: <a href="correspondents/<!--% zero_pad_left(host.hostid) %-->/index.html"><!--% host.hostid %--></a></td>
|
||||
Host ID: <a href="<!--% absolute_path(baseurl) %-->correspondents/<!--% zero_pad_left(host.hostid) %-->/index.html"><!--% host.hostid %--></a></td>
|
||||
<td><!--% host.license %--></td>
|
||||
<td><!--% host.date %--></td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user