[vidbg container="body" type="self-host" mp4="#" webm="#" vimeo_url="#" youtube_url="#" youtube_start="0" youtube_end="null" poster="#" end_frame_poster="false" loop="true" overlay="false" overlay_color="#000" overlay_alpha="0.3" frontend_play_button="false" frontend_volume_button="false" player_options="JSON_STRING" frontend_container=".some-class"]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add a fixed surcharge to your cart and checkout based on array of | |
* product ids in cart. | |
* | |
* @author Blake Wilson | |
* @link https://gist.github.com/blakewilson/1d1be3ed68526dc12a5cb28d44cb6316 | |
* @license MIT | |
* @license https://opensource.org/licenses/MIT | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Define Video Background Pro's post types | |
* | |
* @since 1.1.2 | |
* @author Push Labs | |
* @param array $post_types | |
* @return array Array of post types Video Background Pro should use | |
*/ | |
function themeprefix_vidbgpro_post_types( $post_types ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Define Video Background Pro's metabox priority | |
* | |
* @since 2.0.0 | |
* @author Push Labs | |
* @uses apply_filters() | |
* @return string The location of the metabox used by WordPress | |
* @link https://developer.wordpress.org/reference/functions/add_meta_box/ | |
*/ |
[vidbg container=”body” mp4=”#” webm=”#” poster=”#” muted=”true” loop=”true” overlay=”false” overlay_color=”#000″ overlay_alpha=”0.3″]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Define Video Background's post types | |
* | |
* @since 2.5.7 | |
* @author Push Labs | |
* @param array $post_types | |
* @return array Array of post types Video Background should use | |
*/ | |
function themeprefix_vidbg_post_types( $post_types ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Define Video Background Pro's Default Mobile Playback Behavior | |
* | |
* @since 2.2.0 | |
* @author Push Labs | |
* @param String $default Please note that $default is a STRING, not BOOLEAN. | |
* @return String $default The default behavior. | |
*/ | |
function themeprefix_vidbgpro_play_on_mobile_default( $default ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Define Video Background Pro's Script Dependencies | |
* | |
* @since 2.2.0 | |
* @author Push Labs | |
* @param Array $deps The dependencies for the Video Background Pro plugin | |
* @return Array $deps | |
*/ | |
function themeprefix_vidbgpro_deps( $deps ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Disable Video Background Pro's Visual Composer Integration | |
* | |
* @since 2.2.0 | |
* @author Push Labs | |
* @param Boolean $is_enabled Boolean decisison to enable/disable the integration | |
* @return Array $is_enabled | |
*/ | |
function themeprefix_vidbgpro_disable_vc( $is_enabled ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Play the video background | |
$( '#container' ).data( 'vidbgpro' ).playVidbg(); | |
// Pause the video background | |
$( '#container' ).data( 'vidbgpro' ).pauseVidbg(); | |
// Mute the video background | |
$( '#container' ).data( 'vidbgpro' ).muteVidbg(); | |
// UnMute the video background |
OlderNewer