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 (!extension_loaded('calendar')) { | |
| die("Need extension PHP Calendar"); | |
| } | |
| // Текущая дата | |
| $day = date('d'); | |
| $month = date('m'); | |
| $year = date('Y'); | |
| // Конвертируем в юлианский день |
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
| revapi1.bind("revolution.slide.onloaded",function (e) { | |
| revapi1.click(function() { | |
| var clicks = jQuery(this).data('clicks'); | |
| if (clicks) { | |
| // alert('play'); | |
| revapi1.revresume(); | |
| } else { | |
| // alert('pause'); | |
| revapi1.revpause(); | |
| } |
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
| #template_container, #template_header_image, #template_header, #template_body, #template_footer { | |
| width:100% !important; | |
| max-width:600px !important; | |
| min-width:320px !important; | |
| } | |
| #wrapper { | |
| max-width: 600px !important; | |
| margin: 0 auto !important; | |
| padding: 0 !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
| //remove | |
| add_filter( 'woocommerce_redirect_single_search_result', '__return_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
| $(document).ready(function() { | |
| if ($(window).width() > 767) { | |
| $('.fotorama').on('fotorama:load', function (e, fotorama, extra) { | |
| // console.log(extra); | |
| $('.fotorama__stage__shaft .fotorama__active > img').attr('id','zoomit'); | |
| $('#zoomit').elevateZoom(); | |
| }); | |
| $('.fotorama').on('fotorama:showend', function (e, fotorama, extra) { | |
| // console.log(extra); | |
| $('.fotorama__stage__shaft .fotorama__stage__frame > img').attr('id',''); |
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
| /***** В записях у которых категория или род. категория имеет id 26 выводит black.css. ******/ | |
| /***function.php****/ | |
| if (is_singular('product')){ | |
| global $post; | |
| $term = wp_get_post_terms( $post->ID, 'catalog'); | |
| $term_id = $term[0]->term_id; | |
| $term_parent = $term[0]->parent; | |
| if ($term_parent == 26 || $term_id == 26 ){ | |
| wp_enqueue_style( 'ctk-black', get_template_directory_uri() . '/css/black.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
| Keymap (Windows Users): | |
| [ | |
| { "keys": ["alt+shift+f"], "command": "reindent" }, | |
| ] | |
| Settings: | |
| { | |
| "show_definitions": false, | |
| "auto_complete": false, | |
| "bold_folder_labels": true, |