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 | |
if ( $product->is_type( 'variable' ) ) : | |
$url = get_the_permalink(); | |
$available_variations = $product->get_available_variations(); | |
$count = count( $available_variations ); | |
echo '<ul class="colors">'; | |
for ( $i=0; $i < $count; $i++ ) { | |
$var_color_name = $available_variations[$i]['attributes']['attribute_pa_cor']; | |
$var_img = $available_variations[$i]['image_src']; | |
echo '<li>'; |
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
/* | |
* Basic style to the custom alert. | |
* Customize it to your personal use. | |
*/ | |
.alert-wrap { | |
position: fixed; | |
top: 0; | |
left: 0; | |
z-index: 2147483647; /* maximum value for a 32bit integer */ |
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
<video preload="auto" loop> | |
<source src="video-file.mp4" type="video/mp4" /> | |
<source src="video-file.webm" type="video/webm" /> | |
</video> |
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
Show hidden characters
{ | |
"auto_complete_commit_on_tab": true, | |
"bold_folder_labels": true, | |
"close_windows_when_empty": true, | |
// "color_scheme": "Packages/User/SublimeLinter/base16-ocean.dark (SL).tmTheme", | |
"draw_minimap_border": true, | |
"folder_exclude_patterns": | |
[ | |
".sass-cache", | |
"node_modules", |
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 | |
function is_post_type( $type ) { | |
global $wp_query; | |
if ( $type == get_post_type( $wp_query->post->ID ) ) return true; | |
return false; | |
} |
NewerOlder