public static function init() { if (!self::$initiated) { self::$initiated = true; self::set_default_options(); self::init_hooks(); new LFAPPS_Comments_Core(); } }
function __construct($lf_core) { if (LFAPPS_Comments::comments_active()) { add_action('wp_footer', array(&$this, 'lf_init_script')); // Set comments_template filter to maximum value to always override the default commenting widget add_filter('comments_template', array(&$this, 'livefyre_comments_template'), $this->lf_widget_priority()); add_filter('comments_number', array(&$this, 'livefyre_comments_number'), 10, 2); add_shortcode('livefyre_livecomments', array('LFAPPS_Comments_Display', 'init_shortcode')); } }
echo esc_js($checksum); ?> " }; if (typeof (liveCommentsConfig) !== 'undefined') { convConfigComments<?php echo esc_js($articleId); ?> = Livefyre.LFAPPS.lfExtend(liveCommentsConfig, convConfigComments<?php echo esc_js($articleId); ?> ); } Livefyre.require(['<?php echo LFAPPS_Comments::get_package_reference(); ?> '], function (ConvComments) { load_livefyre_auth(); new ConvComments(networkConfigComments, [convConfigComments<?php echo esc_js($articleId); ?> ], function (commentsWidget) { var livecommentsListeners = Livefyre.LFAPPS.getAppEventListeners('livecomments'); if (livecommentsListeners.length > 0) { for (var i = 0; i<livecommentsListeners.length; i++) { var livecommentsListener = livecommentsListeners[i]; commentsWidget.on(livecommentsListener.eventName, livecommentsListener.callback); }