Plugin Directory

Changeset 580392


Ignore:
Timestamp:
08/01/2012 07:18:01 PM (14 years ago)
Author:
vancoder
Message:

Version 1.1

Location:
express-posts/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • express-posts/trunk/express-posts.php

    r555332 r580392  
    44  Plugin URI: http://vancoder.ca/plugins/express-posts
    55  Description: A brief description of the Plugin.
    6   Version: 1.0
     6  Version: 1.1
    77  Author: Vancoder
    88  Author URI: http://vancoder.ca
     
    110110        if ( $query->posts ) {
    111111
    112             echo str_replace( 'express_posts', 'express_posts express_posts-' . $instance['relationship'], $before_widget );
     112
     113           
     114            echo str_replace( 'widget-container', 'widget-container express_posts-' . $instance['relationship'], $before_widget );
     115
    113116
    114117            if ( $instance['show_widget_title'] ) {
     
    151154            }
    152155            echo '</ul>';
     156           
     157            if ($instance['footer']) {
     158                echo '<div class="footer">' . $instance['footer'] . '</div>';
     159            }
     160           
     161           
    153162            echo $after_widget;
    154163        }
     
    171180            'siblings_ordering' => 'menu_order',
    172181            'custom_date_format' => 'F j, Y',
    173             'relationship' => 'subset'
     182            'relationship' => 'subset',
     183            'footer' => ''
    174184        );
    175185        $instance = wp_parse_args( ( array ) $instance, $defaults );
     
    187197        <fieldset class="subset" style="display: <?php echo ('subset' == $instance['relationship'] ? 'block' : 'none'); ?>">
    188198            <p><label for="<?php echo $this->get_field_id( 'quantity' ); ?>"><?php _e( 'Quantity:' ); ?></label>
    189                 <input id="<?php echo $this->get_field_id( 'quantity' ); ?>" name="<?php echo $this->get_field_name( 'quantity' ); ?>" type="text" value="<?php echo $instance['quantity']; ?>" size="3" /></p>
     199                <input id="<?php echo $this->get_field_id( 'quantity' ); ?>" name="<?php echo $this->get_field_name( 'quantity' ); ?>" type="text" value="<?php echo esc_attr($instance['quantity']); ?>" size="3" /></p>
    190200
    191201            <p><input type="checkbox" id="<?php echo $this->get_field_id( 'show_excerpt' ); ?>" name="<?php echo $this->get_field_name( 'show_excerpt' ); ?>" <?php checked( $instance['show_excerpt'], 1, true ); ?> value="1" /> <label for="<?php echo $this->get_field_id( 'show_excerpt' ); ?>">Show excerpt</label></p>
     
    207217
    208218            <p><label for="<?php echo $this->get_field_id( 'custom_date_format' ); ?>"><?php _e( 'Custom date format:' ); ?></label>
    209                 <input id="<?php echo $this->get_field_id( 'custom_date_format' ); ?>" name="<?php echo $this->get_field_name( 'custom_date_format' ); ?>" type="text" value="<?php echo $instance['custom_date_format']; ?>" size="3" /></p>
     219                <input id="<?php echo $this->get_field_id( 'custom_date_format' ); ?>" name="<?php echo $this->get_field_name( 'custom_date_format' ); ?>" type="text" value="<?php echo esc_attr($instance['custom_date_format']); ?>" size="3" /></p>
    210220            <p><label for="<?php echo $this->get_field_id( 'categories' ); ?>"><?php _e( 'Categories:' ); ?></label><br />
    211221                <?php
     
    220230                ?>
    221231            </p>
     232           
     233             <p><label for="<?php echo $this->get_field_id( 'footer' ); ?>"><?php _e( 'Footer:' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'footer' ); ?>" name="<?php echo $this->get_field_name( 'footer' ); ?>" type="text" value="<?php echo esc_attr($instance['footer']); ?>" /><br /></p>
     234
    222235        </fieldset>
    223236
  • express-posts/trunk/readme.txt

    r559506 r580392  
    66Requires at least: 3.2.1
    77Tested up to: 3.4
    8 Stable tag: 1.0
     8Stable tag: 1.1
    99
    1010Express posts provides a widget to display either a subset of posts, the children of a page or its siblings.
     
    3131== Changelog ==
    3232
     33= 1.1 =
     34* Added footer
     35* Fixed id bug
     36
    3337= 1.0 =
    34 * Initial release.
     38* Initial release
Note: See TracChangeset for help on using the changeset viewer.