/home/techb158/balacoffee.com/wp-content/plugins/coming-soon/resources/views
Edit: /home/techb158/balacoffee.com/wp-content/plugins/coming-soon/resources/views/seedprod-preview.php (24752B)
plugin_url() ) . '/assets/css/woocommerce-layout.css',
'',
defined( 'WC_VERSION' ) ? WC_VERSION : null,
'all'
);
wp_enqueue_style(
'seedprod-woocommerce-smallscreen',
str_replace( array( 'http:', 'https:' ), '', WC()->plugin_url() ) . '/assets/css/woocommerce-smallscreen.css',
'',
defined( 'WC_VERSION' ) ? WC_VERSION : null,
'only screen and (max-width: 1088px)' // 768px default break + 320px for sidebar
);
wp_enqueue_style(
'seedprod-woocommerce-general',
str_replace( array( 'http:', 'https:' ), '', WC()->plugin_url() ) . '/assets/css/woocommerce.css',
'',
defined( 'WC_VERSION' ) ? WC_VERSION : null,
'all'
);
}
// Load EDD default styles if EDD is active.
if ( in_array( 'easy-digital-downloads/easy-digital-downloads.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ), true ) || in_array( 'easy-digital-downloads-pro/easy-digital-downloads.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ), true ) ) {
$css_suffix = is_rtl() ? '-rtl.min.css' : '.min.css';
if ( function_exists( 'edd_get_assets_url' ) ) {
// EDD 3.3.0+ with modern asset structure.
$url = edd_get_assets_url( 'css/frontend' ) . 'edd' . $css_suffix;
} else {
// Older EDD versions - use legacy path.
$url = trailingslashit( EDD_PLUGIN_URL ) . 'assets/css/edd' . $css_suffix;
}
wp_enqueue_style(
'seedprod-edd-general',
str_replace( array( 'http:', 'https:' ), '', $url ),
'',
defined( 'EDD_VERSION' ) ? EDD_VERSION : null,
'all'
);
global $post;
wp_enqueue_script( 'edd-ajax' );
// Load AJAX scripts, if enabled
if ( ! edd_is_ajax_disabled() ) {
// Get position in cart of current download
$position = isset( $post->ID )
? edd_get_item_position_in_cart( $post->ID )
: -1;
if ( ( ! empty( $post->post_content ) && ( has_shortcode( $post->post_content, 'purchase_link' ) || has_shortcode( $post->post_content, 'downloads' ) ) ) || is_post_type_archive( 'download' ) ) {
$has_purchase_links = true;
} else {
$has_purchase_links = false;
}
wp_localize_script(
'edd-ajax',
'edd_scripts',
apply_filters(
'edd_ajax_script_vars',
array(
'ajaxurl' => esc_url_raw( edd_get_ajax_url() ),
'position_in_cart' => $position,
'has_purchase_links' => $has_purchase_links,
'already_in_cart_message' => __( 'You have already added this item to your cart', 'easy-digital-downloads' ), // Item already in the cart message
'empty_cart_message' => __( 'Your cart is empty', 'easy-digital-downloads' ), // Item already in the cart message
'loading' => __( 'Loading', 'easy-digital-downloads' ), // General loading message
'select_option' => __( 'Please select an option', 'easy-digital-downloads' ), // Variable pricing error with multi-purchase option enabled
'is_checkout' => '1',
'default_gateway' => edd_get_default_gateway(),
'redirect_to_checkout' => ( edd_straight_to_checkout() || edd_is_checkout() ) ? '1' : '0',
'checkout_page' => esc_url_raw( edd_get_checkout_uri() ),
'permalinks' => get_option( 'permalink_structure' ) ? '1' : '0',
'quantities_enabled' => edd_item_quantities_enabled(),
'taxes_enabled' => edd_use_taxes() ? '1' : '0', // Adding here for widget, but leaving in checkout vars for backcompat
'current_page' => get_the_ID(),
)
)
);
}
}
// get settings.
if ( ! empty( $settings ) && isset( $settings->no_conflict_mode ) ) {
$google_fonts_str = seedprod_lite_construct_font_str( $settings );
$content = $page->post_content;
$lpage_uuid = get_post_meta( $page->ID, '_seedprod_page_uuid', true );
} else {
global $wpdb, $post;
$settings = json_decode( $post->post_content_filtered );
$google_fonts_str = seedprod_lite_construct_font_str( json_decode( $post->post_content_filtered, true ) );
$content = $post->post_content;
$lpage_uuid = get_post_meta( $post->ID, '_seedprod_page_uuid', true );
}
// remove vue comment bug.
$content = str_replace( 'function(e,n,r,i){return fn(t,e,n,r,i,!0)}', '', $content );
$plugin_url = SEEDPROD_PLUGIN_URL;
// check to see if we have a shortcode, form or giveaway.
$settings_str = wp_json_encode( $settings );
if ( strpos( $settings_str, 'contact-form' ) !== false ) {
$settings->no_conflict_mode = false;
}
if ( strpos( $settings_str, 'giveaway' ) !== false ) {
$settings->no_conflict_mode = false;
}
$include_seed_fb_sdk = false;
$include_seed_twitter_sdk = false;
$include_seedprod_headline_sdk = false;
$include_seedprod_animation_sdk = false;
$include_gallery_lightbox_sdk = false;
$include_gallery_sdk = false;
$include_counter_sdk = false;
$include_seedprod_image_lightbox_sdk = false;
$include_beforeaftertoggle_sdk = false;
$include_hotspot_sdk = false;
$include_particles_sdk = false;
$include_masonarylayout_sdk = false;
// get url
$scheme = 'http';
$server_request_uri = isset( $_SERVER['REQUEST_URI'] ) ? sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : '';
$server_http_host = isset( $_SERVER['HTTP_HOST'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_HOST'] ) ) : '';
$server_port = isset( $_SERVER['SERVER_PORT'] ) ? sanitize_text_field( wp_unslash( $_SERVER['SERVER_PORT'] ) ) : '';
if ( '443' === $server_port ) {
$scheme = 'https';
}
if ( ! empty( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' === sanitize_text_field( wp_unslash( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) ) ) {
$scheme = 'https';
}
$ogurl = "$scheme://$server_http_host$server_request_uri";
// subscriber callback
$seedprod_subscribe_callback_ajax_url = html_entity_decode( wp_nonce_url( admin_url() . 'admin-ajax.php?action=seedprod_lite_subscribe_callback', 'seedprod_lite_subscribe_callback' ) );
$seedprod_subscribe_callback_fallback_ajax_url = '';
$seedprod_subscribe_callback_ajax_url_parsed = wp_parse_url( $seedprod_subscribe_callback_ajax_url );
if ( ! empty( $seedprod_subscribe_callback_ajax_url_parsed['path'] ) ) {
$seedprod_subscribe_callback_fallback_ajax_url = $seedprod_subscribe_callback_ajax_url_parsed['path'] . '?' . $seedprod_subscribe_callback_ajax_url_parsed['query'];
}
// If site uses WP Rocket, disable minify
seedprod_lite_wprocket_disable_minify();
// allow acf shortcode to work in block themes
add_filter( 'acf/shortcode/allow_in_block_themes_outside_content', '__return_true' );
// Check if WooCommerce is active
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ), true ) && function_exists( 'WC' ) ) {
add_filter( 'woocommerce_enqueue_styles', 'seedprod_lite_wc_dequeue_styles' );
/**
* Remove WooCommerce Styles
*/
function seedprod_lite_wc_dequeue_styles( $enqueue_styles ) {
// Dequeue main syles as it may serve theme-specific styles for themes that may not match SeedProd page
unset( $enqueue_styles['woocommerce-general'] );
// Enqueue generic WooCommerce stylesheet for predictable defaults on SeedProd pages
$enqueue_styles['woocommerce-general'] = array(
'src' => str_replace( array( 'http:', 'https:' ), '', WC()->plugin_url() ) . '/assets/css/woocommerce.css',
'deps' => '',
'version' => defined( 'WC_VERSION' ) ? WC_VERSION : null,
'media' => 'all',
'has_rtl' => true,
);
return $enqueue_styles;
}
}
if ( ! empty( $settings ) ) {
?>
>
no_conflict_mode ) ) {
?>
seo_title ) ) : ?>
seo_title ); ?>
seo_description ) ) : ?>
favicon ) ) : ?>
no_index ) ) : ?>
seo_title ) ) : ?>
seo_description ) ) : ?>
social_thumbnail ) ) : ?>
logo ) ) : ?>
seo_title ) ) : ?>
seo_description ) ) : ?>
social_thumbnail ) ) : ?>
no_conflict_mode ) ) : ?>
ID ) ? $page->ID : ( ! empty( $post->ID ) ? $post->ID : 0 );
$is_converted = get_post_meta( $preview_post_id, '_seedprod_converted_from_legacy', true );
if ( '1' === $is_converted || 1 === $is_converted ) {
$wp_includes_url = includes_url();
?>
' type='text/css' media='all' />
' type='text/css' media='all' />
no_conflict_mode ) ) {
?>
document->settings->useVideoBg ) ) { ?>
no_conflict_mode ) ) {
wp_enqueue_script( 'jquery' );
wp_head();
} else {
$include_url = trailingslashit( includes_url() );
if ( empty( $settings->enable_wp_head_footer ) ) {
echo '' . "\n"; // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript
}
// Check if this is a converted page with native blocks - load block styles even in no-conflict mode
// Get post ID from either $page or $post global depending on context
$post_id = 0;
if ( ! empty( $page ) && isset( $page->ID ) ) {
$post_id = $page->ID;
} elseif ( ! empty( $post ) && isset( $post->ID ) ) {
$post_id = $post->ID;
}
if ( $post_id ) {
$is_converted = get_post_meta( $post_id, '_seedprod_converted_from_legacy', true );
if ( '1' === $is_converted || 1 === $is_converted ) {
// Enqueue WordPress block styles for converted pages
wp_enqueue_style( 'wp-block-library' );
wp_enqueue_style( 'wp-block-library-theme' );
// Print the block styles
wp_print_styles( array( 'wp-block-library', 'wp-block-library-theme' ) );
}
}
}
?>
header_scripts ) ) {
echo $settings->header_scripts; // phpcs:ignore
}
?>
body_scripts ) ) {
echo $settings->body_scripts; // phpcs:ignore
}
?>
ID ) ? $page->ID : ( ! empty( $post->ID ) ? $post->ID : 0 );
$is_converted = get_post_meta( $post_id, '_seedprod_converted_from_legacy', true );
if ( '1' === $is_converted || 1 === $is_converted ) {
$content = do_blocks( $content );
// Output WordPress-generated layout CSS (for layout.contentSize support)
// When do_blocks() processes blocks with layout attributes, WordPress stores
// the generated CSS in the Style Engine. Retrieve and output it inline.
$layout_styles = wp_style_engine_get_stylesheet_from_context( 'block-supports', array( 'prettify' => false ) );
if ( ! empty( $layout_styles ) ) {
echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
}
$content = do_shortcode( $content );
if ( empty( $content ) ) {
$empty_content = __( 'The content for this page is empty or has not been saved. Please edit this page and "Save" the contents in the builder.', 'coming-soon' );
$content = '
' . esc_html( $empty_content ) . ' ';
}
echo apply_filters( 'seedprod_lpage_content', $content ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
// TODO: Add a way to run content in the loop
// if ( have_posts() ) {
// while ( have_posts() ) {
// the_post();
// $content = do_shortcode( $content );
// echo apply_filters( 'seedprod_lpage_content', $content );
// } // end while
// } // end if
?>
show_powered_by_link ) ) {
$aff_link = 'https://www.seedprod.com/?utm_source=seedprod-plugin&utm_medium=seedprod-frontend&utm_campaign=powered-by-link';
if ( ! empty( $settings->affiliate_url ) ) {
$aff_link = $settings->affiliate_url;
}
?>
no_conflict_mode ) ) {
wp_footer();
}
?>
footer_scripts ) ) {
echo $settings->footer_scripts; // phpcs:ignore
}
if ( true === $include_beforeaftertoggle_sdk ) {
?>