[{capture append="oxidBlock_content"}]
[{assign var="wishuser" value=$oView->getWishUser()}]
    [{if !$oView->getWishListUsers() && $oView->getWishListSearchParam()}]
        [{assign var="_statusMessage" value="MESSAGE_SORRY_NO_GIFT_REGISTRY"|oxmultilangassign}]
        [{include file="message/error.tpl" statusMessage=$_statusMessage}]
    [{/if}]
    <h1 class="page-header">[{if $wishuser}][{oxmultilang ident="GIFT_REGISTRY_OF"}] [{$wishuser->oxuser__oxfname->value}] [{$wishuser->oxuser__oxlname->value}][{else}][{oxmultilang ident="PUBLIC_GIFT_REGISTRIES"}][{/if}]</h1>
    <div class="wishlistView clear bottomRound">
        [{include file="form/wishlist_search.tpl" searchClass="wishlist"}]
        [{if $oView->getWishList()}]
            [{assign var="wishuser" value=$oView->getWishUser()}]
            <p class="wishlistUser">
            [{oxmultilang ident="WISHLIST_PRODUCTS" args=$wishuser->oxuser__oxfname->value|cat:' '|cat:$wishuser->oxuser__oxlname->value}]
            </p>
        [{/if}]
    </div>
    [{if $oView->getWishList()}]
        [{include file="widget/product/list.tpl" type="line" title="" listId="wishlistProductList" products=$oView->getWishList() owishid=$wishuser->oxuser__oxid->value}]
    [{else}]
        [{oxmultilang ident="GIFT_REGISTRY_EMPTY"}]
    [{/if}]
    [{insert name="oxid_tracker"}]
[{/capture}]
[{include file="layout/page.tpl" sidebar="Left"}]
