示例#1
0
function webfonts()
{
    ?>
<script>
    WebFontConfig = {
        google: {
            families: ['Lato']
        },
        active: function() {
            // active event
        }
    };
  (function() {
    var wf = document.createElement('script');
    wf.src = '<?php 
    echo get_template_directory_URI();
    ?>
/assets/vendors/webfontloader/webfontloader.js';
    wf.type = 'text/javascript';
    wf.async = 'true';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(wf, s);
  })();
</script>

<?php 
}
示例#2
0
    function mts_copyrights_credit()
    {
        global $options;
        ?>
<!--start copyrights-->
<div class="row" id="copyright-note">
<span><a href="<?php 
        echo home_url();
        ?>
/" title="<?php 
        bloginfo('description');
        ?>
"><?php 
        bloginfo('name');
        ?>
</a> Copyright &copy; <?php 
        echo date("Y");
        ?>
.</span>
<div class="top"><?php 
        echo $options['mts_copyrights'];
        ?>
 <a href="#top" class="toplink"><img src="<?php 
        echo get_template_directory_URI();
        ?>
/images/top.png" alt=""/></a></div>
</div>
<!--end copyrights-->
<?php 
    }