Plugin Directory

Changeset 610074


Ignore:
Timestamp:
10/09/2012 04:14:18 PM (13 years ago)
Author:
joomag
Message:

Fix some bugs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-joomag/trunk/wp-joomag.php

    r604118 r610074  
    4040        $magazineId          =  getValueWithDefault('/(?:^|[\s]+)magazineId=([\S]*)/i', $matches[1], '');
    4141        $title               =  getValueWithDefault('/(?:^|[\s]+)title=([\S]*)/i', $matches[1], '');
    42         $backgroundColor     =  getValueWithDefault('/(?:^|[\s]+)backgroundColor=([\S]*)/i', $matches[1], '000000');
     42        $backgroundColor     =  getValueWithDefault('/(?:^|[\s]+)backgroundColor=([\S]*)/i', $matches[1], '');
    4343        $backgroundImg       =  getValueWithDefault('/(?:^|[\s]+)backgroundImage=([\S]*)/i', $matches[1], '');
    4444        $singleIssue         =  getValueWithDefault('/(?:^|[\s]+)singleIssue=([\S]*)/i', $matches[1], 'true') == 'true' ? true : false;
     
    5757        {
    5858            if( $backgroundColor == 'transparent' ) {
    59                   $embedOptsStr .= '&transparent';
     59                  $embedOptsStr = ';none&transparent';
    6060            } else {
    61                   $embedOptsStr .= ';solid,'.$backgroundColor;
     61                  $embedOptsStr = ';solid,'.$backgroundColor;
    6262            }
    6363        } else if( $backgroundImg != '' ) {
    64               $embedOptsStr .= ';image,'.$backgroundImg.',fill';
     64              $embedOptsStr = ';image,'.$backgroundImg.',fill';
    6565        }
    6666
Note: See TracChangeset for help on using the changeset viewer.