/**
  * @group site_icon
  */
 function test_site_icon_url()
 {
     $this->expectOutputString('');
     site_icon_url();
     $this->_set_site_icon();
     $this->expectOutputString($this->site_icon_url);
     site_icon_url();
 }
		<footer class="site-footer" id="colophon" role="contentinfo">
			<div id="site-info">
				<div class="site-info-left">
					<a href="<?php 
echo esc_url(home_url('/'));
?>
" title="<?php 
echo esc_attr(get_bloginfo('name', 'display'));
?>
" rel="home">
						<img src="<?php 
site_icon_url();
?>
">
						<div class="site-info-title">
							Gaming Group <br> 
							Aachen
						</div>
					</a>
				</div>
				<div class="site-info-right">
					<?php 
if (has_nav_menu('social')) {
    ?>
						<nav class="social-navigation" role="navigation" aria-label="<?php 
    _e('Footer Social Links Menu', 'twentysixteen');
    ?>
">
							<?php 
    wp_nav_menu(array('theme_location' => 'social', 'menu_class' => 'social-links-menu', 'depth' => 1));
Ejemplo n.º 3
0
<th scope="row"><label for="site_icon"><?php 
_e('Site Icon');
?>
</label></th>
<td>
	<?php 
$upload_url = admin_url('options-general.php?page=site-icon');
$update_url = esc_url(add_query_arg(array('page' => 'site-icon', 'action' => 'crop_site_icon'), wp_nonce_url(admin_url('options-general.php'), 'crop-site-icon')));
wp_enqueue_media();
wp_enqueue_script('site-icon');
if (has_site_icon()) {
    $remove_url = add_query_arg(array('action' => 'remove_site_icon'), wp_nonce_url(admin_url('options-general.php'), 'remove-site-icon'));
    ?>

	<img class="avatar avatar-150" src="<?php 
    site_icon_url(null, 150);
    ?>
" height="150" width="150" />
	<p class="hide-if-no-js">
		<label class="screen-reader-text" for="choose-from-library-link"><?php 
    _e('Choose an image from your media library:');
    ?>
</label>
		<button type="button" id="choose-from-library-link" class="button" data-update-link="<?php 
    echo esc_attr($update_url);
    ?>
" data-choose="<?php 
    esc_attr_e('Choose a Site Icon');
    ?>
" data-update="<?php 
    esc_attr_e('Set as Site Icon');