Making Government Transparency Work

OM Streaming Services

Providing your Constituent with live and repeat coverage of the State Legislature.

OM Streaming Services Documentation

Scope

This document is intended as quick reference document for implementing the OM Streaming Services plugin’s shortcodes and custom Elementor widgets.

The documentation is not intended to provide information on customizing the provided shortcodes, widgets or Elementor Templates.

Overview

The OM Streaming Services  was developed to integrate the Open.Media SaaS services with client WordPress websites.

The plugin provides an array of Shortcodes, Elementor widgets and Templates that can be used on your website to provide your constituents access to Live and Past legislative streaming sessions.

Core Plugins

Text Shortcode Examples

Nullam tincidunt adipiscing enim. Phasellus accumsan cursus velit. Nullam quis ante. Curabitur a felis in nunc fringilla tristique. Vivamus laoreet.

Aliquam erat volutpat. Curabitur nisi. Nullam accumsan lorem in dui. Integer ante arcu, accumsan a, consectetuer eget, posuere ut, mauris. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum.

Dynamic Header Text

				
					[ om_session_title fb="< Enter Fallback Text >" ]
				
			

Code:

[om_session_title fb="Archived"]

Output:

Watch Archived Legislative Sessions

Dynamic Post Counts

				
					[ om_post_counts cpt="< post-type   >" title="< Post Friendly Name >" display="< Output Options: full, details, published, draft, review >" ]
				
			

Code:

[om_post_counts cpt="team-member" title="Team Members" display="full"]

Output:

Team Members
  • 6Published
  • 0Draft(s)
  • 0In Review

Session Shortcode Examples

Nullam tincidunt adipiscing enim. Phasellus accumsan cursus velit. Nullam quis ante. Curabitur a felis in nunc fringilla tristique. Vivamus laoreet.

Aliquam erat volutpat. Curabitur nisi. Nullam accumsan lorem in dui. Integer ante arcu, accumsan a, consectetuer eget, posuere ut, mauris. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum.

Dynamic Button

				
					[ om_session_button_html session="< Enter a Chamber Name: house || senate >" tab="< Enter target Tab name >" ]
				
			

Code:

[om_session_button_html session="house" tab="tab1"]

Output:

Dynamic Buttons

				
					[ om_live_session_document_button_htm type="< Enter document type or Archive >" session="< enter session id or leave blank >"]
				
			

Code:

[om_live_session_document_button_html type="Agenda" session="295"]

Output:

Dynamic Audio Link

				
					[ om_session_audio_archive_link chamber="< Enter a Chamber Name: house || senate >" text="< Add Your Text Here >"]
				
			

Code:

[om_session_audio_archive_link chamber="house" text="Click Here"]

Legislature Session Archive

				
					[ om_session_archive session="< Enter a Chamber Name: house || senate >"]
				
			

Code:

[om_session_archive session="house"]

Shortcodes Embedded in a Tab widget

Looking for audio-only? Click here to listen to meetings.

Looking for audio-only? Click here to listen to meetings.

OM Elementor Widgets & Templates

The OM Elementor Widgets are a collection of a highly configurable widget specifically designed for use in the Elementor Website Builder.

The widgets were created using Unlimited Elements for Elementor’s powerful widget editor tools.

These and future widgets will be included in the OPEN MEDIA Streaming Services Elementor ThemeKit and will be automatically installed once Unlimited Elements plugin has been installed.

OM Team Member Flip Box

The OM Team Member Flip Box widget is a highly configurable interactive card widget specifically designed for use in Elementor Post Loop Templates.

The provided Elementor Loop – Item template has been configured to draw it’s data from the Team Member Post Type.

But as shown below, the widget can be used as a stand alone flip card or integrated into an Elementor Loop Item template.

Default Widget

Member Name
Member Bio
Appt. By: Name
Began: 1/1/2020
Ends: 12/31/2028

Bio Excerpt

Stand Alone Widget

John Q. Public

Senior Videographer

Council Member

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

Dynamic Loop

Janiqua P Doe
Chair (Elected 02/08/19)
Chair (Elected 02/08/19)
Maecenas malesuada. Donec vitae sapien ut libero venenatis faucibus. Donec vitae orci sed dolor rutrum auctor. Proin sapien ipsum, porta a, auctor quis, euismod ut, mi.

Live Sessions Dropdown Button

The Live Session Dropdown Button global widget is a highly configurable interactive button widget specifically designed for using Live session jSON data to build a dropdown list buttons for any defined meetings / “Categories”.

To populate the Dropdown Button set the Content tab’s configuration to:

  • Iten Source: JSON or CSV
  • JSON or CSV Location: Dynamic Textarea
  • JSON or CSV Items Data: 
				
					print get_live_session_categories_button_data('Category','');
				
			
  • Title Source: Item Field Name
  • Title Item Field Name: “Category”
  • Link Source: Item Field Name
  • Link Item Field Name: “Link”

If you want to hide the button if there are no live meetings or sessions you can set the Visibility settings to use the following Custom Conditions trigger.

				
					json_decode($_SESSION['OM_SERVICE_LIVE_DATA']) -> totalSize > 0 ? true : false;
				
			

OM Documents Button Group

The OM Documents Button Group widget is a highly configurable interactive button widget specifically designed for using Live session jSON data to build a download buttons for any single, or all documents attached to the session.

But as shown below, the widget can be used as a static Button Item list or a even a single button.

NEWS Posts

The NEWS Article Custom Post Type (CPT) allows you to to post pertinent information for your constituents in a professional and engaging manner.

The NEWS CPT is fully compatible with Elementor’s Templating services and other Page Builder data widgets.

The CPT and underlying Elementor Templates can be implemented in just a few minutes.

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur blandit mollis lacus. Maecenas nec odio et ante tincidunt tempus.
Etiam sollicitudin, ipsum eu pulvinar rutrum, tellus ipsum laoreet sapien, quis venenatis ante odio sit amet eros. Nam eget dui.
Morbi mollis tellus ac sapien. Cras risus ipsum, faucibus ut, ullamcorper id, varius ac, leo. Cras ultricies mi eu turpis hendrerit fringilla.

OM IFrame

The OM IFrame widget was created to allow you to create page content, templates or embed it as an Elementor nested widget.  

The Widget will display a single legislative chamber’s archive.