Make WordPress Core


Ignore:
Timestamp:
12/18/2003 05:10:20 PM (22 years ago)
Author:
saxmatt
Message:

Move Press It link.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r628 r631  
    630630                include('edit-form.php');
    631631            }
    632 
     632?>
     633<div class="wrap">
     634<h3>WordPress bookmarklet</h3>
     635<p>You can drag the following link to your links bar or add it to your bookmarks and when you "Press it" it will open up a popup window with information and a link to the site you're currently browsing so you can make a quick post about it. Try it out:</p>
     636<p>
     637   <?php
     638if ($is_NS4 || $is_gecko) {
     639?>
     640    <a href="javascript:Q=document.selection?document.selection.createRange().text:document.getSelection();void(window.open('<?php echo $siteurl ?>/wp-admin/bookmarklet.php?text='+escape(Q)+'<?php echo $bookmarklet_tbpb ?>&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'WordPress bookmarklet','scrollbars=no,width=480,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));">Press It
     641    - <?php echo $blogname ?></a>
     642    <?php
     643} else if ($is_winIE) {
     644?>
     645    <a href="javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(btw=window.open('<?php echo $siteurl ?>/wp-admin/bookmarklet.php?text='+escape(Q)+'<?php echo $bookmarklet_tbpb ?>&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'bookmarklet','scrollbars=no,width=480,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();">Press it
     646    - <?php echo $blogname ?></a>
     647    <script type="text/javascript" language="JavaScript">
     648<!--
     649function oneclickbookmarklet(blah) {
     650    window.open ("profile.php?action=IErightclick", "oneclickbookmarklet", "width=500, height=450, location=0, menubar=0, resizable=0, scrollbars=1, status=1, titlebar=0, toolbar=0, screenX=120, left=120, screenY=120, top=120");
     651}
     652// -->
     653</script>
     654    <br />
     655    <br />
     656    One-click bookmarklet:<br />
     657    <a href="javascript:oneclickbookmarklet(0);">click here</a>
     658    <?php
     659} else if ($is_opera) {
     660?>
     661    <a href="javascript:void(window.open('<?php echo $siteurl ?>/wp-admin/bookmarklet.php?popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','bookmarklet','scrollbars=no,width=480,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));">Press it
     662    - <?php echo $blogname ?></a>
     663    <?php
     664} else if ($is_macIE) {
     665?>
     666    <a href="javascript:Q='';if(top.frames.length==0);void(btw=window.open('<?php echo $siteurl ?>/wp-admin/bookmarklet.php?text='+escape(document.getSelection())+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','bookmarklet','scrollbars=no,width=480,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();">Press it
     667    - <?php echo $blogname ?></a>
     668    <?php
     669}
     670?>
     671</p>
     672</div>
     673<?php
    633674        } else {
    634675
Note: See TracChangeset for help on using the changeset viewer.