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
/** | |
* Get a browser cookie | |
* | |
* @param string cname = The cookie name | |
* @return string = The cookie value or an empty string ("") if the cookie doesn't exist | |
*/ | |
getCookie = function(cname) { | |
var name = cname + "="; | |
var decodedCookie = decodeURIComponent(document.cookie); | |
var ca = decodedCookie.split(";"); |
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 | |
use Automattic\WooCommerce\Client; | |
class Custom_Endpoints_Woocommerce_API | |
{ | |
protected function get_client() { | |
return new Client( | |
get_site_url(), | |
'woocommerce_consumer_key', | |
'woocommerce_consumer_secret', |
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
import React from "react"; | |
import CategoryCard from "./CategoryCard"; | |
const CategoriesList = props => ( | |
<div> | |
{props.categories.map(element => ( | |
<CategoryCard | |
key={element.id} | |
categId={element.id} | |
src={element.image.src} |
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
.w100 { | |
width: 100%; | |
background-color: "white"; | |
flex: 1; | |
} |
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
import { StyleSheet } from 'react-native'; | |
export default StyleSheet.create({ | |
w100: { | |
width: '100%', | |
backgroundColor: 'white', | |
flex: 1, | |
}, | |
}); |
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
import React from 'react'; | |
import { View, Text, Image } from 'react-native'; | |
import PropTypes from 'prop-types'; | |
import styles from './styles'; | |
class ExampleRNComponent extends React.Component { | |
render() { | |
return ( | |
<View style={styles.w100}> | |
<View style={styles.menuTitleWrap}> |
NewerOlder