Jordimaura
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Plugins
In reply to: [WP Shortcodes Plugin — Shortcodes Ultimate] Big Buck Bunny?the route to the php is:
wp-content/plugins/shortcodes-ultimate/inc/core/class.shortcodes.phpand the code must be like this:
/* public static function video( $atts = null, $content = null ) { $atts = shortcode_atts( array( 'url' => 'https://www.jplayer.org/video/m4v/Big_Buck_Bunny_Trailer.m4v', 'poster' => 'https://www.jplayer.org/video/poster/Big_Buck_Bunny_Trailer_480x270.png', 'title' => '', 'width' => 600, 'height' => 300, 'controls' => 'yes', 'autoplay' => 'no', 'loop' => 'no', 'class' => '' ), $atts ); $atts['url'] = su_scattr( $atts['url'] ); // Generate unique ID $id = uniqid( 'su_video_player_' ); // Check that url is specified if ( !$atts['url'] ) return '<p class="su-error">Video: ' . __( 'please specify correct url', 'su' ) . '</p>'; // Prepare title $title = ( $atts['title'] ) ? '<div class="jp-title">' . $atts['title'] . '</div>' : ''; Shortcodes_Ultimate_Assets::add( 'css', 'su-players-shortcodes' ); Shortcodes_Ultimate_Assets::add( 'js', 'jquery' ); Shortcodes_Ultimate_Assets::add( 'js', 'jplayer' ); Shortcodes_Ultimate_Assets::add( 'js', 'su-players-shortcodes' ); // Create player return '<div style="width:' . $atts['width'] . 'px"><div id="' . $id . '" class="su-video jp-video su-video-controls-' . $atts['controls'] . su_ecssc( $atts ) . '" data-id="' . $id . '" data-video="' . $atts['url'] . '" data-swf="' . plugins_url( 'assets/other/Jplayer.swf', SU_PLUGIN_FILE ) . '" data-autoplay="' . $atts['autoplay'] . '" data-loop="' . $atts['loop'] . '" data-poster="' . $atts['poster'] . '"><div id="' . $id . '_player" class="jp-jplayer" style="width:' . $atts['width'] . 'px;height:' . $atts['height'] . 'px"></div>' . $title . '<div class="jp-start jp-play"></div><div class="jp-gui"><div class="jp-interface"><div class="jp-progress"><div class="jp-seek-bar"><div class="jp-play-bar"></div></div></div><div class="jp-current-time"></div><div class="jp-duration"></div><div class="jp-controls-holder"><span class="jp-play"></span><span class="jp-pause"></span><span class="jp-mute"></span><span class="jp-unmute"></span><span class="jp-full-screen"></span><span class="jp-restore-screen"></span><div class="jp-volume-bar"><div class="jp-volume-bar-value"></div></div></div></div></div></div></div>'; } */
just like jblanco says (thanks jblanco!)
if you uninstall shortcodes ultimate also works, but you lost all this functions.
i put the comments /* */ and it works for me
Viewing 1 replies (of 1 total)