|
@@ 211-218 (lines=8) @@
|
| 208 |
|
|
| 209 |
|
$data['id'] = $attrs['id']; |
| 210 |
|
|
| 211 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 212 |
|
require_once WP_CONTENT_DIR . '/lib/display-context.php'; |
| 213 |
|
$context = \A8C\Display_Context\get_current_context(); |
| 214 |
|
if ( \A8C\Display_Context\EMAIL === $context ) { |
| 215 |
|
// Avoid enqueueing unsupported files by emails. |
| 216 |
|
return $this->output_shortcode( $data ); |
| 217 |
|
} |
| 218 |
|
} |
| 219 |
|
|
| 220 |
|
if ( ! $this->is_enabled_jetpack_simple_payments() ) { |
| 221 |
|
if ( ! is_feed() ) { |
|
@@ 249-255 (lines=7) @@
|
| 246 |
|
$css_prefix = self::$css_classname_prefix; |
| 247 |
|
|
| 248 |
|
$is_paypal_button_visible = true; |
| 249 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 250 |
|
require_once WP_CONTENT_DIR . '/lib/display-context.php'; |
| 251 |
|
$context = \A8C\Display_Context\get_current_context(); |
| 252 |
|
if ( \A8C\Display_Context\EMAIL === $context ) { |
| 253 |
|
$is_paypal_button_visible = false; |
| 254 |
|
} |
| 255 |
|
} |
| 256 |
|
|
| 257 |
|
if ( $data['multiple'] ) { |
| 258 |
|
$items = sprintf( ' |