Plugin Directory

Changeset 805630


Ignore:
Timestamp:
11/17/2013 04:19:28 AM (12 years ago)
Author:
Mazinger
Message:

update

Location:
fancy-posts-widget/tags/1.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fancy-posts-widget/tags/1.3/fancy-posts-widget.php

    r797417 r805630  
    44 * Plugin URI: http://www.arb4host.net/
    55 * Description: Another posts widget with many features.
    6  * Version: 1.3
     6 * Version: 1.4
    77 * Author: Mazinger
    88 * Author URI: http://www.arb4host.net/
     
    5252.widget_dsplypsts ul { margin: 0px; padding: 0px; list-style: none; }
    5353.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; }
    5456.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;  }
    5559/* first style */
    5660.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; }
    6063.widget_dsplypsts ul.frststl li img { float: right; width: 80px; height: 60px; padding: 1px; border: 1px solid #CCCCCC; }
    6164.widget_dsplypsts ul.frststl li span { display: block; margin-right: 90px; }
     
    6669.widget_dsplypsts ul.scndstl li a:after { display: block; clear: both; content: ""; }
    6770.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; }
    6872/* third style */
    6973.widget_dsplypsts ul.thrdstl { padding: 10px; padding-bottom: 0px; border-top: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC; }
     
    7680.widget_dsplypsts ul.frthstl { padding: 10px; padding-bottom: 0px; border-top: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC; }
    7781.widget_dsplypsts ul.frthstl li { margin-bottom: 5px; }
     82.widget_dsplypsts ul.frthstl li p { margin-bottom: 20px; }
    7883/* fifth style */
    7984.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; }
    8287.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; }
    8492</style>
    8593<?php if ( $the_query->have_posts() ) : ?>
     
    9098<!-- frststl start -->
    9199<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(); ?><? } ?>
    93102</li>
    94103<!-- frststl end -->
     
    97106<!-- scndstl start -->
    98107<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>
    100109</li>
    101110<!-- scndstl end -->
     
    112121<li>
    113122<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>
    114127</li>
    115128<!-- frthstl end -->
     
    118131<!-- ffthstl start -->
    119132<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>
    121139</li>
    122140<!-- ffthstl end -->
     
    143161              $instance['imgsize'] = $new_instance['imgsize'];
    144162              $instance['dsplystl'] = $new_instance['dsplystl'];
     163              $instance['dsplydte'] = $new_instance['dsplydte'];
     164              $instance['dsplyxrpt'] = $new_instance['dsplyxrpt'];
    145165             return $instance;
    146166    }
     
    168188                    </p>
    169189                    <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>
    170196                    <label for="<?php echo $this->get_field_id('pstsordr'); ?>"><?php _e('Order:'); ?></label>
    171197                    <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  
    33Donate link:
    44Tags: popular posts, recent posts, random posts, posts widget, display posts
    5 Stable tag: 1.3
     5Stable tag: 1.4
    66Requires at least: 3.0.0
    77Tested up to: 3.7.1
     
    4545== Changelog ==
    4646
     47= 1.4 =
     48* Added Date & Excerpt options.
     49* Improved HTML & CSS.
     50
    4751= 1.3 =
    4852* Minor update.
Note: See TracChangeset for help on using the changeset viewer.