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
<style> | |
.embed-container { | |
position: relative; | |
padding-bottom: 56.25%; | |
padding-top: 30px; | |
height: 0; | |
overflow: hidden; | |
max-width: 100%; | |
height: auto; | |
} |
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
video { | |
width: 100%; | |
max-width: 100%; | |
height: auto; | |
} |
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
<?php | |
/** | |
* Plugin Name: WooCommerce - Show products IDs | |
* Plugin URI: http://www.remicorson.com/easily-find-woocommerce-products-id/ | |
* Description: Adds a new columns to products list page to display product IDs | |
* Version: 1.0 | |
* Author: Remi Corson | |
* Author URI: http://remicorson.com | |
* Requires at least: 3.5 | |
* Tested up to: 3.5 |
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
<?php | |
/** | |
* Removes the classic editor actions links. | |
*/ | |
add_action( 'admin_init', function() { | |
// For hierarchical post types. | |
add_filter( 'page_row_actions', 'gutenberg_remove_classic_editor_links', 10, 2 ); | |
// For non-hierarchical post types. | |
add_filter( 'post_row_actions', 'gutenberg_remove_classic_editor_links', 10, 2 ); |
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
grep 54.191.137.17 staging.klinglerconsultants.ch-ssl_log | |
54.191.137.17 - - [12/Mar/2018:13:35:18 +0100] "GET /wp-admin/network/ HTTP/1.1" 302 0 "https://staging.acbe.ch/wp-admin/network/plugins.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" | |
54.191.137.17 - - [12/Mar/2018:13:35:19 +0100] "GET /wp-login.php?redirect_to=https%3A%2F%2Fstaging.klinglerconsultants.ch%2Fwp-admin%2Fnetwork%2F&reauth=1 HTTP/1.1" 200 1271 "https://staging.klinglerconsultants.ch/wp-admin/network/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" | |
54.191.137.17 - - [12/Mar/2018:13:43:39 +0100] "GET / HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" | |
54.191.137.17 - - [12/Mar/2018:13:43:40 +0100] "GET /de/ HTTP/1.1" 200 23420 "https://staging.klinglerconsultants.ch" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Appl |
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
<?php | |
function theme_name_setup(){ | |
$domain = 'theme-name'; | |
if ( $loaded = load_theme_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain ) ) { | |
return $loaded; | |
} elseif ( $loaded = load_theme_textdomain( $domain, get_stylesheet_directory() . '/languages' ) { | |
return $loaded; | |
} else { |
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
<script type="text/javascript" src="//cdn.jsdelivr.net/jwplayer/5.10/jwplayer.js"></script> | |
<div id="player_1"></div> | |
<script type="text/javascript">// <![CDATA[ | |
jwplayer('player_1').setup({ | |
file: "http://testing.grappler.tk/files/2013/01/trailer_1080p.mp4", | |
width: "100%", | |
height: "100%", | |
stretching: "fill", | |
flashplayer:"//cdn.jsdelivr.net/jwplayer/5.10/player.swf" | |
}); |
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
<?php | |
// add ie conditional html5 shim to header | |
function _s_add_ie_html5_shim () { | |
echo '<!--[if lt IE 9]>'; | |
echo '<script src="' . get_template_directory_uri() . '/js/html5.js"></script>'; | |
echo '<![endif]-->'; | |
} | |
add_action('wp_head', '_s_add_ie_html5_shim'); |
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
<?php | |
function theme_name_setup(){ | |
$domain = 'theme-name'; | |
// wp-content/languages/theme-name/de_DE.mo | |
load_theme_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain ); | |
// wp-content/themes/child-theme-name/languages/de_DE.mo | |
load_theme_textdomain( $domain, get_stylesheet_directory() . '/languages' ); | |
// wp-content/themes/theme-name/languages/de_DE.mo |
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
[New sniff] No disabling of the admin toolbar | |
#### Rule: | |
**ERROR** : No hiding of the admin bar - check if `show_admin_bar( false )` is called or if `add_filter( 'show_admin_bar', '__return_false' )` is somewhere in the code. | |
Ref: https://make.wordpress.org/themes/handbook/review/required/#core-functionality-and-features | |
#### Theme check file covering this rule: | |
https://github.com/Otto42/theme-check/blob/master/checks/adminbar.php | |
#### To do: |