Skip to content

Commit

Permalink
Merge pull request #94 from uweb/Blogroll
Browse files Browse the repository at this point in the history
Blogroll via short-code
  • Loading branch information
padmagundapaneni authored Mar 20, 2018
2 parents 6cbdddf + 388ae7d commit 4a30da6
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion js/site.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion less/uw.blogroll.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
&:after {
display: block;
content: "";
width: 80px;
// width: 80px;
width: 100%;
height: 1px;
background-color: #BBB;
bottom: 0;
Expand Down
2 changes: 1 addition & 1 deletion style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion style.dev.css
Original file line number Diff line number Diff line change
Expand Up @@ -4870,7 +4870,7 @@ table th[class*="col-"] {
.shortcode-blogroll > li:after {
display: block;
content: "";
width: 80px;
width: 100%;
height: 1px;
background-color: #BBB;
bottom: 0;
Expand Down
2 changes: 1 addition & 1 deletion uw.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion uw.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions widgets/class.uw-blogroll.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ function shortcode( $atts )
}
$html .= sprintf("<li><a class='widget-thumbnail' href='%s'>%s</a><a class='widget-link' href='%s'>%s<span>%s</span></a></li>", $link, $image, $link, $post->post_title, $byline);
}
else {
$html .= "<li><span><{$params->titletag}><a href=\"$link\">{$post->post_title}</a><p class=\"date\">{$date}</p></{$params->titletag}>{$author}<span$class>{$image}</span>{$excerpt}</span></li>";
else {
$html .= "<li><span><{$params->titletag}><a href=\"$link\">{$post->post_title}</a><p class=\"date\">{$date}</p></{$params->titletag}>{$author}<span$class>{$image}</span>{$excerpt}<p><a href=\"$link\" class=\"more\">Read more</a></p></span></li>";
}

}
Expand Down

0 comments on commit 4a30da6

Please sign in to comment.