PluginProbe
iframe / 4.1
iframe v4.1
trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7 1.8 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.0 4.0 4.1 4.2 4.3 All 35 releases
← All changes | iframe.php +8 -11 4.24.1 View file →
@@ -2,9 +2,9 @@
2 2 /*
3 3 Plugin Name: iframe
4 4 Plugin URI: http://wordpress.org/plugins/iframe/
5 5 Description: [iframe src="http://www.youtube.com/embed/4qsGTXLnmKs" width="100%" height="500"] shortcode
6 -Version: 4.2
6 +Version: 4.1
7 7 Author: webvitaly
8 8 Author URI: http://web-profile.com.ua/wordpress/plugins/
9 9 License: GPLv3
10 10 */
@@ -25,9 +25,9 @@
25 25 $atts[$default] = $value;
26 26 }
27 27 }
28 28
29 - $html = "\n".'<!-- iframe plugin v.4.2 wordpress.org/plugins/iframe/ -->'."\n";
29 + $html = "\n".'<!-- iframe plugin v.4.1 wordpress.org/plugins/iframe/ -->'."\n";
30 30 $html .= '<iframe';
31 31 foreach( $atts as $attr => $value ) {
32 32 if ( strtolower($attr) != 'same_height_as' AND strtolower($attr) != 'onload'
33 33 AND strtolower($attr) != 'onpageshow' AND strtolower($attr) != 'onclick') { // remove some attributes
@@ -57,16 +57,13 @@
57 57 }
58 58 add_shortcode( 'iframe', 'iframe_unqprfx_embed_shortcode' );
59 59
60 60
61 -function iframe_unqprfx_plugin_meta( $links, $file ) { // add links to plugin meta row
62 - if ( $file == plugin_basename( __FILE__ ) ) {
63 - $row_meta = array(
64 - 'support' => '<a href="http://web-profile.com.ua/wordpress/plugins/iframe/" target="_blank"><span class="dashicons dashicons-editor-help"></span> ' . __( 'Iframe', 'iframe' ) . '</a>',
65 - 'donate' => '<a href="http://web-profile.com.ua/donate/" target="_blank"><span class="dashicons dashicons-heart"></span> ' . __( 'Donate', 'iframe' ) . '</a>',
66 - 'pro' => '<a href="http://codecanyon.net/item/advanced-iframe-pro/5344999?ref=webvitalii" target="_blank"><span class="dashicons dashicons-star-filled"></span> ' . __( 'Advanced iFrame Pro', 'iframe' ) . '</a>'
67 - );
68 - $links = array_merge( $links, $row_meta );
61 +function iframe_unqprfx_plugin_meta( $links, $file ) { // add 'Plugin page' and 'Donate' links to plugin meta row
62 + if ( strpos( $file, 'iframe.php' ) !== false ) {
63 + $links = array_merge( $links, array( '<a href="http://web-profile.com.ua/wordpress/plugins/iframe/" title="Plugin page">Iframe</a>' ) );
64 + $links = array_merge( $links, array( '<a href="http://web-profile.com.ua/donate/" title="Support the development">Donate</a>' ) );
65 + $links = array_merge( $links, array( '<a href="http://codecanyon.net/item/advanced-iframe-pro/5344999?ref=webvitaly">Advanced iFrame Pro</a>' ) );
69 66 }
70 - return (array) $links;
67 + return $links;
71 68 }
72 69 add_filter( 'plugin_row_meta', 'iframe_unqprfx_plugin_meta', 10, 2 );