================================================================== Snippet-title: el v1.0 Creator: Graham Keellings E-mail: pivot@keellings.com Website: http://www.keellings.com/software/pivot.php Creation date: 09 Feb 2007, Singapore ================================================================== Content of zipped file: ----------------------- snippet_el.php readme_el.txt (this file) Usage: ------ 1) unpack this package in your extensions/snippets/ folder. 2) place an [[el]] tag, with the appropriate parameters, in an entry, whereever you want the link to appear Description: ------------ * Easy Link (or something - just wanted to save typing, so called it EL) * * Probably a little too esoteric for most folks, but I did find a use for it :-) * * Pass an entry number and some text to this snippet and it will generate * a link (URL). The text of the link will be text which you pass, and the * tooltip when the user hovers his cover over it, will show the title of the entry. * (I can't figure out how to write text to the browser's status bar - does * anyone know?) * * Example: suppose that last Friday I went to the pub and wrote entry #666 * about it, called "Going down the pub". * Now I plan to go again and want to link to my previous visit. * So, in the current entry, I write something like * Tonight, I think that I will do the same as [[el:666:last Friday]] * The snippet generates a standard URL (usually blue and underlined) * with the text 'last Friday'. If the user hovers his cursor, he sees * a small pop-up tooltip which reads Going down the pub", * and if he clicks the link, he is taken to that entry. * If only the entry number is specified, then the text displayed on * the URL and tooltip will both be the title of the referenced entry. * I'm not the world's best explainer, so if that is not clear, * please mail me and I will update this explanation. Parameters: ----------- * @param integer code - the entry number of the entry which you want * to reference * @param string text - the text which you want to specify on the URL. * If this is left bank, then the entry's title is used. * @return The requested HTML, as specified by the parameters.