WordPress.org

Plugin Directory

Changeset 1469797


Ignore:
Timestamp:
08/08/16 08:25:45 (12 months ago)
Author:
blakedotvegas
Message:

Conditionally enqueue vidbg script

Location:
video-background/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • video-background/trunk/admin_premium_notice.php

    r1442820 r1469797  
    99function vidbg_premium_notice() { 
    1010    $class = 'notice notice-success vidbg-premium-notice is-dismissible'; 
    11     $message = __( 'Want more options like YouTube video backgrounds and frontend play/volume buttons in Video Background? <a href="http://pushlabs.co/video-background-pro" rel="nofollow" target="_blank">Check out the new Video Background Pro!</a>', 'video-background' ); 
     11    $message = __( 'Digital agencies and web developers rejoice! Video Background Pro now offers multi-site licenses! <a href="http://pushlabs.co/video-background-pro" rel="nofollow" target="_blank">Check out Video Background Pro!</a>', 'video-background' ); 
    1212    $is_dismissed = get_option( 'vidbgpro-notice-dismissed' ); 
    1313 
  • video-background/trunk/candide-vidbg.php

    r1456660 r1469797  
    55Description: jQuery WordPress plugin to easily assign a video background to any element. Awesome. 
    66Author: Blake Wilson 
    7 Version: 2.5.7 
     7Version: 2.5.8 
    88Author URI: http://blakewilson.me 
    99Donate Link: http://paypal.me/blakewilsonme 
     
    8484 */ 
    8585function vidbg_jquery() { 
    86     wp_enqueue_script('vidbg-video-background', plugins_url('/js/dist/vidbg.min.js', __FILE__), array('jquery'), '1.1', true); 
    87 } 
    88 add_action('wp_footer', 'vidbg_jquery' ); 
     86    wp_register_script( 'vidbg-video-background', plugins_url('/js/dist/vidbg.min.js', __FILE__), array('jquery'), '1.1', true); 
     87} 
     88add_action( 'wp_enqueue_scripts', 'vidbg_jquery' ); 
    8989 
    9090/** 
     
    331331        if( !empty( $container_field ) ): ?> 
    332332        <?php 
     333 
     334        /** 
     335         * Enqueue the vidbg script conditionally 
     336         */ 
     337        wp_enqueue_script( 'vidbg-video-background' ); 
     338 
    333339        if( $unmute_field == 'on' ) { 
    334340            $boolean_mute = 'false'; 
     
    408414        ) 
    409415    ); 
     416 
     417        /** 
     418         * Enqueue vidbg conditionally 
     419         */ 
     420        wp_enqueue_script( 'vidbg-video-background' ); 
    410421 
    411422        // Put It Together 
  • video-background/trunk/languages/video-background.pot

    r1456660 r1469797  
    44"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 
    55"Project-Id-Version: Video Background\n" 
    6 "POT-Creation-Date: 2016-07-18 16:58-0700\n" 
     6"POT-Creation-Date: 2016-08-08 01:20-0700\n" 
    77"PO-Revision-Date: 2016-03-30 22:31-0700\n" 
    88"Last-Translator: \n" 
     
    2323#: admin_premium_notice.php:11 
    2424msgid "" 
    25 "Want more options like YouTube video backgrounds and frontend play/volume " 
    26 "buttons in Video Background? <a href=\"http://pushlabs.co/video-background-" 
    27 "pro\" rel=\"nofollow\" target=\"_blank\">Check out the new Video Background " 
    28 "Pro!</a>" 
     25"Digital agencies and web developers rejoice! Video Background Pro now offers " 
     26"multi-site licenses! <a href=\"http://pushlabs.co/video-background-pro\" rel=" 
     27"\"nofollow\" target=\"_blank\">Check out Video Background Pro!</a>" 
    2928msgstr "" 
    3029 
     
    202201msgstr "" 
    203202 
    204 #: candide-vidbg.php:480 candide-vidbg.php:487 
     203#: candide-vidbg.php:491 candide-vidbg.php:498 
    205204msgid "Hide Muted Pro Fields" 
    206205msgstr "" 
    207206 
    208 #: candide-vidbg.php:525 
     207#: candide-vidbg.php:536 
    209208msgid "" 
    210209"Okay, Okay, some of you don't want/need Video Background Pro. I get that. " 
     
    212211msgstr "" 
    213212 
    214 #: candide-vidbg.php:540 
     213#: candide-vidbg.php:551 
    215214msgid "<h2>Video Background</h2>" 
    216215msgstr "" 
    217216 
    218 #: candide-vidbg.php:541 
     217#: candide-vidbg.php:552 
    219218msgid "" 
    220219"<p>Video background makes it easy to add responsive, great looking video " 
     
    222221msgstr "" 
    223222 
    224 #: candide-vidbg.php:542 
     223#: candide-vidbg.php:553 
    225224msgid "<h3>Getting Started</h3>" 
    226225msgstr "" 
    227226 
    228 #: candide-vidbg.php:543 
     227#: candide-vidbg.php:554 
    229228msgid "" 
    230229"<p>To implement Video Background on your website, please follow the " 
     
    232231msgstr "" 
    233232 
    234 #: candide-vidbg.php:545 
     233#: candide-vidbg.php:556 
    235234msgid "" 
    236235"<li>Edit the page or post you would like the video background to appear on.</" 
     
    238237msgstr "" 
    239238 
    240 #: candide-vidbg.php:546 
     239#: candide-vidbg.php:557 
    241240msgid "" 
    242241"<li>Below the content editor, you should see a metabox titled <b>Video " 
     
    245244msgstr "" 
    246245 
    247 #: candide-vidbg.php:547 
     246#: candide-vidbg.php:558 
    248247msgid "<li>Enjoy.</li>" 
    249248msgstr "" 
    250249 
    251 #: candide-vidbg.php:549 
     250#: candide-vidbg.php:560 
    252251msgid "" 
    253252"<p>Alternatively, you can use the shortcode by placing the following code at " 
     
    256255msgstr "" 
    257256 
    258 #: candide-vidbg.php:551 
     257#: candide-vidbg.php:562 
    259258msgid "" 
    260259"<a href=\"http://blakewilson.me/projects/video-background/\" class=\"button" 
     
    262261msgstr "" 
    263262 
    264 #: candide-vidbg.php:552 
     263#: candide-vidbg.php:563 
    265264msgid "<h3>Questions?</h3>" 
    266265msgstr "" 
    267266 
    268 #: candide-vidbg.php:553 
     267#: candide-vidbg.php:564 
    269268msgid "" 
    270269"<p>If you have any feedback/questions regarding the plugin you can reach me " 
     
    273272msgstr "" 
    274273 
    275 #: candide-vidbg.php:554 
     274#: candide-vidbg.php:565 
    276275msgid "<h3>Supporting the Plugin</h3>" 
    277276msgstr "" 
    278277 
    279 #: candide-vidbg.php:555 
     278#: candide-vidbg.php:566 
    280279msgid "" 
    281280"<p>If you like Video Background and want to show your support, consider " 
     
    285284msgstr "" 
    286285 
    287 #: candide-vidbg.php:557 
     286#: candide-vidbg.php:568 
    288287msgid "<li>YouTube Integration</li>" 
    289288msgstr "" 
    290289 
    291 #: candide-vidbg.php:558 
     290#: candide-vidbg.php:569 
    292291msgid "<li>Visual Composer Integration</li>" 
    293292msgstr "" 
    294293 
    295 #: candide-vidbg.php:559 
     294#: candide-vidbg.php:570 
    296295msgid "<li>Page Builder by SiteOrigin Integration</li>" 
    297296msgstr "" 
    298297 
    299 #: candide-vidbg.php:560 
     298#: candide-vidbg.php:571 
    300299msgid "<li>Frontend Play/Pause Button Option</li>" 
    301300msgstr "" 
    302301 
    303 #: candide-vidbg.php:561 
     302#: candide-vidbg.php:572 
    304303msgid "<li>Frontend Volume Button Option</li>" 
    305304msgstr "" 
    306305 
    307 #: candide-vidbg.php:562 
     306#: candide-vidbg.php:573 
    308307msgid "<li>Overlay Image Textures</li>" 
    309308msgstr "" 
    310309 
    311 #: candide-vidbg.php:563 
     310#: candide-vidbg.php:574 
    312311msgid "<li>Extensive Documentation</li>" 
    313312msgstr "" 
    314313 
    315 #: candide-vidbg.php:564 
     314#: candide-vidbg.php:575 
    316315msgid "<li>Video Tutorials</li>" 
    317316msgstr "" 
    318317 
    319 #: candide-vidbg.php:565 
     318#: candide-vidbg.php:576 
    320319msgid "<li>And Much More!</li>" 
    321320msgstr "" 
    322321 
    323 #: candide-vidbg.php:567 
     322#: candide-vidbg.php:578 
    324323msgid "" 
    325324"<a href=\"http://pushlabs.co/video-background-pro\" class=\"button button-" 
     
    328327msgstr "" 
    329328 
    330 #: candide-vidbg.php:568 
     329#: candide-vidbg.php:579 
    331330msgid "" 
    332331" <a href=\"https://twitter.com/intent/follow?screen_name=blakewilsonme\" " 
     
    335334msgstr "" 
    336335 
    337 #: candide-vidbg.php:585 
     336#: candide-vidbg.php:596 
    338337msgid "<a href=\"options-general.php?page=html5-vidbg\">Getting Started</a>" 
    339338msgstr "" 
  • video-background/trunk/readme.txt

    r1456660 r1469797  
    44Requires at least: 3.8.0 
    55Tested up to: 4.5.3 
    6 Stable tag: 2.5.7 
     6Stable tag: 2.5.8 
    77License: GPLv2 or later 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    8585 
    8686== Changelog == 
     87 
     88= 2.5.8 = 
     89* Fixed: Conditionally enqueue vidbg script 
    8790 
    8891= 2.5.7 = 
Note: See TracChangeset for help on using the changeset viewer.