use anonymous function
This commit is contained in:
parent
09131d5593
commit
9669c42338
24
_public.php
24
_public.php
@ -14,26 +14,7 @@ if (!defined('DC_RC_PATH')) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
dcCore::app()->addBehavior(
|
dcCore::app()->addBehavior('publicEntryAfterContent', function (dcCore $core, context $_ctx) {
|
||||||
'publicEntryAfterContent',
|
|
||||||
['facPublic', 'publicEntryAfterContent']
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @ingroup DC_PLUGIN_FAC
|
|
||||||
* @brief Linked feed to entries - public methods.
|
|
||||||
* @since 2.6
|
|
||||||
*/
|
|
||||||
class facPublic
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Add feed after entry
|
|
||||||
*
|
|
||||||
* @param dcCore $core dcCore instance
|
|
||||||
* @param context $_ctx context instance
|
|
||||||
*/
|
|
||||||
public static function publicEntryAfterContent(dcCore $core, context $_ctx)
|
|
||||||
{
|
|
||||||
dcCore::app()->blog->settings->addNamespace('fac');
|
dcCore::app()->blog->settings->addNamespace('fac');
|
||||||
|
|
||||||
# Not active or not a post
|
# Not active or not a post
|
||||||
@ -235,5 +216,4 @@ class facPublic
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo '</dl></div>';
|
echo '</dl></div>';
|
||||||
}
|
});
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user