# HG changeset patch # User Alessio Caiazza # Date 1272138576 -7200 # Node ID 4ce62030971c18297dcd00f5a0e3da6e3e3a418b # Parent 00045afc8edc41ac4d12f049f66fe1d0bcda53e5 permits title and width customization via PHP calls diff -r 00045afc8edc41ac4d12f049f66fe1d0bcda53e5 -r 4ce62030971c18297dcd00f5a0e3da6e3e3a418b aboutme.php --- a/aboutme.php Sat Apr 24 21:44:05 2010 +0200 +++ b/aboutme.php Sat Apr 24 21:49:36 2010 +0200 @@ -111,8 +111,10 @@ extract($args); $options = get_option('widget_social_links'); - $title = empty($options['title']) ? 'About Me' : $options['title']; - $width = empty($options['width']) ? 20 : $options['width']; + if (!isset($title) || empty($title)) + $title = empty($options['title']) ? 'About Me' : $options['title']; + if (!isset($width) || empty($width)) + $width = empty($options['width']) ? 20 : $options['width']; echo $before_widget; echo $before_title . $title . $after_title ;