Skip to content

Commit

Permalink
span added to achieve br em style
Browse files Browse the repository at this point in the history
span called stt-em added to html and css to allow customising of style
by users
  • Loading branch information
BrianHenryIE committed Oct 19, 2015
1 parent 79d41a0 commit 43988c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions css/stt.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,9 @@
padding: 0;
position: absolute;
width: 1px;
}
/* replacing <br/><em> with CSS class */
.stt-em {
font-style: italic;
display: block;
}
2 changes: 1 addition & 1 deletion css/stt.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions simple-twitter-tweets.php
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ function twitter_time_diff( $from, $to = '' ) {
}
?>
<?php echo $t['text']; ?>
<br/><em>
<span class="stt-em">
<?php if(!isset($screen_name)){ $screen_name = $name; }?>
<a href="http://www.twitter.com/<?php echo $screen_name; ?>" target="_blank" title="<?php
printf(
Expand Down Expand Up @@ -568,7 +568,7 @@ function twitter_time_diff( $from, $to = '' ) {

?>
</a>
</em>
</span>

<?php // INTENTS REF: DISPLAY OR NOT
if($twitterIntents == "true"){
Expand Down

0 comments on commit 43988c3

Please sign in to comment.