Changeset 805630
- Timestamp:
- 11/17/2013 04:19:28 AM (12 years ago)
- Location:
- fancy-posts-widget/tags/1.3
- Files:
-
- 2 edited
-
fancy-posts-widget.php (modified) (10 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fancy-posts-widget/tags/1.3/fancy-posts-widget.php
r797417 r805630 4 4 * Plugin URI: http://www.arb4host.net/ 5 5 * Description: Another posts widget with many features. 6 * Version: 1. 36 * Version: 1.4 7 7 * Author: Mazinger 8 8 * Author URI: http://www.arb4host.net/ … … 52 52 .widget_dsplypsts ul { margin: 0px; padding: 0px; list-style: none; } 53 53 .widget_dsplypsts ul li { margin: 0px; padding: 0px; position: relative; } 54 .widget_dsplypsts ul li a { display: inline; } 55 .widget_dsplypsts ul li span.pstdte { font-size: 85%; color: #888888; } 54 56 .widget_dsplypsts ul:after { display: block; clear: both; content: ""; } 57 .widget_dsplypsts ul li:after { display: block; clear: both; content: ""; } 58 .widget_dsplypsts ul li p { clear: both; margin: 0px; padding-top: 10px; } 55 59 /* first style */ 56 60 .widget_dsplypsts ul.frststl { border-top: 1px solid #CCCCCC; } 57 .widget_dsplypsts ul.frststl li a { display: block; clear: both; padding: 10px; border-bottom: 1px solid #CCCCCC; } 58 .widget_dsplypsts ul.frststl li a:after { display: block; clear: both; content: ""; } 59 .widget_dsplypsts ul.frststl li a:hover { background: #FFFFFF; } 61 .widget_dsplypsts ul.frststl li { display: block; clear: both; padding: 10px; border-bottom: 1px solid #CCCCCC; } 62 .widget_dsplypsts ul.frststl li a.title { display: inline-block; vertical-align: top; } 60 63 .widget_dsplypsts ul.frststl li img { float: right; width: 80px; height: 60px; padding: 1px; border: 1px solid #CCCCCC; } 61 64 .widget_dsplypsts ul.frststl li span { display: block; margin-right: 90px; } … … 66 69 .widget_dsplypsts ul.scndstl li a:after { display: block; clear: both; content: ""; } 67 70 .widget_dsplypsts ul.scndstl li img { width: 100%; height: 90px; padding: 1px; border: 1px solid #CCCCCC; } 71 .widget_dsplypsts ul.scndstl li span { display: inline-block; padding-top: 5px; margin-bottom: 10px; } 68 72 /* third style */ 69 73 .widget_dsplypsts ul.thrdstl { padding: 10px; padding-bottom: 0px; border-top: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC; } … … 76 80 .widget_dsplypsts ul.frthstl { padding: 10px; padding-bottom: 0px; border-top: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC; } 77 81 .widget_dsplypsts ul.frthstl li { margin-bottom: 5px; } 82 .widget_dsplypsts ul.frthstl li p { margin-bottom: 20px; } 78 83 /* fifth style */ 79 84 .widget_dsplypsts ul.ffthstl { border-top: 1px solid #CCCCCC; } 80 .widget_dsplypsts ul.ffthstl li a { display: block; clear: both; padding: 10px; border-bottom: 1px solid #CCCCCC; color: #FFFFFF; text-shadow: 1px 1px 0px #111111; }81 .widget_dsplypsts ul.ffthstl li a:hover { background: #FFFFFF; }85 .widget_dsplypsts ul.ffthstl li { clear: both; padding: 10px; border-bottom: 1px solid #CCCCCC; text-shadow: 1px 1px 0px #111111; overflow: hidden; } 86 .widget_dsplypsts ul.ffthstl li, .widget_dsplypsts ul.ffthstl li a, .widget_dsplypsts ul.ffthstl li span.pstdte { color: #FFFFFF; } 82 87 .widget_dsplypsts ul.ffthstl li img { width: 100%; height: 150px; } 83 .widget_dsplypsts ul.ffthstl li span { display: block; position: absolute; bottom: 11px; left: 10px; right: 10px; padding: 10px; background: rgba(0,0,0,0.4); text-align: center; } 88 .widget_dsplypsts ul.ffthstl li div.hdnpst { display: block; position: absolute; margin-top: 10px; bottom: 10px; left: 10px; right: 10px; padding: 10px; background: rgba(0,0,0,0.7); overflow: hidden; } 89 .widget_dsplypsts ul.ffthstl li span.title { display: block; } 90 .widget_dsplypsts ul.ffthstl li .pstdte, .widget_dsplypsts ul.ffthstl li p { display: none; } 91 .widget_dsplypsts ul.ffthstl li:hover p, .widget_dsplypsts ul.ffthstl li:hover span.pstdte { display: block; } 84 92 </style> 85 93 <?php if ( $the_query->have_posts() ) : ?> … … 90 98 <!-- frststl start --> 91 99 <li> 92 <a href="<? the_permalink(); ?>"><?php the_post_thumbnail($imgsize, array('alt'=>''.get_the_title().'')); ?><span><? the_title(); ?></span></a> 100 <a href="<? the_permalink(); ?>"><?php the_post_thumbnail($imgsize, array('alt'=>''.get_the_title().'')); ?></a><span><a class="title" href="<? the_permalink(); ?>"><? the_title(); ?></span></a><? if ( $instance['dsplydte'] == 1 ) { ?><span class="pstdte"><? the_date(); ?></span><? } ?> 101 <? if ( $instance['dsplyxrpt'] == 1 ) { ?><? the_excerpt(); ?><? } ?> 93 102 </li> 94 103 <!-- frststl end --> … … 97 106 <!-- scndstl start --> 98 107 <li> 99 <a href="<? the_permalink(); ?>"><?php the_post_thumbnail($imgsize, array('alt'=>''.get_the_title().'')); ?></a> 108 <a href="<? the_permalink(); ?>"><?php the_post_thumbnail($imgsize, array('alt'=>''.get_the_title().'')); ?></a><span><a href="<? the_permalink(); ?>"><? the_title(); ?></a></span> 100 109 </li> 101 110 <!-- scndstl end --> … … 112 121 <li> 113 122 <a href="<? the_permalink(); ?>"><? the_title(); ?></a> 123 <div> 124 <? if ( $instance['dsplydte'] == 1 ) { ?><span class="pstdte"><? the_date(); ?></span><? } ?> 125 <? if ( $instance['dsplyxrpt'] == 1 ) { ?><? the_excerpt(); ?><? } ?> 126 </div> 114 127 </li> 115 128 <!-- frthstl end --> … … 118 131 <!-- ffthstl start --> 119 132 <li> 120 <a href="<? the_permalink(); ?>"><?php the_post_thumbnail($imgsize, array('alt'=>''.get_the_title().'')); ?><span><? the_title(); ?></span></a> 133 <a href="<? the_permalink(); ?>"><?php the_post_thumbnail($imgsize, array('alt'=>''.get_the_title().'')); ?></a> 134 <div class="hdnpst"> 135 <span class="title"><a href="<? the_permalink(); ?>"><? the_title(); ?></a></span> 136 <? if ( $instance['dsplydte'] == 1 ) { ?><span class="pstdte"><? the_date(); ?></span><? } ?> 137 <? if ( $instance['dsplyxrpt'] == 1 ) { ?><? the_excerpt(); ?><? } ?> 138 </div> 121 139 </li> 122 140 <!-- ffthstl end --> … … 143 161 $instance['imgsize'] = $new_instance['imgsize']; 144 162 $instance['dsplystl'] = $new_instance['dsplystl']; 163 $instance['dsplydte'] = $new_instance['dsplydte']; 164 $instance['dsplyxrpt'] = $new_instance['dsplyxrpt']; 145 165 return $instance; 146 166 } … … 168 188 </p> 169 189 <p> 190 <input id="<?php echo $this->get_field_id('dsplydte'); ?>" name="<?php echo $this->get_field_name('dsplydte'); ?>" type="checkbox" value="1" <?php checked( '1', $instance['dsplydte'] ); ?> /> <label for="<?php echo $this->get_field_id('dsplydte'); ?>"><?php _e('Show Date'); ?></label> 191 </p> 192 <p> 193 <input id="<?php echo $this->get_field_id('dsplyxrpt'); ?>" name="<?php echo $this->get_field_name('dsplyxrpt'); ?>" type="checkbox" value="1" <?php checked( '1', $instance['dsplyxrpt'] ); ?> /> <label for="<?php echo $this->get_field_id('dsplyxrpt'); ?>"><?php _e('Show Excerpt'); ?></label> 194 </p> 195 <p> 170 196 <label for="<?php echo $this->get_field_id('pstsordr'); ?>"><?php _e('Order:'); ?></label> 171 197 <select class="widefat" id="<?php echo $this->get_field_id('pstsordr') ?>" name="<?php echo $this->get_field_name('pstsordr') ?>"> -
fancy-posts-widget/tags/1.3/readme.txt
r797417 r805630 3 3 Donate link: 4 4 Tags: popular posts, recent posts, random posts, posts widget, display posts 5 Stable tag: 1. 35 Stable tag: 1.4 6 6 Requires at least: 3.0.0 7 7 Tested up to: 3.7.1 … … 45 45 == Changelog == 46 46 47 = 1.4 = 48 * Added Date & Excerpt options. 49 * Improved HTML & CSS. 50 47 51 = 1.3 = 48 52 * Minor update.
Note: See TracChangeset
for help on using the changeset viewer.