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
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
// additional packaje for React 15.4+ | |
import createClass from 'create-react-class'; | |
const Checkbox = createClass({ | |
propTypes: { | |
initiallyChecked: PropTypes.bool.isRequired | |
}, |
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
[{"id":"4fede17c312f912796000034","cover_url":null,"description":null,"rating":6.3,"title":"L'affaire Gordji, histoire d'une cohabitation"},{"id":"4fede17f312f912796000035","cover_url":null,"description":"Documentary telling the true story of the sinking of the liner Laconia by a German U-boat in 1942 through the eyes of six survivors.","rating":6.8,"title":"Le naufrage du Laconia - partie 1"},{"id":"4fede181312f912796000036","cover_url":null,"description":"Documentary telling the true story of the sinking of the liner Laconia by a German U-boat in 1942 through the eyes of six survivors.","rating":6.8,"title":"Le naufrage du Laconia - partie 2"},{"id":"4fede184312f912796000037","cover_url":"http://ia.media-imdb.com/images/M/MV5BMjAyMTg0MjgwOV5BMl5BanBnXkFtZTcwNTEzODY4Mw@@._V1._SX94_SY140_.jpg","description":"The extraordinary story of three Rwandan kids who walk 3000 miles to the Soccer World Cup in South Africa...","rating":6.2,"title":"Africa United"},{"id":"4fede186312f912796000038","cover_url":"http://ia. |
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
Uncaught ReferenceError: regeneratorRuntime is not defined >>> should be installed "regenerator-runtime" plugin | |
https://www.npmjs.com/package/regenerator-runtime |
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 custom class to Contact Form 7 form | |
<?php $order_form = '[' . trim($order_form, "[]") . ' html_class="row justify-content-center" ' . ']' ?> | |
<?php echo do_shortcode($order_form); ?> |
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
// Deregister contact form 7 styles | |
// function.php | |
add_action( 'wp_print_styles', 'wps_deregister_styles', 100 ); | |
function wps_deregister_styles() { | |
wp_deregister_style( 'contact-form-7' ); | |
} | |
// Remove inputs wrappers | |
// function.php |
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
// functions.php | |
/* Disable to update ACF Pro */ | |
function my_filter_plugin_updates( $value ) { | |
if( isset( $value->response['advanced-custom-fields-pro/acf.php'] ) ) { | |
unset( $value->response['advanced-custom-fields-pro/acf.php'] ); | |
} | |
return $value; | |
} | |
add_filter( 'site_transient_update_plugins', 'my_filter_plugin_updates' ); |
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
// 5 months ago | |
<span class="date"><?php echo human_time_diff(get_the_time('U'), current_time('timestamp')).' ago'; ?></span> | |
// Jan 1, 2018 | |
<span class="date"><?php the_date( 'M j, Y' ); ?> </span> | |
// More info about date format - https://codex.wordpress.org/Formatting_Date_and_Time |
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
// Place your key bindings in this file to overwrite the defaults | |
{ | |
// Controls the font family. | |
"editor.fontFamily": "'Fira Code', Consolas, 'Courier New', monospace", | |
// Enables font ligatures | |
"editor.fontLigatures": true, | |
"editor.fontSize": 14, | |
"editor.tabCompletion": true, | |
"editor.snippetSuggestions": "top", |
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
// prevent default for #-links | |
( function( $ ) { | |
$( 'a[href="#"]' ).click( function(e) { | |
e.preventDefault(); | |
} ); | |
} )( jQuery ); |