Moved to Managing working remotely Cheerio!
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
if (isset($_SERVER['PANTHEON_ENVIRONMENT']) && | |
$_SERVER['PANTHEON_ENVIRONMENT'] === 'live') { | |
if ($_SERVER['HTTP_HOST'] == 'lehelmatyus.com' || | |
$_SERVER['HTTP_HOST'] == 'live-lehelmatyus.gotpantheon.com') { | |
header('HTTP/1.0 301 Moved Permanently'); | |
header('Location: http://www.lehelmatyus.com'. $_SERVER['REQUEST_URI']); | |
exit(); | |
} | |
} |
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
// GHJ CSS Classes | |
// ------------ Backgrounds-------------------------------- | |
gray_row // set background grey #EFF1F4 | |
white_row // set background white #fff | |
cream_row /*or*/ creme_row// set background to tan/cream #DEDBCC | |
olive_row // set background to light cream #90af69 | |
green_row // set background to light cream #018349 | |
blue_row // set background to light cream #283A64 |
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
.stock.out-of-stock::after { | |
content: "Available on request"; | |
left: 0; | |
position: absolute; | |
text-indent: 0; | |
top: 0; | |
} | |
.stock.out-of-stock { | |
position: relative; |
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 inastheme_get_availability( $availability, $_product ) { | |
global $product; | |
$stock = $product->get_total_stock(); | |
if ( $_product->is_in_stock() ) $availability['availability'] = __('Limitierte Edition' . $stock . ' erhältlich', 'woocommerce'); | |
if ( !$_product->is_in_stock() ) $availability['availability'] = __('SOLD OUT', 'woocommerce'); |
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
<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"> |
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
<paper-toolbar> | |
<paper-icon-button icon="menu" on-tap="menuAction"></paper-icon-button> | |
<div class="title">UI App</div> | |
<paper-icon-button icon="more-vert" on-tap="moreAction"></paper-icon-button> | |
</paper-toolbar> | |
<div class=""> | |
<template is="dom-bind"> | |
<paper-input label="Enter your name" value="{{name::input}}"></paper-input> | |
<br> |
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
<link rel="import" href="../../bower_components/iron-icons/iron-icons.html"> | |
<link rel="import" href="../../bower_components/paper-toolbar/paper-toolbar.html"> | |
<link rel="import" href="../../bower_components/paper-icon-button/paper-icon-button.html"> | |
<link rel="import" href="../../bower_components/paper-input/paper-input.html"> |
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
bower install --save PolymerElements/paper-toolbar | |
bower install --save PolymerElements/paper-icon-button |
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
bower.json. Configuration file | |
bower_components/. Project dependencies. | |
index.html. Entrypoint of the app. | |
src/ui-app/ui-app.html. Source code for main element. | |
test/ui-app/ui-app_test.html. Tests for main element. |
NewerOlder