Correct embed code
This commit is contained in:
parent
d03982bea1
commit
ec9a380143
|
@ -39,123 +39,123 @@ class WC_Admin_Help {
|
|||
$video_map = array(
|
||||
'wc-settings' => array(
|
||||
'title' => __( 'General Settings', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/mz2l10u5f6.jsonp?',
|
||||
'id' => 'mz2l10u5f6',
|
||||
),
|
||||
'wc-settings-general' => array(
|
||||
'title' => __( 'General Settings', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/mz2l10u5f6.jsonp?',
|
||||
'id' => 'mz2l10u5f6',
|
||||
),
|
||||
'wc-settings-products' => array(
|
||||
'title' => __( 'Product Settings', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/lolkan4fxf.jsonp?',
|
||||
'id' => 'lolkan4fxf',
|
||||
),
|
||||
'wc-settings-tax' => array(
|
||||
'title' => __( 'Tax Settings', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/qp1v19dwrh.jsonp?',
|
||||
'id' => 'qp1v19dwrh',
|
||||
),
|
||||
'wc-settings-tax-standard' => array(
|
||||
'title' => __( 'Tax Rate Example', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/2p903vptwa.jsonp?',
|
||||
'id' => '2p903vptwa',
|
||||
),
|
||||
'wc-settings-tax-reduced-rate' => array(
|
||||
'title' => __( 'Tax Rate Example', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/2p903vptwa.jsonp?',
|
||||
'id' => '2p903vptwa',
|
||||
),
|
||||
'wc-settings-tax-zero-rate' => array(
|
||||
'title' => __( 'Tax Rate Example', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/2p903vptwa.jsonp?',
|
||||
'id' => '2p903vptwa',
|
||||
),
|
||||
'wc-settings-shipping' => array(
|
||||
'title' => __( 'Shipping Zones', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/95yiocro6p.jsonp?',
|
||||
'id' => '95yiocro6p',
|
||||
),
|
||||
'wc-settings-shipping-options' => array(
|
||||
'title' => __( 'Shipping Options', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/9c9008dxnr.jsonp?',
|
||||
'id' => '9c9008dxnr',
|
||||
),
|
||||
'wc-settings-shipping-classes' => array(
|
||||
'title' => __( 'Shipping Classes', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/tpqg17aq99.jsonp?',
|
||||
'id' => 'tpqg17aq99',
|
||||
),
|
||||
'wc-settings-checkout' => array(
|
||||
'title' => __( 'Checkout Settings', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/65yjv96z51.jsonp?',
|
||||
'id' => '65yjv96z51',
|
||||
),
|
||||
'wc-settings-checkout-bacs' => array(
|
||||
'title' => __( 'Bank Transfer (BACS) Payment Method', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/dh4piy3sek.jsonp?',
|
||||
'id' => 'dh4piy3sek',
|
||||
),
|
||||
'wc-settings-checkout-cheque' => array(
|
||||
'title' => __( 'Check Payment Method', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/u2m2kcakea.jsonp?',
|
||||
'id' => 'u2m2kcakea',
|
||||
),
|
||||
'wc-settings-checkout-cod' => array(
|
||||
'title' => __( 'Cash on Delivery (COD) Payment Method', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/8hyli8wu5f.jsonp?',
|
||||
'id' => '8hyli8wu5f',
|
||||
),
|
||||
'wc-settings-checkout-paypal' => array(
|
||||
'title' => __( 'PayPal Standard Method', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/rbl7e7l4k2.jsonp?',
|
||||
'id' => 'rbl7e7l4k2',
|
||||
),
|
||||
'wc-settings-checkout-paypalbraintree_cards' => array(
|
||||
'title' => __( 'PayPal by Braintree Payment Method', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/oyksirgn40.jsonp?',
|
||||
'id' => 'oyksirgn40',
|
||||
),
|
||||
'wc-settings-checkout-stripe' => array(
|
||||
'title' => __( 'Stripe Payment Method', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/mf975hx5de.jsonp?',
|
||||
'id' => 'mf975hx5de',
|
||||
),
|
||||
'wc-settings-account' => array(
|
||||
'title' => __( 'Account Settings', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/35mazq7il2.jsonp?',
|
||||
'id' => '35mazq7il2',
|
||||
),
|
||||
'wc-settings-email' => array(
|
||||
'title' => __( 'Email Settings', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/svcaftq4xv.jsonp?',
|
||||
'id' => 'svcaftq4xv',
|
||||
),
|
||||
'wc-settings-api' => array(
|
||||
'title' => __( 'API Settings', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/1q0ny74vvq.jsonp?',
|
||||
'id' => '1q0ny74vvq',
|
||||
),
|
||||
'product' => array(
|
||||
'title' => __( 'Creating Products', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/fw0477t6wr.jsonp?',
|
||||
'id' => 'fw0477t6wr',
|
||||
),
|
||||
'edit-product_cat' => array(
|
||||
'title' => __( 'Product Categories', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/f0j5gzqigg.jsonp?',
|
||||
'id' => 'f0j5gzqigg',
|
||||
),
|
||||
'edit-product_tag' => array(
|
||||
'title' => __( 'Product Tags', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/f0j5gzqigg.jsonp?',
|
||||
'id' => 'f0j5gzqigg',
|
||||
),
|
||||
'product_attributes' => array(
|
||||
'title' => __( 'Product Attributes', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/f0j5gzqigg.jsonp?',
|
||||
'id' => 'f0j5gzqigg',
|
||||
),
|
||||
'wc-status' => array(
|
||||
'title' => __( 'System Status', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/xdn733nnhi.jsonp?',
|
||||
'id' => 'xdn733nnhi',
|
||||
),
|
||||
'wc-reports' => array(
|
||||
'title' => __( 'Reports', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/6aasex0w99.jsonp?',
|
||||
'id' => '6aasex0w99',
|
||||
),
|
||||
'edit-shop_coupon' => array(
|
||||
'title' => __( 'Coupons', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/gupd4h8sit.jsonp?',
|
||||
'id' => 'gupd4h8sit',
|
||||
),
|
||||
'shop_coupon' => array(
|
||||
'title' => __( 'Coupons', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/gupd4h8sit.jsonp?',
|
||||
'id' => 'gupd4h8sit',
|
||||
),
|
||||
'edit-shop_order' => array(
|
||||
'title' => __( 'Managing Orders', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/n8n0sa8hee.jsonp?',
|
||||
'id' => 'n8n0sa8hee',
|
||||
),
|
||||
'shop_order' => array(
|
||||
'title' => __( 'Managing Orders', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/n8n0sa8hee.jsonp?',
|
||||
'id' => 'n8n0sa8hee',
|
||||
),
|
||||
);
|
||||
|
||||
|
@ -180,11 +180,9 @@ class WC_Admin_Help {
|
|||
'title' => __( 'Guided Tour', 'woocommerce' ),
|
||||
'content' =>
|
||||
'<h2><a href="https://docs.woocommerce.com/document/woocommerce-guided-tour-videos/?utm_source=helptab&utm_medium=product&utm_content=videos&utm_campaign=woocommerceplugin">' . __( 'Guided Tour', 'woocommerce' ) . '</a> – ' . esc_html( $video_map[ $video_key ]['title'] ) . '</h2>' .
|
||||
'<div class="wistia_responsive_padding" style="padding:56.25% 0 0 0;position:relative;">
|
||||
<div class="wistia_responsive_wrapper" style="height:100%;left:0;position:absolute;top:0;width:100%;">
|
||||
<iframe src="' . esc_url( $video_map[ $video_key ]['url'] ) . 'seo=false&videoFoam=true" title="Wistia video player" allowtransparency="true" frameborder="0" scrolling="no" class="wistia_embed" name="wistia_embed" allowfullscreen mozallowfullscreen webkitallowfullscreen oallowfullscreen msallowfullscreen width="100%" height="100%"></iframe>
|
||||
</div></div>
|
||||
<script src="//fast.wistia.net/assets/external/E-v1.js" async></script>',
|
||||
'<script src="//fast.wistia.net/assets/external/E-v1.js" aync></script>
|
||||
<div class="wistia_embed wistia_async_' . esc_attr( $video_map[ $video_key ]['id'] ) . ' videoFoam=true seo=false" style="width:640px;height:360px;"> </div>
|
||||
',
|
||||
) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue