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
/** | |
* Displaying first name and last name fields on | |
* MAS Video's registration page. | |
*/ | |
function masvideos_customize_register_form() { | |
$fields = array( | |
'first_name' => __('First name', 'masvideos'), | |
'last_name' => __('Last name', 'masvideos') | |
); | |
foreach( $fields as $k => $v ): ?> |
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( 'jh_child_job_archive_custom_content' ) ) { | |
function jh_child_job_archive_custom_content() { | |
$static_content_id = '1354'; // Replace 1354 with your static block id | |
$static_content = get_post( $static_content_id ); | |
echo do_shortcode( $static_content->post_content ); | |
} | |
} | |
add_action( 'jobhunt_after_job_listing_loop', 'jh_child_job_archive_custom_content', 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
if( ! function_exists( 'front_child_hp_single_listing_custom_action_text' ) ) { | |
function front_child_hp_single_listing_custom_action_text( $action_text ) { | |
$action_text = esc_html__( 'Buy Now', 'front' ); | |
return $action_text; | |
} | |
} | |
add_filter( 'front_hp_single_listing_action_text', 'front_child_hp_single_listing_custom_action_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
if( ! function_exists( 'front_child_slick_inside_tab_width_issue_fix_script' ) ) { | |
function front_child_slick_inside_tab_width_issue_fix_script() { | |
ob_start(); ?> | |
(function ($) { | |
"use strict"; | |
$(document).ready(function () { | |
$('a[role="tab"]').on('shown.bs.tab', function (e) { | |
$('.js-slick-carousel').slick('setPosition'); | |
}) | |
}); |
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( 'job_manager_term_dropdown_field_custom_orderby_args' ) ) { | |
function job_manager_term_dropdown_field_custom_orderby_args( $args ) { | |
$args['orderby'] = 'slug'; | |
return $args; | |
} | |
} | |
add_filter( 'job_manager_term_multiselect_field_args', 'job_manager_term_dropdown_field_custom_orderby_args' ); | |
add_filter( 'job_manager_term_select_field_wp_dropdown_categories_args', 'job_manager_term_dropdown_field_custom_orderby_args' ); |
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( 'front_child_tabs_max_limit_increase' ) ) { | |
function front_child_tabs_max_limit_increase() { | |
$custom_script = ' | |
var addFilter = wp.hooks.addFilter; | |
addFilter("frontgb.tabs.edit.inspector.max.limit", "front-child/tabs-edit-inspector-max-limit", frontChildTabsMaxLimit); | |
function frontChildTabsMaxLimit(limit) { | |
return 8; | |
} | |
'; |
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( 'masvideos_video_object_structured_data_type_for_page' ) ) { | |
function masvideos_video_object_structured_data_type_for_page( $types ) { | |
$key = array_search( 'video', $types ); | |
if ( false !== $key ){ | |
$types[$key] = strtolower( 'VideoObject' ); | |
} | |
return $types; | |
} | |
} | |
add_filter( 'masvideos_structured_data_type_for_page', 'masvideos_video_object_structured_data_type_for_page' ); |
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( 'front_child_wp_enqueue_wc_catalog_ordering_select_scripts' ) ) { | |
function front_child_wp_enqueue_wc_catalog_ordering_select_scripts() { | |
if ( function_exists( 'front_is_woocommerce_activated' ) && front_is_woocommerce_activated() && ( is_shop() || is_product_category() || is_tax( 'product_label' ) || is_tax( get_object_taxonomies( 'product' ) ) ) ) { | |
wp_enqueue_script( 'front-hs-selectpicker' ); | |
wp_enqueue_script( 'bootstrap-select' ); | |
wp_enqueue_script( 'front-hidemaxlistitem', get_template_directory_uri() . '/assets/js/hideMaxListItem-min.js', array( 'jquery' ), $front_version, true ); | |
} | |
} | |
} | |
add_action( 'wp_enqueue_scripts', 'front_child_wp_enqueue_wc_catalog_ordering_select_scripts' ); |
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
#job-manager-job-applications div.job-applications ul.job-applications li.job-application footer ul.actions li a { | |
text-indent: 0; | |
} | |
#job-manager-job-applications div.job-applications ul.job-applications li.job-application footer ul.actions li a:before { | |
padding: 14px 0px; | |
} |
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
.aiovg-player { | |
position: static; | |
padding-bottom: 0 !important; | |
} |