summaryrefslogtreecommitdiff
path: root/themes/admin_wind/views/block.html.php
blob: d1d2d08859ab7e18cfe01dd9d7d9348597b921a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php defined("SYSPATH") or die("No direct script access.") ?>
<? if ($anchor): ?>
<a name="<?= $anchor ?>"></a>
<? endif ?>
<div block_id="<?= $id ?>" id="<?= $css_id ?>" class="g-block ui-widget">
  <div class="ui-dialog-titlebar ui-widget-header ui-helper-clearfix ui-icon-right">
    <? if ($css_id != "g-block-adder"): ?>
    <a href="<?= url::site("admin/dashboard/remove_block/$id?csrf=$csrf") ?>"
       class="ui-dialog-titlebar-close ui-corner-all">
      <span class="ui-icon ui-icon-closethick">remove</span>
    </a>
    <? endif ?>
    <?= $title ?>
  </div>
  <div class="g-block-content">
    <?= $content ?>
  </div>
</div>