Plugin Directory

Changeset 897605


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

Updated URLs in Widget Headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • badge/trunk/DisplayBadge.php

    r349314 r897605  
    22/*
    33    Plugin Name: Display Badge
    4     Plugin URI: http://www.damn.org.za/blog/displaybadge
     4    Plugin URI: http://blog.damn.org.za/widgets/
    55    Description: Individual Badge Version of DisplayBadges
    66    Author: Eugéne Roux
    7     Version: 1.1
    8     Author URI: http://damn.org.za/blog/
     7    Version: 1.2
     8    Author URI: http://damn.org.za/
    99 */
    1010
     
    3333    //  @see WP_Widget::widget
    3434    //
    35     function widget($args, $instance) {     
     35    function widget($args, $instance) {
    3636        extract( $args );
    3737        $id = $args['widget_id'];
     
    8787
    8888            print( "src=' " . $destIMG . " ' />\n" );
    89            
     89
    9090            if ( $badgeNote ) {
    9191                print( "\t\t\t<br />\n\t\t\t" . $badgeNote . "\n" );
     
    103103    //  @see WP_Widget::update
    104104    //
    105     function update($new_instance, $old_instance) {             
     105    function update($new_instance, $old_instance) {
    106106        $instance = $old_instance;
    107107        $instance['title'] = strip_tags( $new_instance['title'] );
     
    126126        $destIMG = $instance['destIMG'];
    127127        $badgeNote = $instance['badgeNote'];
    128         $displayframe = $instance['displayframe'] ? "checked='checked'" : "";       
    129         $padbadge = $instance['padbadge'] ? "checked='checked'" : "";       
    130         $dropshadow = $instance['dropshadow'] ? "checked='checked'" : "";       
     128        $displayframe = $instance['displayframe'] ? "checked='checked'" : "";
     129        $padbadge = $instance['padbadge'] ? "checked='checked'" : "";
     130        $dropshadow = $instance['dropshadow'] ? "checked='checked'" : "";
    131131
    132132        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.