Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/jet-blocks   php

Repository URL to install this package:

Version: 1.2.8 

/ jet-logo / global / index.php

<?php
/**
 * Loop item template
 */
$is_linked = $this->__is_linked();
$settings  = $this->get_settings();
?>
<div class="<?php echo $this->__get_logo_classes(); ?>">
<?php
if ( $is_linked ) {
	printf( '<a href="%1$s" class="jet-logo__link">', esc_url( home_url( '/' ) ) );
} else {
	echo '<div class="jet-logo__link">';
}

echo $this->__get_logo_image();
echo $this->__get_logo_text();

if ( $is_linked ) {
	echo '</a>';
} else {
	echo '</div>';
}
?>
</div>