Plugin Directory

Changeset 700997


Ignore:
Timestamp:
04/21/2013 08:37:29 AM (13 years ago)
Author:
tkrivickas
Message:

DEVBUG '_' in stream URL. NF livestream shortcode - initial impl.

Location:
live-stream-badger/trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • live-stream-badger/trunk/apis/class-api-twitch.php

    r700755 r700997  
    1010
    1111    const FORMAT_CHANNEL_TO_URL = 'http://www.twitch.tv/%s';
    12     const REGEX_TWITCH_URL      = '%http://(?:www)?\.twitch\.tv/([a-zA-Z0-9\-\.]+)(?:/.)?%';
     12    const REGEX_TWITCH_URL      = '%http://(?:www)?\.twitch\.tv/([a-zA-Z0-9_\-\.]+)(?:/.)?%';
    1313
    1414    function get_api_identifier() {
  • live-stream-badger/trunk/live-stream-badger-plugin.php

    r700790 r700997  
    1919
    2020include_once ( LSB_PLUGIN_BASE_URL . '/stream-status-widget.php' );
     21include_once ( LSB_PLUGIN_BASE_URL . '/shortcode/class-embedded-stream.php' );
    2122include_once ( LSB_PLUGIN_BASE_URL . '/scheduler/class-menu-item-updater.php' );
    2223
     
    3132}
    3233
     34// Register shortcode
     35$embedded_stream_sc = new LSB_Embedded_Stream();
     36add_shortcode( 'livestream', array( $embedded_stream_sc, 'do_shortcode' ) );
     37
    3338//
    3439// Register updater to start on activation/ stop on deactivation
     
    3944register_activation_hook( __FILE__, 'lsb_activation' );
    4045function lsb_activation() {
    41      wp_schedule_event(time(), 'lsb_five_minutes', 'lsb_update_all_stream_status');
     46    wp_schedule_event( time(), 'lsb_five_minutes', 'lsb_update_all_stream_status' );
    4247}
    4348
Note: See TracChangeset for help on using the changeset viewer.