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
{ | |
"autocomplete": true, | |
"enable_auto_align": true, | |
"font_size": 10, | |
"format_on_save": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"php_bin": "/Applications/MAMP/bin/php/php7.0.0/bin/php", |
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.executablePath": "/Applications/MAMP/bin/php/php7.0.12/bin/php", | |
// Set the default | |
"editor.formatOnSave": false, | |
// Enable per-language | |
"[php]": { | |
"editor.formatOnSave": true | |
} | |
} |
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
/* MENU CSS | |
----------------------------------------*/ | |
/*change color of menu background*/ | |
.side-nav { | |
background-color: #121212; | |
} | |
/*change color of close button*/ | |
.side-nav .closebtn { |
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
// JERRICK'S STATUS JS | |
jQuery(function(){ | |
// get current hour | |
var now = new Date(Date.now()); | |
var hour = now.getHours(); | |
var min = now.getMinutes() | |
var statustitle = jQuery('#jh_status').attr('title'); | |
if (hour >= 0 & hour <=7 ) { | |
jQuery('#jh_status').attr('src', 'https://d33t7gcdmhxpn0.cloudfront.net/getting-out-of-bed.png'); jQuery('#status-text h2').text("Sleeping Zzzz..."); | |
} else if (hour >= 8 & hour <= 9 ) { jQuery('#jh_status').attr('src', 'https://d33t7gcdmhxpn0.cloudfront.net/getting-out-of-bed.png'); jQuery('#status-text h2').text("Morning!!"); |
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
/* MENU CSS | |
----------------------------------------*/ | |
/*change color of menu background*/ | |
nav#menu-wpca { | |
background: #0049ff; | |
} | |
/*change color of module title in advanced mode*/ | |
h2.module-title { |
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 wpca_sales_feed_save_settings(){ | |
$wpca_sales_feed_save = array( | |
'wpca_show_for_logged_users', | |
'wpca_feed_begin', | |
'wpca_feed_begin', | |
'wpca_feed_show_for', | |
'wpca_cards_per_user', | |
'sales_feed_in_animation', | |
'sales_feed_out_animation', |
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 | |
$animation = array( | |
'none' => esc_attr__( 'None', 'wpca-sales-feed' ), | |
'bounce' => esc_attr__( 'bounce', 'wpca-sales-feed' ), | |
'flash' => esc_attr__( 'flash', 'wpca-sales-feed' ), | |
'pulse' => esc_attr__( 'pulse', 'wpca-sales-feed' ), | |
'rubberBand' => esc_attr__( 'rubberBand', 'wpca-sales-feed' ), | |
'shake' => esc_attr__( 'shake', 'wpca-sales-feed' ), | |
'headShake' => esc_attr__( 'headShake', 'wpca-sales-feed' ), | |
'swing' => esc_attr__( 'swing', 'wpca-sales-feed' ), |
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
// BLOCK WORDPRESS DASHBOARD | |
function block_dashboard() { | |
$file = basename($_SERVER['PHP_SELF']); | |
if (is_user_logged_in() && is_admin() && !current_user_can('edit_posts') && $file != 'admin-ajax.php'){ | |
wp_redirect( home_url('/account') ); | |
exit(); | |
} | |
} |
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_action( 'wp_enqueue_scripts', 'monica_register_js' ); | |
function monica_register_js() { | |
wp_register_script( 'monica-theme-js', get_template_directory_uri() . '/js/monica.js', array( 'jquery' ), '1.0.0', true ); | |
} | |
add_action( 'wp_enqueue_scripts', 'monica_localize' ); |
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 custom_text_per_shipping_class() { | |
global $product; | |
$product = wc_get_product(); | |
$shipping_class = $product->get_shipping_class(); | |
if ($shipping_class == 'a'){ | |
echo "a"; | |
} elseif ($shipping_class == 'b') { | |
echo "b"; | |
} else { |
NewerOlder