WordPress.org

Plugin Directory

Changeset 332188


Ignore:
Timestamp:
01/13/11 19:20:55 (7 years ago)
Author:
Awaken
Message:

0.0.7 ready

Location:
simple-link/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • simple-link/trunk/js/simple-link.js

    r72979 r332188  
    77    }*/ 
    88jQuery(document).ready(function() { 
    9     initialize(); 
    10     jQuery("a#sl_refresh").click(function() { 
    11         refreshButtons(); 
    12     }); 
    13     jQuery("a#clicklinks").click(function() { 
    14         getAjaxLink(); 
    15         showButtons(); 
    16         return false; 
    17     }); 
     9  initialize(); 
     10  jQuery("a#sl_refresh").click(sl_refresh_handler); 
     11    jQuery("a#clicklinks").click(sl_clicklinks_handler); 
    1812     
    19     jQuery("a#close_clicklinks").click(function() { 
    20         hideButtons(); 
    21         return false; 
    22     }); 
     13    jQuery("a#close_clicklinks").click(sl_close_clicklinks_handler); 
    2314 
    24     jQuery("#sl_filters input[@type='text']").each(function(){ 
     15    jQuery("#sl_filters .sl_filter_input").each(function(){ 
    2516        jQuery(this).keypress(function(e){ 
    2617            var key = window.event ? e.keyCode : e.which; 
     
    3324    });  
    3425}); 
     26 
     27function sl_refresh_handler(){ 
     28  refreshButtons(); 
     29} 
     30 
     31function sl_clicklinks_handler(){ 
     32  getAjaxLink(); 
     33  showButtons(); 
     34    return false; 
     35} 
     36 
     37function sl_close_clicklinks_handler(){ 
     38  hideButtons(); 
     39    return false; 
     40} 
     41 
    3542function initialize(){ 
    3643    jQuery('.postarea').prepend('<div id="clicklink_div"><h3 id="clicklink">Click Links</h3><div id="clicklink_container"></div></div>'); 
  • simple-link/trunk/readme.txt

    r332140 r332188  
    88Stable tag: 0.0.7 
    99 
    10 This is a simple plugin that enables you to add links to a posted post on certain text you selected with just a click! 
     10This is a simple plugin that enables you to add hyperlinks to a post on selected text with just a click! 
    1111 
    1212== Description == 
    1313 
    14 Simple Link is a plugin that enables you to add links to a posted post on certain text you selected with just a click! 
    15 Also you can easily query certain post that you want to link to using the feature supplied by the plugin. 
    16 It works well with the default editor of WordPress and also works in a very popular editor FCKeditor. 
     14This is a simple plugin that enables you to add hyperlinks to a post on selected text with just a click!  
     15Also you can easily find certain post that you want to add hyperlink to using the searching feature supplied by the plugin. 
     16It works well with the default editor of WordPress as well as FCKeditor. 
    1717 
    1818What's new in Simple Link 0.0.4 
     
    2626Now it is compatible with WordPress 2.7 beta2. 
    2727 
     28What's new in Simple Link 0.0.7 
     291.Fixed conflicts of Javascript with other componenets of WordPress. 
     302.Fixed searching posts by press 'Enter' functionality. 
     31 
    2832== Installation == 
     33Method 1: 
     341.Go to Plugins of your WordPress admin site. 
     352.Click 'Add New'. 
     363.Type in 'Simple Link' and click 'Search Plugins'. 
     374.Find Simple Link and click 'Install Now'. 
     385.Activate Simple Link after installation finishes. 
     396.Come to write a new post and enjoy the convenience of Simple Link. 
    2940 
    30 1. Upload the whole directory `simple-link` to the `/wp-content/plugins/` directory 
    31 2. Activate the Simple Link through the 'Plugins' menu in WordPress 
    32 3. Come to write a new post and enjoy the convenience of the Simple Link 
     41Method 2: 
     421.Upload the whole directory `simple-link` to the `/wp-content/plugins/` directory. 
     432.Follow step 5 and 6 in Method 1. 
    3344 
    3445== Frequently Asked Questions == 
    3546 
    36 = 1.Why the plugin doesn't work well? = 
     47= 1.Why the plugin doesn't work? = 
    3748 
    3849Are you using FCKeditor? If you are, please update your FCKeditor to a version greater than 2.5.0. 
     
    4253== Screenshots == 
    4354 
    44 1. Use keywords and tags to specify certain post. 
    45 2. Add the link to a posted post without select any text. 
    46 3. Add the link to a posted post on selected text. 
     551. Use keywords and tags to find certain posts. 
     562. Add the link to a post without select any text. 
     573. Add the link to a post on selected text. 
    4758 
  • simple-link/trunk/simple-link.php

    r72979 r332188  
    33/* 
    44Plugin Name: Simple Link 
    5 Plugin URI: http://rainy-bow.com/simple-link 
    6 Description: Enable you to add links to another post on your blog with just a simple click. 
    7 Author: Awaken Razor 
    8 Version: 0.0.6 
    9 Author URI: http://rainy-bow.com 
     5Description: Enable you to add hyperlinks to other posts on your blog with just a simple click. 
     6Author: Awaken 
     7Version: 0.0.7 
     8Author URI: http://www.renzuocheng.com 
    109*/ 
    1110 
    12 /*  Copyright 2008  Awaken Razor (email : awakenrz@gmail.com) 
     11/*  Copyright 2008  Awaken (email : i@renzuocheng.com) 
    1312 
    1413This program is free software; you can redistribute it and/or modify 
     
    128127            <div class="sl_filter"> 
    129128                <label>Keyword:</label> 
    130                 <input type="text" id="sl_keyword" value="" title="Use % for wildcards." /> 
     129                <input type="text" id="sl_keyword" class="sl_filter_input" value="" title="Use % for wildcards." /> 
    131130            </div> 
    132131        '; 
     
    135134            <div class="sl_filter"> 
    136135                <label>Tag:</label> 
    137                 <input type="text" id="sl_tag" value="" title="\'foo, bar\': posts tagged with \'foo\' or \'bar\'. \'foo+bar\': posts tagged with both \'foo\' and \'bar\'." /> 
     136                <input type="text" id="sl_tag" class="sl_filter_input" value="" title="\'foo, bar\': posts tagged with \'foo\' or \'bar\'. \'foo+bar\': posts tagged with both \'foo\' and \'bar\'." /> 
    138137            </div> 
    139138        '; 
     
    149148    function sl_head(){  
    150149        echo '<link rel="stylesheet" type="text/css" href='.$this->info['install_url'].'/css/simple-link.css?ver=20080922" />'; 
    151         echo '<script type="text/javascript" src="'.$this->info['install_url'].'/js/simple-link.js?ver=20080922"></script>'; 
     150        echo '<script type="text/javascript" src="'.$this->info['install_url'].'/js/simple-link.js?ver=20100114"></script>'; 
    152151        echo '<script type="text/javascript" src="'.$this->info['install_url'].'/js/click-simple-link.js?ver=20080922"></script>'; 
    153152        // CSS Optimization For IE6 
Note: See TracChangeset for help on using the changeset viewer.