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 all and (-ms-high-contrast:none) | |
| { | |
| #img_header_ru img { | |
| width: 180px!important; | |
| } /* IE10 */ | |
| *::-ms-backdrop, #img_header_ru img { | |
| width: 180px!important; | |
| } /* IE11 */ | |
| } |
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 | |
| /** | |
| * Polylang Shortcode - https://wordpress.org/plugins/polylang/ | |
| * Add this code in your functions.php | |
| * Put shortcode [polylang_langswitcher] to post/page for display flags | |
| * | |
| * @return string | |
| */ | |
| function custom_polylang_langswitcher() { | |
| $output = ''; |
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
| /* | |
| * Polylang Language API functions tester - WordPress | |
| * Github: https://gist.github.com/icetee/fbbfef5534fead58611e | |
| * | |
| */ | |
| function ex_pll_the_languages($arg = '') { | |
| if ( function_exists('pll_the_languages') ) { | |
| return pll_the_languages($arg); | |
| } |
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('get_search_form', 'my_search_form_text'); | |
| function my_search_form_text($html) { | |
| if(pll_current_language() == 'uk') { | |
| $html = str_replace( 'placeholder="Search ', 'placeholder="Пошук ', $html ); | |
| return $html; | |
| } | |
| } |
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
| // Get WooCommerce product price by ID via shortcode: [iw_product_price id=''] | |
| function iw_product_price_shortcode( $atts ) { | |
| $atts = shortcode_atts( array( | |
| 'id' => null, | |
| ), $atts, 'bartag' ); | |
| $html = ''; | |
| if( intval( $atts['id'] ) > 0 && function_exists( 'wc_get_product' ) ){ | |
| $_product = wc_get_product( $atts['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
| /** | |
| * Замена значка гривны на текст | |
| */ | |
| add_filter( 'woocommerce_currencies', 'add_my_currency' ); | |
| function add_my_currency( $currencies ) { | |
| $currencies['UAH'] = __( 'Українська гривня', 'woocommerce' ); | |
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 в админке для всех медиафайлов | |
| add_filter('manage_media_columns', 'posts_columns_attachment_id', 1); | |
| add_action('manage_media_custom_column', 'posts_custom_columns_attachment_id', 1, 2); | |
| function posts_columns_attachment_id($defaults){ | |
| $defaults['wps_post_attachments_id'] = __('ID'); | |
| return $defaults; | |
| } //добавляем функцию | |
| function posts_custom_columns_attachment_id($column_name, $id){ | |
| if($column_name === 'wps_post_attachments_id'){ | |
| echo $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
| <div class="s-about__links"> | |
| <a href="about_us.html" class="s-about__box"> | |
| </a> | |
| <a href="news.html" class="s-about__box"> | |
| <div class="s-about__img"> | |
| </a> | |
| <a href="gardens.html" class="s-about__box"> | |
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
| <div class="overlay" id="overlay"> | |
| <div class="overlay-background" id="overlay-background"></div> | |
| <div class="overlay-content1" id="overlay-content1"></div> | |
| <div class="overlay-content2" id="overlay-content2"></div> | |
| </div | |
| $("#popup-ask, #popup-ask-btn").on("click", function(event) { | |
| event.preventDefault(); | |
| $('#overlay').addClass('open'); |
NewerOlder