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: Remove Category | |
* Plugin URI: http://mizner.io | |
* Description: | |
* Version: 1.0 | |
* Author: Michael Mizner | |
* Author URI: http://mizner.io | |
* License: | |
*/ |
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
// Functional ES6 | |
const MyComponent = () => { | |
return <div> | |
<h1>Hello World</h1> | |
<p>This is my first component</p> | |
</div> | |
} | |
// Class ES6 | |
class MyComponent extends React.Component{ |
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
var Checkbox = React.createClass({ | |
getInitialState(){ | |
return {checked: false} | |
}, | |
handleCheck(){ | |
this.setState({checked: !this.state.checked}) | |
}, | |
render() { | |
var msg; | |
if (this.state.checked) { |
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
const project = "XXXXXX"; | |
const theFiles = [ | |
// 1st file loads first, 2nd, ect. | |
]; | |
const fileArray = theFiles.map(function (file) { | |
return "assets/scripts/" + file; | |
}); |
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 | |
$this->fields = apply_filters( 'submit_resume_form_fields', array( | |
'resume_fields' => array( | |
'candidate_name' => array( | |
'label' => __( 'Your name', 'wp-job-manager-resumes' ), | |
'type' => 'text', | |
'required' => true, | |
'placeholder' => __( 'Your full name', 'wp-job-manager-resumes' ), | |
'priority' => 1 | |
), |
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
.wooToggle, | |
.wooToggle:before, | |
.wooToggle:after { | |
height: 15px; | |
width: 15px; | |
} | |
.wooToggle { | |
font-size: 11px; | |
color: white; |
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
.testimonials-container { | |
background: $gray-dark; | |
header { | |
text-align: center; | |
h3 { | |
color: white; | |
} | |
color: white; | |
border-bottom: 1px dotted; | |
padding-bottom: 1em; |
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
.large-image-area { | |
height: 800px; | |
position: relative; | |
overflow: hidden; | |
img { | |
width: 100%; | |
height: 100%; | |
} | |
.large-image-area-text { | |
font-size: 25px; |
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
describe('Anything', () => { | |
test('User Defined String (passed!)', () => { | |
expect(SessionGroups).toBeDefined(); | |
}); | |
test('SOMETHING SOMEthING DARKSIDE', () => { | |
const wrapper = shallow( | |
<SessionGroups/> | |
); | |
expect(wrapper.children().length).toBe(1) | |
}) |
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_action( 'gform_after_submission_35', 'mizner_test_function_user_meta', 10, 2 ); | |
function mizner_test_function_user_meta( $entry, $form ) { | |
$user_id = get_current_user_id(); | |
$company_name = $entry['5']; | |
$description = $entry['2']; | |
update_user_meta( $user_id, 'user_facebook', $company_name ); |