This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You can change, butdo not remove this header | |
#Header set Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval' https://fonts.gstatic.com; script-src 'self' 'unsafe-inline' 'unsafe-eval' ; style-src 'self' data: 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' data: https://fonts.gstatic.com; connect-src https: wss:;" | |
# | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function worpress_responsive_embeds($html) | |
{ | |
if (stripos($html, "twitter") !== FALSE || stripos($html, "facebook") !== FALSE) { | |
return '<div class="social-embed-container">' . $html . '</div>'; | |
} | |
else { | |
return '<div class="video-container">' . $html . '</div>'; | |
} | |
} |