git clone [email protected]: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
| <?php | |
| foreach ($post_data as $key => $value) { | |
| $post_data_keys = ['billing_country', 'card_zip', 'card_cvc']; | |
| if (in_array($key, $post_data_keys, true) && is_serialized($value)) { | |
| return true; | |
| } | |
| } |
| <?php | |
| foreach ($post_data as $key => $value) { | |
| $post_data_keys = ['billing_country', 'card_zip', 'card_cvc']; | |
| if ( ! in_array($key, $post_data_keys, true)) { | |
| continue; | |
| } | |
| } |
| <?php | |
| foreach ($value as $k => $attr) { | |
| $where .= $wpdb->prepare(" \n {$_or} ( list_attr_rel_" . $i . ".value = %d)", $attr); | |
| } |
| <?php | |
| foreach ($value as $k => $attr) { | |
| $where .= " \n {$_or} ( list_attr_rel_" . $i . ".value = {$attr})"; | |
| } |
| 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; |
git clone [email protected]: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
| ;(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>'; | |
| } |