You are here

cctags-vocname.tpl.php in cctags 7

Same filename and directory in other branches
  1. 6 cctags-vocname.tpl.php

File

cctags-vocname.tpl.php
View source
<?php

/**
* $vocname 	-- array vocabulary name
* $vid   	-- array vocabulary vid
* $terms   	-- array counts terms in current vocabulary
* $mode 	-- mixed or group
* $is_out       -- array counts terms
*/
?>
<div class="clearfix">
<?php

if (isset($vocname)) {
  ?>
<div class="cctags vocname">
<?php

  $i = 0;
  foreach ($vocname as $key => $name) {
    if ($i > 0) {
      $vname = '&nbsp;::&nbsp;' . $name;
    }
    else {
      $vname = $name;
    }
    $i++;
    if ($mode == 'group' && $is_out[$vid[$key]] == 1 || $mode == 'mixed') {
      ?>
<span class="cctags vocname vid-<?php

      print $vid[$key];
      ?>"><?php

      print render($vname);
      ?></span>
<?php

    }
  }
  ?>
</div>
<?php

}
?>
</div>