<?php /* NOTE: GENERATED BY GULP !!! */ ?><?php
  $logo_type = flo_data($data, "flo-lovely2-header__logo-type", "site-title");
  $logo_font = flo_font_data($data, "flo-lovely2-header__logo-font");
  $logow = flo_data($data, "flo-lovely2-header__logo-max-width", 176);
  $flo_header__logo_max_width = rem_calc($logow);
  $flo_header__logo_max_width_tablet = rem_calc(flo_data($data, "flo-lovely2-header__logo-max-width--tablet", 176) );
  $optimize_logo = flo_data($data, "optimize_logo_image", false);
?>
<div class="<?php echo $b; ?>__logo-wrap">
  <a href="<?php echo get_home_url(); ?>" class="<?php echo $b; ?>__logo">
    <?php echo $__env->make('core.style', [
      "breakpoint__general" => "
        ".
        flo_render_typography_styles(
        $b__uniq_for_css." ".$b__for_css."__logo",
        $logo_font
        )
        ."
      ",

      "breakpoint__large_up" => "
        ".$b__uniq_for_css." ".$b__for_css."__logo {
          max-width: ".$flo_header__logo_max_width.";
        }

      ",

      "breakpoint__medium_only" => "
      ".$b__uniq_for_css." ".$b__for_css."__logo {
        max-width: ".$flo_header__logo_max_width_tablet.";
      }
      "
    ], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    <?php if($logo_type == "image"): ?>
      <?php
      $main_logo_url = '';
      $main_logo_url = flo_data($data, 'flo-lovely2-header__logo-image', '');
      if ($optimize_logo) {
        $main_logo_url = resize_logo($main_logo_url, $logow);
      }

      if(isset($data['flo-lovely2-header__logo-image--sticky']) && strlen(trim($data['flo-lovely2-header__logo-image--sticky']))){
        $sticky_logo_url = flo_data($data, 'flo-lovely2-header__logo-image--sticky');
        if ($optimize_logo) {
          $sticky_logo_url = resize_logo($sticky_logo_url, $logow);
        }
      }else{
        $sticky_logo_url = $main_logo_url;
      }

      if(isset($data['flo-lovely2-header__logo-image--light']) && strlen(trim($data['flo-lovely2-header__logo-image--light']))){
        $light_logo_url = flo_data($data, 'flo-lovely2-header__logo-image--light');
        if ($optimize_logo) {    
          $light_logo_url = resize_logo($light_logo_url, $logow);
        }
      }else{
        $light_logo_url = $main_logo_url;
      }
    	?>
      <img class="flo-header__logo-image flo-header__logo-image--default" src="<?php echo $main_logo_url; ?>" alt="<?php echo get_bloginfo( 'name' ); ?>" />
      <img class="flo-header__logo-image flo-header__logo-image--sticky" src="<?php echo $sticky_logo_url; ?>" alt="<?php echo get_bloginfo( 'name' ); ?>" />
      <img class="flo-header__logo-image flo-header__logo-image--light" src="<?php echo $light_logo_url; ?>" alt="<?php echo get_bloginfo( 'name' ); ?>" />
    <?php elseif($logo_type == "text"): ?>
      <?php echo flo_data($data, "flo-lovely2-header__logo-text", ""); ?>

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

    <?php endif; ?>
  </a>
</div>
