Changeset 2156751
- Timestamp:
- 09/15/2019 11:46:09 AM (7 years ago)
- Location:
- simple-youtube-gdpr
- Files:
-
- 218 added
- 12 edited
-
tags/1.2 (added)
-
tags/1.2/LICENSE.txt (added)
-
tags/1.2/README.txt (added)
-
tags/1.2/freemius (added)
-
tags/1.2/freemius/LICENSE.txt (added)
-
tags/1.2/freemius/assets (added)
-
tags/1.2/freemius/assets/css (added)
-
tags/1.2/freemius/assets/css/admin (added)
-
tags/1.2/freemius/assets/css/admin/account.css (added)
-
tags/1.2/freemius/assets/css/admin/add-ons.css (added)
-
tags/1.2/freemius/assets/css/admin/affiliation.css (added)
-
tags/1.2/freemius/assets/css/admin/checkout.css (added)
-
tags/1.2/freemius/assets/css/admin/common.css (added)
-
tags/1.2/freemius/assets/css/admin/connect.css (added)
-
tags/1.2/freemius/assets/css/admin/debug.css (added)
-
tags/1.2/freemius/assets/css/admin/dialog-boxes.css (added)
-
tags/1.2/freemius/assets/css/admin/gdpr-optin-notice.css (added)
-
tags/1.2/freemius/assets/css/admin/index.php (added)
-
tags/1.2/freemius/assets/css/customizer.css (added)
-
tags/1.2/freemius/assets/css/index.php (added)
-
tags/1.2/freemius/assets/img (added)
-
tags/1.2/freemius/assets/img/index.php (added)
-
tags/1.2/freemius/assets/img/plugin-icon.png (added)
-
tags/1.2/freemius/assets/img/simple-youtube-gdpr.png (added)
-
tags/1.2/freemius/assets/img/theme-icon.png (added)
-
tags/1.2/freemius/assets/index.php (added)
-
tags/1.2/freemius/assets/js (added)
-
tags/1.2/freemius/assets/js/index.php (added)
-
tags/1.2/freemius/assets/js/nojquery.ba-postmessage.js (added)
-
tags/1.2/freemius/assets/js/nojquery.ba-postmessage.min.js (added)
-
tags/1.2/freemius/assets/js/postmessage.js (added)
-
tags/1.2/freemius/config.php (added)
-
tags/1.2/freemius/includes (added)
-
tags/1.2/freemius/includes/class-freemius-abstract.php (added)
-
tags/1.2/freemius/includes/class-freemius.php (added)
-
tags/1.2/freemius/includes/class-fs-admin-notices.php (added)
-
tags/1.2/freemius/includes/class-fs-api.php (added)
-
tags/1.2/freemius/includes/class-fs-logger.php (added)
-
tags/1.2/freemius/includes/class-fs-options.php (added)
-
tags/1.2/freemius/includes/class-fs-plugin-updater.php (added)
-
tags/1.2/freemius/includes/class-fs-security.php (added)
-
tags/1.2/freemius/includes/class-fs-storage.php (added)
-
tags/1.2/freemius/includes/class-fs-user-lock.php (added)
-
tags/1.2/freemius/includes/customizer (added)
-
tags/1.2/freemius/includes/customizer/class-fs-customizer-support-section.php (added)
-
tags/1.2/freemius/includes/customizer/class-fs-customizer-upsell-control.php (added)
-
tags/1.2/freemius/includes/customizer/index.php (added)
-
tags/1.2/freemius/includes/debug (added)
-
tags/1.2/freemius/includes/debug/class-fs-debug-bar-panel.php (added)
-
tags/1.2/freemius/includes/debug/debug-bar-start.php (added)
-
tags/1.2/freemius/includes/debug/index.php (added)
-
tags/1.2/freemius/includes/entities (added)
-
tags/1.2/freemius/includes/entities/class-fs-affiliate-terms.php (added)
-
tags/1.2/freemius/includes/entities/class-fs-affiliate.php (added)
-
tags/1.2/freemius/includes/entities/class-fs-billing.php (added)
-
tags/1.2/freemius/includes/entities/class-fs-entity.php (added)
-
tags/1.2/freemius/includes/entities/class-fs-payment.php (added)
-
tags/1.2/freemius/includes/entities/class-fs-plugin-info.php (added)
-
tags/1.2/freemius/includes/entities/class-fs-plugin-license.php (added)
-
tags/1.2/freemius/includes/entities/class-fs-plugin-plan.php (added)
-
tags/1.2/freemius/includes/entities/class-fs-plugin-tag.php (added)
-
tags/1.2/freemius/includes/entities/class-fs-plugin.php (added)
-
tags/1.2/freemius/includes/entities/class-fs-pricing.php (added)
-
tags/1.2/freemius/includes/entities/class-fs-scope-entity.php (added)
-
tags/1.2/freemius/includes/entities/class-fs-site.php (added)
-
tags/1.2/freemius/includes/entities/class-fs-subscription.php (added)
-
tags/1.2/freemius/includes/entities/class-fs-user.php (added)
-
tags/1.2/freemius/includes/entities/index.php (added)
-
tags/1.2/freemius/includes/fs-core-functions.php (added)
-
tags/1.2/freemius/includes/fs-essential-functions.php (added)
-
tags/1.2/freemius/includes/fs-plugin-info-dialog.php (added)
-
tags/1.2/freemius/includes/i18n.php (added)
-
tags/1.2/freemius/includes/index.php (added)
-
tags/1.2/freemius/includes/l10n.php (added)
-
tags/1.2/freemius/includes/managers (added)
-
tags/1.2/freemius/includes/managers/class-fs-admin-menu-manager.php (added)
-
tags/1.2/freemius/includes/managers/class-fs-admin-notice-manager.php (added)
-
tags/1.2/freemius/includes/managers/class-fs-cache-manager.php (added)
-
tags/1.2/freemius/includes/managers/class-fs-gdpr-manager.php (added)
-
tags/1.2/freemius/includes/managers/class-fs-key-value-storage.php (added)
-
tags/1.2/freemius/includes/managers/class-fs-license-manager.php (added)
-
tags/1.2/freemius/includes/managers/class-fs-option-manager.php (added)
-
tags/1.2/freemius/includes/managers/class-fs-plan-manager.php (added)
-
tags/1.2/freemius/includes/managers/class-fs-plugin-manager.php (added)
-
tags/1.2/freemius/includes/managers/index.php (added)
-
tags/1.2/freemius/includes/sdk (added)
-
tags/1.2/freemius/includes/sdk/Exceptions (added)
-
tags/1.2/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php (added)
-
tags/1.2/freemius/includes/sdk/Exceptions/EmptyArgumentException.php (added)
-
tags/1.2/freemius/includes/sdk/Exceptions/Exception.php (added)
-
tags/1.2/freemius/includes/sdk/Exceptions/InvalidArgumentException.php (added)
-
tags/1.2/freemius/includes/sdk/Exceptions/OAuthException.php (added)
-
tags/1.2/freemius/includes/sdk/Exceptions/index.php (added)
-
tags/1.2/freemius/includes/sdk/FreemiusBase.php (added)
-
tags/1.2/freemius/includes/sdk/FreemiusWordPress.php (added)
-
tags/1.2/freemius/includes/sdk/LICENSE.txt (added)
-
tags/1.2/freemius/includes/sdk/index.php (added)
-
tags/1.2/freemius/includes/supplements (added)
-
tags/1.2/freemius/includes/supplements/fs-essential-functions-1.1.7.1.php (added)
-
tags/1.2/freemius/includes/supplements/fs-essential-functions-2.2.1.php (added)
-
tags/1.2/freemius/includes/supplements/index.php (added)
-
tags/1.2/freemius/index.php (added)
-
tags/1.2/freemius/languages (added)
-
tags/1.2/freemius/languages/freemius-da_DK.mo (added)
-
tags/1.2/freemius/languages/freemius-da_DK.po (added)
-
tags/1.2/freemius/languages/freemius-en.mo (added)
-
tags/1.2/freemius/languages/freemius-en.po (added)
-
tags/1.2/freemius/languages/freemius-es_ES.mo (added)
-
tags/1.2/freemius/languages/freemius-es_ES.po (added)
-
tags/1.2/freemius/languages/freemius-fr_FR.mo (added)
-
tags/1.2/freemius/languages/freemius-fr_FR.po (added)
-
tags/1.2/freemius/languages/freemius-he_IL.mo (added)
-
tags/1.2/freemius/languages/freemius-he_IL.po (added)
-
tags/1.2/freemius/languages/freemius-hu_HU.mo (added)
-
tags/1.2/freemius/languages/freemius-hu_HU.po (added)
-
tags/1.2/freemius/languages/freemius-it_IT.mo (added)
-
tags/1.2/freemius/languages/freemius-it_IT.po (added)
-
tags/1.2/freemius/languages/freemius-ja_JP.mo (added)
-
tags/1.2/freemius/languages/freemius-ja_JP.po (added)
-
tags/1.2/freemius/languages/freemius-nl_NL.mo (added)
-
tags/1.2/freemius/languages/freemius-nl_NL.po (added)
-
tags/1.2/freemius/languages/freemius-ru_RU.mo (added)
-
tags/1.2/freemius/languages/freemius-ru_RU.po (added)
-
tags/1.2/freemius/languages/freemius.pot (added)
-
tags/1.2/freemius/languages/index.php (added)
-
tags/1.2/freemius/require.php (added)
-
tags/1.2/freemius/start.php (added)
-
tags/1.2/freemius/templates (added)
-
tags/1.2/freemius/templates/account (added)
-
tags/1.2/freemius/templates/account.php (added)
-
tags/1.2/freemius/templates/account/billing.php (added)
-
tags/1.2/freemius/templates/account/index.php (added)
-
tags/1.2/freemius/templates/account/partials (added)
-
tags/1.2/freemius/templates/account/partials/activate-license-button.php (added)
-
tags/1.2/freemius/templates/account/partials/addon.php (added)
-
tags/1.2/freemius/templates/account/partials/deactivate-license-button.php (added)
-
tags/1.2/freemius/templates/account/partials/index.php (added)
-
tags/1.2/freemius/templates/account/partials/site.php (added)
-
tags/1.2/freemius/templates/account/payments.php (added)
-
tags/1.2/freemius/templates/add-ons.php (added)
-
tags/1.2/freemius/templates/add-trial-to-pricing.php (added)
-
tags/1.2/freemius/templates/admin-notice.php (added)
-
tags/1.2/freemius/templates/ajax-loader.php (added)
-
tags/1.2/freemius/templates/auto-installation.php (added)
-
tags/1.2/freemius/templates/checkout.php (added)
-
tags/1.2/freemius/templates/connect.php (added)
-
tags/1.2/freemius/templates/contact.php (added)
-
tags/1.2/freemius/templates/debug (added)
-
tags/1.2/freemius/templates/debug.php (added)
-
tags/1.2/freemius/templates/debug/api-calls.php (added)
-
tags/1.2/freemius/templates/debug/index.php (added)
-
tags/1.2/freemius/templates/debug/logger.php (added)
-
tags/1.2/freemius/templates/debug/plugins-themes-sync.php (added)
-
tags/1.2/freemius/templates/debug/scheduled-crons.php (added)
-
tags/1.2/freemius/templates/email.php (added)
-
tags/1.2/freemius/templates/firewall-issues-js.php (added)
-
tags/1.2/freemius/templates/forms (added)
-
tags/1.2/freemius/templates/forms/affiliation.php (added)
-
tags/1.2/freemius/templates/forms/deactivation (added)
-
tags/1.2/freemius/templates/forms/deactivation/contact.php (added)
-
tags/1.2/freemius/templates/forms/deactivation/form.php (added)
-
tags/1.2/freemius/templates/forms/deactivation/index.php (added)
-
tags/1.2/freemius/templates/forms/deactivation/retry-skip.php (added)
-
tags/1.2/freemius/templates/forms/index.php (added)
-
tags/1.2/freemius/templates/forms/license-activation.php (added)
-
tags/1.2/freemius/templates/forms/optout.php (added)
-
tags/1.2/freemius/templates/forms/premium-versions-upgrade-handler.php (added)
-
tags/1.2/freemius/templates/forms/premium-versions-upgrade-metadata.php (added)
-
tags/1.2/freemius/templates/forms/resend-key.php (added)
-
tags/1.2/freemius/templates/forms/subscription-cancellation.php (added)
-
tags/1.2/freemius/templates/forms/trial-start.php (added)
-
tags/1.2/freemius/templates/gdpr-optin-js.php (added)
-
tags/1.2/freemius/templates/index.php (added)
-
tags/1.2/freemius/templates/js (added)
-
tags/1.2/freemius/templates/js/index.php (added)
-
tags/1.2/freemius/templates/js/jquery.content-change.php (added)
-
tags/1.2/freemius/templates/js/open-license-activation.php (added)
-
tags/1.2/freemius/templates/js/style-premium-theme.php (added)
-
tags/1.2/freemius/templates/partials (added)
-
tags/1.2/freemius/templates/partials/network-activation.php (added)
-
tags/1.2/freemius/templates/plugin-icon.php (added)
-
tags/1.2/freemius/templates/plugin-info (added)
-
tags/1.2/freemius/templates/plugin-info/description.php (added)
-
tags/1.2/freemius/templates/plugin-info/features.php (added)
-
tags/1.2/freemius/templates/plugin-info/index.php (added)
-
tags/1.2/freemius/templates/plugin-info/screenshots.php (added)
-
tags/1.2/freemius/templates/powered-by.php (added)
-
tags/1.2/freemius/templates/pricing.php (added)
-
tags/1.2/freemius/templates/secure-https-header.php (added)
-
tags/1.2/freemius/templates/sticky-admin-notice-js.php (added)
-
tags/1.2/freemius/templates/tabs-capture-js.php (added)
-
tags/1.2/freemius/templates/tabs.php (added)
-
tags/1.2/includes (added)
-
tags/1.2/includes/class-simple-youtube-gdpr-activator.php (added)
-
tags/1.2/includes/class-simple-youtube-gdpr-deactivator.php (added)
-
tags/1.2/includes/class-simple-youtube-gdpr-i18n.php (added)
-
tags/1.2/includes/class-simple-youtube-gdpr-loader.php (added)
-
tags/1.2/includes/class-simple-youtube-gdpr.php (added)
-
tags/1.2/includes/index.php (added)
-
tags/1.2/index.php (added)
-
tags/1.2/languages (added)
-
tags/1.2/languages/simple-youtube-gdpr-de_DE.mo (added)
-
tags/1.2/languages/simple-youtube-gdpr-de_DE.po (added)
-
tags/1.2/languages/simple-youtube-gdpr-fr_FR.mo (added)
-
tags/1.2/languages/simple-youtube-gdpr-fr_FR.po (added)
-
tags/1.2/languages/simple-youtube-gdpr-ru_RU.mo (added)
-
tags/1.2/languages/simple-youtube-gdpr-ru_RU.po (added)
-
tags/1.2/languages/simple-youtube-gdpr.pot (added)
-
tags/1.2/public (added)
-
tags/1.2/public/class-simple-youtube-gdpr-public.php (added)
-
tags/1.2/public/css (added)
-
tags/1.2/public/css/simple-youtube-gdpr-public.css (added)
-
tags/1.2/public/index.php (added)
-
tags/1.2/public/js (added)
-
tags/1.2/public/js/simple-youtube-gdpr-public.js (added)
-
tags/1.2/public/partials (added)
-
tags/1.2/public/partials/simple-youtube-gdpr-public-display.php (added)
-
tags/1.2/simple-youtube-gdpr.php (added)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/includes/class-simple-youtube-gdpr.php (modified) (2 diffs)
-
trunk/languages/simple-youtube-gdpr-de_DE.mo (modified) (previous)
-
trunk/languages/simple-youtube-gdpr-de_DE.po (modified) (4 diffs)
-
trunk/languages/simple-youtube-gdpr-fr_FR.mo (modified) (previous)
-
trunk/languages/simple-youtube-gdpr-fr_FR.po (modified) (4 diffs)
-
trunk/languages/simple-youtube-gdpr-ru_RU.mo (modified) (previous)
-
trunk/languages/simple-youtube-gdpr-ru_RU.po (modified) (4 diffs)
-
trunk/public/class-simple-youtube-gdpr-public.php (modified) (2 diffs)
-
trunk/public/css/simple-youtube-gdpr-public.css (modified) (4 diffs)
-
trunk/public/js/simple-youtube-gdpr-public.js (modified) (1 diff)
-
trunk/simple-youtube-gdpr.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-youtube-gdpr/trunk/README.txt
r2149600 r2156751 4 4 Tags: iframe, YouTube, GDPR, Vimeo, Flickr, Issuu, Instagram, TED, thumbnails, Consent, Compliance 5 5 Requires at least: 5.0.1 6 Tested up to: 5.2. 27 Stable tag: 1. 16 Tested up to: 5.2.3 7 Stable tag: 1.2 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later … … 109 109 == Changelog == 110 110 111 = 1.2 = 112 * html5 113 * aria 114 111 115 = 1.1 = 112 116 * Empty title and thumbnail if nothing provided … … 132 136 == Upgrade Notice == 133 137 138 = 1.2 = 139 * Accessibility provided 140 134 141 = 1.1 = 135 142 * Twitter Blocker Integrated [premium] -
simple-youtube-gdpr/trunk/includes/class-simple-youtube-gdpr.php
r2148127 r2156751 13 13 * @subpackage Simple_Youtube_Gdpr/includes 14 14 */ 15 16 15 /** 17 16 * The core plugin class. … … 28 27 * @author Alexey Volkov <[email protected]> 29 28 */ 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 } 29 class 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 } 219 222 220 223 } -
simple-youtube-gdpr/trunk/languages/simple-youtube-gdpr-de_DE.po
r2148127 r2156751 2 2 msgstr "" 3 3 "Project-Id-Version: Simple YouTube GDPR\n" 4 "POT-Creation-Date: 2019-0 8-30 03:11+0300\n"5 "PO-Revision-Date: 2019-0 8-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" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 17 17 "X-Poedit-SourceCharset: UTF-8\n" 18 18 "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 "_n x_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" 21 21 "X-Poedit-SearchPath-0: .\n" 22 22 "X-Poedit-SearchPathExcluded-0: *.js\n" 23 23 24 #: public/class-simple-youtube-gdpr-public.php:2 0625 #: public/class-simple-youtube-gdpr-public.php:2 1524 #: public/class-simple-youtube-gdpr-public.php:247 25 #: public/class-simple-youtube-gdpr-public.php:256 26 26 msgid "https://policies.google.com/privacy?hl=en" 27 27 msgstr "https://policies.google.com/privacy?hl=de" 28 28 29 #: public/class-simple-youtube-gdpr-public.php:2 1729 #: public/class-simple-youtube-gdpr-public.php:258 30 30 msgid "https://vimeo.com/privacy" 31 31 msgstr "https://vimeo.com/privacy" 32 32 33 #: public/class-simple-youtube-gdpr-public.php:2 1933 #: public/class-simple-youtube-gdpr-public.php:260 34 34 msgid "https://www.flickr.com/help/privacy" 35 35 msgstr "https://www.flickr.com/help/privacy" 36 36 37 #: public/class-simple-youtube-gdpr-public.php:2 2137 #: public/class-simple-youtube-gdpr-public.php:262 38 38 msgid "https://issuu.com/legal/privacy" 39 39 msgstr "https://issuu.com/legal/privacy" 40 40 41 #: public/class-simple-youtube-gdpr-public.php:2 2341 #: public/class-simple-youtube-gdpr-public.php:264 42 42 msgid "https://www.instagram.com/legal/privacy/" 43 43 msgstr "https://www.instagram.com/legal/privacy/" 44 44 45 #: public/class-simple-youtube-gdpr-public.php:2 2545 #: public/class-simple-youtube-gdpr-public.php:266 46 46 msgid "" 47 47 "https://www.ted.com/about/our-organization/our-policies-terms/privacy-policy" … … 49 49 "https://www.ted.com/about/our-organization/our-policies-terms/privacy-policy" 50 50 51 #: public/class-simple-youtube-gdpr-public.php:2 3152 msgid " Load element"53 msgstr " Element anzeigen"51 #: public/class-simple-youtube-gdpr-public.php:268 52 msgid "https://www.dailymotion.com/legal/privacy?localization=en" 53 msgstr "https://www.dailymotion.com/legal/privacy?localization=ge" 54 54 55 #: public/class-simple-youtube-gdpr-public.php:234 55 #: public/class-simple-youtube-gdpr-public.php:270 56 msgid "https://twitter.com/en/privacy" 57 msgstr "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 62 msgid "Show %s content: %s" 63 msgstr "%s Inhalt zeigen: %s" 64 65 #: public/class-simple-youtube-gdpr-public.php:279 66 #, php-format 67 msgid "Show %s content" 68 msgstr "%s Inhalt zeigen" 69 70 #: public/class-simple-youtube-gdpr-public.php:291 56 71 #, php-format 57 72 msgid "" 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>." 61 76 msgstr "" 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>." 65 80 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 83 msgid "%s Privacy Policy page (opens in a new window)" 84 msgstr "%s Datenschutzerklärung (öffnet in einem neuen Fenster)" 69 85 70 #: simple-youtube-gdpr.php:10171 msgid " Click to Upgrade yourplan"72 msgstr " Klicken Sie hier, um Ihren Plan zu aktualisieren"86 #: public/class-simple-youtube-gdpr-public.php:349 87 msgid "Upgrade plan" 88 msgstr "Upgrade plan" 73 89 74 #: simple-youtube-gdpr.php:10290 #: public/class-simple-youtube-gdpr-public.php:350 75 91 msgid "Block Vimeo and more!" 76 92 msgstr "Block Vimeo und mehr!" 77 93 78 #: simple-youtube-gdpr.php:11494 #: public/class-simple-youtube-gdpr-public.php:369 79 95 msgid "Payment in RUB - Russian Rubles" 80 96 msgstr "Zahlung in RUB - Russische Rubel" 81 97 82 #: simple-youtube-gdpr.php:11598 #: public/class-simple-youtube-gdpr-public.php:370 83 99 msgid "Donate" 84 100 msgstr "Spenden" … … 103 119 msgid "https://alexeyvolkov.com/" 104 120 msgstr "https://alexeyvolkov.com/" 121 122 #~ msgid "Load element" 123 #~ msgstr "Element anzeigen" 124 125 #~ msgid "Read Privacy Policy" 126 #~ msgstr "Lesen die Datenschutzbestimmungen" 105 127 106 128 #~ msgid "Click to Play Video" -
simple-youtube-gdpr/trunk/languages/simple-youtube-gdpr-fr_FR.po
r2148127 r2156751 2 2 msgstr "" 3 3 "Project-Id-Version: Simple YouTube GDPR\n" 4 "POT-Creation-Date: 2019-0 8-30 03:13+0300\n"5 "PO-Revision-Date: 2019-0 8-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" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 22 22 "X-Poedit-SearchPathExcluded-0: *.js\n" 23 23 24 #: public/class-simple-youtube-gdpr-public.php:2 0625 #: public/class-simple-youtube-gdpr-public.php:2 1524 #: public/class-simple-youtube-gdpr-public.php:247 25 #: public/class-simple-youtube-gdpr-public.php:256 26 26 msgid "https://policies.google.com/privacy?hl=en" 27 27 msgstr "https://policies.google.com/privacy?hl=fr" 28 28 29 #: public/class-simple-youtube-gdpr-public.php:2 1729 #: public/class-simple-youtube-gdpr-public.php:258 30 30 msgid "https://vimeo.com/privacy" 31 31 msgstr "https://vimeo.com/privacy" 32 32 33 #: public/class-simple-youtube-gdpr-public.php:2 1933 #: public/class-simple-youtube-gdpr-public.php:260 34 34 msgid "https://www.flickr.com/help/privacy" 35 35 msgstr "https://www.flickr.com/help/privacy" 36 36 37 #: public/class-simple-youtube-gdpr-public.php:2 2137 #: public/class-simple-youtube-gdpr-public.php:262 38 38 msgid "https://issuu.com/legal/privacy" 39 39 msgstr "https://issuu.com/legal/privacy" 40 40 41 #: public/class-simple-youtube-gdpr-public.php:2 2341 #: public/class-simple-youtube-gdpr-public.php:264 42 42 msgid "https://www.instagram.com/legal/privacy/" 43 43 msgstr "https://www.instagram.com/legal/privacy/" 44 44 45 #: public/class-simple-youtube-gdpr-public.php:2 2545 #: public/class-simple-youtube-gdpr-public.php:266 46 46 msgid "" 47 47 "https://www.ted.com/about/our-organization/our-policies-terms/privacy-policy" … … 49 49 "https://www.ted.com/about/our-organization/our-policies-terms/privacy-policy" 50 50 51 #: public/class-simple-youtube-gdpr-public.php:2 3152 msgid " Load element"53 msgstr " Élément de charge"51 #: public/class-simple-youtube-gdpr-public.php:268 52 msgid "https://www.dailymotion.com/legal/privacy?localization=en" 53 msgstr "https://www.dailymotion.com/legal/privacy?localization=fr" 54 54 55 #: public/class-simple-youtube-gdpr-public.php:234 55 #: public/class-simple-youtube-gdpr-public.php:270 56 msgid "https://twitter.com/en/privacy" 57 msgstr "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 62 msgid "Show %s content: %s" 63 msgstr "Montrer %s contenu: %s" 64 65 #: public/class-simple-youtube-gdpr-public.php:279 66 #, php-format 67 msgid "Show %s content" 68 msgstr "Montrer %s contenu" 69 70 #: public/class-simple-youtube-gdpr-public.php:291 56 71 #, php-format 57 72 msgid "" 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>." 61 76 msgstr "" 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>." 65 80 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 83 msgid "%s Privacy Policy page (opens in a new window)" 84 msgstr "%s Politique de confidentialité (s'ouvre dans une nouvelle fenêtre)" 69 85 70 #: simple-youtube-gdpr.php:10171 msgid " Click to Upgrade yourplan"72 msgstr " Cliquez pour mettre à niveau votre plan"86 #: public/class-simple-youtube-gdpr-public.php:349 87 msgid "Upgrade plan" 88 msgstr "Upgrade plan" 73 89 74 #: simple-youtube-gdpr.php:10290 #: public/class-simple-youtube-gdpr-public.php:350 75 91 msgid "Block Vimeo and more!" 76 92 msgstr "Bloquer Vimeo et plus!" 77 93 78 #: simple-youtube-gdpr.php:11494 #: public/class-simple-youtube-gdpr-public.php:369 79 95 msgid "Payment in RUB - Russian Rubles" 80 96 msgstr "Paiement en roubles russes" 81 97 82 #: simple-youtube-gdpr.php:11598 #: public/class-simple-youtube-gdpr-public.php:370 83 99 msgid "Donate" 84 100 msgstr "Faire un don" … … 103 119 msgid "https://alexeyvolkov.com/" 104 120 msgstr "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é" 105 127 106 128 #~ msgid "Click to Play Video" -
simple-youtube-gdpr/trunk/languages/simple-youtube-gdpr-ru_RU.po
r2148127 r2156751 2 2 msgstr "" 3 3 "Project-Id-Version: Simple YouTube GDPR\n" 4 "POT-Creation-Date: 2019-0 8-30 03:08+0300\n"5 "PO-Revision-Date: 2019-0 8-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" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 18 18 "X-Poedit-SourceCharset: UTF-8\n" 19 19 "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 "_n x_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" 22 22 "X-Poedit-SearchPath-0: .\n" 23 23 "X-Poedit-SearchPathExcluded-0: *.js\n" 24 24 25 #: public/class-simple-youtube-gdpr-public.php:2 0626 #: public/class-simple-youtube-gdpr-public.php:2 1525 #: public/class-simple-youtube-gdpr-public.php:247 26 #: public/class-simple-youtube-gdpr-public.php:256 27 27 msgid "https://policies.google.com/privacy?hl=en" 28 28 msgstr "https://policies.google.com/privacy?hl=ru" 29 29 30 #: public/class-simple-youtube-gdpr-public.php:2 1730 #: public/class-simple-youtube-gdpr-public.php:258 31 31 msgid "https://vimeo.com/privacy" 32 32 msgstr "https://vimeo.com/privacy" 33 33 34 #: public/class-simple-youtube-gdpr-public.php:2 1934 #: public/class-simple-youtube-gdpr-public.php:260 35 35 msgid "https://www.flickr.com/help/privacy" 36 36 msgstr "https://www.flickr.com/help/privacy" 37 37 38 #: public/class-simple-youtube-gdpr-public.php:2 2138 #: public/class-simple-youtube-gdpr-public.php:262 39 39 msgid "https://issuu.com/legal/privacy" 40 40 msgstr "https://issuu.com/legal/privacy" 41 41 42 #: public/class-simple-youtube-gdpr-public.php:2 2342 #: public/class-simple-youtube-gdpr-public.php:264 43 43 msgid "https://www.instagram.com/legal/privacy/" 44 44 msgstr "https://www.instagram.com/legal/privacy/" 45 45 46 #: public/class-simple-youtube-gdpr-public.php:2 2546 #: public/class-simple-youtube-gdpr-public.php:266 47 47 msgid "" 48 48 "https://www.ted.com/about/our-organization/our-policies-terms/privacy-policy" … … 50 50 "https://www.ted.com/about/our-organization/our-policies-terms/privacy-policy" 51 51 52 #: public/class-simple-youtube-gdpr-public.php:2 3153 msgid " Load element"54 msgstr " Показать элемент"52 #: public/class-simple-youtube-gdpr-public.php:268 53 msgid "https://www.dailymotion.com/legal/privacy?localization=en" 54 msgstr "https://www.dailymotion.com/legal/privacy?localization=en" 55 55 56 #: public/class-simple-youtube-gdpr-public.php:234 56 #: public/class-simple-youtube-gdpr-public.php:270 57 msgid "https://twitter.com/en/privacy" 58 msgstr "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 63 msgid "Show %s content: %s" 64 msgstr "Показать %s содержание: %s" 65 66 #: public/class-simple-youtube-gdpr-public.php:279 67 #, php-format 68 msgid "Show %s content" 69 msgstr "Показать %s содержание" 70 71 #: public/class-simple-youtube-gdpr-public.php:291 57 72 #, php-format 58 73 msgid "" 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>." 62 77 msgstr "" 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>." 66 81 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 84 msgid "%s Privacy Policy page (opens in a new window)" 85 msgstr "%s Страница Политики Приватности (откроется в новом окне)" 70 86 71 #: simple-youtube-gdpr.php:10172 msgid " Click to Upgrade yourplan"73 msgstr " Обновить план"87 #: public/class-simple-youtube-gdpr-public.php:349 88 msgid "Upgrade plan" 89 msgstr "Премиум версия" 74 90 75 #: simple-youtube-gdpr.php:10291 #: public/class-simple-youtube-gdpr-public.php:350 76 92 msgid "Block Vimeo and more!" 77 93 msgstr "Блокировать Vimeo и прочее!" 78 94 79 #: simple-youtube-gdpr.php:11495 #: public/class-simple-youtube-gdpr-public.php:369 80 96 msgid "Payment in RUB - Russian Rubles" 81 97 msgstr "Платёж через Яндекс.Деньги" 82 98 83 #: simple-youtube-gdpr.php:11599 #: public/class-simple-youtube-gdpr-public.php:370 84 100 msgid "Donate" 85 101 msgstr "Пожертвовать" … … 104 120 msgid "https://alexeyvolkov.com/" 105 121 msgstr "https://alexeyvolkov.com/" 122 123 #~ msgid "Load element" 124 #~ msgstr "Показать элемент" 125 126 #~ msgid "Read Privacy Policy" 127 #~ msgstr "Прочитать политику конфиденциальности" 106 128 107 129 #~ msgid "Click to Play Video" -
simple-youtube-gdpr/trunk/public/class-simple-youtube-gdpr-public.php
r2149600 r2156751 168 168 $thumbnail_url = ( isset( $json_content['thumbnail_url'] ) ? $this->get_thumbnail_url( filter_var( $json_content['thumbnail_url'], FILTER_SANITIZE_URL ) ) : '' ); 169 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 ); 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 172 192 $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, 177 211 $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 > '; 181 214 //.syg__box__text 182 215 $template .= '<template class="syg__box__html" data-type="' . $type . '">' . $cache . '</template>'; 183 $template .= '</ div> ';216 $template .= '</figure > '; 184 217 // .syg__box 185 218 return $template; … … 227 260 // return local url 228 261 } 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' ) ) . '">♥ ' . esc_html( __( 'Donate', 'simple-youtube-gdpr' ) ) . '</a>', 288 ); 289 $links = array_merge( $links, $new_links ); 290 } 291 292 return $links; 293 } 229 294 230 295 } -
simple-youtube-gdpr/trunk/public/css/simple-youtube-gdpr-public.css
r2149600 r2156751 5 5 } 6 6 7 .syg__box__html { 8 display: none; 9 } 10 7 11 .syg__box { 8 12 display: inline-block; 9 13 position: relative; 10 overflow: hidden;14 /*overflow: hidden;*/ 11 15 max-width: 100%; 12 min-width: 1 3em;16 min-width: 18em; 13 17 height: auto; 14 min-height: 8em; 15 background-color: #eaeaea; 18 min-height: 10em; 19 text-align: center; 20 margin-top: 2em; 16 21 17 22 background-size: cover; … … 21 26 } 22 27 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: ''; 24 38 position: absolute; 25 39 top: 0; … … 29 43 width: 100%; 30 44 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%); 31 53 } 32 54 33 .syg__box __text {55 .syg__box .syg__box__text { 34 56 position: absolute; 35 height: auto;57 height: 2em; 36 58 width: 100%; 37 59 left: 0; 38 bottom: 0;60 top: -2em; 39 61 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; 48 66 } 49 67 … … 54 72 padding: .8em .5em; 55 73 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; 64 75 } 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: pointer78 }79 80 81 /* Premium Code Stripped by Freemius */ -
simple-youtube-gdpr/trunk/public/js/simple-youtube-gdpr-public.js
r2148127 r2156751 22 22 // Put click events on Play buttons 23 23 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; 26 26 // Get Text 27 27 var syg__box__text = syg__box.getElementsByClassName('syg__box__text')[0]; -
simple-youtube-gdpr/trunk/simple-youtube-gdpr.php
r2149600 r2156751 17 17 * Plugin URI: https://alexeyvolkov.com/blog/simple-youtube-gdpr 18 18 * Description: Integrate YouTube and Vimeo videos securely! 19 * Version: 1. 119 * Version: 1.2 20 20 * Author: Alexey Volkov 21 21 * Author URI: https://alexeyvolkov.com/ … … 82 82 } 83 83 /** 84 * Plugin Action links85 *86 * @param $links87 *88 * @return array89 */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 2102 );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' ) ) . '">♥ ' . esc_html( __( 'Donate', 'simple-youtube-gdpr' ) ) . '</a>',109 );110 $links = array_merge( $links, $new_links );111 }112 113 return $links;114 }115 116 /**117 84 * Currently plugin version. 118 85 * Start at version 0.6 and use SemVer - https://semver.org 119 86 * Rename this for your plugin and update it as you release new versions. 120 87 */ 121 define( 'SIMPLE_YOUTUBE_GDPR_VERSION', '1. 1' );88 define( 'SIMPLE_YOUTUBE_GDPR_VERSION', '1.2' ); 122 89 /** 123 90 * The code that runs during plugin activation.
Note: See TracChangeset
for help on using the changeset viewer.