diff --git a/archive.php b/archive.php index e5fe41b..0824f15 100755 --- a/archive.php +++ b/archive.php @@ -47,7 +47,7 @@ -
+
diff --git a/author.php b/author.php index b6e8bc5..97135f2 100755 --- a/author.php +++ b/author.php @@ -49,7 +49,7 @@
-
+
diff --git a/category.php b/category.php index 1d6aa32..77da6ba 100755 --- a/category.php +++ b/category.php @@ -22,7 +22,7 @@
-
+
diff --git a/search.php b/search.php index 63127a9..22c76b7 100755 --- a/search.php +++ b/search.php @@ -20,7 +20,7 @@
-
+
diff --git a/single.php b/single.php index 1484db7..1e285f0 100755 --- a/single.php +++ b/single.php @@ -45,7 +45,7 @@
-
+
diff --git a/style.css b/style.css index 1ef2e18..ebc0fea 100755 --- a/style.css +++ b/style.css @@ -1536,4 +1536,25 @@ section.social div#twitter { .footer_links a img { max-width: 120px; max-height: 40px; +} + +.right-column div.article-phpsp-home-each { + margin-bottom: 6px; +} + +.right-column div.article-phpsp-home-each-image { + width: 50px; +} + +.right-column div.article-phpsp-home-each-image img { + width: 50px; + height: 50px; +} + +.right-column div.todos_artigos { + margin-top: 14px; +} + +.right-column div.todos_artigos a { + font-size: 13px; } \ No newline at end of file diff --git a/tag.php b/tag.php index a7ece32..8484db1 100755 --- a/tag.php +++ b/tag.php @@ -23,7 +23,7 @@
-
+
diff --git a/widget-artigos.php b/widget-artigos.php index 90a29a2..8f5e0d6 100644 --- a/widget-artigos.php +++ b/widget-artigos.php @@ -1,6 +1,6 @@ -
-
+
+
diff --git a/widgets.php b/widgets.php index 5947811..3e31c85 100644 --- a/widgets.php +++ b/widgets.php @@ -12,7 +12,14 @@ public function PHPSP_Artigos_Widget() { } public function widget( $args, $instance ) { + global $post; $query_args = array( 'cat' => $instance['cat'], 'posts_per_page' => $instance['limit'] ); + + if (!is_home() && isset($post->ID) && is_numeric($post->ID)) + { + $query_args['post__not_in'] = array($post->ID); + } + $loop = new WP_Query( $query_args ); echo $args['before_widget']; echo $args['before_title'] . $instance['title'] . $args['after_title'];