<{if $block.who_can_read=='' || ($block.who_can_read=='users' && $xoops_isuser) || ($block.who_can_read=='web_users' && $LoginWebID==$WebID) || ($block.who_can_read=='web_admin' && $isMyWeb)}>
    <div class="tad_web_block">
        <!-- <{$block.BlockTitle}> -->
        <{if $block.plugin=="xoops"}>
            <{includeq file="$xoops_rootpath/modules/tad_web/templates/tad_web_block_title.tpl"}>
            <{block id=$block.BlockName}>
        <{elseif $block.plugin=="custom" || $block.plugin=="share"}>
            <{includeq file="$xoops_rootpath/modules/tad_web/templates/tad_web_block_custom.tpl"}>
        <{else}>
            <{if "$xoops_rootpath/modules/tad_web/plugins/`$block.plugin`/tpls/`$block.tpl`"|file_exists}>
                <{includeq file="$xoops_rootpath/modules/tad_web/plugins/`$block.plugin`/tpls/`$block.tpl`"}>
            <{/if}>
        <{/if}>

        <{if $isMyWeb and $WebID and ((isset($block.BlockContent.main_data) and $block.BlockContent.main_data) or $block.plugin=="custom")}>
            <{includeq file="$xoops_rootpath/modules/tad_web/templates/tad_web_block_tool.tpl"}>
        <{/if}>
    </div>
<{/if}>