Update of /cvsroot/phpwebsite-comm/modules/article/class
In directory sc8-pr-cvs1:/tmp/cvs-serv22196/class
Modified Files:
ArticleManager.php
Log Message:
0.93 Compliancy - Got rid of popboxes
Index: ArticleManager.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/article/class/ArticleManager.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ArticleManager.php 16 Jul 2003 19:44:33 -0000 1.3
--- ArticleManager.php 17 Jul 2003 18:06:41 -0000 1.4
***************
*** 125,129 ****
$title = $_SESSION['translate']->it('Main Menu');
$content = $GLOBALS['core']->makeForm('ARTICLE_main_menu', 'index.php', $content, 'post', 0, 0);
! $_SESSION['OBJ_layout']->popbox($title, $content, NULL, 'CNT_article');
}
--- 125,129 ----
$title = $_SESSION['translate']->it('Main Menu');
$content = $GLOBALS['core']->makeForm('ARTICLE_main_menu', 'index.php', $content, 'post', 0, 0);
! $this->popbox($title, $content);
}
***************
*** 190,196 ****
if (!$data = implode(',', $this->pager->getData()))
{
! $_SESSION['OBJ_layout']->popbox($_SESSION['translate']->it('No Articles Found!')
! , $_SESSION['translate']->it('No matching articles were found in the database!')
! , NULL, 'CNT_article');
return;
}
--- 190,195 ----
if (!$data = implode(',', $this->pager->getData()))
{
! $this->popbox($_SESSION['translate']->it('No Articles Found!')
! , $_SESSION['translate']->it('No matching articles were found in the database!'));
return;
}
***************
*** 277,282 ****
$content = $GLOBALS['core']->processTemplate($tags,'article','listing.tpl');
! $_SESSION['OBJ_layout']->popbox($_SESSION['translate']->it('Current Articles')
! , $content, NULL, 'CNT_article');
}
--- 276,280 ----
$content = $GLOBALS['core']->processTemplate($tags,'article','listing.tpl');
! $this->popbox($_SESSION['translate']->it('Current Articles'), $content);
}
***************
*** 664,668 ****
$content .= "\n</table>\n";
! $_SESSION['OBJ_layout']->popbox($title, $content, NULL, 'CNT_article');
}
--- 662,666 ----
$content .= "\n</table>\n";
! $this->popbox($title, $content);
}
***************
*** 768,771 ****
--- 766,783 ----
$now = date("Y-m-d H:i:s");
return "approved AND publication_date<='$now' AND (expiration_date IS NULL OR expiration_date>'$now')";
+ }
+
+ /**
+ * popbox replacement.
+ *
+ * @author Eloi George <el...@NO...>
+ * @module Article Manager
+ * @param string title
+ * @param string content
+ * @return none
+ */
+ function popbox ($title, $content)
+ {
+ $GLOBALS['CNT_article']['content'] .= '<h3>' . $title . '</h3>' . $content;
}
}
|