<?php


    if ($size == false or $size == '') {
        $size = 'auto';
    }
    else{
        $size = $size . 'px';
    }


 ?>


<a href="<?php if (!in_live_edit()) {
    print site_url();
} else {
    if ($logoimage == '' and $text == '') {
          print 'javascript:mw.drag.module_settings();void(0);';
    } else {
          print site_url();
    }




}; ?>" class="module-logo module-logo-2rows" style="width: auto;">
    <?php if ($logoimage == '' and $text == '') {
        if (is_live_edit()) { ?><span class="mw-logo-no-values"><?php _e('Click to add logo'); ?></span><?php }
    } else { ?>
        <?php if ($logotype == 'image' or $logotype == false or $logotype == 'both') { ?><span class="module-logo-row-top" style="width: <?php print $size; ?>">
            <img src="<?php print $logoimage; ?>" alt="" style="max-width: 100%;width: <?php print $size; ?>;"/>
            </span><?php } ?>
        <?php if ($logotype == 'text' or $logotype == false or $logotype == 'both') { ?><span class="module-logo-row-bottom"><span
                class="module-logo-text"
                style="font-family: '<?php print $font_family_safe; ?>';font-size:<?php print $font_size; ?>px"><?php print $text; ?></span>
            </span><?php } ?>

    <?php } ?>
</a>