You are here

function tinybrowser_user_page in TinyBrowser 7

Contents of user account page

1 string reference to 'tinybrowser_user_page'
tinybrowser_menu in ./tinybrowser.module
Implements hook_menu

File

./tinybrowser.userpage.inc, line 25

Code

function tinybrowser_user_page($account) {
  tinybrowser_set_js_variables();
  drupal_add_js(drupal_get_path('module', 'tinybrowser') . '/tinybrowser/tb_standalone.js');

  // Open TinyBroser inside of an iframe 'tbframe'
  //
  $win_height = tinybrowser_get_window_height();
  $content = '<p>';
  $content .= '<div id="tabs">';
  $content .= t('Please use the link below to browse files') . '<br/>';
  $content .= '<ul class="tabs secondary">';
  $content .= '<li><a href="" onclick="tinyBrowserInlineFrame(\'image\', \'tinybrowser-out\'); return false;" id="tinybrowser-out">Image</a></li>';
  $content .= '<li><a href="" onclick="tinyBrowserInlineFrame(\'media\', \'tinybrowser-out\'); return false;" id="tinybrowser-out">Media</a></li>';
  $content .= '<li><a href="" onclick="tinyBrowserInlineFrame(\'file\', \'tinybrowser-out\'); return false;" id="tinybrowser-out">File</a></li>';
  $content .= '</ul>';
  $content .= '</div>';
  $content .= '<iframe name="tbframe" id="tbframe" width="100%" height="' . $win_height . '" style="border: solid 1px #ddd;></iframe>';
  $content .= '</p>';
  return $content;

  /*
    // Open TinyBrowser popup window
    //
    $content  = '<p>';
    $content .= '<div id="tabs">';
    $content .= t('Please use the link below to browse files') . '<br/>';
    $content .= '<ul class="tabs secondary">';
    $content .= '<li><a href="" onclick="tinyBrowserPopUp(\'image\', \'tinybrowser-out\'); return false;" id="tinybrowser-out">Image</a></li>';
    $content .= '<li><a href="" onclick="tinyBrowserPopUp(\'media\', \'tinybrowser-out\'); return false;" id="tinybrowser-out">Media</a></li>';
    $content .= '<li><a href="" onclick="tinyBrowserPopUp(\'file\', \'tinybrowser-out\'); return false;" id="tinybrowser-out">File</a></li>';
    $content .= '</ul>';
    $content .= '</div>';
    $content .= '</p>';
    return $content;
  */
}