Changeset 1503
- Timestamp:
- 08/01/04 08:04:39 (4 years ago)
- Files:
-
- trunk/wp-admin/admin-header.php (modified) (5 diffs)
- trunk/wp-admin/edit-form-advanced.php (modified) (5 diffs)
- trunk/wp-admin/edit-form-comment.php (modified) (1 diff)
- trunk/wp-admin/edit-form.php (modified) (6 diffs)
- trunk/wp-admin/post.php (modified) (1 diff)
- trunk/wp-admin/profile.php (modified) (1 diff)
- trunk/wp-admin/quicktags.php (modified) (1 diff)
- trunk/wp-admin/templates.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/admin-header.php
r1468 r1503 2 2 3 3 require_once('../wp-config.php'); 4 require_once(ABSPATH .'/wp-admin/auth.php');5 require(ABSPATH .'/wp-admin/admin-functions.php');4 require_once(ABSPATH . '/wp-admin/auth.php'); 5 require(ABSPATH . '/wp-admin/admin-functions.php'); 6 6 7 function gethelp_link($this_file, $helptag) { 8 $url = 'http://wordpress.org/docs/reference/links/#'.$helptag; 9 $s = ' <a href="'.$url.'" title="' . __('Click here for help') .'">?</a>'; 10 return $s; 11 } 12 13 if (!isset($blogID)) $blog_ID=1; 14 if (!isset($debug)) $debug=0; 15 16 $dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories WHERE 1=1"); 7 $dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories"); 17 8 foreach ($dogs as $catt) { 18 $cache_categories[$catt->cat_ID] = $catt;9 $cache_categories[$catt->cat_ID] = $catt; 19 10 } 20 11 … … 24 15 $what_to_show = get_settings('what_to_show'); 25 16 $archive_mode = get_settings('archive_mode'); 26 $date_format = stripslashes(get_settings('date_format')); 27 $time_format = stripslashes(get_settings('time_format')); 28 29 // let's deactivate quicktags on IE Mac and Lynx, because they don't work there. 30 if (($is_macIE) || ($is_lynx)) 31 $use_quicktags = 0; 17 $date_format = get_settings('date_format'); 18 $time_format = get_settings('time_format'); 32 19 33 20 $wpvarstoreset = array('profile','standalone','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback'); … … 59 46 if ($redirect==1) { 60 47 ?> 61 <script language="javascript"type="text/javascript">48 <script type="text/javascript"> 62 49 <!-- 63 50 function redirect() { … … 72 59 73 60 <?php if (isset($xfn)) : ?> 74 <script language="javascript"type="text/javascript">61 <script type="text/javascript"> 75 62 //<![CDATA[ 76 63 … … 133 120 </head> 134 121 <body> 122 135 123 <div id="wphead"> 136 124 <h1><?php bloginfo('name') ?></h1> trunk/wp-admin/edit-form-advanced.php
r1496 r1503 12 12 $allowed_users = explode(" ", trim(get_settings('fileupload_allowedusers'))); 13 13 14 $submitbutton_text = __('Save');15 $toprow_title = sprintf(__('Editing Post #%s'), $post_ID);16 14 if (0 == $post_ID) { 17 15 $form_action = 'post'; … … 20 18 $form_extra = "<input type='hidden' name='post_ID' value='$post_ID' />"; 21 19 } 20 22 21 if (get_settings('use_pingback')) { 23 22 $form_pingback = '<input type="checkbox" class="checkbox" name="post_pingback" value="1" '; … … 28 27 } 29 28 30 $colspan = 2;31 29 $form_prevstatus = '<input type="hidden" name="prev_status" value="'.$post_status.'" />'; 30 32 31 if (get_settings('use_trackback')) { 33 32 $form_trackback = '<p><label for="trackback"><a href="http://wordpress.org/docs/reference/post/#trackback" title="' . __('Help on trackbacks') . '">' . __('<strong>TrackBack</strong> an <abbr title="Universal Resource Identifier">URI</abbr></a>') . '</label> ' . __('(Separate multiple <abbr title="Universal Resource Identifier">URI</abbr>s with spaces.)') . '<br /> … … 124 123 <?php 125 124 ?> 126 <script type="text/javascript" language="JavaScript">125 <script type="text/javascript"> 127 126 <!-- 128 127 edCanvas = document.getElementById('content'); … … 190 189 ?> 191 190 </fieldset> 191 <?php do_action('edit_form_advanced', ''); ?> 192 192 </div> 193 193 </form> trunk/wp-admin/edit-form-comment.php
r1493 r1503 57 57 </fieldset> 58 58 59 <script type="text/javascript" language="JavaScript">59 <script type="text/javascript"> 60 60 <!-- 61 61 edCanvas = document.getElementById('content'); trunk/wp-admin/edit-form.php
r1501 r1503 5 5 $allowed_users = explode(" ", trim(get_settings('fileupload_allowedusers'))); 6 6 7 $submitbutton_text = __('Blog this!');8 $toprow_title = __('New Post');9 7 $form_action = 'post'; 10 8 $form_extra = ''; 9 11 10 if (get_settings('use_pingback')) { 12 11 $form_pingback = '<input type="checkbox" class="checkbox" name="post_pingback" value="1" '; … … 16 15 $form_pingback = ''; 17 16 } 17 18 18 if (get_settings('use_trackback')) { 19 19 $form_trackback = '<p><label for="trackback">' . sprintf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> a <acronym title="Uniform Resource Locator">URL</acronym></a>:</label> (Separate multiple <abbr title="Universal Resource Identifier">URI</abbr>s with spaces.)<br />'), 'http://wordpress.org/docs/reference/post/#trackback') . … … 22 22 $form_trackback = ''; 23 23 } 24 $colspan = 3; 24 25 25 $saveasdraft = ''; 26 26 … … 80 80 81 81 82 <script type="text/javascript" language="JavaScript">82 <script type="text/javascript"> 83 83 <!-- 84 84 edCanvas = document.getElementById('content'); … … 88 88 <?php echo $form_pingback ?> 89 89 <?php echo $form_trackback; ?> 90 90 91 <p class="submit"><input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft') ?>" /> 91 92 <input name="saveasprivate" type="submit" id="saveasprivate" tabindex="10" value="<?php _e('Save as Private') ?>" /> … … 96 97 <input name="referredby" type="hidden" id="referredby" value="<?php if (isset($_SERVER['HTTP_REFERER'])) echo urlencode($_SERVER['HTTP_REFERER']); ?>" /> 97 98 </p> 98 99 <?php do_action('edit_form', ''); ?> 99 100 </div> 100 101 </form> trunk/wp-admin/post.php
r1495 r1503 765 765 ?> 766 766 <a href="javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(btw=window.open('<?php echo get_settings('siteurl') ?>/wp-admin/bookmarklet.php?text='+escape(Q)+'<?php echo $bookmarklet_tbpb ?>&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();"><?php printf(__('Press it - %s'), get_settings('blogname')); ?></a> 767 <script type="text/javascript" language="JavaScript">767 <script type="text/javascript"> 768 768 <!-- 769 769 function oneclickbookmarklet(blah) { trunk/wp-admin/profile.php
r1471 r1503 343 343 <?php if ($is_gecko && $profiledata->user_level != 0) { ?> 344 344 <div class="wrap"> 345 <script language="JavaScript"type="text/javascript">345 <script type="text/javascript"> 346 346 //<