Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Fix #10 Restore default link styling in course documents lists
Browse files Browse the repository at this point in the history
  • Loading branch information
admturner committed Aug 29, 2019
1 parent d1cd3c3 commit ecd4510
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions includes/template-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ function filter_courses_content( $content ) {
if ( false !== strpos( $content, 'course-documents' ) ) {
$icon = Icons\SVG_Icons::get_svg( 'ui', 'attachment' );
$content = preg_replace(
'/<li>(.*?<a.*?[\.pdf\.ppt\.pptx]".*?>)/',
'<li>$1' . $icon,
'/<li>(.*?)(<a.*?[\.pdf\.ppt\.pptx]".*?>)/',
'<li>$1' . $icon . '$2',
$content
);
}
Expand Down
3 changes: 1 addition & 2 deletions src/blocks/list-courses/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ svg.svg-icon {
}

.wsuwp_hrs_courses .course-documents a {
border: none;
display: block;
display: inline-block;
margin-right: 2em;
}

Expand Down

0 comments on commit ecd4510

Please sign in to comment.