This file contains hidden or 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
<div id="price"> | |
<!--price tab--> | |
<div class="plan"> | |
<div class="plan-inner"> | |
<div class="entry-title"> | |
<h3>Basic Wash</h3> | |
<div class="price">$25<span>/PER CAR</span> | |
</div> | |
</div> | |
<div class="entry-content"> |
This file contains hidden or 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
development: | |
store: example.myshopify.com | |
password: add-password-in-config | |
theme_id: "live" | |
bucket_size: 40 | |
refill_rate: 2 | |
ignore_files: | |
- "*.swp" | |
- "*~" | |
- "config/settings_data.json" |
This file contains hidden or 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
<form action="/cart/add" method="post" enctype="multipart/form-data" class="product-form" id="AddToCartForm"> | |
<div class="mmc-engine-sf-float-left-wrapper"> | |
<select name="id" id="ProductSelect" class="product-form__variants"> | |
{% for variant in product.variants %} | |
<option {% if variant == current_variant %} selected="selected" {% endif %} data-sku="{{ variant.sku }}" value="{{ variant.id }}" {% unless variant.available %} disabled="disabled" {% endunless %} data-price="{{ variant.price | money_without_currency | remove: ',' }}"> | |
{% if variant.available %} | |
{{ variant.title }} - {{ variant.price | money_with_currency }} | |
{% else %} | |
{{ variant.title }} - {{ 'products.product.sold_out' | t }} | |
{% endif %} |
This file contains hidden or 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
<select onchange="javascript:location.href = this.value;"> | |
{% for p in collection.products %} | |
{% unless p.id == product.id %} | |
<option value="{{ p.url | within: collection }}">{{ p.title }}</option> | |
{% endunless %} | |
{% endfor %} | |
</select> |
This file contains hidden or 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
/////////////////////////////////////////////////// | |
// Checking for template conditional | |
/////////////////////////////////////////////////// | |
<div class="content-wrapper"> | |
{% if template == 'index' %} | |
{{ content_for_layout }} | |
{% elsif template == 'page.aboutus' %} | |
{{ content_for_layout }} | |
{% else %} |
This file contains hidden or 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 | |
//* Using the Gravity Forms editor, be sure to check "Allow field to be populated dynamically under Advanced Options | |
//* You will need to set the Field Parameter Name value to work with the filter as follows: gform_field_value_$parameter_name | |
//* Dynamically populate first name for logged in users | |
add_filter('gform_field_value_first_name', 'populate_first_name'); | |
function populate_first_name($value){ | |
global $current_user; | |
get_currentuserinfo(); | |
return $current_user->user_firstname; |
This file contains hidden or 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
describe('conditional testing', function() { | |
it('should be able to test conditionally', function() { | |
browser.get('http://www.angularjs.org'); | |
element(by.css('.theresnowaythisclassexists')).then( | |
function elementExists() { | |
expect(false).toBe(true); | |
}, | |
function elementDoesNotExist() { | |
expect(true).toBe(true); | |
} |
This file contains hidden or 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 | |
/** | |
* Disable the emojis | |
*/ | |
function disable_emojis() { | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
remove_action( 'wp_print_styles', 'print_emoji_styles' ); | |
remove_action( 'admin_print_styles', 'print_emoji_styles' ); |
This file contains hidden or 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 | |
/** | |
* Dequeue jQuery Migrate Script in WordPress. | |
*/ | |
if ( ! function_exists( 'evolution_remove_jquery_migrate' ) ) : | |
function evolution_remove_jquery_migrate( &$scripts) { | |
if(!is_admin()) { | |
$scripts->remove( 'jquery'); |
This file contains hidden or 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 | |
/** | |
* Frees the header from unnecessary entries | |
*/ | |
add_action('init', 'evolution_remheadlink'); | |
function evolution_remheadlink() | |
{ | |
remove_action('wp_head', 'rsd_link'); | |
remove_action('wp_head', 'wp_generator'); |