Version Description
(10/17/2016) = * [+] Added design to readmore button and pagination. * [+] Added design for widgets section. * Fixed some css issue.
Download this release
Release Info
Developer | anoopranawat |
Plugin | WP News and Scrolling Widgets |
Version | 3.2.9 |
Comparing to | |
See all releases |
Code changes from version 3.2.8 to 3.2.9
- css/stylenews.css +13 -7
- readme.txt +14 -4
- sp-news-and-widget.php +8 -9
- widget_function.php +3 -3
css/stylenews.css
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
.news-col-list{padding-bottom:20px;}
|
5 |
.news .news-title{margin-top:0px !important; margin-bottom:10px !important;}
|
6 |
|
7 |
-
.news .news-title a{font-size:22px; line-height:26px;}
|
8 |
|
9 |
.news-cat{margin-bottom:10px ;}
|
10 |
.news-content{float:left; width:100%; clear:both;}
|
@@ -34,16 +34,17 @@
|
|
34 |
.news-col-list .news-content .post-content-text{margin-left:0px;}
|
35 |
|
36 |
/* widget */
|
37 |
-
.news_li
|
38 |
-
.news_li
|
39 |
.news_li p{padding-bottom:0px !important}
|
40 |
.news-col-3 .news-thumb, .news-col-2 .news-thumb, .news-col-4 .news-thumb{margin-bottom:10px;}
|
41 |
.news-col-3 .post-content-text, .news-col-2 .post-content-text, .news-col-4 .post-content-text{width:100%; margin:0px;}
|
42 |
-
|
|
|
43 |
.news.first{clear: both !important;}
|
44 |
|
45 |
|
46 |
-
.recent-news-items .news_li{padding:
|
47 |
.news_li{border-bottom:1px solid #ddd; margin:0 !important; list-style:none !important}
|
48 |
.newstickerthumb .news_li{float:left; width:100%;}
|
49 |
.news_thumb_left{display:table-cell; vertical-align:top; width:100px; }
|
@@ -51,13 +52,18 @@ p.news-short-content{margin-bottom:5px !important}.first.last {clear: both !impo
|
|
51 |
.news_thumb_left img{height: 100% !important;width: 100% !important;object-fit: cover;object-position: top center; }
|
52 |
.news_thumb_right{display:table-cell; vertical-align:top; }
|
53 |
.news_pagination{clear:both; padding:20px 0; float:left; width:100%}
|
54 |
-
.button-news-p{width:
|
55 |
-
.button-news-n{width:
|
|
|
56 |
.recent-news-items{clear:both;}
|
57 |
.recent-news-items.no_p h6{margin:5px 0 !important;}
|
58 |
.recent-news-items p{font-size:13px !important; margin-bottom:10px !important}
|
59 |
|
60 |
.news-col-1.has-no-date .post-content-text{margin-left:0px; width:100%;}
|
|
|
|
|
|
|
|
|
61 |
|
62 |
@media all and (max-width: 768px) {
|
63 |
.news-col-3, .news-col-4{width:50%;}
|
4 |
.news-col-list{padding-bottom:20px;}
|
5 |
.news .news-title{margin-top:0px !important; margin-bottom:10px !important;}
|
6 |
|
7 |
+
.news .news-title a{font-size:22px; line-height:26px; color:#555; text-decoration:none !important;}
|
8 |
|
9 |
.news-cat{margin-bottom:10px ;}
|
10 |
.news-content{float:left; width:100%; clear:both;}
|
34 |
.news-col-list .news-content .post-content-text{margin-left:0px;}
|
35 |
|
36 |
/* widget */
|
37 |
+
.news_li {clear: both !important; margin-bottom:8px !important; margin-top:8px !important; padding-bottom:10px !important; }
|
38 |
+
.news_li a.newspost-title, .widget .news_li a.newspost-title, #secondary .widget .news_li a.newspost-title{color:#555;}
|
39 |
.news_li p{padding-bottom:0px !important}
|
40 |
.news-col-3 .news-thumb, .news-col-2 .news-thumb, .news-col-4 .news-thumb{margin-bottom:10px;}
|
41 |
.news-col-3 .post-content-text, .news-col-2 .post-content-text, .news-col-4 .post-content-text{width:100%; margin:0px;}
|
42 |
+
.news-short-content{margin-bottom:10px;}
|
43 |
+
.first.last {clear: both !important;}
|
44 |
.news.first{clear: both !important;}
|
45 |
|
46 |
|
47 |
+
.recent-news-items .news_li{padding:10px 0 !important; clear:both;}
|
48 |
.news_li{border-bottom:1px solid #ddd; margin:0 !important; list-style:none !important}
|
49 |
.newstickerthumb .news_li{float:left; width:100%;}
|
50 |
.news_thumb_left{display:table-cell; vertical-align:top; width:100px; }
|
52 |
.news_thumb_left img{height: 100% !important;width: 100% !important;object-fit: cover;object-position: top center; }
|
53 |
.news_thumb_right{display:table-cell; vertical-align:top; }
|
54 |
.news_pagination{clear:both; padding:20px 0; float:left; width:100%}
|
55 |
+
.button-news-p{width:48%; float:right; text-align:right; padding-right:15px;}
|
56 |
+
.button-news-n{width:48%; float:left; text-align:left; padding-left:15px;}
|
57 |
+
.button-news-p a, .button-news-n a{padding:5px 10px; display:inline-block; background:#555; color:#fff; text-decoration:none !important}
|
58 |
.recent-news-items{clear:both;}
|
59 |
.recent-news-items.no_p h6{margin:5px 0 !important;}
|
60 |
.recent-news-items p{font-size:13px !important; margin-bottom:10px !important}
|
61 |
|
62 |
.news-col-1.has-no-date .post-content-text{margin-left:0px; width:100%;}
|
63 |
+
.news-more-link{padding:5px 15px; background:#555; color:#fff; display:inline-block; clear:both; text-decoration:none !important;}
|
64 |
+
.news-more-link:hover{background:#f1f1f1; color:#555}
|
65 |
+
|
66 |
+
.widget ul li.news_li::before{content:none !important}
|
67 |
|
68 |
@media all and (max-width: 768px) {
|
69 |
.news-col-3, .news-col-4{width:50%;}
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
=== WP News and Scrolling Widgets ===
|
2 |
Contributors: wponlinesupport, anoopranawat
|
3 |
-
Tags: wponlinesupport, wordpress news plugin, main news page scrolling , wordpress vertical news plugin widget, wordpress horizontal news plugin widget , Free scrolling news wordpress plugin, Free scrolling news widget wordpress plugin, WordPress set post or page as news, WordPress dynamic news, news, latest news, custom post type, cpt, widget, vertical news scrolling widget, news widget
|
4 |
Requires at least: 3.1
|
5 |
-
Tested up to: 4.6
|
6 |
Author URI: http://wponlinesupport.com
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
@@ -12,7 +12,7 @@ A quick, easy way to add an News custom post type, News widget, vertical scrolli
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
Every CMS site needs a news section.
|
16 |
|
17 |
View [DEMO](http://wponlinesupport.com/wp-plugin/sp-news-and-scrolling-widgets/) for additional information.
|
18 |
|
@@ -34,7 +34,7 @@ View [Masonry Add-on](http://wponlinesupport.com/wordpress-plugin-addon/masonry-
|
|
34 |
>
|
35 |
|
36 |
= Important Note For How to Install =
|
37 |
-
* Please make sure that Permalink link should not be "/news" Otherwise all your news will go to archive page. You can give it other name like "/ournews, /latestnews etc"
|
38 |
* Now you can Display news post with the help of short code :
|
39 |
<code> [sp_news] </code>
|
40 |
* Also you can Display the news post with category wise :
|
@@ -157,6 +157,11 @@ Yse <code> [sp_news] </code>
|
|
157 |
|
158 |
== Changelog ==
|
159 |
|
|
|
|
|
|
|
|
|
|
|
160 |
= 3.2.8 =
|
161 |
* Fixed image display issue.
|
162 |
* Fixed some css issue.
|
@@ -232,6 +237,11 @@ Yse <code> [sp_news] </code>
|
|
232 |
|
233 |
== Upgrade Notice ==
|
234 |
|
|
|
|
|
|
|
|
|
|
|
235 |
= 3.2.8 =
|
236 |
* Fixed image display issue.
|
237 |
* Fixed some css issue.
|
1 |
=== WP News and Scrolling Widgets ===
|
2 |
Contributors: wponlinesupport, anoopranawat
|
3 |
+
Tags: wponlinesupport, wordpress news plugin, news website, main news page scrolling , wordpress vertical news plugin widget, wordpress horizontal news plugin widget , Free scrolling news wordpress plugin, Free scrolling news widget wordpress plugin, WordPress set post or page as news, WordPress dynamic news, news, latest news, custom post type, cpt, widget, vertical news scrolling widget, news widget
|
4 |
Requires at least: 3.1
|
5 |
+
Tested up to: 4.6.1
|
6 |
Author URI: http://wponlinesupport.com
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
Every CMS site needs a news section. WP News allows you add, manage and display news, date archives, widget, vertical news scrolling, news with thumbnails widget on your website.
|
16 |
|
17 |
View [DEMO](http://wponlinesupport.com/wp-plugin/sp-news-and-scrolling-widgets/) for additional information.
|
18 |
|
34 |
>
|
35 |
|
36 |
= Important Note For How to Install =
|
37 |
+
* **Please make sure that Permalink link should not be "/news" Otherwise all your news will go to archive page. You can give it other name like "/ournews, /latestnews etc"**
|
38 |
* Now you can Display news post with the help of short code :
|
39 |
<code> [sp_news] </code>
|
40 |
* Also you can Display the news post with category wise :
|
157 |
|
158 |
== Changelog ==
|
159 |
|
160 |
+
= 3.2.9 (10/17/2016) =
|
161 |
+
* [+] Added design to readmore button and pagination.
|
162 |
+
* [+] Added design for widgets section.
|
163 |
+
* Fixed some css issue.
|
164 |
+
|
165 |
= 3.2.8 =
|
166 |
* Fixed image display issue.
|
167 |
* Fixed some css issue.
|
237 |
|
238 |
== Upgrade Notice ==
|
239 |
|
240 |
+
= 3.2.9 (10/17/2016) =
|
241 |
+
* [+] Added design to readmore button and pagination.
|
242 |
+
* [+] Added design for widgets section.
|
243 |
+
* Fixed some css issue.
|
244 |
+
|
245 |
= 3.2.8 =
|
246 |
* Fixed image display issue.
|
247 |
* Fixed some css issue.
|
sp-news-and-widget.php
CHANGED
@@ -5,14 +5,14 @@ Plugin URL: http://www.wponlinesupport.com/
|
|
5 |
Text Domain: sp-news-and-widget
|
6 |
Domain Path: /languages/
|
7 |
Description: A simple News and three widgets(static, scrolling and with thumbs) plugin
|
8 |
-
Version: 3.2.
|
9 |
Author: WP Online Support
|
10 |
Author URI: http://www.wponlinesupport.com/
|
11 |
Contributors: WP Online Support
|
12 |
*/
|
13 |
|
14 |
if( !defined( 'WPNW_VERSION' ) ) {
|
15 |
-
define( 'WPNW_VERSION', '3.2.
|
16 |
}
|
17 |
if( !defined( 'WPNW_POST_TYPE' ) ) {
|
18 |
define( 'WPNW_POST_TYPE', 'news' ); // Plugin post type
|
@@ -276,9 +276,8 @@ function wpnaw_get_news( $atts, $content = null ){
|
|
276 |
<div class="news-content-excerpt">
|
277 |
<?php if($showFullContent == "false" ) {
|
278 |
$excerpt = get_the_content();?>
|
279 |
-
<
|
280 |
-
|
281 |
-
<a href="<?php the_permalink(); ?>" class="more-link"><?php _e( 'Read More', 'sp-news-and-widget' ); ?></a>
|
282 |
<?php } else {
|
283 |
the_content();
|
284 |
} ?>
|
@@ -290,11 +289,11 @@ function wpnaw_get_news( $atts, $content = null ){
|
|
290 |
<?php endwhile;
|
291 |
endif; ?>
|
292 |
|
293 |
-
<div class="news_pagination">
|
294 |
|
295 |
-
<div class="button-news-p"><?php next_posts_link( ' Next >>', $query->max_num_pages ); ?></div>
|
296 |
-
<div class="button-news-n"><?php previous_posts_link( '<< Previous' ); ?> </div>
|
297 |
-
</div>
|
298 |
|
299 |
|
300 |
<?php
|
5 |
Text Domain: sp-news-and-widget
|
6 |
Domain Path: /languages/
|
7 |
Description: A simple News and three widgets(static, scrolling and with thumbs) plugin
|
8 |
+
Version: 3.2.9
|
9 |
Author: WP Online Support
|
10 |
Author URI: http://www.wponlinesupport.com/
|
11 |
Contributors: WP Online Support
|
12 |
*/
|
13 |
|
14 |
if( !defined( 'WPNW_VERSION' ) ) {
|
15 |
+
define( 'WPNW_VERSION', '3.2.9' ); // Version of plugin
|
16 |
}
|
17 |
if( !defined( 'WPNW_POST_TYPE' ) ) {
|
18 |
define( 'WPNW_POST_TYPE', 'news' ); // Plugin post type
|
276 |
<div class="news-content-excerpt">
|
277 |
<?php if($showFullContent == "false" ) {
|
278 |
$excerpt = get_the_content();?>
|
279 |
+
<div class="news-short-content"><?php echo string_limit_newswords( $post->ID, $excerpt, $words_limit, '...'); ?></div>
|
280 |
+
<a href="<?php the_permalink(); ?>" class="news-more-link"><?php _e( 'Read More', 'sp-news-and-widget' ); ?></a>
|
|
|
281 |
<?php } else {
|
282 |
the_content();
|
283 |
} ?>
|
289 |
<?php endwhile;
|
290 |
endif; ?>
|
291 |
|
292 |
+
<div class="news_pagination">
|
293 |
|
294 |
+
<div class="button-news-p"><?php next_posts_link( ' Next >>', $query->max_num_pages ); ?></div>
|
295 |
+
<div class="button-news-n"><?php previous_posts_link( '<< Previous' ); ?> </div>
|
296 |
+
</div>
|
297 |
|
298 |
|
299 |
<?php
|
widget_function.php
CHANGED
@@ -270,7 +270,7 @@ class SP_News_scrolling_Widget extends WP_Widget {
|
|
270 |
{
|
271 |
speed:<?php echo $instance['speed']?>,
|
272 |
height:<?php echo $instance['height']?>,
|
273 |
-
padding:
|
274 |
pause:<?php echo $instance['pause']?>
|
275 |
|
276 |
});
|
@@ -393,7 +393,7 @@ class SP_News_thmb_Widget extends WP_Widget {
|
|
393 |
?>
|
394 |
<li class="news_li">
|
395 |
<div class="news_thumb_left">
|
396 |
-
<a
|
397 |
|
398 |
<?php
|
399 |
if ( function_exists('has_post_thumbnail') && has_post_thumbnail() ) {
|
@@ -401,7 +401,7 @@ class SP_News_thmb_Widget extends WP_Widget {
|
|
401 |
}
|
402 |
?> </a></div>
|
403 |
<div class="news_thumb_right">
|
404 |
-
<a class="
|
405 |
<?php if($date == "true" || $show_category == "true"){ ?>
|
406 |
<div class="widget-date-post">
|
407 |
<?php echo ($date == "true")? get_the_date() : "" ;?>
|
270 |
{
|
271 |
speed:<?php echo $instance['speed']?>,
|
272 |
height:<?php echo $instance['height']?>,
|
273 |
+
padding:10,
|
274 |
pause:<?php echo $instance['pause']?>
|
275 |
|
276 |
});
|
393 |
?>
|
394 |
<li class="news_li">
|
395 |
<div class="news_thumb_left">
|
396 |
+
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
|
397 |
|
398 |
<?php
|
399 |
if ( function_exists('has_post_thumbnail') && has_post_thumbnail() ) {
|
401 |
}
|
402 |
?> </a></div>
|
403 |
<div class="news_thumb_right">
|
404 |
+
<a class="newspost-title" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
|
405 |
<?php if($date == "true" || $show_category == "true"){ ?>
|
406 |
<div class="widget-date-post">
|
407 |
<?php echo ($date == "true")? get_the_date() : "" ;?>
|