use dotclear methods
This commit is contained in:
parent
f5442e1eb2
commit
500eb83523
1 changed files with 2 additions and 8 deletions
10
_widgets.php
10
_widgets.php
|
@ -117,10 +117,7 @@ class topWriterWidget
|
||||||
|
|
||||||
public static function topCom($w)
|
public static function topCom($w)
|
||||||
{
|
{
|
||||||
if ($w->offline
|
if ($w->offline || !$w->checkHomeOnly(dcCore::app()->url->type)) {
|
||||||
|| ($w->homeonly == 1 && !dcCore::app()->url->isHome(dcCore::app()->url->type))
|
|
||||||
|| ($w->homeonly == 2 && dcCore::app()->url->isHome(dcCore::app()->url->type))
|
|
||||||
) {
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,10 +137,7 @@ class topWriterWidget
|
||||||
|
|
||||||
public static function topPost($w)
|
public static function topPost($w)
|
||||||
{
|
{
|
||||||
if ($w->offline
|
if ($w->offline || !$w->checkHomeOnly(dcCore::app()->url->type)) {
|
||||||
|| ($w->homeonly == 1 && !dcCore::app()->url->isHome(dcCore::app()->url->type))
|
|
||||||
|| ($w->homeonly == 2 && dcCore::app()->url->isHome(dcCore::app()->url->type))
|
|
||||||
) {
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue