You are here

photos_share.tpl.php in Album Photos 7.3

Same filename and directory in other branches
  1. 6.2 tpl/photos_share.tpl.php

Formats share image page.

File

tpl/photos_share.tpl.php
View source
<?php

/**
 * @file
 * Formats share image page.
 */
?>
<!DOCTYPE HTML>
<html lang="<?php

print $GLOBALS['language']->language;
?>" xml:lang="<?php

print $GLOBALS['language']->language;
?>">
<head>
  <title><?php

print drupal_get_title();
?></title>
  <?php

print drupal_get_html_head();
?>
  <?php

print drupal_get_css();
?>
  <?php

print drupal_get_js('header');
?>
</head>
<body>
<div id="photos_share">
  <div class="photos_share_links">
    <?php

print $images['links'];
?>
  </div>
  <div><?php

print $images['menu'];
?></div>
  <p>
    <?php

print t('Selected image sharing code: ');
?><a href="#" title="<?php

print t('Can only be used in node');
?>" class="photos_share_copy" alt="ubb">UBB code</a> | <a href="#" title="<?php

print t('Can be used on other sites');
?>" class="photos_share_copy" alt="html">HTML code</a>
  </p>
  <div class="photos_share_textarea">
    <h2><?php

print t('Please copy the code:');
?></h2>
    <div><textarea id="photos_share_textarea" rows="6" cols="100"></textarea></div>
  </div>
  <h2><?php

print t('Please select Image Size:');
?></h2>
  <ul id="photos_share_ul">
  <?php

if (isset($images['data']) && is_array($images['data'])) {
  ?>
  <?php

  foreach ($images['data'] as $image) {
    ?>
    <li alt="<?php

    print $image['link'];
    ?>" title="<?php

    print $image['title'];
    ?>">
      <?php

    print $image['view'];
    ?>
      <div class="photos_share_select"><?php

    print t('Sizes:');
    ?><select size="1" class="photos_share_select_val" alt="<?php

    print $image['fid'];
    ?>">
      <option value="0">None</option>
      <?php

    if (is_array($image['thumbs'])) {
      ?>
        <?php

      foreach ($image['thumbs'] as $key => $thumb) {
        ?>
          <option value="<?php

        print $thumb;
        ?>"><?php

        print $key;
        ?></option>
        <?php

      }
      ?>
      <?php

    }
    ?>
      </select></div>
      <?php

    if (isset($image['username'])) {
      ?>
        <div><?php

      print $image['username'];
      ?></div>
      <?php

    }
    ?>
    </li>
  <?php

  }
}
else {
  print t('No image');
}
?>
  </ul>
</div>
<?php

print drupal_get_js('footer');
?>
</body>
</html>