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
1807           'blockquote' => array( 'title' => __('Blockquote (Alt+Shift+Q)'), 'onclick' => 'fullscreen.blockquote();', 'both' => false ),
1808           'image' => array( 'title' => __('Insert/edit image (Alt + Shift + M)'), 'onclick' => "jQuery('#add_{$media_link_type}').click();", 'both' => true ),
1809           '2' => 'separator',
1810           'link' => array( 'title' => __('Insert/edit link (Alt + Shift + A)'), 'onclick' => 'fullscreen.link();', 'both' => true ),
1811           'unlink' => array( 'title' => __('Unlink (Alt + Shift + S)'), 'onclick' => 'fullscreen.unlink();', 'both' => false ),
1812           '3' => 'separator',
1813           'help' => array( 'title' => __('Help (Alt + Shift + H)'), 'onclick' => 'fullscreen.help();', 'both' => false )
1814      );
1815
1816      $buttons = apply_filters( 'wp_fullscreen_buttons', $buttons );
1817
1818      foreach ( $buttons as $button => $args ) {
1819           if ( 'separator' == $args ) { ?>
1820                <div><span aria-orientation="vertical" role="separator" class="mceSeparator"></span></div>
1821 <?php          continue;
1822           } ?>
1823
1824           <div<?php if ( $args['both'] ) { ?> class="wp-fullscreen-both"<?php } ?>>
1825           <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">