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
| // consulente error checks | |
| consulente_errors_list = []; | |
| $('#detrazione-fiscale-consulente .consulente-checK input[type="checkbox"]').change(function () { | |
| consulente_errors_list = $('#detrazione-fiscale-consulente .consulente-checK input[type="checkbox"]:checked').map(function (i) { | |
| var classes = $(this).closest('.cmb-row').attr('class'); | |
| var error_el = '.' + classes.match("cmb2-id-([a-zA-Z\-]+)")[1]; | |
| //console.log(consulente_errors_list); | |
| //console.log(error_el); |
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 | |
| $string = 'stringToSearch'; | |
| $dir = new RecursiveDirectoryIterator('folder'); | |
| foreach (new RecursiveIteratorIterator($dir) as $filename => $file) { | |
| //$thename = $file->getFilename(); //uncomment this line and next to print names of all files scanned | |
| //echo $thename.'<br />'; | |
| $content = file_get_contents($file->getPathname()); | |
| if (strpos($content, $string) !== false) { |
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 | |
| ////////////////////////////////////////////////////////////// | |
| ///////// AUTOMATE ALT TAGS FOR IMAGES | |
| ////////////////////////////////////////////////////////////// | |
| function image_alt_tag($content) { | |
| global $post; | |
| preg_match_all('/<img (.*?)\/>/', $content, $images); | |
| if(!is_null($images)) { | |
| foreach($images[1] as $index => $value) { | |
| if(!preg_match('/alt=/', $value) && preg_match('/< *img[^>]*src *= *["\']?([^"\']*)/i', $value)) { |
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 | |
| usort($array, function($a, $b) { if($a['key']==$b['key']) return 0; return $a['key'] > $b['key']?1:-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
| /* HAMBURGER ANIMATION 2 | |
| created by bux www.woptima.com */ | |
| .navbar-toggle{ | |
| -webkit-transition: transform; | |
| transition: transform; | |
| -webkit-transition-duration: 300ms; | |
| transition-duration: 300ms; | |
| -webkit-transition-timing-function: cubic-bezier(0.7, 0, 0, 0.7); | |
| transition-timing-function: cubic-bezier(0.7, 0, 0, 0.7); |
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
| /* GRAVITY FORMS */ | |
| select:focus, input[type="file"]:focus, input[type="radio"]:focus { | |
| outline: none !important; | |
| } | |
| .gform_wrapper .gform_body { | |
| width:100%!important; | |
| } |
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
| /* checkboxes */ | |
| .checkboxer>.gfield_label { | |
| display: inline-block !important; | |
| padding-left: 15px !important; | |
| width: calc(100% - 30px) !important; | |
| float: right; | |
| } | |
| .gfield_checkbox, .gfield_checkbox li, .ginput_container_checkbox { | |
| width: auto !important; |
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 | |
| ////////////////////////////////////////////////////////////// | |
| // WOO COMMERCE SNIPPETS | |
| ////////////////////////////////////////////////////////////// | |
| /////////////////////////////////////////////////////////// | |
| // PAYMENT TYPE IN MAIL | |
| /////////////////////////////////////////////////////////// | |
| add_action( 'woocommerce_email_after_order_table', 'add_payment_method_to_admin_new_order', 15, 2 ); |