git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
save: function( props ) { | |
var attributes = props.attributes; | |
return( | |
el( 'div', { className: props.className }, | |
el( 'p', {}, i18n.__( 'Card block is here', 'risbl-card-block' ) ), | |
// Other HTML elements goes here | |
) | |
); |
edit: function( props ) { | |
var attributes = props.attributes; | |
return( | |
el( 'div', { className: props.className }, | |
el( 'p', {}, i18n.__( 'Card block is here', 'risbl-card-block' ) ), | |
// Other HTML elements goes here | |
) | |
); |
/** | |
* | |
* To do: | |
* formatting on the screen so it's not all bunched | |
* options for various outputs | |
* styling | |
* | |
*/ | |
( function( blocks, editor, i18n, element, components, _ ) { | |
var el = element.createElement; |
;(function($) { | |
'use strict' | |
if( $('.header-contact-info').length ) { | |
var cartMenu = $('.mainnav .nav-cart'); | |
var accountMenu = $('.mainnav .header-account'); | |
$('.header-contact-info').prepend('<ul class="header-contact-menu"></ul>'); |
//Check if category exists and echo it | |
if($category) { | |
echo ' | |
<li> | |
<i class="fa fa-tags"></i> | |
<a href="'.esc_url($category[0][1]).'">'.esc_html($category[0][2]).'</a> | |
</li>'; | |
} |
@media only screen and (max-width:1280px){ | |
#mainnav{ | |
display: none; | |
} | |
.btn-menu{ | |
display: block; | |
} | |
if ( matchMedia( 'only screen and (max-width: 1280px)' ).matches ) { | |
currMenuType = 'mobile'; | |
} |
if ( matchMedia( 'only screen and (max-width: 1024px)' ).matches ) { | |
currMenuType = 'mobile'; | |
} |