[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: sitemgr/sitemgr-site/blocks block-Current_Sectio
From: |
Patrick Walsh <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: sitemgr/sitemgr-site/blocks block-Current_Section.php,1.2,1.3 |
Date: |
Tue, 17 Sep 2002 20:25:40 -0400 |
Update of /cvsroot/phpgroupware/sitemgr/sitemgr-site/blocks
In directory subversions:/tmp/cvs-serv17640
Modified Files:
block-Current_Section.php
Log Message:
couple more minor usability things
Index: block-Current_Section.php
===================================================================
RCS file:
/cvsroot/phpgroupware/sitemgr/sitemgr-site/blocks/block-Current_Section.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** block-Current_Section.php 18 Sep 2002 00:02:07 -0000 1.2
--- block-Current_Section.php 18 Sep 2002 00:25:37 -0000 1.3
***************
*** 10,13 ****
--- 10,14 ----
{
$page =
ExecMethod('sitemgr.Pages_SO.getPage',$GLOBALS['page_id']);
+ $page_id = $GLOBALS['page_id'];
$cat_id = (int) $page->cat_id;
unset($page);
***************
*** 16,19 ****
--- 17,21 ----
{
$page =
ExecMethod('sitemgr.Pages_SO.getPageByName',$GLOBALS['page_name']);
+ $page_id = $page->id;
$cat_id = (int) $page->cat_id;
unset($page);
***************
*** 52,59 ****
if (count($pagelinks)>1 || (count($pagelinks)>0 && $content))
{
! $content .= "\n".'<b>Pages:</b><br>';
! foreach ($pagelinks as $pagelink)
{
! $content .=
' · '.$pagelink['link'].'<br>';
}
}
--- 54,71 ----
if (count($pagelinks)>1 || (count($pagelinks)>0 && $content))
{
! $content .= "\n".'<b>Pages:</b>';
! $content .= ' (<a
href="'.sitemgr_link2('/index.php','category_id='.$cat_id).
! '"><i>show all</i></a>)<br>';
! reset($pagelinks);
! while(list($pagelink_id,$pagelink) = each($pagelinks))
{
! if ($page_id && $page_id == $pagelink_id)
! {
! $content .=
' >'.$pagelink['link'].'<<br>';
! }
! else
! {
! $content .=
' · '.$pagelink['link'].'<br>';
! }
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: sitemgr/sitemgr-site/blocks block-Current_Section.php,1.2,1.3,
Patrick Walsh <address@hidden> <=