Currently the shortcode (and thus the widget, since the latter is just a wrapper around the former) displays key events only if in a single of a Liveblog post. In any other page of a site it will display nothing. It would be nice to add an option to display the key events for a given post no matter what else the rest of the site is showing.
That would allow, for example, a news site running a Liveblog to display the key events on the home page and point users to the Liveblog page.
It is important to note that it is not straightforward to implement this. It will be necessary to change a bit the internals of the plugin since it was designed to work only if in a single of a Liveblog post. In a quick look here is what I found that need to be changed:
Change the logic that decides when the plugin load the required scripts and styles (WPCOM_Liveblog::enqueue_scripts() doesn't enqueue anything if WPCOM_Liveblog::is_viewing_liveblog_post() returns false).
This issue is a continuation of the discussion started on the PR https://github.com/Automattic/liveblog/pull/227#issuecomment-17176683.
Currently the shortcode (and thus the widget, since the latter is just a wrapper around the former) displays key events only if in a single of a Liveblog post. In any other page of a site it will display nothing. It would be nice to add an option to display the key events for a given post no matter what else the rest of the site is showing.
That would allow, for example, a news site running a Liveblog to display the key events on the home page and point users to the Liveblog page.
It is important to note that it is not straightforward to implement this. It will be necessary to change a bit the internals of the plugin since it was designed to work only if in a single of a Liveblog post. In a quick look here is what I found that need to be changed:
WPCOM_Liveblog::enqueue_scripts()
doesn't enqueue anything ifWPCOM_Liveblog::is_viewing_liveblog_post()
returns false).WPCOM_Liveblog::enqueue_scripts()
also assumes that it is the context of a Liveblog post: https://github.com/Automattic/liveblog/blob/master/liveblog.php#L689