extensions(); $rs->extend('zcfsRsExtPosts'); } /** * Update feeds after contents. */ public static function publicAfterDocumentV2() { # Limit feeds update to home page et feed page # Like publishScheduledEntries if (!in_array(dcCore::app()->url->type, ['default', 'feed'])) { return null; } self::publicDocument(); } /** * Generic behavior for before and after public content. */ public static function publicDocumentV2() { $zc = new zoneclearFeedServer(); $zc->checkFeedsUpdate(); return null; } /** * Update feeds by an Ajax request (background). */ public static function publicHeadContent() { # Limit update to home page if (dcCore::app()->url->type != 'default') { return null; } $blog_url = html::escapeJS( dcCore::app()->blog->url . dcCore::app()->url->getBase('zoneclearFeedsPage') . '/zcfsupd' ); $blog_id = html::escapeJS(dcCore::app()->blog->id); echo "\n \n" . dcUtils::jsLoad(dcCore::app()->blog->url . dcCore::app()->url->getBase('zoneclearFeedsPage') . '/zcfsupd.js') . "\n"; } }