Plugin Directory

Changeset 2156751


Ignore:
Timestamp:
09/15/2019 11:46:09 AM (7 years ago)
Author:
2plus2is4
Message:
  • html5
  • aria
  • Accessibility provided
Location:
simple-youtube-gdpr
Files:
218 added
12 edited

Legend:

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

    r2149600 r2156751  
    44Tags: iframe, YouTube, GDPR, Vimeo, Flickr, Issuu, Instagram, TED, thumbnails, Consent, Compliance
    55Requires at least: 5.0.1
    6 Tested up to: 5.2.2
    7 Stable tag: 1.1
     6Tested up to: 5.2.3
     7Stable tag: 1.2
    88Requires PHP: 5.2.4
    99License: GPLv2 or later
     
    109109== Changelog ==
    110110
     111= 1.2 =
     112* html5
     113* aria
     114
    111115= 1.1 =
    112116* Empty title and thumbnail if nothing provided
     
    132136== Upgrade Notice ==
    133137
     138= 1.2 =
     139* Accessibility provided
     140
    134141= 1.1 =
    135142* Twitter Blocker Integrated [premium]
  • simple-youtube-gdpr/trunk/includes/class-simple-youtube-gdpr.php

    r2148127 r2156751  
    1313 * @subpackage Simple_Youtube_Gdpr/includes
    1414 */
    15 
    1615/**
    1716 * The core plugin class.
     
    2827 * @author     Alexey Volkov <[email protected]>
    2928 */
    30 class Simple_Youtube_Gdpr {
    31 
    32     /**
    33      * The loader that's responsible for maintaining and registering all hooks that power
    34      * the plugin.
    35      *
    36      * @since    0.6
    37      * @access   protected
    38      * @var      Simple_Youtube_Gdpr_Loader $loader Maintains and registers all hooks for the plugin.
    39      */
    40     protected $loader;
    41 
    42     /**
    43      * The unique identifier of this plugin.
    44      *
    45      * @since    0.6
    46      * @access   protected
    47      * @var      string $plugin_name The string used to uniquely identify this plugin.
    48      */
    49     protected $plugin_name;
    50 
    51     /**
    52      * The current version of the plugin.
    53      *
    54      * @since    0.6
    55      * @access   protected
    56      * @var      string $version The current version of the plugin.
    57      */
    58     protected $version;
    59 
    60     /**
    61      * Define the core functionality of the plugin.
    62      *
    63      * Set the plugin name and the plugin version that can be used throughout the plugin.
    64      * Load the dependencies, define the locale, and set the hooks for the admin area and
    65      * the public-facing side of the site.
    66      *
    67      * @since    0.6
    68      */
    69     public function __construct() {
    70         if ( defined( 'SIMPLE_YOUTUBE_GDPR_VERSION' ) ) {
    71             $this->version = SIMPLE_YOUTUBE_GDPR_VERSION;
    72         } else {
    73             $this->version = '0.7';
    74         }
    75         $this->plugin_name = 'simple-youtube-gdpr';
    76 
    77         $this->load_dependencies();
    78         $this->set_locale();
    79 //      $this->define_admin_hooks();
    80         $this->define_public_hooks();
    81 
    82     }
    83 
    84     /**
    85      * Load the required dependencies for this plugin.
    86      *
    87      * Include the following files that make up the plugin:
    88      *
    89      * - Simple_Youtube_Gdpr_Loader. Orchestrates the hooks of the plugin.
    90      * - Simple_Youtube_Gdpr_i18n. Defines internationalization functionality.
    91      * - Simple_Youtube_Gdpr_Admin. Defines all hooks for the admin area.
    92      * - Simple_Youtube_Gdpr_Public. Defines all hooks for the public side of the site.
    93      *
    94      * Create an instance of the loader which will be used to register the hooks
    95      * with WordPress.
    96      *
    97      * @since    0.6
    98      * @access   private
    99      */
    100     private function load_dependencies() {
    101 
    102         /**
    103          * The class responsible for orchestrating the actions and filters of the
    104          * core plugin.
    105          */
    106         require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-simple-youtube-gdpr-loader.php';
    107 
    108         /**
    109          * The class responsible for defining internationalization functionality
    110          * of the plugin.
    111          */
    112         require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-simple-youtube-gdpr-i18n.php';
    113 
    114         /**
    115          * The class responsible for defining all actions that occur in the admin area.
    116          */
    117 //      require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-simple-youtube-gdpr-admin.php';
    118 
    119         /**
    120          * The class responsible for defining all actions that occur in the public-facing
    121          * side of the site.
    122          */
    123         require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-simple-youtube-gdpr-public.php';
    124 
    125         $this->loader = new Simple_Youtube_Gdpr_Loader();
    126 
    127     }
    128 
    129     /**
    130      * Define the locale for this plugin for internationalization.
    131      *
    132      * Uses the Simple_Youtube_Gdpr_i18n class in order to set the domain and to register the hook
    133      * with WordPress.
    134      *
    135      * @since    0.6
    136      * @access   private
    137      */
    138     private function set_locale() {
    139 
    140         $plugin_i18n = new Simple_Youtube_Gdpr_i18n();
    141 
    142         $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
    143 
    144     }
    145 
    146     /**
    147      * Register all of the hooks related to the admin area functionality
    148      * of the plugin.
    149      *
    150      * @since    0.6
    151      * @access   private
    152      */
    153     private function define_admin_hooks() {
    154 
    155         $plugin_admin = new Simple_Youtube_Gdpr_Admin( $this->get_plugin_name(), $this->get_version() );
    156 
    157         $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
    158         $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
    159 
    160     }
    161 
    162     /**
    163      * Register all of the hooks related to the public-facing functionality
    164      * of the plugin.
    165      *
    166      * @since    0.6
    167      * @access   private
    168      */
    169     private function define_public_hooks() {
    170 
    171         $plugin_public = new Simple_Youtube_Gdpr_Public( $this->get_plugin_name(), $this->get_version() );
    172 
    173         $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
    174         $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
    175 
    176         $this->loader->add_filter( 'embed_oembed_html', $plugin_public, 'syg_embed_oembed_html', PHP_INT_MAX, 4 );
    177     }
    178 
    179 
    180     /**
    181      * Run the loader to execute all of the hooks with WordPress.
    182      *
    183      * @since    0.6
    184      */
    185     public function run() {
    186         $this->loader->run();
    187     }
    188 
    189     /**
    190      * The name of the plugin used to uniquely identify it within the context of
    191      * WordPress and to define internationalization functionality.
    192      *
    193      * @return    string    The name of the plugin.
    194      * @since     0.6
    195      */
    196     public function get_plugin_name() {
    197         return $this->plugin_name;
    198     }
    199 
    200     /**
    201      * The reference to the class that orchestrates the hooks with the plugin.
    202      *
    203      * @return    Simple_Youtube_Gdpr_Loader    Orchestrates the hooks of the plugin.
    204      * @since     0.6
    205      */
    206     public function get_loader() {
    207         return $this->loader;
    208     }
    209 
    210     /**
    211      * Retrieve the version number of the plugin.
    212      *
    213      * @return    string    The version number of the plugin.
    214      * @since     0.6
    215      */
    216     public function get_version() {
    217         return $this->version;
    218     }
     29class Simple_Youtube_Gdpr
     30{
     31    /**
     32     * The loader that's responsible for maintaining and registering all hooks that power
     33     * the plugin.
     34     *
     35     * @since    0.6
     36     * @access   protected
     37     * @var      Simple_Youtube_Gdpr_Loader $loader Maintains and registers all hooks for the plugin.
     38     */
     39    protected  $loader ;
     40    /**
     41     * The unique identifier of this plugin.
     42     *
     43     * @since    0.6
     44     * @access   protected
     45     * @var      string $plugin_name The string used to uniquely identify this plugin.
     46     */
     47    protected  $plugin_name ;
     48    /**
     49     * The current version of the plugin.
     50     *
     51     * @since    0.6
     52     * @access   protected
     53     * @var      string $version The current version of the plugin.
     54     */
     55    protected  $version ;
     56    /**
     57     * Define the core functionality of the plugin.
     58     *
     59     * Set the plugin name and the plugin version that can be used throughout the plugin.
     60     * Load the dependencies, define the locale, and set the hooks for the admin area and
     61     * the public-facing side of the site.
     62     *
     63     * @since    0.6
     64     */
     65    public function __construct()
     66    {
     67       
     68        if ( defined( 'SIMPLE_YOUTUBE_GDPR_VERSION' ) ) {
     69            $this->version = SIMPLE_YOUTUBE_GDPR_VERSION;
     70        } else {
     71            $this->version = '0.7';
     72        }
     73       
     74        $this->plugin_name = 'simple-youtube-gdpr';
     75        $this->load_dependencies();
     76        $this->set_locale();
     77        //      $this->define_admin_hooks();
     78        $this->define_public_hooks();
     79    }
     80   
     81    /**
     82     * Load the required dependencies for this plugin.
     83     *
     84     * Include the following files that make up the plugin:
     85     *
     86     * - Simple_Youtube_Gdpr_Loader. Orchestrates the hooks of the plugin.
     87     * - Simple_Youtube_Gdpr_i18n. Defines internationalization functionality.
     88     * - Simple_Youtube_Gdpr_Admin. Defines all hooks for the admin area.
     89     * - Simple_Youtube_Gdpr_Public. Defines all hooks for the public side of the site.
     90     *
     91     * Create an instance of the loader which will be used to register the hooks
     92     * with WordPress.
     93     *
     94     * @since    0.6
     95     * @access   private
     96     */
     97    private function load_dependencies()
     98    {
     99        /**
     100         * The class responsible for orchestrating the actions and filters of the
     101         * core plugin.
     102         */
     103        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-simple-youtube-gdpr-loader.php';
     104        /**
     105         * The class responsible for defining internationalization functionality
     106         * of the plugin.
     107         */
     108        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-simple-youtube-gdpr-i18n.php';
     109        /**
     110         * The class responsible for defining all actions that occur in the admin area.
     111         */
     112        //      require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-simple-youtube-gdpr-admin.php';
     113        /**
     114         * The class responsible for defining all actions that occur in the public-facing
     115         * side of the site.
     116         */
     117        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-simple-youtube-gdpr-public.php';
     118        $this->loader = new Simple_Youtube_Gdpr_Loader();
     119    }
     120   
     121    /**
     122     * Define the locale for this plugin for internationalization.
     123     *
     124     * Uses the Simple_Youtube_Gdpr_i18n class in order to set the domain and to register the hook
     125     * with WordPress.
     126     *
     127     * @since    0.6
     128     * @access   private
     129     */
     130    private function set_locale()
     131    {
     132        $plugin_i18n = new Simple_Youtube_Gdpr_i18n();
     133        $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
     134    }
     135   
     136    /**
     137     * Register all of the hooks related to the admin area functionality
     138     * of the plugin.
     139     *
     140     * @since    0.6
     141     * @access   private
     142     */
     143    private function define_admin_hooks()
     144    {
     145        $plugin_admin = new Simple_Youtube_Gdpr_Admin( $this->get_plugin_name(), $this->get_version() );
     146        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
     147        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
     148    }
     149   
     150    /**
     151     * Register all of the hooks related to the public-facing functionality
     152     * of the plugin.
     153     *
     154     * @since    0.6
     155     * @access   private
     156     */
     157    private function define_public_hooks()
     158    {
     159        $plugin_public = new Simple_Youtube_Gdpr_Public( $this->get_plugin_name(), $this->get_version() );
     160        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
     161        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
     162        $this->loader->add_filter(
     163            'embed_oembed_html',
     164            $plugin_public,
     165            'syg_embed_oembed_html',
     166            PHP_INT_MAX,
     167            4
     168        );
     169        $this->loader->add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), $plugin_public, 'add_action_links' );
     170        $this->loader->add_filter(
     171            'plugin_row_meta',
     172            $plugin_public,
     173            'add_plugin_row_meta',
     174            10,
     175            2
     176        );
     177    }
     178   
     179    /**
     180     * Run the loader to execute all of the hooks with WordPress.
     181     *
     182     * @since    0.6
     183     */
     184    public function run()
     185    {
     186        $this->loader->run();
     187    }
     188   
     189    /**
     190     * The name of the plugin used to uniquely identify it within the context of
     191     * WordPress and to define internationalization functionality.
     192     *
     193     * @return    string    The name of the plugin.
     194     * @since     0.6
     195     */
     196    public function get_plugin_name()
     197    {
     198        return $this->plugin_name;
     199    }
     200   
     201    /**
     202     * The reference to the class that orchestrates the hooks with the plugin.
     203     *
     204     * @return    Simple_Youtube_Gdpr_Loader    Orchestrates the hooks of the plugin.
     205     * @since     0.6
     206     */
     207    public function get_loader()
     208    {
     209        return $this->loader;
     210    }
     211   
     212    /**
     213     * Retrieve the version number of the plugin.
     214     *
     215     * @return    string    The version number of the plugin.
     216     * @since     0.6
     217     */
     218    public function get_version()
     219    {
     220        return $this->version;
     221    }
    219222
    220223}
  • simple-youtube-gdpr/trunk/languages/simple-youtube-gdpr-de_DE.po

    r2148127 r2156751  
    22msgstr ""
    33"Project-Id-Version: Simple YouTube GDPR\n"
    4 "POT-Creation-Date: 2019-08-30 03:11+0300\n"
    5 "PO-Revision-Date: 2019-08-30 03:13+0300\n"
     4"POT-Creation-Date: 2019-09-15 13:03+0300\n"
     5"PO-Revision-Date: 2019-09-15 14:19+0300\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    1717"X-Poedit-SourceCharset: UTF-8\n"
    1818"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
    19 "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
    20 "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
     19"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
     20"_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
    2121"X-Poedit-SearchPath-0: .\n"
    2222"X-Poedit-SearchPathExcluded-0: *.js\n"
    2323
    24 #: public/class-simple-youtube-gdpr-public.php:206
    25 #: public/class-simple-youtube-gdpr-public.php:215
     24#: public/class-simple-youtube-gdpr-public.php:247
     25#: public/class-simple-youtube-gdpr-public.php:256
    2626msgid "https://policies.google.com/privacy?hl=en"
    2727msgstr "https://policies.google.com/privacy?hl=de"
    2828
    29 #: public/class-simple-youtube-gdpr-public.php:217
     29#: public/class-simple-youtube-gdpr-public.php:258
    3030msgid "https://vimeo.com/privacy"
    3131msgstr "https://vimeo.com/privacy"
    3232
    33 #: public/class-simple-youtube-gdpr-public.php:219
     33#: public/class-simple-youtube-gdpr-public.php:260
    3434msgid "https://www.flickr.com/help/privacy"
    3535msgstr "https://www.flickr.com/help/privacy"
    3636
    37 #: public/class-simple-youtube-gdpr-public.php:221
     37#: public/class-simple-youtube-gdpr-public.php:262
    3838msgid "https://issuu.com/legal/privacy"
    3939msgstr "https://issuu.com/legal/privacy"
    4040
    41 #: public/class-simple-youtube-gdpr-public.php:223
     41#: public/class-simple-youtube-gdpr-public.php:264
    4242msgid "https://www.instagram.com/legal/privacy/"
    4343msgstr "https://www.instagram.com/legal/privacy/"
    4444
    45 #: public/class-simple-youtube-gdpr-public.php:225
     45#: public/class-simple-youtube-gdpr-public.php:266
    4646msgid ""
    4747"https://www.ted.com/about/our-organization/our-policies-terms/privacy-policy"
     
    4949"https://www.ted.com/about/our-organization/our-policies-terms/privacy-policy"
    5050
    51 #: public/class-simple-youtube-gdpr-public.php:231
    52 msgid "Load element"
    53 msgstr "Element anzeigen"
     51#: public/class-simple-youtube-gdpr-public.php:268
     52msgid "https://www.dailymotion.com/legal/privacy?localization=en"
     53msgstr "https://www.dailymotion.com/legal/privacy?localization=ge"
    5454
    55 #: public/class-simple-youtube-gdpr-public.php:234
     55#: public/class-simple-youtube-gdpr-public.php:270
     56msgid "https://twitter.com/en/privacy"
     57msgstr "https://twitter.com/ge/privacy"
     58
     59#: public/class-simple-youtube-gdpr-public.php:276
     60#: public/class-simple-youtube-gdpr-public.php:278
     61#, php-format
     62msgid "Show %s content: %s"
     63msgstr "%s Inhalt zeigen: %s"
     64
     65#: public/class-simple-youtube-gdpr-public.php:279
     66#, php-format
     67msgid "Show %s content"
     68msgstr "%s Inhalt zeigen"
     69
     70#: public/class-simple-youtube-gdpr-public.php:291
    5671#, php-format
    5772msgid ""
    58 "By loading this element, you agree to <a href=\"%s\" target=\"_blank\" rel="
    59 "\"nofollow noreferrer noopener\" referrerpolicy=\"no-referrer\" title=\"%s\">"
    60 "%s's privacy policy</a>."
     73"By showing the %s content you accept <a href=\" % s\" target=\"_blank\" rel="
     74"\"nofollow noreferrer noopener\" referrerpolicy=\"no - referrer\" title=\" "
     75"% s\">its privacy policy</a>."
    6176msgstr ""
    62 "Durch das Laden dieses Elements stimmen Sie <a href=\"%s\" target=\"_blank\" "
    63 "rel=\"nofollow noreferrer noopener\" referrerpolicy=\"no-referrer\" title="
    64 "\"%s\">den Datenschutzbestimmungen von %s zu</a>."
     77"Indem du den %s-Inhalt zeigst, akzeptieren Sie <a href=\" % s\" target="
     78"\"_blank\" rel=\"nofollow noreferrer noopener\" referrerpolicy=\"no - "
     79"referrer\" title=\" % s\">die Datenschutzbestimmungen</a>."
    6580
    66 #: public/class-simple-youtube-gdpr-public.php:236
    67 msgid "Read Privacy Policy"
    68 msgstr "Lesen die Datenschutzbestimmungen"
     81#: public/class-simple-youtube-gdpr-public.php:295
     82#, php-format
     83msgid "%s Privacy Policy page (opens in a new window)"
     84msgstr "%s Datenschutzerklärung (öffnet in einem neuen Fenster)"
    6985
    70 #: simple-youtube-gdpr.php:101
    71 msgid "Click to Upgrade your plan"
    72 msgstr "Klicken Sie hier, um Ihren Plan zu aktualisieren"
     86#: public/class-simple-youtube-gdpr-public.php:349
     87msgid "Upgrade plan"
     88msgstr "Upgrade plan"
    7389
    74 #: simple-youtube-gdpr.php:102
     90#: public/class-simple-youtube-gdpr-public.php:350
    7591msgid "Block Vimeo and more!"
    7692msgstr "Block Vimeo und mehr!"
    7793
    78 #: simple-youtube-gdpr.php:114
     94#: public/class-simple-youtube-gdpr-public.php:369
    7995msgid "Payment in RUB - Russian Rubles"
    8096msgstr "Zahlung in RUB - Russische Rubel"
    8197
    82 #: simple-youtube-gdpr.php:115
     98#: public/class-simple-youtube-gdpr-public.php:370
    8399msgid "Donate"
    84100msgstr "Spenden"
     
    103119msgid "https://alexeyvolkov.com/"
    104120msgstr "https://alexeyvolkov.com/"
     121
     122#~ msgid "Load element"
     123#~ msgstr "Element anzeigen"
     124
     125#~ msgid "Read Privacy Policy"
     126#~ msgstr "Lesen die Datenschutzbestimmungen"
    105127
    106128#~ msgid "Click to Play Video"
  • simple-youtube-gdpr/trunk/languages/simple-youtube-gdpr-fr_FR.po

    r2148127 r2156751  
    22msgstr ""
    33"Project-Id-Version: Simple YouTube GDPR\n"
    4 "POT-Creation-Date: 2019-08-30 03:13+0300\n"
    5 "PO-Revision-Date: 2019-08-30 03:15+0300\n"
     4"POT-Creation-Date: 2019-09-15 14:20+0300\n"
     5"PO-Revision-Date: 2019-09-15 14:25+0300\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    2222"X-Poedit-SearchPathExcluded-0: *.js\n"
    2323
    24 #: public/class-simple-youtube-gdpr-public.php:206
    25 #: public/class-simple-youtube-gdpr-public.php:215
     24#: public/class-simple-youtube-gdpr-public.php:247
     25#: public/class-simple-youtube-gdpr-public.php:256
    2626msgid "https://policies.google.com/privacy?hl=en"
    2727msgstr "https://policies.google.com/privacy?hl=fr"
    2828
    29 #: public/class-simple-youtube-gdpr-public.php:217
     29#: public/class-simple-youtube-gdpr-public.php:258
    3030msgid "https://vimeo.com/privacy"
    3131msgstr "https://vimeo.com/privacy"
    3232
    33 #: public/class-simple-youtube-gdpr-public.php:219
     33#: public/class-simple-youtube-gdpr-public.php:260
    3434msgid "https://www.flickr.com/help/privacy"
    3535msgstr "https://www.flickr.com/help/privacy"
    3636
    37 #: public/class-simple-youtube-gdpr-public.php:221
     37#: public/class-simple-youtube-gdpr-public.php:262
    3838msgid "https://issuu.com/legal/privacy"
    3939msgstr "https://issuu.com/legal/privacy"
    4040
    41 #: public/class-simple-youtube-gdpr-public.php:223
     41#: public/class-simple-youtube-gdpr-public.php:264
    4242msgid "https://www.instagram.com/legal/privacy/"
    4343msgstr "https://www.instagram.com/legal/privacy/"
    4444
    45 #: public/class-simple-youtube-gdpr-public.php:225
     45#: public/class-simple-youtube-gdpr-public.php:266
    4646msgid ""
    4747"https://www.ted.com/about/our-organization/our-policies-terms/privacy-policy"
     
    4949"https://www.ted.com/about/our-organization/our-policies-terms/privacy-policy"
    5050
    51 #: public/class-simple-youtube-gdpr-public.php:231
    52 msgid "Load element"
    53 msgstr "Élément de charge"
     51#: public/class-simple-youtube-gdpr-public.php:268
     52msgid "https://www.dailymotion.com/legal/privacy?localization=en"
     53msgstr "https://www.dailymotion.com/legal/privacy?localization=fr"
    5454
    55 #: public/class-simple-youtube-gdpr-public.php:234
     55#: public/class-simple-youtube-gdpr-public.php:270
     56msgid "https://twitter.com/en/privacy"
     57msgstr "https://twitter.com/fr/privacy"
     58
     59#: public/class-simple-youtube-gdpr-public.php:276
     60#: public/class-simple-youtube-gdpr-public.php:278
     61#, php-format
     62msgid "Show %s content: %s"
     63msgstr "Montrer %s contenu: %s"
     64
     65#: public/class-simple-youtube-gdpr-public.php:279
     66#, php-format
     67msgid "Show %s content"
     68msgstr "Montrer %s contenu"
     69
     70#: public/class-simple-youtube-gdpr-public.php:291
    5671#, php-format
    5772msgid ""
    58 "By loading this element, you agree to <a href=\"%s\" target=\"_blank\" rel="
    59 "\"nofollow noreferrer noopener\" referrerpolicy=\"no-referrer\" title=\"%s\">"
    60 "%s's privacy policy</a>."
     73"By showing the %s content you accept <a href=\" % s\" target=\"_blank\" rel="
     74"\"nofollow noreferrer noopener\" referrerpolicy=\"no - referrer\" title=\" "
     75"% s\">its privacy policy</a>."
    6176msgstr ""
    62 "En chargeant cet élément, vous acceptez <a href=\"%s\" target=\"_blank\" rel="
    63 "\"nofollow noreferrer noopener\" referrerpolicy=\"no-referrer\" title=\"%s"
    64 "\">la politique de confidentialité de %s</a>."
     77"En affichant le contenu de %s, vous acceptez <a href=\" % s\" target=\"_blank"
     78"\" rel=\"nofollow noreferrer noopener\" referrerpolicy=\"no - referrer\" "
     79"title=\" % s\">sa politique de confidentialité</a>."
    6580
    66 #: public/class-simple-youtube-gdpr-public.php:236
    67 msgid "Read Privacy Policy"
    68 msgstr "Lire la politique de confidentialité"
     81#: public/class-simple-youtube-gdpr-public.php:295
     82#, php-format
     83msgid "%s Privacy Policy page (opens in a new window)"
     84msgstr "%s Politique de confidentialité (s'ouvre dans une nouvelle fenêtre)"
    6985
    70 #: simple-youtube-gdpr.php:101
    71 msgid "Click to Upgrade your plan"
    72 msgstr "Cliquez pour mettre à niveau votre plan"
     86#: public/class-simple-youtube-gdpr-public.php:349
     87msgid "Upgrade plan"
     88msgstr "Upgrade plan"
    7389
    74 #: simple-youtube-gdpr.php:102
     90#: public/class-simple-youtube-gdpr-public.php:350
    7591msgid "Block Vimeo and more!"
    7692msgstr "Bloquer Vimeo et plus!"
    7793
    78 #: simple-youtube-gdpr.php:114
     94#: public/class-simple-youtube-gdpr-public.php:369
    7995msgid "Payment in RUB - Russian Rubles"
    8096msgstr "Paiement en roubles russes"
    8197
    82 #: simple-youtube-gdpr.php:115
     98#: public/class-simple-youtube-gdpr-public.php:370
    8399msgid "Donate"
    84100msgstr "Faire un don"
     
    103119msgid "https://alexeyvolkov.com/"
    104120msgstr "https://alexeyvolkov.com/"
     121
     122#~ msgid "Load element"
     123#~ msgstr "Élément de charge"
     124
     125#~ msgid "Read Privacy Policy"
     126#~ msgstr "Lire la politique de confidentialité"
    105127
    106128#~ msgid "Click to Play Video"
  • simple-youtube-gdpr/trunk/languages/simple-youtube-gdpr-ru_RU.po

    r2148127 r2156751  
    22msgstr ""
    33"Project-Id-Version: Simple YouTube GDPR\n"
    4 "POT-Creation-Date: 2019-08-30 03:08+0300\n"
    5 "PO-Revision-Date: 2019-08-30 03:10+0300\n"
     4"POT-Creation-Date: 2019-09-14 17:26+0300\n"
     5"PO-Revision-Date: 2019-09-14 17:26+0300\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    1818"X-Poedit-SourceCharset: UTF-8\n"
    1919"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
    20 "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
    21 "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
     20"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
     21"_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
    2222"X-Poedit-SearchPath-0: .\n"
    2323"X-Poedit-SearchPathExcluded-0: *.js\n"
    2424
    25 #: public/class-simple-youtube-gdpr-public.php:206
    26 #: public/class-simple-youtube-gdpr-public.php:215
     25#: public/class-simple-youtube-gdpr-public.php:247
     26#: public/class-simple-youtube-gdpr-public.php:256
    2727msgid "https://policies.google.com/privacy?hl=en"
    2828msgstr "https://policies.google.com/privacy?hl=ru"
    2929
    30 #: public/class-simple-youtube-gdpr-public.php:217
     30#: public/class-simple-youtube-gdpr-public.php:258
    3131msgid "https://vimeo.com/privacy"
    3232msgstr "https://vimeo.com/privacy"
    3333
    34 #: public/class-simple-youtube-gdpr-public.php:219
     34#: public/class-simple-youtube-gdpr-public.php:260
    3535msgid "https://www.flickr.com/help/privacy"
    3636msgstr "https://www.flickr.com/help/privacy"
    3737
    38 #: public/class-simple-youtube-gdpr-public.php:221
     38#: public/class-simple-youtube-gdpr-public.php:262
    3939msgid "https://issuu.com/legal/privacy"
    4040msgstr "https://issuu.com/legal/privacy"
    4141
    42 #: public/class-simple-youtube-gdpr-public.php:223
     42#: public/class-simple-youtube-gdpr-public.php:264
    4343msgid "https://www.instagram.com/legal/privacy/"
    4444msgstr "https://www.instagram.com/legal/privacy/"
    4545
    46 #: public/class-simple-youtube-gdpr-public.php:225
     46#: public/class-simple-youtube-gdpr-public.php:266
    4747msgid ""
    4848"https://www.ted.com/about/our-organization/our-policies-terms/privacy-policy"
     
    5050"https://www.ted.com/about/our-organization/our-policies-terms/privacy-policy"
    5151
    52 #: public/class-simple-youtube-gdpr-public.php:231
    53 msgid "Load element"
    54 msgstr "Показать элемент"
     52#: public/class-simple-youtube-gdpr-public.php:268
     53msgid "https://www.dailymotion.com/legal/privacy?localization=en"
     54msgstr "https://www.dailymotion.com/legal/privacy?localization=en"
    5555
    56 #: public/class-simple-youtube-gdpr-public.php:234
     56#: public/class-simple-youtube-gdpr-public.php:270
     57msgid "https://twitter.com/en/privacy"
     58msgstr "https://twitter.com/ru/privacy"
     59
     60#: public/class-simple-youtube-gdpr-public.php:276
     61#: public/class-simple-youtube-gdpr-public.php:278
     62#, php-format
     63msgid "Show %s content: %s"
     64msgstr "Показать %s содержание: %s"
     65
     66#: public/class-simple-youtube-gdpr-public.php:279
     67#, php-format
     68msgid "Show %s content"
     69msgstr "Показать %s содержание"
     70
     71#: public/class-simple-youtube-gdpr-public.php:291
    5772#, php-format
    5873msgid ""
    59 "By loading this element, you agree to <a href=\"%s\" target=\"_blank\" rel="
    60 "\"nofollow noreferrer noopener\" referrerpolicy=\"no-referrer\" title=\"%s\">"
    61 "%s's privacy policy</a>."
     74"By showing the %s content you accept <a href=\" % s\" target=\"_blank\" rel="
     75"\"nofollow noreferrer noopener\" referrerpolicy=\"no - referrer\" title=\" "
     76"% s\">its privacy policy</a>."
    6277msgstr ""
    63 "Загружая этот элемент, вы соглашаетесь с <a href=\"%s\" target=\"_blank\" "
    64 "rel=\"nofollow noreferrer noopener\" referrerpolicy=\"no-referrer\" title="
    65 "\"%s\">политикой конфиденциальности %s</a>."
     78"Показывая %s содержание, вы соглашаетесь с <a href=\" % s\" target=\"_blank"
     79"\" rel=\"nofollow noreferrer noopener\" referrerpolicy=\"no - referrer\" "
     80"title=\" % s\">их политикой приватности</a>."
    6681
    67 #: public/class-simple-youtube-gdpr-public.php:236
    68 msgid "Read Privacy Policy"
    69 msgstr "Прочитать политику конфиденциальности"
     82#: public/class-simple-youtube-gdpr-public.php:295
     83#, php-format
     84msgid "%s Privacy Policy page (opens in a new window)"
     85msgstr "%s Страница Политики Приватности (откроется в новом окне)"
    7086
    71 #: simple-youtube-gdpr.php:101
    72 msgid "Click to Upgrade your plan"
    73 msgstr "Обновить план"
     87#: public/class-simple-youtube-gdpr-public.php:349
     88msgid "Upgrade plan"
     89msgstr "Премиум версия"
    7490
    75 #: simple-youtube-gdpr.php:102
     91#: public/class-simple-youtube-gdpr-public.php:350
    7692msgid "Block Vimeo and more!"
    7793msgstr "Блокировать Vimeo и прочее!"
    7894
    79 #: simple-youtube-gdpr.php:114
     95#: public/class-simple-youtube-gdpr-public.php:369
    8096msgid "Payment in RUB - Russian Rubles"
    8197msgstr "Платёж через Яндекс.Деньги"
    8298
    83 #: simple-youtube-gdpr.php:115
     99#: public/class-simple-youtube-gdpr-public.php:370
    84100msgid "Donate"
    85101msgstr "Пожертвовать"
     
    104120msgid "https://alexeyvolkov.com/"
    105121msgstr "https://alexeyvolkov.com/"
     122
     123#~ msgid "Load element"
     124#~ msgstr "Показать элемент"
     125
     126#~ msgid "Read Privacy Policy"
     127#~ msgstr "Прочитать политику конфиденциальности"
    106128
    107129#~ msgid "Click to Play Video"
  • simple-youtube-gdpr/trunk/public/class-simple-youtube-gdpr-public.php

    r2149600 r2156751  
    168168        $thumbnail_url = ( isset( $json_content['thumbnail_url'] ) ? $this->get_thumbnail_url( filter_var( $json_content['thumbnail_url'], FILTER_SANITIZE_URL ) ) : '' );
    169169        $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         );
     170            'height' => '',
     171            'width'  => '',
     172            'html'   => '',
     173        );
     174       
     175        if ( isset( $json_content['thumbnail_width'] ) && filter_var( $json_content['thumbnail_width'], FILTER_SANITIZE_NUMBER_INT ) > 0 ) {
     176            $attr_more['html'] .= sprintf( 'width:%dpx;', filter_var( $json_content['thumbnail_width'], FILTER_SANITIZE_NUMBER_INT ) );
     177            $attr_more['width'] = filter_var( $json_content['thumbnail_width'], FILTER_SANITIZE_NUMBER_INT );
     178        } else {
     179            $attr_more['html'] .= sprintf( 'width:%dpx;', filter_var( $json_content['width'], FILTER_SANITIZE_NUMBER_INT ) );
     180            $attr_more['width'] = filter_var( $json_content['width'], FILTER_SANITIZE_NUMBER_INT );
     181        }
     182       
     183       
     184        if ( isset( $json_content['thumbnail_height'] ) && filter_var( $json_content['thumbnail_height'], FILTER_SANITIZE_NUMBER_INT ) > 0 ) {
     185            $attr_more['html'] .= sprintf( 'height:%dpx;', filter_var( $json_content['thumbnail_height'], FILTER_SANITIZE_NUMBER_INT ) );
     186            $attr_more['height'] = filter_var( $json_content['thumbnail_height'], FILTER_SANITIZE_NUMBER_INT );
     187        } else {
     188            $attr_more['html'] .= sprintf( 'height:%dpx;', filter_var( $json_content['height'], FILTER_SANITIZE_NUMBER_INT ) );
     189            $attr_more['height'] = filter_var( $json_content['height'], FILTER_SANITIZE_NUMBER_INT );
     190        }
     191       
    172192        $provider_privacy_url = array(
    173             'youtube' => __( 'https://policies.google.com/privacy?hl=en', 'simple-youtube-gdpr' ),
    174         );
    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(
    176             __( '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' ),
     193            'youtube' => esc_url( __( 'https://policies.google.com/privacy?hl=en', 'simple-youtube-gdpr' ) ),
     194        );
     195        $template = '<figure class="syg__box syg__box-' . $type . '" style="background-image: url(\'' . $thumbnail_url . '\');' . $attr_more['html'] . '" data-syg-url="' . $api_endpoint[$type] . $url . '" aria-live="assertive">';
     196        $template .= '<button class="syg__box__text__btn" title="' . sprintf( esc_html__( 'Show %s content: %s', 'simple-youtube-gdpr' ), $provider_name, $title ) . '" aria-label="' . sprintf( esc_html__( 'Show %s content: %s', 'simple-youtube-gdpr' ), $provider_name, $title ) . '">' . sprintf( esc_html__( 'Show %s content', 'simple-youtube-gdpr' ), $provider_name ) . '</button>';
     197        $attr_more['html'] = '';
     198       
     199        if ( $attr_more['width'] > $attr_more['height'] ) {
     200            // width > height
     201            $attr_more['html'] .= sprintf( 'height:%dpx;', $attr_more['height'] );
     202        } else {
     203            // height > width
     204            $attr_more['html'] .= sprintf( 'width:%dpx;', $attr_more['width'] );
     205        }
     206       
     207        $template .= '<img src="' . $thumbnail_url . '" alt="' . esc_html( $title ) . '" style="' . $attr_more['html'] . '">';
     208        $template .= '<figcaption class="syg__box__text">' . sprintf(
     209            __( 'By showing the %s content you accept <a href=" % s" target="_blank" rel="nofollow noreferrer noopener" referrerpolicy="no - referrer" title=" % s">its privacy policy</a>.', 'simple-youtube-gdpr' ),
     210            $provider_name,
    177211            $provider_privacy_url[$type],
    178             esc_html( __( 'Read Privacy Policy', 'simple-youtube-gdpr' ) ),
    179             $provider_name
    180         ) . '</p>' . '</div > ';
     212            sprintf( esc_html__( '%s Privacy Policy page (opens in a new window)', 'simple-youtube-gdpr' ), $provider_name )
     213        ) . '</figcaption > ';
    181214        //.syg__box__text
    182215        $template .= '<template class="syg__box__html" data-type="' . $type . '">' . $cache . '</template>';
    183         $template .= '</div > ';
     216        $template .= '</figure > ';
    184217        // .syg__box
    185218        return $template;
     
    227260        // return local url
    228261    }
     262   
     263    /**
     264     * @param $links
     265     *
     266     * @return array
     267     */
     268    public function add_action_links( $links )
     269    {
     270        $mylinks = array( '<a href="' . syg_fs()->get_upgrade_url() . '" title="' . esc_html( __( 'Upgrade plan', 'simple - youtube - gdpr' ) ) . '"><strong style="display: inline;">' . esc_html( __( 'Block Vimeo and more!', 'simple-youtube-gdpr' ) ) . '</strong></a>' );
     271        return array_merge( $mylinks, $links );
     272    }
     273   
     274    /**
     275     * Plugin Action links
     276     *
     277     * @param $links
     278     * @param $file
     279     *
     280     * @return array
     281     */
     282    public function add_plugin_row_meta( $links, $file )
     283    {
     284       
     285        if ( strpos( $file, 'simple-youtube-gdpr.php' ) !== false ) {
     286            $new_links = array(
     287                'donate' => '<a href="https://money.yandex.ru/to/41001417963743" target="_blank" title="' . esc_html( __( 'Payment in RUB - Russian Rubles', 'simple-youtube-gdpr' ) ) . '">&hearts; ' . esc_html( __( 'Donate', 'simple-youtube-gdpr' ) ) . '</a>',
     288            );
     289            $links = array_merge( $links, $new_links );
     290        }
     291       
     292        return $links;
     293    }
    229294
    230295}
  • simple-youtube-gdpr/trunk/public/css/simple-youtube-gdpr-public.css

    r2149600 r2156751  
    55}
    66
     7.syg__box__html {
     8    display: none;
     9}
     10
    711.syg__box {
    812    display: inline-block;
    913    position: relative;
    10     overflow: hidden;
     14    /*overflow: hidden;*/
    1115    max-width: 100%;
    12     min-width: 13em;
     16    min-width: 18em;
    1317    height: auto;
    14     min-height: 8em;
    15     background-color: #eaeaea;
     18    min-height: 10em;
     19    text-align: center;
     20    margin-top: 2em;
    1621
    1722    background-size: cover;
     
    2126}
    2227
    23 .syg__box-youtube, .syg__box-vimeo, .syg__box-ted, .syg__box-dailymotion {
     28.syg__box img {
     29    position: absolute;
     30    top: 50%;
     31    left: 50%;
     32    transform: translate(-50%, -50%);
     33    z-index: 0;
     34}
     35
     36.syg__box::before {
     37    content: '';
    2438    position: absolute;
    2539    top: 0;
     
    2943    width: 100%;
    3044    height: 100%;
     45    z-index: 0;
     46
     47    background-image: inherit;
     48    background-size: cover;
     49    background-position: center center;
     50    background-repeat: no-repeat;
     51    background-clip: border-box;
     52    filter: grayscale(100%);
    3153}
    3254
    33 .syg__box__text {
     55.syg__box .syg__box__text {
    3456    position: absolute;
    35     height: auto;
     57    height: 2em;
    3658    width: 100%;
    3759    left: 0;
    38     bottom: 0;
     60    top: -2em;
    3961    text-align: center;
    40 
    41     background-color: rgba(255, 255, 255, 0.9);
    42     color: black;
    43     font-size: small;
    44 }
    45 
    46 .syg__box__text p {
    47     margin: .5em 0;
     62    z-index: 10;
     63    max-height: 5em;
     64    overflow: auto;
     65    margin: 0;
    4866}
    4967
     
    5472    padding: .8em .5em;
    5573    transform: translate(-50%, -50%);
    56 
    57     background-color: rgba(255, 0, 0, .8);
    58     color: #ffffff;
    59     font-family: unset;
    60     line-height: 1.1;
    61     letter-spacing: 0.06em;
    62     font-weight: lighter;
    63     font-style: normal;
     74    z-index: 10;
    6475}
    65 
    66 .syg__box__html {
    67     display: none;
    68 }
    69 
    70 
    71 /* Premium Code Stripped by Freemius */
    72 
    73 
    74 .syg__box__text__btn:hover {
    75     background-color: rgba(255, 255, 255, .8);
    76     color: red;
    77     cursor: pointer
    78 }
    79 
    80 
    81 /* Premium Code Stripped by Freemius */
  • simple-youtube-gdpr/trunk/public/js/simple-youtube-gdpr-public.js

    r2148127 r2156751  
    2222        // Put click events on Play buttons
    2323        syg__box__text__btn.addEventListener("click", function () {
    24             var syg__box = this.parentNode;
    25             var embed__wrapper = this.parentNode.parentNode;
     24            var syg__box = this.parentNode.parentNode;
     25            var embed__wrapper = this.parentNode.parentNode.parentNode;
    2626            // Get Text
    2727            var syg__box__text = syg__box.getElementsByClassName('syg__box__text')[0];
  • simple-youtube-gdpr/trunk/simple-youtube-gdpr.php

    r2149600 r2156751  
    1717 * Plugin URI:        https://alexeyvolkov.com/blog/simple-youtube-gdpr
    1818 * Description:       Integrate YouTube and Vimeo videos securely!
    19  * Version:           1.1
     19 * Version:           1.2
    2020 * Author:            Alexey Volkov
    2121 * Author URI:        https://alexeyvolkov.com/
     
    8282    }
    8383    /**
    84      * Plugin Action links
    85      *
    86      * @param $links
    87      *
    88      * @return array
    89      */
    90     add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'add_action_links' );
    91     function add_action_links( $links )
    92     {
    93         $mylinks = array( '<a href="' . syg_fs()->get_upgrade_url() . '" title="' . esc_html( __( 'Click to Upgrade your plan', 'simple-youtube-gdpr' ) ) . '"><strong style="display: inline;">' . esc_html( __( 'Block Vimeo and more!', 'simple-youtube-gdpr' ) ) . '</strong></a>' );
    94         return array_merge( $mylinks, $links );
    95     }
    96    
    97     add_filter(
    98         'plugin_row_meta',
    99         'add_plugin_row_meta',
    100         10,
    101         2
    102     );
    103     function add_plugin_row_meta( $links, $file )
    104     {
    105        
    106         if ( strpos( $file, 'simple-youtube-gdpr.php' ) !== false ) {
    107             $new_links = array(
    108                 'donate' => '<a href="https://money.yandex.ru/to/41001417963743" target="_blank" title="' . esc_html( __( 'Payment in RUB - Russian Rubles', 'simple-youtube-gdpr' ) ) . '">&hearts; ' . esc_html( __( 'Donate', 'simple-youtube-gdpr' ) ) . '</a>',
    109             );
    110             $links = array_merge( $links, $new_links );
    111         }
    112        
    113         return $links;
    114     }
    115    
    116     /**
    11784     * Currently plugin version.
    11885     * Start at version 0.6 and use SemVer - https://semver.org
    11986     * Rename this for your plugin and update it as you release new versions.
    12087     */
    121     define( 'SIMPLE_YOUTUBE_GDPR_VERSION', '1.1' );
     88    define( 'SIMPLE_YOUTUBE_GDPR_VERSION', '1.2' );
    12289    /**
    12390     * The code that runs during plugin activation.
Note: See TracChangeset for help on using the changeset viewer.