Plugin Directory

Changeset 1456161


Ignore:
Timestamp:
07/18/2016 02:22:05 AM (10 years ago)
Author:
willyxd
Message:

tagging version 1.4.3

Location:
simple-background-video
Files:
8 edited
2 copied

Legend:

Unmodified
Added
Removed
  • simple-background-video/tags/1.4.3/css/add_video.css

    r1379674 r1456161  
    7676   
    7777}
     78
     79
     80body.movZD .video-home-ZD,
     81body.movZD .title_video_ZD {
     82    display: none;
     83}
     84body.movZD .title_video_ZD.show {
     85    display: inherit;
     86}
     87body.movZD .image_mb {
     88    display: none;
     89}
     90body.movZD .image_mb.show {
     91    display: inherit;
     92}
  • simple-background-video/tags/1.4.3/js/add_video.js

    r1443312 r1456161  
    11
    22jQuery(document).ready(function($) {
     3
     4
     5    if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
     6        $( 'body' ).addClass( 'movZD' );
     7    }
    38
    49    if ($(window).height() > ($(window).width() * 0.562 )) {
  • simple-background-video/tags/1.4.3/readme.txt

    r1443312 r1456161  
    55Requires at least: 3.0.1
    66Tested up to: 4.5.3
    7 Stable tag: 1.4.1
     7Stable tag: 1.4.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5050== Changelog ==
    5151
     52= 1.4.3 =
     53* Html ready in text input
     54
    5255= 1.4.1 =
    5356* Bug fix: Play when resize
  • simple-background-video/tags/1.4.3/simple_background_video_zd.php

    r1443312 r1456161  
    44Plugin URI: http://www.zuhaitz-design.com
    55Description: Put a title and a responsive background video as a header in any page. Your video could be from Youtube, Vimeo or MP4!
    6 Version: 1.4.1
     6Version: 1.4.3
    77Author: Willy Muñoz
    88Author URI: http://www.zuhaitz-design.com
     
    263263    $options['video_mp4'] = ( ! empty( $options['video_mp4'] ) ) ? sanitize_text_field( $options['video_mp4'] ) : '';
    264264    $options['title_select'] = ( ! empty( $options['title_select'] ) ) ? sanitize_text_field( $options['title_select'] ) : '';
    265     $options['title_input'] = ( ! empty( $options['title_input'] ) ) ? sanitize_text_field( $options['title_input'] ) : '';
     265    $options['title_input'] = ( ! empty( $options['title_input'] ) ) ? esc_html( $options['title_input'] ) : '';
    266266    $options['color_title'] = ( ! empty( $options['color_title'] ) ) ? sanitize_text_field( $options['color_title'] ) : '';
    267267    $options['image_sn'] = ( ! empty( $options['image_sn'] ) ) ? sanitize_text_field( $options['image_sn'] ) : '';
     
    277277
    278278    function load_custom_wp_admin_style() {
    279             wp_register_style( 'custom_wp_admin_css', plugin_dir_url( __FILE__ ) . 'css/video-artist.css', false, '1.4.1' );
     279            wp_register_style( 'custom_wp_admin_css', plugin_dir_url( __FILE__ ) . 'css/video-artist.css', false, '1.4.3' );
    280280            wp_enqueue_style( 'custom_wp_admin_css' );
    281             wp_register_script( 'video_artist_js', plugin_dir_url( __FILE__ ) . 'js/video-artist.js', false, '1.4.1' );
     281            wp_register_script( 'video_artist_js', plugin_dir_url( __FILE__ ) . 'js/video-artist.js', false, '1.4.3' );
    282282            wp_enqueue_script( 'video_artist_js' );
    283             wp_register_script( 'video_media_js', plugin_dir_url( __FILE__ ) . 'js/video-media.js', false, '1.4.1' );
     283            wp_register_script( 'video_media_js', plugin_dir_url( __FILE__ ) . 'js/video-media.js', false, '1.4.3' );
    284284            wp_enqueue_script( 'video_media_js' );
    285285            wp_enqueue_media(); // 2 horas
     
    525525    if (!empty($video_web) || !empty($video_mp4)) {
    526526
    527         wp_register_style( 'add_video_css', plugin_dir_url( __FILE__ ) . 'css/add_video.css', false, '1.4.1' );
     527        wp_register_style( 'add_video_css', plugin_dir_url( __FILE__ ) . 'css/add_video.css', false, '1.4.3' );
    528528        wp_enqueue_style( 'add_video_css' );
    529         wp_register_script( 'add_video_js', plugin_dir_url( __FILE__ ) . 'js/add_video.js', false, '1.4.1' );
     529        wp_register_script( 'add_video_js', plugin_dir_url( __FILE__ ) . 'js/add_video.js', false, '1.4.3' );
    530530        wp_enqueue_script( 'add_video_js' );
    531531
     
    556556        }
    557557        if ($title_select=="custom-title") { ?>
    558             <h1 class="title_video_ZD <?php if ( $image_sn=="yes" && !empty($image_mob) ) { echo "show"; } ?>" <?php if ( !empty($color_title) ){echo "style='color:" . $color_title . "'";}?>> <?php echo $custom_title_input; ?></h1>
     558            <h1 class="title_video_ZD <?php if ( $image_sn=="yes" && !empty($image_mob) ) { echo "show"; } ?>" <?php if ( !empty($color_title) ){echo "style='color:" . $color_title . "'";}?>> <?php echo html_entity_decode($custom_title_input);?></h1>
    559559        <?php
    560560        }
     
    621621    }
    622622    if ( !empty($_POST['custom-title-input']) ) {
    623         update_post_meta( $post_id, '_custom_title_input', sanitize_text_field( $_POST['custom-title-input'] ) );
     623        update_post_meta( $post_id, '_custom_title_input', esc_html( $_POST['custom-title-input'] ) );
    624624    }
    625625
  • simple-background-video/trunk/css/add_video.css

    r1379674 r1456161  
    7676   
    7777}
     78
     79
     80body.movZD .video-home-ZD,
     81body.movZD .title_video_ZD {
     82    display: none;
     83}
     84body.movZD .title_video_ZD.show {
     85    display: inherit;
     86}
     87body.movZD .image_mb {
     88    display: none;
     89}
     90body.movZD .image_mb.show {
     91    display: inherit;
     92}
  • simple-background-video/trunk/js/add_video.js

    r1443312 r1456161  
    11
    22jQuery(document).ready(function($) {
     3
     4
     5    if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
     6        $( 'body' ).addClass( 'movZD' );
     7    }
    38
    49    if ($(window).height() > ($(window).width() * 0.562 )) {
  • simple-background-video/trunk/readme.txt

    r1443312 r1456161  
    55Requires at least: 3.0.1
    66Tested up to: 4.5.3
    7 Stable tag: 1.4.1
     7Stable tag: 1.4.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5050== Changelog ==
    5151
     52= 1.4.3 =
     53* Html ready in text input
     54
    5255= 1.4.1 =
    5356* Bug fix: Play when resize
  • simple-background-video/trunk/simple_background_video_zd.php

    r1443312 r1456161  
    44Plugin URI: http://www.zuhaitz-design.com
    55Description: Put a title and a responsive background video as a header in any page. Your video could be from Youtube, Vimeo or MP4!
    6 Version: 1.4.1
     6Version: 1.4.3
    77Author: Willy Muñoz
    88Author URI: http://www.zuhaitz-design.com
     
    263263    $options['video_mp4'] = ( ! empty( $options['video_mp4'] ) ) ? sanitize_text_field( $options['video_mp4'] ) : '';
    264264    $options['title_select'] = ( ! empty( $options['title_select'] ) ) ? sanitize_text_field( $options['title_select'] ) : '';
    265     $options['title_input'] = ( ! empty( $options['title_input'] ) ) ? sanitize_text_field( $options['title_input'] ) : '';
     265    $options['title_input'] = ( ! empty( $options['title_input'] ) ) ? esc_html( $options['title_input'] ) : '';
    266266    $options['color_title'] = ( ! empty( $options['color_title'] ) ) ? sanitize_text_field( $options['color_title'] ) : '';
    267267    $options['image_sn'] = ( ! empty( $options['image_sn'] ) ) ? sanitize_text_field( $options['image_sn'] ) : '';
     
    277277
    278278    function load_custom_wp_admin_style() {
    279             wp_register_style( 'custom_wp_admin_css', plugin_dir_url( __FILE__ ) . 'css/video-artist.css', false, '1.4.1' );
     279            wp_register_style( 'custom_wp_admin_css', plugin_dir_url( __FILE__ ) . 'css/video-artist.css', false, '1.4.3' );
    280280            wp_enqueue_style( 'custom_wp_admin_css' );
    281             wp_register_script( 'video_artist_js', plugin_dir_url( __FILE__ ) . 'js/video-artist.js', false, '1.4.1' );
     281            wp_register_script( 'video_artist_js', plugin_dir_url( __FILE__ ) . 'js/video-artist.js', false, '1.4.3' );
    282282            wp_enqueue_script( 'video_artist_js' );
    283             wp_register_script( 'video_media_js', plugin_dir_url( __FILE__ ) . 'js/video-media.js', false, '1.4.1' );
     283            wp_register_script( 'video_media_js', plugin_dir_url( __FILE__ ) . 'js/video-media.js', false, '1.4.3' );
    284284            wp_enqueue_script( 'video_media_js' );
    285285            wp_enqueue_media(); // 2 horas
     
    525525    if (!empty($video_web) || !empty($video_mp4)) {
    526526
    527         wp_register_style( 'add_video_css', plugin_dir_url( __FILE__ ) . 'css/add_video.css', false, '1.4.1' );
     527        wp_register_style( 'add_video_css', plugin_dir_url( __FILE__ ) . 'css/add_video.css', false, '1.4.3' );
    528528        wp_enqueue_style( 'add_video_css' );
    529         wp_register_script( 'add_video_js', plugin_dir_url( __FILE__ ) . 'js/add_video.js', false, '1.4.1' );
     529        wp_register_script( 'add_video_js', plugin_dir_url( __FILE__ ) . 'js/add_video.js', false, '1.4.3' );
    530530        wp_enqueue_script( 'add_video_js' );
    531531
     
    556556        }
    557557        if ($title_select=="custom-title") { ?>
    558             <h1 class="title_video_ZD <?php if ( $image_sn=="yes" && !empty($image_mob) ) { echo "show"; } ?>" <?php if ( !empty($color_title) ){echo "style='color:" . $color_title . "'";}?>> <?php echo $custom_title_input; ?></h1>
     558            <h1 class="title_video_ZD <?php if ( $image_sn=="yes" && !empty($image_mob) ) { echo "show"; } ?>" <?php if ( !empty($color_title) ){echo "style='color:" . $color_title . "'";}?>> <?php echo html_entity_decode($custom_title_input);?></h1>
    559559        <?php
    560560        }
     
    621621    }
    622622    if ( !empty($_POST['custom-title-input']) ) {
    623         update_post_meta( $post_id, '_custom_title_input', sanitize_text_field( $_POST['custom-title-input'] ) );
     623        update_post_meta( $post_id, '_custom_title_input', esc_html( $_POST['custom-title-input'] ) );
    624624    }
    625625
Note: See TracChangeset for help on using the changeset viewer.