error fix

This commit is contained in:
Mike Jolley 2012-11-15 17:30:38 +00:00
parent af8a7c51e0
commit ec1377dfd2
3 changed files with 67 additions and 66 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,11 +6,9 @@
@tertiarytext: @primarytext; /* Text on tertiary colour bg */ @tertiarytext: @primarytext; /* Text on tertiary colour bg */
@quaternary: desaturate( darken( @tertiary, 45%), 40% ); /* Price slider bg */ @quaternary: desaturate( darken( @tertiary, 45%), 40% ); /* Price slider bg */
.woocommerce-page { // namespace to avoid conflict with common global class names /* =Global styles/layout
-------------------------------------------------------------- */
/* =Global styles/layout .woocommerce_message, .woocommerce_error, .woocommerce_info {
-------------------------------------------------------------- */
.woocommerce_message, .woocommerce_error, .woocommerce_info {
padding: .55em 1em .55em 3em; padding: .55em 1em .55em 3em;
margin: 0 0 2em; margin: 0 0 2em;
position: relative; position: relative;
@ -42,19 +40,19 @@
li { li {
list-style:none outside; list-style:none outside;
} }
} }
.woocommerce_message:before { .woocommerce_message:before {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAGCAYAAAAPDoR2AAAAN0lEQVQIHXWMQQ4AMAjCxv7/ZxZIanbYPIhSUbbXo2Jqf0BsA4mjgU1ioAVpSSrDVbPzFgPt7QH7qwoJ3MDCYgAAAABJRU5ErkJggg==) center no-repeat #8fae1b; /* check icon */ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAGCAYAAAAPDoR2AAAAN0lEQVQIHXWMQQ4AMAjCxv7/ZxZIanbYPIhSUbbXo2Jqf0BsA4mjgU1ioAVpSSrDVbPzFgPt7QH7qwoJ3MDCYgAAAABJRU5ErkJggg==) center no-repeat #8fae1b; /* check icon */
} }
.woocommerce_info:before { .woocommerce_info:before {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAFCAYAAABvsz2cAAAAG0lEQVQIHWP8DwQMQMACxIwwBliECcQDATgDAMHrBQqJ6tMZAAAAAElFTkSuQmCC) center no-repeat #18919c; /* info icon */ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAFCAYAAABvsz2cAAAAG0lEQVQIHWP8DwQMQMACxIwwBliECcQDATgDAMHrBQqJ6tMZAAAAAElFTkSuQmCC) center no-repeat #18919c; /* info icon */
} }
.woocommerce_error:before { .woocommerce_error:before {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAFCAYAAABvsz2cAAAAHUlEQVQIHWP8DwQMQMAEIkAAzmABchhBIiAGWA0Ar6MFCigWCYMAAAAASUVORK5CYII=) center no-repeat #b81c23; /* error icon */ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAFCAYAAABvsz2cAAAAHUlEQVQIHWP8DwQMQMAEIkAAzmABchhBIiAGWA0Ar6MFCigWCYMAAAAASUVORK5CYII=) center no-repeat #b81c23; /* error icon */
} }
p.demo_store { p.demo_store {
position:fixed; position:fixed;
top: 0; top: 0;
left: 0; left: 0;
@ -69,7 +67,9 @@
color: @primarytext; color: @primarytext;
z-index: 999999; z-index: 999999;
.inset_box_shadow( 0, 0, 0, 3px, rgba(255,255,255,0.2) ); .inset_box_shadow( 0, 0, 0, 3px, rgba(255,255,255,0.2) );
} }
.woocommerce-page { // namespace to avoid conflict with common global class names
small.note { small.note {
display:block; display:block;

View File

@ -1613,15 +1613,16 @@ class Woocommerce {
$content = ''; $content = '';
if ( $wrapper['bool'] == true ) : if ( $wrapper['bool'] == true ) {
if( $wrapper['before'] == null ) : $before = '<div class="' . $wrapper['class'] . '">' ? $before = $wrapper['before']; $before = empty( $wrapper['before'] ) ? '<div class="' . $wrapper['class'] . '">' : $wrapper['before'];
if( $wrapper['after'] == null ) : $after = '<div class="' . $wrapper['class'] . '">' ? $after = $wrapper['after']; $after = empty( $wrapper['after'] ) ? '</div>' : $wrapper['after'];
$content .= $before . call_user_func( $function, $atts ) . $after;
else :
$content .= call_user_func( $function, $atts );
endif;
return ob_get_clean($content); $content .= $before . call_user_func( $function, $atts ) . $after;
} else {
$content .= call_user_func( $function, $atts );
}
return ob_get_clean( $content );
} }
/** Cache Helpers *********************************************************/ /** Cache Helpers *********************************************************/