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_action( 'init', 'rearrange_tv_shows_content'); | |
| function rearrange_tv_shows_content() { | |
| remove_action( 'masvideos_after_single_tv_show_summary', 'vodi_template_single_related_tv_shows_carousel', 20 ); | |
| remove_action( 'masvideos_after_single_tv_show_summary', 'masvideos_template_single_tv_show_tabs', 30 ); | |
| add_action( 'masvideos_after_single_tv_show_summary', 'vodi_template_single_related_tv_shows_carousel', 21 ); | |
| add_action( 'masvideos_after_single_tv_show_summary', 'masvideos_template_single_tv_show_tabs', 20 ); | |
| } |
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
| $instance = MAS_Travels::instance(); | |
| remove_filter( 'woocommerce_dropdown_variation_attribute_options_html', array( $instance, 'mas_travels_filter_dropdown_option_html' ), 12, 2 ); | |
| add_filter( 'woocommerce_dropdown_variation_attribute_options_html','mas_travels_filter_dropdown_option_html',12, 2 ); | |
| function mas_travels_filter_dropdown_option_html( $html, $args ) { | |
| global $product; | |
| $product_format = get_product_format() ? get_product_format() : 'standard'; | |
| $product_type = $product->get_type(); |
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_action( 'woocommerce_before_shop_loop', 'mytravel_wc_maybe_show_product_subcategories', 25 ); | |
| if ( ! function_exists( 'mytravel_wc_maybe_show_product_subcategories' ) ) { | |
| function mytravel_wc_maybe_show_product_subcategories() { | |
| wc_set_loop_prop( 'loop', 0 ); | |
| $product_cat_columns = apply_filters( 'mytravel_product_cat_columns', 3 ); | |
| $product_columns = absint( max( 1, wc_get_loop_prop( 'columns', wc_get_default_products_per_row() ) ) ); | |
| wc_set_loop_prop( 'columns', $product_cat_columns ); | |
| $wc_sub_categories = woocommerce_maybe_show_product_subcategories( '' ); | |
| wc_set_loop_prop( 'columns', $product_columns ); |
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_action( 'mytravel_single_activity', 'mytravel_single_product_sidebar', 17 ); | |
| add_action( 'mytravel_single_tour', 'mytravel_single_product_sidebar', 21 ); |
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(min-width: 992px) { | |
| .tutor-course-single-content-wrapper .geeks-single-quiz-content, | |
| .tutor-course-single-content-wrapper .tutor-lesson-content-area { | |
| margin-bottom: 208px; | |
| } | |
| } |
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 ( ! function_exists( 'mytravel_room_amenities_preview_1' ) ) { | |
| /** | |
| * Output room ameniities preview | |
| */ | |
| function mytravel_room_amenities_preview_1() { | |
| if ( ! mytravel_is_acf_activated() ) { | |
| return; | |
| } | |
| $area = mytravel_get_field( 'area' ); |
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_action( 'woocommerce_before_single_product_summary', 'mytravel_single_hotel_top_badges', 2 ); | |
| add_action( 'woocommerce_after_single_product_summary', 'mytravel_single_hotel_amenities', 60 ); | |
| add_action( 'woocommerce_after_single_product_summary', 'mytravel_single_hotel_nearest_essentials', 70 ); | |
| add_action( 'woocommerce_after_single_product_summary', 'mytravel_single_hotel_landmarks', 90 ); | |
| add_action( 'woocommerce_after_single_product_summary', 'mytravel_single_hotel_facts', 90 ); | |
| add_action( 'woocommerce_after_single_product_summary', 'mytravel_single_hotel_policy', 100 ); |
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_product_single_add_to_cart_text', 'mas_travels_custom_single_add_to_cart_text' ); | |
| function mas_travels_custom_single_add_to_cart_text( $text ) { | |
| $text = esc_html__( 'Book', 'mytravel' ); | |
| return $text; | |
| } |
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 page_footer( $disabled ) { | |
| global $post; | |
| $student_register_page_id = (int) tutor_utils()->get_option( 'student_register_page' ); | |
| $has_content_access = tutils()->has_enrolled_content_access('lesson'); | |
| $instructor_register_page_id = (int) tutor_utils()->get_option( 'instructor_register_page' ); | |
| $post_id = isset( $post->ID ) ? $post->ID : false; | |
| $parents = get_post_ancestors( $post_id ); | |
| $course_id = ($parents) && ! empty( $parents ) ? $parents[count($parents)-1]: $post_id; | |
| $is_course_public = get_post_meta( $course_id, '_tutor_is_public_course', true ); | |
| $_is_preview = get_post_meta( $post_id, '_is_preview', true ); |
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('views_edit-product', 'mytravel_remove_product_format_links' , 20); | |
| function mytravel_remove_product_format_links( $views ) { | |
| if( isset( $views['product_format_links'] ) ) { | |
| unset( $views['product_format_links'] ); | |
| } | |
| return $views; | |
| } |