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 | |
/** | |
* Custom functions for the use of the Advanced Custom Fields plugin. | |
* These are helper functions that you can include in your theme | |
* which make it easier to your ACF. The purpose is to allow the | |
* inclusion of ACF fields while also checking to see if ACF is | |
* installed and activated. With these functions you may be able to | |
* deactivate ACF for debugging and your theme will not throw | |
* errors. | |
* |
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
<div id="grid-posts"> | |
<form id="grid-posts-block" action="https://dev.itlvl.com/nashi-raboty/" method="get" style=""> | |
<div id="tabs-bar" class="grid-posts__block"> | |
<ul id="tabs-nav"> | |
<li> | |
<input class="js-submit-form" id="service-id-all" type="radio" name="service-id" value="all" checked="checked"> | |
<label class="btn-3" for="service-id-all"><span>Все</span></label> | |
</li> | |
<li> | |
<input class="js-submit-form" id="service-id-63" type="radio" name="service-id" value="63"> |
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
<form action="/cart/add" method="post"> | |
{% if product.variants.size > 1 %} | |
{% if product.options[0] %} | |
<label for="select-one">{{ product.options[0] }}</label> | |
<select id="select-one" onchange="letsDoThis()"> | |
{% for value in product.options_with_values[0].values %} | |
<option value="{{ value }}" {% if product.options_with_values[0].selected_value == value %}selected{% endif %}> | |
{{ value }} | |
</option> | |
{% endfor %} |
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 | |
/* | |
Plugin Name: Homepage Settings for BigBang | |
Plugin URI: http://www.inboundnow.com/ | |
Description: Adds additional functionality to the big bang theme. | |
Author: David Wells | |
Author URI: http://www.inboundnow.com | |
*/ | |
// Specify Hooks/Filters |
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
<div class="form-floating mb-3"> | |
<input type="email" class="form-control" id="floatingInput" placeholder="name@example.com"> | |
<label for="floatingInput">Email address</label> | |
</div> | |
<div class="form-floating"> | |
<textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea2" style="height: 100px"></textarea> | |
<label for="floatingTextarea2">Comments</label> | |
</div> |
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
/* Minifies HTML and removes comments (except IE tags and comments within script tags) | |
* | |
* To disable compression of code portions, use '<!--wp-html-compression no compression-->' tag | |
* | |
* @see http://forrst.com/posts/Wordpress_Minify_output_HTML-29q | |
* @see http://www.intert3chmedia.net/2011/12/minify-html-javascript-css-without.html | |
*/ | |
class WP_HTML_Compression | |
{ | |
// Settings |
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
// lasy load | |
img.js-lazyload { | |
visibility: hidden; | |
} | |
img.js-lazyload.lazyloaded { | |
visibility: visible; | |
} | |
const options = { |
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
// Замена в чакауте лейб бна плейсхолдеры | |
function true_labels_as_placeholders( $checkout_fields ) { | |
// как вы помните, поля делятся на секции (Billing, Shipping и так далее) | |
// для каждой секции | |
foreach ( $checkout_fields as $section => $section_fields ) { | |
// для каждого поля внутри секции | |
foreach ( $section_fields as $section_field => $section_field_settings ) { | |
// да, вот так легко | |
$checkout_fields[ $section ][ $section_field ][ 'placeholder' ] = $checkout_fields[ $section ][ $section_field ][ 'label' ]; | |
$checkout_fields[ $section ][ $section_field ][ 'label' ] = ''; |
NewerOlder