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
| add_filter( 'wpcf7_validate_text', 'no_urls_allowed', 10, 3 ); | |
| add_filter( 'wpcf7_validate_text*', 'no_urls_allowed', 10, 3 ); | |
| add_filter( 'wpcf7_validate_textarea', 'no_urls_allowed', 10, 3 ); | |
| add_filter( 'wpcf7_validate_textarea*', 'no_urls_allowed', 10, 3 ); | |
| function no_urls_allowed( $result, $tag ) { | |
| $tag = new WPCF7_Shortcode( $tag ); | |
| $type = $tag->type; | |
| $name = $tag->name; |
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
| DELETE FROM ps_accessory WHERE id_product_1 NOT IN (select p.id_product from ps_product p); | |
| DELETE FROM ps_accessory WHERE id_product_2 NOT IN (select p.id_product from ps_product p); | |
| DELETE FROM ps_address WHERE id_customer NOT IN (select c.id_customer from ps_customer c); | |
| DELETE FROM ps_product_comment WHERE id_product NOT IN (select p.id_product from ps_product p); | |
| DELETE FROM ps_product_comment_grade WHERE id_product_comment NOT IN (select pc.id_product_comment from ps_product_comment pc); | |
| DELETE FROM ps_product_comment_usefulness WHERE id_product_comment NOT IN (select pc.id_product_comment from ps_product_comment pc); | |
| DELETE FROM ps_product_lang WHERE id_product NOT IN (select p.id_product from ps_product p); |
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
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| /* CSS */ | |
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
| # This hosts file is brought to you by Dan Pollock and can be found at | |
| # http://someonewhocares.org/hosts/ | |
| # You are free to copy and distribute this file for non-commercial uses, | |
| # as long the original URL and attribution is included. | |
| #<localhost> | |
| 127.0.0.1 localhost | |
| 127.0.0.1 localhost.localdomain | |
| 255.255.255.255 broadcasthost | |
| ::1 localhost |
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
| javascript:(function(){output="<html><head><title>Sistrix Clusters by @Natzir9</title></head><body><button onclick=\"tableToExcel('sistrixTable','Sistrix Clusters')\">Export Sistrix Clusters</button><table%20id=\"sistrixTable\"><tr><th>Keyword</th><th>Count</th><th>Volume</th></tr>";var myValue=document.getElementById('sidebar').getElementsByClassName('value number');for(var i=0;i<myValue.length;i+=3){output=output+"<tr><td>"+myValue[i].innerText+"</td><td>"+myValue[i+1].innerText+"</td><td>"+Math.round(myValue[i+2].innerText)+"</td></tr>";};output+="</table>";with(window.open()){document.write(output);document.body.appendChild(document.createElement('script')).src='https://bl.ocks.org/insin/raw/1031969/tableToExcel.js';document.close();}})(); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
| /** | |
| * @author Mirco Babini, SED Web Italia | |
| * | |
| * Contents: | |
| * - reset payment method on 'add to cart' | |
| * - add message to (customer) email per payment method | |
| * - add payment method to email | |
| * - remove product tabs | |
| * - remove result count and default ordering (doesnt work?) |
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 | |
| /** | |
| * Plugin Name: WooCommerce Composite Products - Hide Components in all Templates | |
| * Plugin URI: http://www.woothemes.com/products/composite-products/ | |
| * Description: Use this snippet to hide Components in the cart, checkout, order and e-mail templates. | |
| * Version: 1.0 | |
| * Author: SomewhereWarm | |
| * Author URI: http://www.somewherewarm.net/ | |
| * Developer: Manos Psychogyiopoulos | |
| * |
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
| // Original code form http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/ | |
| var metas = document.getElementsByTagName('meta'); | |
| var i; | |
| if (navigator.userAgent.match(/iPhone/i)) { | |
| for (i=0; i<metas.length; i++) { | |
| if (metas[i].name == "viewport") { | |
| metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0"; | |
| } | |
| } |