Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function add_gallery_button($context){
- ?>
- <script>
- function insertSGGallery(){
- var win = window.dialogArguments || opener || parent || top;
- win.send_to_editor("[simon-gallery]");
- }
- </script>
- <?php
- $addgallerybutton = WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__))."elements/sg-button.png";
- $out = '<a onClick = "insertSGGallery()" title="Add Gallery"><img src="'.$addgallerybutton.'" alt="Add Gallery Button" /></a>';
- return $context . $out;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement