Plugin Directory

Changeset 2149600


Ignore:
Timestamp:
09/02/2019 01:41:23 PM (7 years ago)
Author:
2plus2is4
Message:
  • Twitter Blocker Integrated [premium]
  • Stability enhanced
  • Empty title and thumbnail if nothing provided
Location:
simple-youtube-gdpr
Files:
221 added
9 edited

Legend:

Unmodified
Added
Removed
  • simple-youtube-gdpr/trunk/README.txt

    r2148127 r2149600  
    55Requires at least: 5.0.1
    66Tested up to: 5.2.2
    7 Stable tag: 1.0
     7Stable tag: 1.1
    88Requires PHP: 5.2.4
    99License: GPLv2 or later
     
    1414== Description ==
    1515
     16> Install, activate, and done!
     17> No content changes required.
     18
    1619WordPress YouTube security Plugin automatically detects and blocks Iframes from YouTube. Only with a click by the visitor the content is loaded.
    1720
    1821Plugin automatically saves YouTube thumbnails locally without the visitor's IP address being transmitted to the video platform.
    1922
    20 ![Plays Vimeo Video](https://alexeyvolkov.com/images/syg.gif)
     23**Solves your problems**
    2124
    22 Features:
     25*   Blocking Google/YouTube cookies
     26*   100% Plug-n-play functionality
     27*   No configuration required (it just works)
     28*   Allows you to keep YouTube videos under GDPR law
     29*   Scans Embedded content and blocks it
     30*   Works silently behind the scenes to protect your site visitors
     31*   Regularly updated and “future proof”
    2332
    24 *   Google gets NO cookies
    25 *   No content changes required
    26 *   Allows you to keep YouTube videos under GDPR law
     33**Privacy**
     34
     35This plugin does not collect or store any user data. It does not set any cookies. It connects to content holders third-party locations on the server side - no affect on users. Thus, this plugin does not affect user privacy in any way.
     36
     37> Works perfectly with Gutenberg Block Editor
    2738
    2839== Want more? ==
     
    6273No.
    6374
     75= Does plugin make changes to my .htaccess file? =
     76
     77Absolutely not. Unlike other security/firewall plugins, YouTube security Plugin makes no changes to any .htaccess file.
     78
    6479= Can I change CSS styles? =
    6580
     
    81961. Apply scripts so that if user clicks iframe appears
    8297
     98= Got a question? =
     99
     100Send any questions or feedback via my [contact site](https://alexeyvolkov.com/).
     101
    83102== Screenshots ==
    84103
     
    86105
    871061. YouTube video is replaced with a static preview image and a play button.
     1071. Twitter content is blocked and will be loaded with a button.
    88108
    89109== Changelog ==
     110
     111= 1.1 =
     112* Empty title and thumbnail if nothing provided
    90113
    91114= 1.0 =
     
    109132== Upgrade Notice ==
    110133
     134= 1.1 =
     135* Twitter Blocker Integrated [premium]
     136* Stability enhanced
     137
    111138= 1.0 =
    112139* Instagram Blocker Integrated [premium]
  • simple-youtube-gdpr/trunk/public/class-simple-youtube-gdpr-public.php

    r2148127 r2149600  
    161161         * @var $provider_name (optional) The url of the resource provider.
    162162         * @var $thumbnail_url (optional) A URL to a thumbnail image representing the resource.
     163         * @var $attr_more (optional) Additional attributes.
    163164         * @var $provider_privacy_url (required) A URL to a privacy policy.
    164165         */
    165         $title = filter_var( $json_content['title'], FILTER_SANITIZE_STRING );
     166        $title = ( isset( $json_content['title'] ) ? filter_var( $json_content['title'], FILTER_SANITIZE_STRING ) : '' );
    166167        $provider_name = filter_var( $json_content['provider_name'], FILTER_SANITIZE_STRING );
    167         $thumbnail_url = $this->get_thumbnail_url( filter_var( $json_content['thumbnail_url'], FILTER_SANITIZE_URL ) );
     168        $thumbnail_url = ( isset( $json_content['thumbnail_url'] ) ? $this->get_thumbnail_url( filter_var( $json_content['thumbnail_url'], FILTER_SANITIZE_URL ) ) : '' );
     169        $attr_more = array(
     170            'youtube' => 'min-width:' . filter_var( $json_content['width'], FILTER_SANITIZE_NUMBER_INT ) . 'px;' . 'min-height:' . filter_var( $json_content['height'], FILTER_SANITIZE_NUMBER_INT ) . 'px;',
     171        );
    168172        $provider_privacy_url = array(
    169173            'youtube' => __( 'https://policies.google.com/privacy?hl=en', 'simple-youtube-gdpr' ),
    170174        );
    171         $template = '<div class="syg__box syg__box-' . $type . '" style="background-image: url(\'' . $thumbnail_url . '\');" data-syg-url="' . $api_endpoint[$type] . $url . '">' . '<button class="syg__box__text__btn" type="button" title="' . $title . '">' . esc_html( __( 'Load element', 'simple-youtube-gdpr' ) ) . '</button>' . '<div class="syg__box__text">' . '<p>' . sprintf(
     175        $template = '<div class="syg__box syg__box-' . $type . '" style="background-image: url(\'' . $thumbnail_url . '\');' . $attr_more[$type] . '" data-syg-url="' . $api_endpoint[$type] . $url . '">' . '<button class="syg__box__text__btn" type="button" title="' . $title . '">' . esc_html( __( 'Load element', 'simple-youtube-gdpr' ) ) . '</button>' . '<div class="syg__box__text">' . '<p>' . sprintf(
    172176            __( 'By loading this element, you agree to <a href="%s" target="_blank" rel="nofollow noreferrer noopener" referrerpolicy="no-referrer" title="%s">%s\'s privacy policy</a>.', 'simple-youtube-gdpr' ),
    173177            $provider_privacy_url[$type],
  • simple-youtube-gdpr/trunk/public/css/simple-youtube-gdpr-public.css

    r2148127 r2149600  
    1010    overflow: hidden;
    1111    max-width: 100%;
    12     min-width: 20em;
     12    min-width: 13em;
    1313    height: auto;
    14     min-height: 12em;
     14    min-height: 8em;
    1515    background-color: #eaeaea;
    1616
     
    2121}
    2222
    23 .syg__box-youtube, .syg__box-vimeo, .syg__box-ted {
     23.syg__box-youtube, .syg__box-vimeo, .syg__box-ted, .syg__box-dailymotion {
    2424    position: absolute;
    2525    top: 0;
     
    7373
    7474.syg__box__text__btn:hover {
    75     background: #fff;
     75    background-color: rgba(255, 255, 255, .8);
    7676    color: red;
    7777    cursor: pointer
  • simple-youtube-gdpr/trunk/simple-youtube-gdpr.php

    r2148127 r2149600  
    1717 * Plugin URI:        https://alexeyvolkov.com/blog/simple-youtube-gdpr
    1818 * Description:       Integrate YouTube and Vimeo videos securely!
    19  * Version:           1.0
     19 * Version:           1.1
    2020 * Author:            Alexey Volkov
    2121 * Author URI:        https://alexeyvolkov.com/
     
    119119     * Rename this for your plugin and update it as you release new versions.
    120120     */
    121     define( 'SIMPLE_YOUTUBE_GDPR_VERSION', '1.0' );
     121    define( 'SIMPLE_YOUTUBE_GDPR_VERSION', '1.1' );
    122122    /**
    123123     * The code that runs during plugin activation.
Note: See TracChangeset for help on using the changeset viewer.