projects
/
WP-Plugins
/
glm-member-db-fields.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a00e9f3
)
adding target blank to the files href on detail page
author
Anthony Talarico
<talarico@gaslightmedia.com>
Wed, 12 Apr 2017 12:56:52 +0000
(08:56 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Wed, 12 Apr 2017 12:56:52 +0000
(08:56 -0400)
setup/frontHooks.php
patch
|
blob
|
history
diff --git
a/setup/frontHooks.php
b/setup/frontHooks.php
index
0152ac4
..
7621148
100644
(file)
--- a/
setup/frontHooks.php
+++ b/
setup/frontHooks.php
@@
-49,7
+49,7
@@
add_filter('glm-member-db-front-members-detail-files', function( $content, $id)
foreach($results as $result){
$caption = ($result->caption !== '' ? $result->caption : $result->name);
- $file = "<a class='glm-file-detail' href='$file_path" . "$result->file_name" . "'>" .$caption .'</a>';
+ $file = "<a class='glm-file-detail' href='$file_path" . "$result->file_name" . "'
target='_blank'
>" .$caption .'</a>';
$content .= $file;
}