PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
webon-core
/
inc
/
back-to-top
<?php if ( ! function_exists( 'webon_core_is_back_to_top_enabled' ) ) { /** * Function that check is module enabled * * @return bool */ function webon_core_is_back_to_top_enabled() { return webon_core_get_post_value_through_levels( 'qodef_back_to_top' ) !== 'no'; } } if ( ! function_exists( 'webon_core_add_back_to_top_to_body_classes' ) ) { /** * Function that add additional class name into global class list for body tag * * @param array $classes * * @return array */ function webon_core_add_back_to_top_to_body_classes( $classes ) { $classes[] = webon_core_is_back_to_top_enabled() ? 'qodef-back-to-top--enabled' : ''; return $classes; } add_filter( 'body_class', 'webon_core_add_back_to_top_to_body_classes' ); } if ( ! function_exists( 'webon_core_load_back_to_top' ) ) { /** * Loads Back To Top HTML */ function webon_core_load_back_to_top() { if ( webon_core_is_back_to_top_enabled() ) { $parameters = array(); webon_core_template_part( 'back-to-top', 'templates/back-to-top', '', $parameters ); } } add_action( 'webon_action_before_wrapper_close_tag', 'webon_core_load_back_to_top' ); }
[+]
..
[+]
templates
[-] include.php
[edit]
[+]
assets
[-] helper.php
[edit]
[+]
dashboard