You are here

user_relationships-actions_block.tpl.php in User Relationships 7

File

user_relationship_blocks/templates/user_relationships-actions_block.tpl.php
View source
<?php

/**
 * @file 
 * Template of relationships add/remove block
 * List of current relationships to the viewed user
 */
$output = array();
if (!empty($current_relationships)) {
  $output[] = theme('item_list', array(
    'items' => $current_relationships,
    'title' => t('Your relationships to this user'),
    'attributes' => array(
      'class' => 'user_relationships',
    ),
  ));
}

// List of actions that can be taken between the current and viewed user
if ($actions) {
  $output[] = theme('item_list', array(
    'items' => $actions,
    'title' => t('Relationship actions'),
    'attributes' => array(
      'class' => array(
        'user_relationships_actions',
      ),
    ),
  ));
}
print implode('', $output);