Example #1
0
    function kt_get_hotline()
    {
        $hotline = kt_get_info_hotline();
        $email = kt_get_info_email();
        ob_start();
        ?>
            <div class="nav-top-links link-contact-us">
                <?php 
        if ($hotline) {
            ?>
                    <a class="hotline" title="<?php 
            echo esc_attr($hotline);
            ?>
">
                        <span><i class="fa fa-phone"></i> <?php 
            echo esc_attr($hotline);
            ?>
</span>
                    </a>
                <?php 
        }
        ?>
                <?php 
        if ($email && is_email($email)) {
            ?>
                    <a class="email" href="<?php 
            echo esc_attr('mailto:' . $email);
            ?>
" title="<?php 
            echo esc_attr($email);
            ?>
">
                        <span><i class="fa fa-envelope"></i> <?php 
            esc_html_e('Contact us today !', 'kutetheme');
            ?>
</span>
                    </a>
                <?php 
        }
        ?>
            </div>
        <?php 
        $result = ob_get_contents();
        ob_end_clean();
        $allowed_html = array('a' => array('href' => array(), 'title' => array()), 'i' => array('class' => array()), 'div' => array('class' => array()), 'span' => array());
        echo wp_kses($result, $allowed_html);
    }
Example #2
0
    function kt_get_hotline()
    {
        $hotline = kt_get_info_hotline();
        $email = kt_get_info_email();
        ob_start();
        ?>
            <div class="nav-top-links link-contact-us">
                <?php 
        if ($hotline) {
            ?>
                    <a title="<?php 
            echo $hotline;
            ?>
">
                        <img alt="<?php 
            echo $hotline;
            ?>
" src="<?php 
            $phone_icon = THEME_URL . '/images/phone.png';
            echo $phone_icon;
            ?>
" />
                        <span><?php 
            echo $hotline;
            ?>
</span>
                    </a>
                <?php 
        }
        ?>
                <?php 
        if ($email) {
            ?>
                    <a href="mailto:<?php 
            echo $email;
            ?>
" title="<?php 
            echo $email;
            ?>
">
                        <img alt="<?php 
            echo $email;
            ?>
" src="<?php 
            $email_icon = THEME_URL . '/images/email.png';
            echo $email_icon;
            ?>
" />
                        <span><?php 
            _e('Contact us today !', THEME_LANG);
            ?>
</span>
                    </a>
                <?php 
        }
        ?>
            </div>
        <?php 
        $result = ob_get_contents();
        ob_end_clean();
        return $result;
    }
Example #3
0
<?php

$address = kt_get_info_address();
$hotline = kt_get_info_hotline();
$email = kt_get_info_email();
$copyright = kt_get_info_copyrights();
$kt_footer_payment_logo = kt_option('kt_footer_payment_logo', '');
$kt_footer_background = kt_option('kt_footer_background', '');
?>
<!-- Footer -->
<footer id="footer2" class="footer3">
     <div class="footer-top">
         <div class="container">
             <div class="row">
                 <div class="col-sm-3">
                     <div class="footer-logo">
                         <?php 
kt_get_logo_footer();
?>
                     </div>
                 </div>
                 <div class="col-sm-12 col-md-6">
                     <div class="footer-menu">       
                         <?php 
wp_nav_menu(array('menu' => 'custom_footer_menu', 'theme_location' => 'custom_footer_menu', 'depth' => 1, 'container' => '', 'container_class' => '', 'container_id' => '', 'menu_class' => 'custom_footer_menu', 'fallback_cb' => 'wp_bootstrap_navwalker::fallback', 'walker' => new wp_bootstrap_navwalker()));
?>
                     </div>
                 </div>
                 <div class="col-sm-12 col-md-3">
                    <div class="footer-sidebar4">
                        <?php