Use YouTube videos

This commit is contained in:
Brian Miyaji
2015-03-31 22:48:38 +11:00
parent 9f0b283168
commit 8070238591

View File

@@ -59,27 +59,27 @@ class SportsPress_Tutorials {
public function get_video_ids() { public function get_video_ids() {
$this->ids = apply_filters( 'sportspress_tutorial_videos', array( $this->ids = apply_filters( 'sportspress_tutorial_videos', array(
__( 'Get Started', 'sportspress' ) => apply_filters( 'sportspress_get_started_tutorial_videos', array( __( 'Get Started', 'sportspress' ) => apply_filters( 'sportspress_get_started_tutorial_videos', array(
__( 'Installation', 'sportspress' ) => '121430679', __( 'Installation', 'sportspress' ) => 'nE8-RlbotmU',
__( 'Competitions', 'sportspress' ) . ' & ' . __( 'Seasons', 'sportspress' ) => '121438196', __( 'Competitions', 'sportspress' ) . ' & ' . __( 'Seasons', 'sportspress' ) => 'XAf2EsDrf8M',
__( 'Venues', 'sportspress' ) => '121438615', __( 'Venues', 'sportspress' ) => 'iTZnC_7VvYk',
__( 'Positions', 'sportspress' ) . ' & ' . __( 'Jobs', 'sportspress' ) => '121438826', __( 'Positions', 'sportspress' ) . ' & ' . __( 'Jobs', 'sportspress' ) => 'g6QKbDH05n0',
) ), ) ),
__( 'Teams', 'sportspress' ) => apply_filters( 'sportspress_team_tutorial_videos', array( __( 'Teams', 'sportspress' ) => apply_filters( 'sportspress_team_tutorial_videos', array(
__( 'Add New Team', 'sportspress' ) => '121439873', __( 'Add New Team', 'sportspress' ) => 'x8GoxaHwC9U',
__( 'League Tables', 'sportspress' ) => '121592514', __( 'League Tables', 'sportspress' ) => '8AXh399Vstc',
) ), ) ),
__( 'Players', 'sportspress' ) . ' & ' . __( 'Staff', 'sportspress' ) => array_merge( __( 'Players', 'sportspress' ) . ' & ' . __( 'Staff', 'sportspress' ) => array_merge(
apply_filters( 'sportspress_player_tutorial_videos', array( apply_filters( 'sportspress_player_tutorial_videos', array(
__( 'Add New Player', 'sportspress' ) => '121440032', __( 'Add New Player', 'sportspress' ) => 'wWYQNHITz-g',
) ), ) ),
apply_filters( 'sportspress_staff_tutorial_videos', array( apply_filters( 'sportspress_staff_tutorial_videos', array(
__( 'Add New Staff', 'sportspress' ) => '121440185', __( 'Add New Staff', 'sportspress' ) => 'cxm2S7qYSL4',
) ) ) )
), ),
__( 'Events', 'sportspress' ) => apply_filters( 'sportspress_event_tutorial_videos', array( __( 'Events', 'sportspress' ) => apply_filters( 'sportspress_event_tutorial_videos', array(
__( 'Add New Event', 'sportspress' ) => '121524233', __( 'Add New Event', 'sportspress' ) => 'UA25lgqgnSc',
__( 'Edit Event', 'sportspress' ) => '121590015', __( 'Edit Event', 'sportspress' ) => 'nL0ObdPMyBM',
__( 'Calendars', 'sportspress' ) => '121591259', __( 'Calendars', 'sportspress' ) => 'NIHBKMMqN0s',
) ), ) ),
) ); ) );
} }
@@ -112,14 +112,14 @@ class SportsPress_Tutorials {
<tr><th> <tr><th>
<strong><?php echo $i; ?></strong> <strong><?php echo $i; ?></strong>
<?php echo $label; ?> <?php echo $label; ?>
<a href="#" class="sp-popup sp-icon-popup" title="<?php _e( 'Pop-out', 'sportspress' ); ?>" onclick="window.open('//player.vimeo.com/video/<?php echo $id; ?>?color=00a69c&amp;portrait=0&amp;title=0&amp;byline=0&amp;autoplay=1', '_blank', 'width=640, height=360');return false;"></a> <a href="#" class="sp-popup sp-icon-popup" title="<?php _e( 'Pop-out', 'sportspress' ); ?>" onclick="window.open('//www.youtube-nocookie.com/embed/<?php echo $id; ?>?rel=0&amp;showinfo=0&amp;autoplay=1', '_blank', 'width=640, height=360');return false;"></a>
</th></tr> </th></tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td> <td>
<div class="sp-fitvids"> <div class="sp-fitvids">
<iframe src="//player.vimeo.com/video/<?php echo $id; ?>?color=00a69c&amp;portrait=0&amp;title=0&amp;byline=0" width="320" height="180" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> <iframe width="320" height="180" src="//www.youtube-nocookie.com/embed/<?php echo $id; ?>?rel=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>
</div> </div>
</td> </td>
</tr> </tr>