Changeset 5136
- Timestamp:
- 02/01/07 13:33:27 (2 years ago)
- Files:
-
- trunk/templates/OpenPsa2/package.xml (modified) (2 diffs)
- trunk/templates/OpenPsa2/toolbar-bottom.php (modified) (1 diff)
- trunk/templates/OpenPsa2/toolbar.php (modified) (1 diff)
- trunk/templates/OpenPsa2/userinfo.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/templates/OpenPsa2/package.xml
r4527 r5136 13 13 <active>yes</active> 14 14 </lead> 15 <date>200 6-10-31</date>15 <date>2007-02-01</date> 16 16 <time>13:50:00</time> 17 17 <version> 18 <release>1. 0.7</release>18 <release>1.1.0</release> 19 19 <api>1.0.0</api> 20 20 </version> … … 25 25 <license>GPL</license> 26 26 <notes> 27 Added support for two frames. Created two new style sheets (`content.css`, which contains 28 the style information shown for all media types; and `print.css` for showing the print 29 style respectively). Fixed some minor CSS bugs in `style.css`. Minor style modifications. 27 Removed the userinfo dynamic load 30 28 </notes> 31 29 <contents> trunk/templates/OpenPsa2/toolbar-bottom.php
r3799 r5136 1 1 <?php 2 $toolbars =& midcom_helper_toolbars::get_instance(); 3 if (count($toolbars->bottom->items) > 0) 4 { 5 echo $toolbars->bottom->render(); 6 } 7 else 8 { 9 $_MIDCOM->toolbars->show_view_toolbar(); 10 } 2 $_MIDCOM->toolbars->show_view_toolbar(); 11 3 ?> trunk/templates/OpenPsa2/toolbar.php
r3799 r5136 1 1 <?php 2 // User is logged in and MidCOM is running3 $toolbars =& midcom_helper_toolbars::get_instance();4 if (count($toolbars->top->items) > 0)5 {6 echo $toolbars->top->render();7 }8 9 2 $_MIDCOM->toolbars->show_node_toolbar(); 10 3 ?> trunk/templates/OpenPsa2/userinfo.php
r3799 r5136 1 1 <?php 2 if ($_MID GARD['user'])2 if ($_MIDCOM->auth->user) 3 3 { 4 /* Only try to load userinfo if we actually have a user, otherwise it will5 trigger require_valid_user and thus messing up all anonymous operations */6 $mypage = midcom_helper_find_node_by_component('org.openpsa.mypage');7 if ($mypage)8 {9 $_MIDCOM->dynamic_load($mypage[MIDCOM_NAV_RELATIVEURL]."userinfo");10 }4 $user = $_MIDCOM->auth->user->get_storage(); 5 $contact = new org_openpsa_contactwidget($user); 6 7 echo "<ul>\n"; 8 echo " <li class=\"user\">".$contact->show_inline()."</li>\n"; 9 echo " <li class=\"logout\"><a href=\"{$_MIDGARD['self']}midcom-logout-\"><img src=\"".MIDCOM_STATIC_URL."/stock-icons/16x16/exit.png\" title=\"" . $_MIDCOM->i18n->get_string('logout', 'midcom') . "\" alt=\"" . $_MIDCOM->i18n->get_string('logout', 'midcom') . "\" /></a></li>\n"; 10 echo "</ul>\n"; 11 11 } 12 12 ?>
