<{if $web_display_mode=='index' and $menu_data}>
  <{if "$xoops_rootpath/uploads/tad_web/0/image/`$dirname`.png"|file_exists}>
    <a href="<{$xoops_url}>/modules/tad_web/<{$dirname}>.php"><img src="<{$xoops_url}>/uploads/tad_web/0/image/<{$dirname}>.png" alt="<{$menu.PluginTitle}>"></a>
  <{else}>
    <h3><a href="<{$xoops_url}>/modules/tad_web/menu.php"><{$menu.PluginTitle}></a></h3>
  <{/if}>
<{elseif $web_display_mode=='index_plugin'}>
  <h1><a href="<{$xoops_url}>/modules/tad_web/"><i class="fa fa-home"></i></a> <{$menu.PluginTitle}></h1>
<{elseif $web_display_mode=='home_plugin'}>
  <h1><a href="index.php?WebID=<{$WebID}>"><i class="fa fa-home"></i></a> <{$menu.PluginTitle}></h1>
<{/if}>

<{if $menu_data}>
  <div class="row">
    <div class="col-md-12">
      <{foreach item=act from=$menu_data}>
        <div style="width: 156px; height: 260px; float:left; margin: 5px 2px; overflow: hidden;">
          <a href='menu.php?WebID=<{$act.WebID}>&MenuID=<{$act.MenuID}>'>
            <div style="width: 150px; height: 160px; background-color: #F1F7FF ; border:1px dotted green; margin: 0px auto;">
            <div style="width: 140px; height: 140px; background: #F1F7FF url('<{$act.MenuPic}>') center center no-repeat; border:8px solid #F1F7FF; margin: 0px auto;">
            </div>
            </div>
          </a>
          <div class="text-center" style="margin: 8px auto;">
            <a href='menu.php?WebID=<{$act.WebID}>&MenuID=<{$act.MenuID}>'><{$act.MenuName}></a>
            <{if $act.isMyWeb}>
              <a href="javascript:delete_menu_func(<{$act.MenuID}>);" class="text-danger"><i class="fa fa-trash-o"></i></a>
              <a href="menu.php?WebID=<{$WebID}>&op=edit_form&MenuID=<{$act.MenuID}>"  class="text-warning"><i class="fa fa-pencil"></i></a>
            <{/if}>
          </div>
          <{if $web_display_mode=="index" or $web_display_mode=="index_plugin"}>
            <div class="text-center" style="font-size: 12px;">
              <{$act.WebTitle}>
            </div>
          <{/if}>
        </div>
      <{/foreach}>
    </div>
  </div>

  <div style="clear: both;"></div>

  <{if $menu_data}>
    <{if $web_display_mode=='index_plugin' or $web_display_mode=='home_plugin'}>
      <{$bar}>
    <{/if}>
  <{/if}>

  <div style="text-align:right; margin: 0px 0px 10px;">
    <{if $web_display_mode=='index'}>
      <a href="menu.php" class="btn btn-primary <{if $web_display_mode=='index'}>btn-xs<{/if}>"><i class="fa fa-info-circle"></i> <{$smarty.const._MD_TCW_MORE}><{$smarty.const._MD_TCW_MENU_SHORT}></a>
    <{elseif $web_display_mode=='home' or $MenuDefCateID}>
      <a href="menu.php?WebID=<{$WebID}>" class="btn btn-primary <{if $web_display_mode=='index'}>btn-xs<{/if}>"><i class="fa fa-info-circle"></i> <{$smarty.const._MD_TCW_MORE}><{$smarty.const._MD_TCW_MENU_SHORT}></a>
    <{/if}>

    <{if $isMyWeb and $WebID}>
      <a href="menu.php?WebID=<{$WebID}>&op=edit_form" class="btn btn-info <{if $web_display_mode=='index'}>btn-xs<{/if}>"><i class="fa fa-plus"></i> <{$smarty.const._MD_TCW_ADD}><{$smarty.const._MD_TCW_MENU_SHORT}></a>
    <{/if}>
  </div>
<{/if}>

