Пример #1
0
  <!-- begin left-hand column -->
  <div class="item-left">

    <!-- Cover Image -->
    <?php 
$cover_img = "http://media.aadl.org/music/{$license}/" . $item['_id'] . "/data/cover.jpg";
$cover_img = '<img class="item-cover" width="200" src="' . $cover_img . '">';
print $cover_img;
?>

    <!-- Ratings -->
    <?php 
if (variable_get('sopac_social_enable', 1)) {
    print '<div class="item-rating">';
    print theme_sopac_get_rating_stars($item['_id']);
    print '</div>';
}
?>

    <!-- Item Details -->
    <ul>
      <?php 
if ($item['pub_info']) {
    print '<li><b>Published:</b> ' . $item['pub_info'] . '</li>';
}
if ($item['release_date']) {
    print '<li><b>Release Date:</b> ' . $item['release_date'] . '</li>';
}
if ($item['pub_year']) {
    print '<li><b>Year Published:</b> ' . $item['pub_year'] . '</li>';
Пример #2
0
 * SOPAC is The Social OPAC: a Drupal module that serves as a wholly integrated web OPAC for the Drupal CMS
 * This file contains the Drupal include functions for all the SOPAC admin pieces and configuration options
 * This file is called via hook_user
 *
 * @package SOPAC
 * @version 2.1
 * @author John Blyberg
 */
?>

<?php 
if (count($ratings_arr['ratings'])) {
    print '
    <table class="overview-ratings" width="100%">
    <tr><th></th><th>' . t('Title') . '</th><th>' . t('Date Rated') . '</th></tr>
    <tr><td colspan="3" style="padding-top:5px;"></td></tr>
  ';
    foreach ($ratings_arr['ratings'] as $rating) {
        print '<tr><td style="width: 100px;">';
        print theme_sopac_get_rating_stars($rating['bnum'], $rating['rating'], FALSE, TRUE) . ' ';
        print '</td><td>';
        $path = variable_get('sopac_url_prefix', 'cat/seek') . '/record/' . $rating['bnum'];
        print l($ratings_arr['bibs'][$rating['bnum']]['title'], $path);
        print '</td><td>';
        print date("m-d-Y", $rating['rate_date']);
        print '</td></tr>';
    }
    print '</table>';
} else {
    print '<div class="overview-nodata">' . t('You have not rated any items yet.') . '</div>';
}