Changeset 956 for trunk/wp-admin/profile.php
- Timestamp:
- 03/01/2004 06:13:32 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/profile.php
r945 r956 179 179 180 180 181 $bookmarklet_tbpb = ( $use_trackback) ? '&trackback=1' : '';182 $bookmarklet_tbpb .= ( $use_pingback) ? '&pingback=1' : '';183 $bookmarklet_height= ( $use_trackback) ? 590 : 550;181 $bookmarklet_tbpb = (get_settings('use_trackback')) ? '&trackback=1' : ''; 182 $bookmarklet_tbpb .= (get_settings('use_pingback')) ? '&pingback=1' : ''; 183 $bookmarklet_height= (get_settings('use_trackback')) ? 590 : 550; 184 184 185 185 ?> … … 192 192 <p>To have a one-click bookmarklet, just copy and paste this<br />into a new text file:</p> 193 193 <?php 194 $regedit = "REGEDIT4\r\n[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Post To &WP : ". $blogname."]\r\n@=\"javascript:doc=external.menuArguments.document;Q=doc.selection.createRange().text;void(btw=window.open('". get_settings('siteurl') ."/wp-admin/bookmarklet.php?text='+escape(Q)+'".$bookmarklet_tbpb."&popupurl='+escape(doc.location.href)+'&popuptitle='+escape(doc.title),'bookmarklet','scrollbars=no,width=480,height=".$bookmarklet_height.",left=100,top=150,status=yes'));btw.focus();\"\r\n\"contexts\"=hex:31\"";194 $regedit = "REGEDIT4\r\n[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Post To &WP : ". get_settings('blogname') ."]\r\n@=\"javascript:doc=external.menuArguments.document;Q=doc.selection.createRange().text;void(btw=window.open('". get_settings('siteurl') ."/wp-admin/bookmarklet.php?text='+escape(Q)+'".$bookmarklet_tbpb."&popupurl='+escape(doc.location.href)+'&popuptitle='+escape(doc.title),'bookmarklet','scrollbars=no,width=480,height=".$bookmarklet_height.",left=100,top=150,status=yes'));btw.focus();\"\r\n\"contexts\"=hex:31\""; 195 195 ?> 196 196 <pre style="margin: 20px; background-color: #cccccc; border: 1px dashed #333333; padding: 5px; font-size: 12px;"><?php echo $regedit; ?></pre> … … 217 217 $profiledata=get_userdata($user_ID); 218 218 219 $bookmarklet_tbpb = ( $use_trackback) ? '&trackback=1' : '';220 $bookmarklet_tbpb .= ( $use_pingback) ? '&pingback=1' : '';221 $bookmarklet_height= ( $use_trackback) ? 480 : 440;219 $bookmarklet_tbpb = (get_settings('use_trackback')) ? '&trackback=1' : ''; 220 $bookmarklet_tbpb .= (get_settings('use_pingback')) ? '&pingback=1' : ''; 221 $bookmarklet_height= (get_settings('use_trackback')) ? 480 : 440; 222 222 223 223 ?> … … 324 324 { 325 325 if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) 326 window.sidebar.addPanel("WordPress Post: <?php echo $blogname?>","<?php echo get_settings('siteurl'); ?>/wp-admin/sidebar.php","");326 window.sidebar.addPanel("WordPress Post: <?php echo get_settings('blogname'); ?>","<?php echo get_settings('siteurl'); ?>/wp-admin/sidebar.php",""); 327 327 else 328 328 alert('No Sidebar found! You must use Mozilla 0.9.4 or later!');
Note: See TracChangeset
for help on using the changeset viewer.