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
if(isset($_POST['log']) && !empty($_POST['log']) && $_POST['log']==1){ | |
$login = trim($_POST['login']); | |
$pw = trim($_POST['pw']); | |
if(strlen($login) == 6 && strlen($pw) == 6){ | |
$n_log=0; |
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_action('pre_get_posts', 'cgy_same_day'); | |
function cgy_same_day($query) { | |
if ($query->is_home() && $query->is_main_query()) { | |
$today = getdate(); | |
$query->set('date_query', array( | |
array( | |
'day' => $today['mday'], |
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_action('plugins_loaded', function(){ | |
function woocommerce_variable_add_to_cart() { | |
global $product, $post; | |
// print_r($product->product_type); | |
$variations = $product->get_available_variations(); | |
// ob_start(); // Start buffering | |
?> | |
<form class="cart" action="<?php echo esc_url($product->add_to_cart_url()); ?>" method="post" enctype="multipart/form-data"> | |
<table class="dro-variable-product" id="dro-variable-product"> | |
<tbody> |
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
@mixin sidebar-title-icon($content){ | |
.widget-title{ | |
&::before{ | |
font-family: "Ionicons"; | |
content: $content; | |
display: inline-block; | |
margin: 0 10px 0 0; | |
} | |
} | |
} |
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 page slug in body class | |
* | |
* @global type $post | |
* @param string $classes | |
* @return string | |
*/ | |
//Page Slug Body Class | |
function add_slug_body_class( $classes ) { |
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
%white-div{ | |
color:#fff; | |
} | |
@for $j from 1 to 6{ | |
div-#{$j}{ | |
@extend %white-div; | |
} | |
} |
NewerOlder