wp_fullscreen_html

Definition:
function wp_fullscreen_html() {}

Source code

function wp_fullscreen_html() {

	global $content_width, $post;



	$width = isset($content_width) && 800 > $content_width ? $content_width : 800;

	$width = $width + 10; // compensate for the padding

	$dfw_width = get_user_setting( 'dfw_width', $width );

	$save = isset($post->post_status) && $post->post_status == 'publish' ? __('Update') : __('Save');

?>

<div id="wp-fullscreen-body">

<div id="fullscreen-topbar">

	<div id="wp-fullscreen-toolbar">

		<div id="wp-fullscreen-close"><a href="#" onclick="fullscreen.off();return false;"><?php _e('Exit fullscreen'); ?></a></div>

		<div id="wp-fullscreen-central-toolbar" style="width:<?php echo $width; ?>px;">



		<div id="wp-fullscreen-mode-bar"><div id="wp-fullscreen-modes">

			<a href="#" onclick="fullscreen.switchmode('tinymce');return false;"><?php _e('Visual'); ?></a>

			<a href="#" onclick="fullscreen.switchmode('html');return false;"><?php _e('HTML'); ?></a>

		</div></div>



		<div id="wp-fullscreen-button-bar"><div id="wp-fullscreen-buttons" class="wp_themeSkin">

<?php



	$media_link_type = 'image';

	if ( is_multisite() && ( ( ! $mu_media_buttons = get_site_option( 'mu_media_buttons' ) ) || empty( $mu_media_buttons['image'] ) ) )

		$media_link_type = 'media';



	$buttons = array(

		// format: title, onclick, show in both editors

		'bold' => array( 'title' => __('Bold (Ctrl + B)'), 'onclick' => 'fullscreen.b();', 'both' => false ),

		'italic' => array( 'title' => __('Italic (Ctrl + I)'), 'onclick' => 'fullscreen.i();', 'both' => false ),

		'0' => 'separator',

		'bullist' => array( 'title' => __('Unordered list (Alt + Shift + U)'), 'onclick' => 'fullscreen.ul();', 'both' => false ),

		'numlist' => array( 'title' => __('Ordered list (Alt + Shift + O)'), 'onclick' => 'fullscreen.ol();', 'both' => false ),

		'1' => 'separator',

		'blockquote' => array( 'title' => __('Blockquote (Alt+Shift+Q)'), 'onclick' => 'fullscreen.blockquote();', 'both' => false ),

		'image' => array( 'title' => __('Insert/edit image (Alt + Shift + M)'), 'onclick' => "jQuery('#add_{$media_link_type}').click();", 'both' => true ),

15081

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: