Browse Source

Merge pull request #2 from Sorunome/patch-2

Patch 2
Nathaniel van Diepen 9 years ago
parent
commit
f2ecb5d101
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/source/dp_news.css
  2. 2 2
      src/source/script.php

+ 1 - 1
src/source/dp_news.css

@@ -12,7 +12,7 @@
 	padding-right: 8px;
 }
 
-.dp_news > img:nth-child(1)
+.dp_news > .dp_news_icon
 {
 	float:left;
 }

+ 2 - 2
src/source/script.php

@@ -30,7 +30,7 @@ function module_news($params)
 		{
 			echo '
 									<div class="dp_news">
-										<img src="', $settings['images_url'], '/on.png" alt="" />
+										<img class="dp_news_icon" src="', $settings['images_url'], '/on.png" alt="" />
 										<p>
 											<a href="', $news['href'], '"><strong>', $news['subject'], '</strong></a> ', $txt['by'], ' ', (!empty($modSettings['dp_color_members']) ? $news['color_poster'] : $news['poster']), '<br />
 											<span class="smalltext">', $news['time'], '</span>
@@ -141,4 +141,4 @@ function dp_boardNews($board, $limit)
 }
 
 
-?>
+?>