HEX
Server: Apache
System: Linux linplesk41.pumo.com.tw 3.10.0-962.3.2.lve1.5.27.el7.x86_64 #1 SMP Sat Nov 30 02:18:52 EST 2019 x86_64
User: rajlaw (10192)
PHP: 7.4.24
Disabled: phpinfo,passthru,exec,shell_exec,system,popen,proc_open,proc_close,show_source,pcntl_exec,escapeshellcmd,proc_get_status,proc_nice,proc_terminate,escapeshellarg
Upload Files
File: /home/httpd/vhosts/rajlaw.com.tw/httpdocs/wp-content/themes/cleaning-services-agent/footer.php
<?php
/**
 * The template for displaying the footer
 * 
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package cleaning_services_agent
 */

// Get the footer background color/image settings from customizer
$cleaning_services_agent_footer_background_color = get_theme_mod('footer_background_color_setting', ''); // Default to white if not set
$cleaning_services_agent_footer_background_image = get_theme_mod('footer_background_image_setting');

if (!is_front_page() || is_home()) {
    ?>
    </div>
    </div>
</div>
<?php } ?>

<footer id="colophon" class="site-footer" style="background-color: <?php echo esc_attr($cleaning_services_agent_footer_background_color); ?>; <?php echo ($cleaning_services_agent_footer_background_image) ? 'background-image: url(' . esc_url($cleaning_services_agent_footer_background_image) . ');' : ''; ?>">
    <div class="site-footer-top">
        <div class="asterthemes-wrapper">
            <div class="footer-widgets-wrapper">

                <?php
                // Footer Widget
                do_action('cleaning_services_agent_footer_widget');
                ?>

            </div>
        </div>
    </div>
    <div class="site-footer-bottom">
        <div class="asterthemes-wrapper">
            <div class="site-footer-bottom-wrapper">
                <div class="site-info">
                    <?php
                    do_action('cleaning_services_agent_footer_copyright');
                    ?>
                </div>
            </div>
        </div>
    </div>
</footer>

<?php
$cleaning_services_agent_is_scroll_top_active = get_theme_mod( 'cleaning_services_agent_scroll_top', true );
if ( $cleaning_services_agent_is_scroll_top_active ) :
    $cleaning_services_agent_scroll_position = get_theme_mod( 'cleaning_services_agent_scroll_top_position', 'bottom-right' );
    $cleaning_services_agent_scroll_shape = get_theme_mod( 'cleaning_services_agent_scroll_top_shape', 'box' );
    ?>
    <style>
        #scroll-to-top {
            position: fixed;
            <?php
            switch ( $cleaning_services_agent_scroll_position ) {
                case 'bottom-left':
                    echo 'bottom: 25px; left: 20px;';
                    break;
                case 'bottom-center':
                    echo 'bottom: 25px; left: 50%; transform: translateX(-50%);';
                    break;
                default: // 'bottom-right'
                    echo 'bottom: 25px; right: 90px;';
            }
            ?>
        }
    </style>
    <a href="#" id="scroll-to-top" class="cleaning-services-agent-scroll-to-top <?php echo esc_attr($cleaning_services_agent_scroll_shape); ?>"><i class="<?php echo esc_attr( get_theme_mod( 'cleaning_services_agent_scroll_btn_icon', 'fas fa-chevron-up' ) ); ?>"></i></a>
<?php
endif;
?>
</div>

<?php wp_footer(); ?>

</body>

</html>