Skip to content

Commit 9b60d79

Browse files
committed
Force links to open externally
1 parent dc71886 commit 9b60d79

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/templates/User/View.phtml

+7-7
Original file line numberDiff line numberDiff line change
@@ -120,35 +120,35 @@ require('./header.inc.phtml'); ?>
120120
}
121121
if (isset($github_username) && !empty($github_username))
122122
{
123-
echo '<li><strong>GitHub:</strong> <a href="' . $github_uri . '">' . $github_username . '</a></li>' . PHP_EOL;
123+
echo '<li><strong>GitHub:</strong> <a rel="external" href="' . $github_uri . '">' . $github_username . '</a></li>' . PHP_EOL;
124124
}
125125
if (isset($reddit_username) && !empty($reddit_username))
126126
{
127-
echo '<li><strong>Reddit:</strong> <a href="' . $reddit_uri . '">' . $reddit_username . '</a></li>' . PHP_EOL;
127+
echo '<li><strong>Reddit:</strong> <a rel="external" href="' . $reddit_uri . '">' . $reddit_username . '</a></li>' . PHP_EOL;
128128
}
129129
if (isset($steam_username) && !empty($steam_username))
130130
{
131-
echo '<li><strong>Steam:</strong> <a href="' . $steam_uri . '">' . $steam_username . '</a></li>' . PHP_EOL;
131+
echo '<li><strong>Steam:</strong> <a rel="external" href="' . $steam_uri . '">' . $steam_username . '</a></li>' . PHP_EOL;
132132
}
133133
if (isset($facebook_username) && !empty($facebook_username))
134134
{
135-
echo '<li><strong>Facebook:</strong> <a href="' . $facebook_uri . '">' . $facebook_username . '</a></li>' . PHP_EOL;
135+
echo '<li><strong>Facebook:</strong> <a rel="external" href="' . $facebook_uri . '">' . $facebook_username . '</a></li>' . PHP_EOL;
136136
}
137137
if (isset($twitter_username) && !empty($twitter_username))
138138
{
139-
echo '<li><strong>Twitter:</strong> <a href="' . $twitter_uri . '">' . $twitter_username . '</a></li>' . PHP_EOL;
139+
echo '<li><strong>Twitter:</strong> <a rel="external" href="' . $twitter_uri . '">' . $twitter_username . '</a></li>' . PHP_EOL;
140140
}
141141
if (isset($instagram_username) && !empty($instagram_username))
142142
{
143-
echo '<li><strong>Instagram:</strong> <a href="' . $instagram_uri . '">' . $instagram_username . '</a></li>' . PHP_EOL;
143+
echo '<li><strong>Instagram:</strong> <a rel="external" href="' . $instagram_uri . '">' . $instagram_username . '</a></li>' . PHP_EOL;
144144
}
145145
if (isset($skype_username) && !empty($skype_username))
146146
{
147147
echo '<li><strong>Skype:</strong> <a href="' . $skype_uri . '">' . $skype_username . '</a></li>' . PHP_EOL;
148148
}
149149
if (isset($website) && !empty($website))
150150
{
151-
echo '<li><strong>Website:</strong> <a href="' . $website . '">' . $website . '</a></li>' . PHP_EOL;
151+
echo '<li><strong>Website:</strong> <a rel="external" href="' . $website . '">' . $website . '</a></li>' . PHP_EOL;
152152
}
153153
echo '</ul>';
154154
}?>

0 commit comments

Comments
 (0)