Forked from alexkingorg/wp-fullscreen-preview-button.php
Last active
August 29, 2015 14:10
-
-
Save rajeebbanstola/ae42bbfc478a54964973 to your computer and use it in GitHub Desktop.
Revisions
-
alexkingorg revised this gist
Jan 14, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ /* Plugin Name: Fullscreen Preview Button Description: Add a preview button to the fullscreen editor toolbar. Version: 1.2 Author: Alex King Author URI: http://alexking.org License: GPL2 -
alexkingorg revised this gist
Jan 14, 2013 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,14 +9,14 @@ License: GPL2 */ function akv3_fullscreen_preview_button() { ?> <script type="text/javascript"> ;(function($) { var $preview = $('#post-preview'); $preview.clone() .removeAttr('id').removeClass('preview').addClass('right') .css('margin-left', '5px') .click(function(e) { $preview.click(); e.preventDefault(); @@ -26,5 +26,5 @@ function ak_fullscreen_preview_button() { </script> <?php } add_action('admin_footer-post-new.php', 'akv3_fullscreen_preview_button'); add_action('admin_footer-post.php', 'akv3_fullscreen_preview_button'); -
Alex King revised this gist
Jul 8, 2012 . 1 changed file with 9 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ /* Plugin Name: Fullscreen Preview Button Description: Add a preview button to the fullscreen editor toolbar. Version: 1.1 Author: Alex King Author URI: http://alexking.org License: GPL2 @@ -13,9 +13,15 @@ function ak_fullscreen_preview_button() { ?> <script type="text/javascript"> ;(function($) { var $preview = $('#post-preview'); $preview.clone() .removeAttr('id').removeClass('preview') .css('margin-right', '5px') .click(function(e) { $preview.click(); e.preventDefault(); }) .insertBefore('#wp-fullscreen-save input.button-primary'); }(jQuery)); </script> <?php -
Alex King revised this gist
Jul 7, 2012 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,8 @@ function ak_fullscreen_preview_button() { ?> <script type="text/javascript"> ;(function($) { $('#post-preview').clone() .removeAttr('id').removeClass('preview') .prependTo('#wp-fullscreen-save'); }(jQuery)); </script> -
Alex King revised this gist
Jul 6, 2012 . 1 changed file with 11 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,15 @@ <?php /* Plugin Name: Fullscreen Preview Button Description: Add a preview button to the fullscreen editor toolbar. Version: 1.0 Author: Alex King Author URI: http://alexking.org License: GPL2 */ function ak_fullscreen_preview_button() { ?> <script type="text/javascript"> ;(function($) { @@ -12,5 +19,5 @@ function akv3_fullscreen_preview_button() { </script> <?php } add_action('admin_footer-post-new.php', 'ak_fullscreen_preview_button'); add_action('admin_footer-post.php', 'ak_fullscreen_preview_button'); -
Alex King created this gist
Jul 6, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ <?php // Add a preview button to the fullscreen editor toolbar. function akv3_fullscreen_preview_button() { ?> <script type="text/javascript"> ;(function($) { $('#post-preview').clone().removeAttr('id').removeClass('preview') .prependTo('#wp-fullscreen-save'); }(jQuery)); </script> <?php } add_action('admin_footer-post-new.php', 'akv3_fullscreen_preview_button'); add_action('admin_footer-post.php', 'akv3_fullscreen_preview_button');