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
643                'blockquote' => array( 'title' => __('Blockquote (Alt + Shift + Q)'), 'onclick' => 'fullscreen.blockquote();', 'both' => false ),
644                'image' => array( 'title' => __('Insert/edit image (Alt + Shift + M)'), 'onclick' => "fullscreen.medialib();", 'both' => true ),
645                '2' => 'separator',
646                'link' => array( 'title' => __('Insert/edit link (Alt + Shift + A)'), 'onclick' => 'fullscreen.link();', 'both' => true ),
647                'unlink' => array( 'title' => __('Unlink (Alt + Shift + S)'), 'onclick' => 'fullscreen.unlink();', 'both' => false ),
648                '3' => 'separator',
649                'help' => array( 'title' => __('Help (Alt + Shift + H)'), 'onclick' => 'fullscreen.help();', 'both' => false )
650           );
651
652           $buttons = apply_filters( 'wp_fullscreen_buttons', $buttons );
653
654           foreach ( $buttons as $button => $args ) {
655                if ( 'separator' == $args ) { ?>
656                     <div><span aria-orientation="vertical" role="separator" class="mceSeparator"></span></div>
657      <?php          continue;
658                } ?>
659
660                <div<?php if ( $args['both'] ) { ?> class="wp-fullscreen-both"<?php } ?>>
661                <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">