adding target blank to the files href on detail page
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 12 Apr 2017 12:56:52 +0000 (08:56 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 12 Apr 2017 12:56:52 +0000 (08:56 -0400)
setup/frontHooks.php

index 0152ac4..7621148 100644 (file)
@@ -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;
     }