plugin.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {template 'common/header'}
  2. <div id="js-module-plugin" class="module-plugin-container" ng-controller="modulePluginCtrl">
  3. <div class="row">
  4. <div class="col-sm-3">
  5. <div class="input-group">
  6. <input type="text" name="search" id="" value="" class="form-control" placeholder="输入要搜索的插件">
  7. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  8. </div>
  9. </div>
  10. </div>
  11. <div class="module-plugin-list">
  12. {loop $plugin_list $plugin}
  13. <div class="item">
  14. <div class="item-box">
  15. <a class="info" href="{php echo url('home/welcome/ext', array('m' => $plugin['plugin_info']['name'], 'version_id' => intval($_GPC['version_id'])))}">
  16. {if !empty($plugin['plugin_info']['logo'])}
  17. <img src="{$plugin['plugin_info']['logo']}" alt="" class="logo">
  18. {else}
  19. {if file_exists(IA_ROOT. "/addons/". $plugin['plugin_info']['name'] . "/icon-custom.jpg")}
  20. <img src="{php echo tomedia("addons/" . $plugin['plugin_info']['name'] . "/icon-custom.jpg")}" class="logo" onerror="this.src='./resource/images/gw-wx.gif'">
  21. {else}
  22. <img src="{php echo tomedia("addons/" .$plugin['plugin_info']['name'] . "/icon.jpg")}" class="logo" onerror="this.src='./resource/images/gw-wx.gif'">
  23. {/if}
  24. {/if}
  25. <span class="name text-over">{$plugin['plugin_info']['title']}</span>
  26. </a>
  27. <div class="action">
  28. {if $plugin['module_shortcut']==0}
  29. <a href="{php echo url('module/plugin/module_shortcut', array('plugin_name' => $plugin['plugin_info']['name'], 'module_shortcut' => 1))}" class="action-show" data-toggle="tooltip" data-placement="bottom" data-title="显示到菜单">
  30. <i class="wi wi-eye"></i>
  31. </a>
  32. {else}
  33. <a href="{php echo url('module/plugin/module_shortcut', array('plugin_name' => $plugin['plugin_info']['name'], 'module_shortcut' => 0))}" class="action-show" data-toggle="tooltip" data-placement="bottom" data-title="从菜单移除">
  34. <i class="wi wi-eye"></i>
  35. </a>
  36. {/if}
  37. <a href="{php echo url('module/plugin/rank', array('main_module_name' => $plugin['plugin_info']['main_module'], 'plugin_name' => $plugin['plugin_info']['name'], 'uniacid' => intval($_GPC['uniacid'])))}" class="action-up" data-toggle="tooltip" data-placement="bottom" data-title="置顶"><i class="wi wi-stick-sign"></i></a>
  38. <a href="{php echo url('home/welcome/ext', array('m' => $plugin['plugin_info']['name'], 'version_id' => intval($_GPC['version_id'])))}" class="action-in"><i class="wi wi-denglu"></i> 进入</a>
  39. </div>
  40. </div>
  41. </div>
  42. {/loop}
  43. </div>
  44. </div>
  45. <script>
  46. angular.module('moduleApp').value('config', {
  47. });
  48. angular.bootstrap($('#js-module-plugin'), ['moduleApp']);
  49. </script>
  50. {template 'common/footer'}