use anonymous function
This commit is contained in:
parent
09131d5593
commit
9669c42338
1 changed files with 182 additions and 202 deletions
24
_public.php
24
_public.php
|
@ -14,26 +14,7 @@ if (!defined('DC_RC_PATH')) {
|
|||
return null;
|
||||
}
|
||||
|
||||
dcCore::app()->addBehavior(
|
||||
'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()->addBehavior('publicEntryAfterContent', function (dcCore $core, context $_ctx) {
|
||||
dcCore::app()->blog->settings->addNamespace('fac');
|
||||
|
||||
# Not active or not a post
|
||||
|
@ -235,5 +216,4 @@ class facPublic
|
|||
}
|
||||
}
|
||||
echo '</dl></div>';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue