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 studentSearch() { | |
const searchBar = ` | |
<label for="search" class="student-search"> | |
<span>Search by name</span> | |
<input id="search" placeholder="Search by name..."> | |
<button type="button"><img src="img/icn-search.svg" alt="Search icon"></button> | |
</label> | |
`; | |
studentSearchBar.insertAdjacentHTML('beforeend', searchBar); |
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
[xdebug] | |
zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so | |
xdebug.remote_autostart=1 | |
xdebug.default_enable=1 | |
xdebug.remote_port=9001 | |
xdebug.remote_host=127.0.0.1 | |
xdebug.remote_connect_back=1 | |
xdebug.remote_enable=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
$user = factory(User::class)->create(['stripe_id' => false]); | |
$plan = factory(Plan::class)->create(['name' => 'freelancer']); | |
$token = \Stripe\Token::create([ | |
"card" => [ | |
"number" => "4242424242424242", | |
"exp_month" => 1, | |
"exp_year" => date('Y') + 1, | |
"cvc" => "123" | |
] |
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
protected $dates = [‘field_that_uses_date’]; | |
// Allows the use of carbon. i.e $post->date->format(‘m d Y’); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
add_filter( 'user_contactmethods', 'vsellis_contactmethods' ); | |
function vsellis_contactmethods( $contactmethods ) { | |
$contactmethods = [ | |
'twitter' => 'Twitter', | |
'instagram' => 'Instagram', | |
'pinterest' => 'Pinterest', | |
'linkedin' => 'Linkedin', | |
'facebook' => 'Facebook', | |
]; |
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 | |
class Widget_Name extends WP_Widget | |
{ | |
protected $widget_slug = 'widget-slug'; | |
public function __construct() | |
{ | |
parent::__construct( |
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 $FUNCTION$() { | |
$END$ | |
} | |
add_action( 'genesis_$ACTION$', '$FUNCTION$' ); |
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
// Priority 15 ensures it runs after Genesis itself has setup. | |
add_action( 'genesis_setup', 'theme_prefix_genesis_setup', 15 ); | |
function theme_prefix_genesis_setup() { | |
//* Define Constants | |
//* Child theme (do not remove) | |
define( 'CHILD_THEME_NAME', 'Shoreline' ); | |
define( 'CHILD_THEME_URL', 'http://vsellis.com/themes/shoreline' ); |
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
$theme-blue: #779ECB; | |
$theme-purple: #CA98C9; | |
$theme-red: #FF6861; | |
$theme-green: #89E894; | |
$theme-dark: #78797B; | |
.theme-blue { | |
.site-header, |
NewerOlder