This file contains hidden or 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
# nastaveni ftp serveru | |
variables: | |
# devel server | |
FTP_DEV_URL: "***" | |
FTP_DEV_USERNAME: "***" | |
FTP_DEV_PASSWORD: "***" | |
# produkce | |
FTP_PROD_URL: "***" | |
FTP_PROD_USERNAME: "***" | |
FTP_PROD_PASSWORD: "***" |
This file contains hidden or 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
# nastaveni ftp serveru | |
variables: | |
FTP_URL: "***" | |
FTP_USERNAME: "***" | |
FTP_PASSWORD: "***" | |
deploy: | |
# nazev akce | |
stage: deploy | |
# natazeni docker image s git-ftp |
This file contains hidden or 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
wp_dequeue_style( 'wp-block-library' ); |
This file contains hidden or 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
// přesunutí Yoast SEO dolů | |
function yoast_bottom() { | |
return 'low'; | |
} | |
add_filter( 'wpseo_metabox_prio', 'yoast_bottom'); |
This file contains hidden or 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
// povolení vybraných bloků v editoru | |
function editor_allow_types( $allowed_blocks ) { | |
return array( | |
'core/image', | |
'core/paragraph', | |
'core/heading', | |
'core/list', | |
'core/table' | |
); |
This file contains hidden or 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
<IfModule mod_headers.c> | |
# X-XSS-Protection | |
Header set X-XSS-Protection "1; mode=block" | |
# X-Content-Type-Options | |
Header set X-Content-Type-Options nosniff | |
# X-Download-Options | |
Header set X-Download-Options: noopen | |
# X-Frame-Options settings | |
Header set X-Frame-Options DENY | |
# Referrer-Policy settings |
This file contains hidden or 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
RewriteEngine On | |
# redirection all http -> https | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
# redirection -> www. | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L] |
This file contains hidden or 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
add_action( 'wp_enqueue_scripts', function () { | |
wp_dequeue_script( 'jquery' ); | |
wp_deregister_script( 'jquery' ); | |
wp_register_script( | |
'jquery', | |
false, | |
array( 'jquery-core', 'jquery-migrate' ), | |
true | |
); | |
}); |
This file contains hidden or 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
// odstranění jquery migrate | |
function isa_remove_jquery_migrate( &$scripts) { | |
if(!is_admin()) { | |
$scripts->remove( 'jquery'); | |
$scripts->add( 'jquery', false, array( 'jquery-core' ), '1.12.4' ); | |
} | |
} | |
add_filter( 'wp_default_scripts', 'isa_remove_jquery_migrate' ); |