Make WordPress Core

Changeset 631


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

Move Press It link.

Location:
trunk/wp-admin
Files:
2 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
  • trunk/wp-admin/profile.php

    r628 r631  
    320320    <input type="password" name="pass2" size="16" value="" />
    321321  </p>
    322   <p><strong>Bookmarklet</strong><br />
    323     add the link to your Favorites/Bookmarks<br />
    324     <?php
    325 if ($is_NS4 || $is_gecko) {
    326 ?>
    327     <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'));">WordPress
    328     - <?php echo $blogname ?></a>
    329     <?php
    330 } else if ($is_winIE) {
    331 ?>
    332     <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();">WordPress
    333     - <?php echo $blogname ?></a>
    334     <script type="text/javascript" language="JavaScript">
    335 <!--
    336 function oneclickbookmarklet(blah) {
    337     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");
    338 }
    339 // -->
    340 </script>
    341     <br />
    342     <br />
    343     One-click bookmarklet:<br />
    344     <a href="javascript:oneclickbookmarklet(0);">click here</a>
    345     <?php
    346 } else if ($is_opera) {
    347 ?>
    348     <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'));">WordPress
    349     - <?php echo $blogname ?></a>
    350     <?php
    351 } else if ($is_macIE) {
    352 ?>
    353     <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();">WordPress
    354     - <?php echo $blogname ?></a>
    355     <?php
    356 }
    357 ?>
     322
    358323    <?php if ($is_gecko) { ?>
    359324    <br />
     
    379344    <?php } ?>
    380345  </p>
    381   <p>
     346  <p style="clear: both; text-align: center;">
    382347    <input class="search" type="submit" value="Update and Close Window" name="submit" /></p>
    383348    </div>
Note: See TracChangeset for help on using the changeset viewer.