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 get_tax_options( $taxonomy, $field ) { | |
$terms = get_terms( $taxonomy ); | |
$current = ( isset($_POST[$field]) ) ? $_POST[$field] : ''; | |
$options = array(); | |
$options[] = '<option value="">-- ' . ucwords( $taxonomy ) .' --</option>'; | |
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){ | |
foreach ( $terms as $term ) { | |
$options[] = sprintf( '<option value="%s" %s>%s</option>', $term->slug ,selected( $current, $term->slug ), $term->name ); | |
} |
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 () { | |
'use strict'; | |
}()); |
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 Name: THEME NAME | |
Theme URI: VSELLIS | |
Description: VSELLIS shoreline description. | |
Version: 1.0 | |
Author: VSELLIS | |
Author URI: vsellis.com | |
Template: genesis | |
*/ |
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, |
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
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
<?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
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
OlderNewer