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
| .search-results { | |
| position: absolute; | |
| background: #fff; | |
| left: -24px !important; | |
| width: calc(100% + 48px) !important; | |
| top: 100% !important; | |
| margin: 0 !important; | |
| list-style: none; | |
| padding: 10px 24px 20px; | |
| } |
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
| $(function() { | |
| var currentAjaxRequest = null; | |
| var searchForms = $('form[action="/search"]').each(function() { | |
| var input = $(this).find('input[name="q"]'); | |
| $('<ul class="search-results"></ul>').appendTo($(this)); | |
| input.attr('autocomplete', 'off').bind('keyup change', function() { | |
| var term = $(this).val(); |
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
| // media_coverages = Post Type | |
| $archives_link = wp_get_archives(array('type' => 'yearly', 'post_type' => 'media_coverages', 'format' => 'option', 'echo' => 0)); | |
| $archives_link = str_replace('</option>', '</option>, ', $archives_link); | |
| $archives_link = preg_replace('#<option.*?>#si', '', $archives_link); | |
| $archives_link = preg_replace('#<\/option>#si', '', $archives_link); | |
| $archives_links = explode(', ', $archives_link); | |
| foreach($archives_links as $link){ | |
| $link = trim($link); |
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
| // media_coverages = Post Type | |
| function media_coverages_rewrite_rules(){ | |
| // For year and month | |
| add_rewrite_rule( | |
| 'media_coverages/([0-9]{4})/([0-9]{1,2})/?$', | |
| 'index.php?post_type=media_coverages&year=$matches[1]&monthnum=$matches[2]', | |
| 'top' |
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
| <script> | |
| (function(){ | |
| var divisor = 25; | |
| var videos_status = []; | |
| function eventHandler(e) { | |
| switch (e.type) { | |
| case 'timeupdate': | |
| videos_status[e.target.id].current = Math.round(e.target.currentTime); | |
| var pct = Math.floor(100 * videos_status[e.target.id].current / e.target.duration); | |
| for (var j in videos_status[e.target.id]._progress_markers) { |
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
| {% comment %} | |
| Replace the text below with the handle of your add-on product. | |
| {% endcomment %} | |
| {% assign product = all_products['PRODUCT-HANDLE'] %} | |
| <!-- Replace Product Handle with the handle of your product --> | |
| {% unless cart.item_count == 0 or product.empty %} | |
| {% if product.variants.size > 1 %} |
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
| DISCOUNT_AMOUNT = 100 | |
| # Counting quantity of products | |
| $cartcount = 0 | |
| Input.cart.line_items.each do |item| | |
| $cartcount = $cartcount + item.quantity | |
| end | |
| # Offering discount based on the quantity after sorting the array for getting the least expensive item | |
| if ($cartcount > 1) |
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
| {% if checkout.total_price < 20000%} | |
| <style> | |
| .step__footer{ position: relative; padding-top: 35px; } | |
| .step__footer:before{ | |
| content: 'Minimum orders have to be over $200.00.'; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| font-size: 16px; | |
| text-align: center; |
NewerOlder