Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_fullscreen_buttons

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
712                'blockquote' => array( 'title' => __('Blockquote (Alt + Shift + Q)'), 'onclick' => 'fullscreen.blockquote();', 'both' => false ),
713                'image' => array( 'title' => __('Insert/edit image (Alt + Shift + M)'), 'onclick' => "fullscreen.medialib();", 'both' => true ),
714                '2' => 'separator',
715                'link' => array( 'title' => __('Insert/edit link (Alt + Shift + A)'), 'onclick' => 'fullscreen.link();', 'both' => true ),
716                'unlink' => array( 'title' => __('Unlink (Alt + Shift + S)'), 'onclick' => 'fullscreen.unlink();', 'both' => false ),
717                '3' => 'separator',
718                'help' => array( 'title' => __('Help (Alt + Shift + H)'), 'onclick' => 'fullscreen.help();', 'both' => false )
719           );
720
721           $buttons = apply_filters( 'wp_fullscreen_buttons', $buttons );
722
723           foreach ( $buttons as $button => $args ) {
724                if ( 'separator' == $args ) { ?>
725                     <div><span aria-orientation="vertical" role="separator" class="mceSeparator"></span></div>
726      <?php          continue;
727                } ?>
728
729                <div<?php if ( $args['both'] ) { ?> class="wp-fullscreen-both"<?php } ?>>
730                <a title="<?php echo $args['title']; ?>" onclick="<?php echo $args['onclick']; ?>return false;" class="mceButton mceButtonEnabled mce_<?php echo $button; ?>" href="#" id="wp_fs_<?php echo $button; ?>" role="button" aria-pressed="false">