{if isset($view->responseCacheEnabled) && $view->responseCacheEnabled}
   {* render always add button when response cache is enabled *}
   <a class="btn-fav {$modify_class}" href="{url s=favorite IDp=$product.id}" title="{t}Přidat do oblíbených{/t}"
      rel="nofollow" data-favorites-add="1" {$data_attributes}><span class="fc icons_heart"></span></a>
{elseif $ctrl.logged}
   {if {get_product_info id=$product.id type='is_favorite'} && !$cache}
      <a class="btn-fav {$modify_class} active" href="{url s=favorite IDp=$product.id acn="delete"}" title="{t}Odebrat z oblíbených{/t}"
         rel="nofollow" data-favorites-add="-1" {$data_attributes}><span class="fc icons_heart"></span></a>
   {else}
      <a class="btn-fav {$modify_class}" href="{url s=favorite IDp=$product.id}" title="{t}Přidat do oblíbených{/t}"
         rel="nofollow" data-favorites-add="1" {$data_attributes}><span class="fc icons_heart"></span></a>
   {/if}
{else}
   <a class="btn-fav {$modify_class} cart-signin" href="{url s=favorite IDp=$product.id}" data-signin-next="{url s=favorite IDp=$product.id}"
      title="{t}Přidat do oblíbených{/t}" rel="nofollow" {$data_attributes}><span class="fc icons_heart"></span></a>
{/if}
