Minor tweaks

git-svn-id: http://svn.automattic.com/wordpress/trunk@2763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-08-08 03:28:37 +00:00
parent 65546ba7a5
commit 887422e56f
6 changed files with 33 additions and 32 deletions

View File

@ -9,27 +9,6 @@ if (!isset($_GET["page"])) require_once('admin.php'); ?>
<link rel="stylesheet" href="<?php echo get_settings('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" /> <link rel="stylesheet" href="<?php echo get_settings('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" /> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" />
<?php if ( get_option('rich_editing') ) :?>
<script type="text/javascript" src="tinymce/tiny_mce_src.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "specific_textareas",
textarea_trigger : "title",
theme : "advanced",
theme_advanced_buttons1 : "bold,italic,strikethrough,separator,bullist,numlist,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,image,emotions,separator,undo,redo,code",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
entity_encoding : "raw",
extended_valid_elements : "a[id|href|title|onclick],img[class|src|alt|title|width|height|align]",
plugins : "emotions"
<?php do_action('mce_options'); ?>
});
</script>
<?php endif; ?>
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
@ -93,13 +72,31 @@ function blurry() {
} }
addLoadEvent(blurry); addLoadEvent(blurry);
<?php endif; ?> <?php endif; ?>
//]]> //]]>
</script> </script>
<script type="text/javascript" src="fat.js"></script> <script type="text/javascript" src="fat.js"></script>
<?php if ( get_option('rich_editing') ) :?>
<script type="text/javascript" src="tinymce/tiny_mce_src.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "specific_textareas",
textarea_trigger : "title",
width : "100%",
theme : "advanced",
theme_advanced_buttons1 : "bold,italic,strikethrough,separator,bullist,numlist,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,image,emotions,separator,undo,redo,code",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
entity_encoding : "raw",
extended_valid_elements : "a[id|href|title|onclick],img[class|src|alt|title|width|height|align]",
plugins : "emotions"
<?php do_action('mce_options'); ?>
});
</script>
<?php endif; ?>
<?php if ( isset( $editing ) ) : ?> <?php if ( isset( $editing ) ) : ?>
<script type="text/javascript" src="dbx.js"></script> <script type="text/javascript" src="dbx.js"></script>
<script type="text/javascript" src="dbx-key.js"></script> <script type="text/javascript" src="dbx-key.js"></script>

View File

@ -1,5 +1,4 @@
//initialisation function //initialisation function
addLoadEvent( function() addLoadEvent( function()
{ {
@ -10,8 +9,8 @@ addLoadEvent( function()
//create new docking boxes group //create new docking boxes group
var meta = new dbxGroup( var meta = new dbxGroup(
'grabit', // container ID [/-_a-zA-Z0-9/] 'grabit', // container ID [/-_a-zA-Z0-9/]
'vertical', // orientation ['vertical'|'horizontal'] 'vertical', // orientation ['vertical'|'horizontal']
'7', // drag threshold ['n' pixels] '10', // drag threshold ['n' pixels]
'no', // restrict drag movement to container axis ['yes'|'no'] 'no', // restrict drag movement to container axis ['yes'|'no']
'10', // animate re-ordering [frames per transition, or '0' for no effect] '10', // animate re-ordering [frames per transition, or '0' for no effect]
'yes', // include open/close toggle buttons ['yes'|'no'] 'yes', // include open/close toggle buttons ['yes'|'no']
@ -28,7 +27,7 @@ addLoadEvent( function()
var advanced = new dbxGroup( var advanced = new dbxGroup(
'advancedstuff', // container ID [/-_a-zA-Z0-9/] 'advancedstuff', // container ID [/-_a-zA-Z0-9/]
'vertical', // orientation ['vertical'|'horizontal'] 'vertical', // orientation ['vertical'|'horizontal']
'7', // drag threshold ['n' pixels] '10', // drag threshold ['n' pixels]
'yes', // restrict drag movement to container axis ['yes'|'no'] 'yes', // restrict drag movement to container axis ['yes'|'no']
'10', // animate re-ordering [frames per transition, or '0' for no effect] '10', // animate re-ordering [frames per transition, or '0' for no effect]
'yes', // include open/close toggle buttons ['yes'|'no'] 'yes', // include open/close toggle buttons ['yes'|'no']

View File

@ -7,6 +7,7 @@ require_once('admin-header.php');
<div class="wrap"> <div class="wrap">
<h2><?php _e('Page Management'); ?></h2> <h2><?php _e('Page Management'); ?></h2>
<p><?php _e('Pages are like posts except they live outside of the normal blog chronology and can be hierarchical. You can use pages to organize and manage any amount of content.'); ?> <a href="page-new.php"><?php _e('Create a new page'); ?> &raquo;</a></p>
<?php <?php
$posts = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_status = 'static'"); $posts = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_status = 'static'");
@ -32,9 +33,9 @@ if ($posts) {
<?php <?php
} // end if ($posts) } // end if ($posts)
?> ?>
<p><?php _e('Pages are like posts except they live outside of the normal blog chronology. You can use pages to organize and manage any amount of content.'); ?></p>
<h3><a href="page-new.php"><?php _e('Create New Page'); ?> &raquo;</a></h3> <h3><a href="page-new.php"><?php _e('Create New Page'); ?> &raquo;</a></h3>
</div> </div>
<?php include('admin-footer.php'); ?> <?php include('admin-footer.php'); ?>

View File

@ -2,6 +2,8 @@
require_once('admin.php'); require_once('admin.php');
check_admin_referer();
if ( isset( $_POST['action'] ) ) { if ( isset( $_POST['action'] ) ) {
if ( !isset( $_POST['rich_editing'] ) ) if ( !isset( $_POST['rich_editing'] ) )
$_POST['rich_editing'] = 'false'; $_POST['rich_editing'] = 'false';

View File

@ -29,6 +29,8 @@ switch($action) {
case 'update': case 'update':
$any_changed = 0; $any_changed = 0;
check_admin_referer();
if (!$_POST['page_options']) { if (!$_POST['page_options']) {
foreach ($_POST as $key => $value) { foreach ($_POST as $key => $value) {
$option_names[] = "'$key'"; $option_names[] = "'$key'";

View File

@ -26,7 +26,7 @@ require_once('admin-header.php');
<?php if ( ! validate_current_theme() ) : ?> <?php if ( ! validate_current_theme() ) : ?>
<div id="message1" class="updated fade"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div> <div id="message1" class="updated fade"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>
<?php elseif ( isset($activated) ) : ?> <?php elseif ( isset($activated) ) : ?>
<div id="message2" class="updated fade"><p><?php _e('New theme activated'); ?></p></div> <div id="message2" class="updated fade"><p><?php printf(__('New theme activated. <a href="%s">View site &raquo;</a>'), get_bloginfo('home')); ?></p></div>
<?php endif; ?> <?php endif; ?>
<?php <?php