<?php /* NOTE: GENERATED BY GULP !!! */ ?><?php
  $use_custom_logo = flo_get_option("flo-lovely2-header-mobile-header__use-custom-logo", false);
  if ($use_custom_logo) {
    /* START: USE CUSTOM MOBILE LOGO */
      $custom_logo_type = flo_get_option("flo-lovely2-header-mobile-header__logo-type", false);
      $custom_logo_text = flo_get_option("flo-lovely2-header-mobile-header__logo-text", false);
      $custom_logo_image = flo_get_option("flo-lovely2-header-mobile-header__logo-image", false);
      $custom_logo_image_light = flo_get_option("flo-lovely2-header-mobile-header__logo-image--light", false);

      $logo_type = $custom_logo_type;
      $logo_text = $custom_logo_text;
      $logo_image = $custom_logo_image;
      $logo_image_light = $custom_logo_image_light ? $custom_logo_image_light : $custom_logo_image;
    /* END: USE CUSTOM MOBILE LOGO */
  } else {
    /* START: USE DESKTOP LOGO */
      $desktop_logo_type = flo_get_option("flo-lovely2-header__logo-type", "site-title");
      $desktop_logo_text = flo_get_option("flo-lovely2-header__logo-text", false);;
      $desktop_logo_image = flo_get_option("flo-lovely2-header__logo-image", false);;
      $desktop_logo_image_light = flo_get_option("flo-lovely2-header__logo-image--light", false);;

      $logo_type = $desktop_logo_type;
      $logo_text = $desktop_logo_text;
      $logo_image = $desktop_logo_image;
      $logo_image_light = $desktop_logo_image_light ? $desktop_logo_image_light : $desktop_logo_image;
    /* END: USE DESKTOP LOGO */
  }

?>

<a href="<?php echo get_home_url(); ?>" class="flo-header-mobile__logo">
  <?php if($logo_type == "image"): ?>
    <img class="flo-header-mobile__logo-image flo-header-mobile__logo-image--default" src="<?php echo $logo_image; ?>" alt="<?php echo get_bloginfo( 'name' ); ?>"/>
    <img class="flo-header-mobile__logo-image flo-header-mobile__logo-image--light" src="<?php echo $logo_image_light; ?>" alt="<?php echo get_bloginfo( 'name' ); ?>"/>
  <?php elseif($logo_type == "text"): ?>
    <?php echo $logo_text; ?>

  <?php elseif($logo_type == "site-title" || !$logo_type): ?>
    <?php echo get_bloginfo( 'name' );; ?>

  <?php endif; ?>
</a>
