Plugin Directory

Changeset 897606


Ignore:
Timestamp:
04/18/2014 06:34:15 PM (12 years ago)
Author:
eroux
Message:

Updated URLs in Widget Headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • badges/trunk/DisplayBadges.php

    r349312 r897606  
    22/*
    33    Plugin Name: Display Badges
    4     Plugin URI: http://www.damn.org.za/blog/displaybadges
     4    Plugin URI: http://blog.damn.org.za/widgets/
    55    Description: Display a set of Badges (named XXFoo.inc) within the widget
    66    Author: Eugéne Roux
    7     Version: 2.3
     7    Version: 2.4
    88    Author URI: http://damn.org.za/
    99 */
     
    3131    //  @see WP_Widget::widget
    3232    //
    33     function widget($args, $instance) {     
     33    function widget($args, $instance) {
    3434        extract( $args );
    3535        $title = apply_filters('widget_title', $instance['title']);
     
    7171                print( ">\n" );
    7272
    73                 $badgearray = file($filename); 
     73                $badgearray = file($filename);
    7474                foreach ($badgearray as $badge) {
    7575                    $badge = str_replace("[BLOGURL]", get_settings('home'), $badge);
     
    8888    //  @see WP_Widget::update
    8989    //
    90     function update($new_instance, $old_instance) {             
     90    function update($new_instance, $old_instance) {
    9191        $instance = $old_instance;
    9292        $instance['title'] = strip_tags( $new_instance['title'] );
     
    107107        $title = esc_attr( $instance['title'] );
    108108        $path = $instance['path'];
    109         $displayframe = $instance['displayframe'] ? "checked='checked'" : "";       
    110         $internalcss = $instance['internalcss'] ? "checked='checked'" : "";       
    111         $dropshadow = $instance['dropshadow'] ? "checked='checked'" : "";       
     109        $displayframe = $instance['displayframe'] ? "checked='checked'" : "";
     110        $internalcss = $instance['internalcss'] ? "checked='checked'" : "";
     111        $dropshadow = $instance['dropshadow'] ? "checked='checked'" : "";
    112112
    113113        print( "\t<p>\n\t\t<label for='" . $this->get_field_id("title") . "'>" ); _e( "Title:" );
Note: See TracChangeset for help on using the changeset viewer.