Changeset 610074
- Timestamp:
- 10/09/2012 04:14:18 PM (13 years ago)
- File:
-
- 1 edited
-
wp-joomag/trunk/wp-joomag.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-joomag/trunk/wp-joomag.php
r604118 r610074 40 40 $magazineId = getValueWithDefault('/(?:^|[\s]+)magazineId=([\S]*)/i', $matches[1], ''); 41 41 $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], ''); 43 43 $backgroundImg = getValueWithDefault('/(?:^|[\s]+)backgroundImage=([\S]*)/i', $matches[1], ''); 44 44 $singleIssue = getValueWithDefault('/(?:^|[\s]+)singleIssue=([\S]*)/i', $matches[1], 'true') == 'true' ? true : false; … … 57 57 { 58 58 if( $backgroundColor == 'transparent' ) { 59 $embedOptsStr .= '&transparent';59 $embedOptsStr = ';none&transparent'; 60 60 } else { 61 $embedOptsStr .= ';solid,'.$backgroundColor;61 $embedOptsStr = ';solid,'.$backgroundColor; 62 62 } 63 63 } else if( $backgroundImg != '' ) { 64 $embedOptsStr .= ';image,'.$backgroundImg.',fill';64 $embedOptsStr = ';image,'.$backgroundImg.',fill'; 65 65 } 66 66
Note: See TracChangeset
for help on using the changeset viewer.