Use YouTube videos
This commit is contained in:
@@ -59,27 +59,27 @@ class SportsPress_Tutorials {
|
||||
public function get_video_ids() {
|
||||
$this->ids = apply_filters( 'sportspress_tutorial_videos', array(
|
||||
__( 'Get Started', 'sportspress' ) => apply_filters( 'sportspress_get_started_tutorial_videos', array(
|
||||
__( 'Installation', 'sportspress' ) => '121430679',
|
||||
__( 'Competitions', 'sportspress' ) . ' & ' . __( 'Seasons', 'sportspress' ) => '121438196',
|
||||
__( 'Venues', 'sportspress' ) => '121438615',
|
||||
__( 'Positions', 'sportspress' ) . ' & ' . __( 'Jobs', 'sportspress' ) => '121438826',
|
||||
__( 'Installation', 'sportspress' ) => 'nE8-RlbotmU',
|
||||
__( 'Competitions', 'sportspress' ) . ' & ' . __( 'Seasons', 'sportspress' ) => 'XAf2EsDrf8M',
|
||||
__( 'Venues', 'sportspress' ) => 'iTZnC_7VvYk',
|
||||
__( 'Positions', 'sportspress' ) . ' & ' . __( 'Jobs', 'sportspress' ) => 'g6QKbDH05n0',
|
||||
) ),
|
||||
__( 'Teams', 'sportspress' ) => apply_filters( 'sportspress_team_tutorial_videos', array(
|
||||
__( 'Add New Team', 'sportspress' ) => '121439873',
|
||||
__( 'League Tables', 'sportspress' ) => '121592514',
|
||||
__( 'Add New Team', 'sportspress' ) => 'x8GoxaHwC9U',
|
||||
__( 'League Tables', 'sportspress' ) => '8AXh399Vstc',
|
||||
) ),
|
||||
__( 'Players', 'sportspress' ) . ' & ' . __( 'Staff', 'sportspress' ) => array_merge(
|
||||
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(
|
||||
__( 'Add New Staff', 'sportspress' ) => '121440185',
|
||||
__( 'Add New Staff', 'sportspress' ) => 'cxm2S7qYSL4',
|
||||
) )
|
||||
),
|
||||
__( 'Events', 'sportspress' ) => apply_filters( 'sportspress_event_tutorial_videos', array(
|
||||
__( 'Add New Event', 'sportspress' ) => '121524233',
|
||||
__( 'Edit Event', 'sportspress' ) => '121590015',
|
||||
__( 'Calendars', 'sportspress' ) => '121591259',
|
||||
__( 'Add New Event', 'sportspress' ) => 'UA25lgqgnSc',
|
||||
__( 'Edit Event', 'sportspress' ) => 'nL0ObdPMyBM',
|
||||
__( 'Calendars', 'sportspress' ) => 'NIHBKMMqN0s',
|
||||
) ),
|
||||
) );
|
||||
}
|
||||
@@ -112,14 +112,14 @@ class SportsPress_Tutorials {
|
||||
<tr><th>
|
||||
<strong><?php echo $i; ?></strong>
|
||||
<?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&portrait=0&title=0&byline=0&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&showinfo=0&autoplay=1', '_blank', 'width=640, height=360');return false;"></a>
|
||||
</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="sp-fitvids">
|
||||
<iframe src="//player.vimeo.com/video/<?php echo $id; ?>?color=00a69c&portrait=0&title=0&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&showinfo=0" frameborder="0" allowfullscreen></iframe>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user