Location: PHPKode > projects > Teampopor > teampopor-0.5/teampopor/themes/default/forms/share-form.tpl.php
<?php
/**
 * share_form template
 * arguments: $form
 */

global $theme;

add_js('misc/dialog.js');
add_js(get_path('module', 'network') . '/network-files.js');
add_js(get_path('theme', $theme) . '/forms/share-form.js');

add_css(get_path('theme', $theme) . '/sharing.css');
add_css(get_path('theme', $theme) . '/forms/share-form.css');

$network = $form['network']['#value'];
?>
<?php if (isset($form['recipients'])) { ?>
  <label><?php print t('To') ?>:</label>
  <input type="text" class="post-recipients" name="recipients">
<?php } ?>
<?php if (isset($form['recipients'])) { ?>
  <label><?php print t('Message') ?>:</label>
<?php } ?>
<textarea cols="40" rows="2" class="post-message" name="postText"></textarea>

<div class="share-mode" id="share-mode">
  <div class="share-loading"></div>
  <div class="share-edit">
    <ul class="form" id="share-edit-list">
      <li>
        <input type="text" maxlength="200" class="text" id="share-edit-title" value="" name="contentTitle">
      </li>
      <li id="share-edit-meta"></li>
      <li>
        <textarea class="text" id="share-edit-summary" name="contentSummary"></textarea>
      </li>
      <li id="share-include-photo-wrapper">
        <input type="checkbox" checked="checked" class="check" id="share-include-photo" value="true" name="contentImageIncluded">
        <label for="contentImageIncluded-postModuleForm">Include photo</label>
      </li>
      <li>
        <input type="button" id="share-edit-submit" class="btn-primary" value="Preview" name="#">
        or
        <a id="share-edit-cancel" href="#">Cancel</a>
      </li>
    </ul> 
  </div>
 
  <div class="share-attach share-attach-link">
    <a class="share-close share-close-attach" href="#">Close</a>
    <h4><?php print t('Add URL') ?>:</h4>
    <p>
      <input type="input" id="share-attach-input-link" class="text" value="" name="share_attach_link">
      <input type="button" id="share-attach-link" class="btn-primary" value="Attach" name="#">
    </p>
  </div>
</div>

<?php print render($form['attach_file']) ?>

<?php print theme('tags') ?>

<div class="post-actions">
  <div id="attach">
    <?php
    $menu = array(
      '<a id="share-attach-link" href="#" class="debug"><span class="inline-icon files-icon"></span> ' . t('Link') . '</a>',
      array(
        t('File'),
        '<a id="upload-file" href="#">' . t('Upload a file from your computer') . '</a>',
        '<a href="#" dialog-data-url="' . url('network/' . $network->nid . '/js/select-file') . '" dialog-title="' . t('Select a file') . '">' . t('Select a file on !site', array('!site' => variable_get('site_name', 'Site name'))) . '</a>',
      ),
      '<a id="add-tag" href="#"><span class="inline-icon topic-icon"></span> ' . t('Topic') . '</a>',
    );
    print theme('menu', $menu);
    ?>
  </div>

  <?php if (isset($form['postVisibility'])) { ?>
  <div id="share-settings" class="settings" style="display: block;">
    <p><?php print t('visible to') ?>:</p> 
    <div class="menu-basic styled-dropdown">
      <span class="label">
        <span><?php print $form['postVisibility']['#options'][0] ?></span>
      </span>
      <?php print render($form['postVisibility']) ?>
      <ul class="drop">
        <?php foreach ($form['postVisibility']['#options'] as $key => $value) { ?>
        <li class="option"><div><?php print $value ?></div></li>
        <?php } ?>
      </ul>
    </div>
  </div>
  <?php } ?>

  <div class="submit">
    <input type="submit" id="share-submit" class="btn-primary" value="<?php print $form['submit']['#value'] ?>" name="">
  </div>
</div>
<?php echo render($form['form_build_id']); ?>
<?php echo render($form['form_token']); ?>
<?php echo render($form['form_id']); ?>
Return current item: Teampopor