You are here

opigno--tool.tpl.php in Opigno 7

Tool template file. Renders the tool on the tools page. Available variables:

  • $machine_name (filtered)
  • $name (filtered)
  • $path (escaped)
  • $description (escaped)
  • $tool (array containing any information the tool module defines. Unfiltered).

File

templates/opigno--tool.tpl.php
View source
<?php

/**
 * @file
 * Tool template file. Renders the tool on the tools page.
 * Available variables:
 *  - $machine_name (filtered)
 *  - $name (filtered)
 *  - $path (escaped)
 *  - $description (escaped)
 *  - $tool (array containing any information the tool module defines. Unfiltered).
 */
?>
<div class="opigno-tool opigno-<?php

print str_replace('_', '-', $machine_name);
?>-tool opigno-tool-block">
  <div class="opigno-tool-icon"></div>
  <h4 class="opigno-tool-name">
    <?php

if (!empty($path)) {
  ?>
      <?php

  print l($name, $path, array(
    'attributes' => array(
      'class' => array(
        'opigno-tool-link',
      ),
    ),
  ));
  ?>
    <?php

}
else {
  ?>
      <?php

  print $name;
  ?>
    <?php

}
?>
  </h4>

  <p class="opigno-tool-description"><?php

print $description;
?></p>
</div>