Plugin Directory

Changeset 347493


Ignore:
Timestamp:
02/18/2011 09:15:02 PM (15 years ago)
Author:
Welzel
Message:

Title will not longer displayed on blank side bars

Location:
welamazonadds/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • welamazonadds/trunk/js/waa-admin.js

    r320117 r347493  
    11/*
    2     Wel!Amazon Adds for Wordpress v1.1
     2    Wel!Amazon Adds for Wordpress v1.2
    33    Copyright 2010  Knut Welzel www.welzels.de (email : admin@welzels.de)
    44   
  • welamazonadds/trunk/js/welamazonaffiliate.js

    r320117 r347493  
    11/*
    2     Wel!Amazon Adds for Wordpress v1.1
     2    Wel!Amazon Adds for Wordpress v1.2
    33    Copyright 2010  Knut Welzel www.welzels.de (email : admin@welzels.de)
    44   
  • welamazonadds/trunk/readme.txt

    r320117 r347493  
    4949== Changelog ==
    5050
     51= 1.2 =
     52- Title will not longer displayed on blank side bars.
     53
    5154= 1.1 =
    5255- Support for **Programma Affiliazione** Amazon Italy
  • welamazonadds/trunk/waa-widget.php

    r285500 r347493  
    3939        require_once('waa-webservice.php');
    4040       
    41         // Before widget (defined by themes).
    42             $output = $before_widget;
     41            $output ="";
    4342       
    4443        // Widget content
    45        
    46             // Widget Title
    47                 if(strlen($instance['title']))
    48                     $output .= $before_title . $instance['title'] . $after_title;
    4944           
    5045            // Display Amazon Enhanced Links
     
    110105                    $output .= '</div>';
    111106                }
    112            
     107               
    113108               
    114109            // Display Amazon Image Links
     
    171166       
    172167       
    173         // After widget (defined by themes).
    174             $output .= $after_widget;
    175        
    176         // output sidebar widget
    177             echo $output;
     168            if( strlen($output) > 0 ) {
     169               
     170                // Before widget (defined by themes).
     171                    echo $before_widget;
     172                   
     173                // Widget Title
     174                    if(strlen($instance['title']) > 0)
     175                        echo $before_title . $instance['title'] . $after_title;
     176                       
     177                // output sidebar widget
     178                    echo $output;
     179                   
     180                // After widget (defined by themes).
     181                    echo $after_widget;
     182            }
    178183    }
    179184   
  • welamazonadds/trunk/welamazonadds.php

    r320117 r347493  
    44Plugin URI: http://wordpress.org/extend/plugins/welamazonadds/
    55Description: The Plugin Wel!Amazon Adds is an easy way to include Amazon links into your Wordpress Blog. It enables the integration of image links and extended links directly from the Amazon database. These links can be placed directly in the text or on the sidebar, so that each page gets a suitable sidebar for the topic of content.
    6 Version: 1.1
     6Version: 1.2
    77Author URI: www.welzels.de
    88
Note: See TracChangeset for help on using the changeset viewer.