Öncelikle Acronym
buradan öğreniniz.
Acronym İndirmek İçin
tıklayın
Acronyms.php dosyasını plugins klasörüne atınız.
Sonra eklentilerden aktifleştirin..
Kullanımı: Eklentilerden>Eklenti Yöneticisi>Acronym Replacer gelin.
Sonra karşınıza kodlar çıkacak o kodlara bakın aşağıda verdiğim gibi kodlar göreceksiniz o kodları da kendinize göre düzenlersiniz veya silebilirsiniz..
"AOL" => "America Online",
"API" => "Application Programming Interface",
"BTW" => "By The Way",
"BPL" => "Broadband over Power Lines",
"CD" => "Compact Disk",
"CGI" => "Common Gateway Interface",
"CLI" => "Common Language Interpreter",
"CMS" => "Content Management System",
"CSS" => "Cascading Style Sheets",
"CVS" => "Concurrent Versions System",
"DNS" => "Domain Name System",
"DOM" => "Document Object Model",
"DSL" => "Digital Subscriber Line (broadband over phone lines)",
"DTD" => "Document Type Definition",
"DVD" => "Digital Video Disc",
"EBI" => "Elim Bible Institute (Bible College in upstate NY)",
"EGC" => "Elim Gospel Church (my church)",
"EF" => "Elim Fellowship (an association of evangelical ministers)",
"FAQ" => "Frequently Asked Questions",
"FCC" => "Federal Communications Commission"Buda b4tuh4n arkadaşımızın eklentiyi abbr çevirici kodları <?php
/*
Plugin Name: Acronym Replacer
Version: 2.8
Plugin URI: http://www.huddledmasses.org/
Description: Wraps common acronyms with the acronym tag
Author: Joel Bennett
Author URI: http://www.HuddledMasses.org
Copyright (c) 2003
Released under the GPL license
http://www.gnu.org/licenses/gpl.txt
This file is part of WordPress.
WordPress is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
function acronyms($text) {
// First, we define all the things we're going to replace, without using parenthesis or pipes (|)
// each deffinition is in the form: // "acronym" => "deffintion",
// ESPECIALLY note that they all end with commas EXCEPT the last one
global $acronym_acronym;
if( empty($acronym_acronym) ) {
$acronym_acronym = array(
"AOL" => "America Online",
"API" => "Application Programming Interface",
"BTW" => "By The Way",
"BPL" => "Broadband over Power Lines",
"CD" => "Compact Disk",
"CGI" => "Common Gateway Interface",
"CLI" => "Common Language Interpreter",
"CMS" => "Content Management System",
"CSS" => "Cascading Style Sheets",
"CVS" => "Concurrent Versions System",
"DNS" => "Domain Name System",
"DOM" => "Document Object Model",
"DSL" => "Digital Subscriber Line (broadband over phone lines)",
"DTD" => "Document Type Definition",
"DVD" => "Digital Video Disc",
"EBI" => "Elim Bible Institute (Bible College in upstate NY)",
"EGC" => "Elim Gospel Church (my church)",
"EF" => "Elim Fellowship (an association of evangelical ministers)",
"FAQ" => "Frequently Asked Questions",
"FCC" => "Federal Communications Commission",
"FOAF" => "Friend Of A Friend is a RDF dialect for describing relationships",
"FSF" => "Free Software Foundation",
"FTP" => "File Transfer Protocol",
"FTTH" => "Fiber to the Home",
"GB" => "Gigabyte",
"GFDL" => "GNU Free Documentation License",
"GPG" => "Gnu PG (Open source public key encryption)",
"GPL" => "GNU General Public License",
"GTK" => "GUI ToolKit - The GIMP Tool Kit for dcreating user-interfaces",
"GUI" => "Graphical User Interface",
"HDTV" => "High Definition TeleVision",
"HTML" => "HyperText Markup Language",
"HTTP" => "HyperText Transfer Protocol",
"IE" => "Internet Explorer",
"ICANN" => "Internet Corporation for Assigned Names and Numbers",
"IHOP" => "International House of Pancakes",
"IIRC" => "if I remember correctly",
"IIS" => "Internet Infomation Server",
"IM" => "Instant Message",
"IMAP" => "Internet Message Access Protocol",
"IP" => "Internet Protocol",
"IRC" => "Internet Relay Chat - like Instant Messaging for groups",
"JSP" => "Java Server Pages",
"KB" => "Kilobyte",
"KDE" => "K Desktop Environment",
"KVM" => "Keyboard, Video, Mouse switch for controlling multiple computers",
"LDAP" => "Lightweight Directory Access Protocol",
"LGPL" => "GNU Lesser General Public License",
"MAPI" => "Mail Application Programming Interface",
"MB" => "Megabyte",
"MP3" => "MPEG Layer 3 - a common audio codec for music files",
"MS" => "Microsoft",
"MSDN" => "Microsoft Developer Network",
"MSIE" => "Microsoft Internet Explorer",
"MSN" => "Microsoft Network",
"NNTP" => "Network News Transfer Protocol - the protocol used for NewsGroups",
"NYC" => "New York City",
"OPML" => "Outline Processor Markup Language",
"P2P" => "Peer To Peer",
"PBS" => "Public Broadcasting System",
"PDF" => "Portable Document Format",
"PGP" => "Pretty Good Privacy (public key encryption)",
"PHP" => "Hypertext PreProcessing",
"PNG" => "Portable Network Graphics",
"POP" => "Short for POP3, the Post Office Protocol for email",
"POP3" => "Post Office Protocol 3 (for email)",
"RAID" => "Redundant Array of Independent Disks",
"RDF" => "Resource Description Framework",
"RPC" => "Remote Procedure Call",
"RSS" => "Really Simple Syndication",
"SIG" => "Special Interest Group",
"SOAP" => "Simple Object Access Protocol",
"SQL" => "Structured Query Language (a database standard)",
"SSH" => "Secure SHell (encrypted protocol replaces telnet and FTP)",
"SSN" => "Social Security Number",
"SSL" => "Secure Sockets Layer (a security protocol)",
"SVG" => "Scalable Vector Graphics",
"TCP" => "Transmission Control Protocol",
"UDP" => "User Datagram Protocol",
"URI" => "Uniform Resource Identifier",
"URL" => "Uniform Resource Locator",
"USB" => "Universal Serial Bus",
"VB" => "Visual Basic",
"VBS" => "Visual Basic Script",
"Film" => "www.depoblog.info",
"VM" => "Virtual Machine",
"VNC" => "Virtual Network Computing",
"W3C" => "World Wide Web Consortium",
"WCAG" => "Web Content Accessibility Guidelines",
"WYSIWYG" => "what you see is what you get",
"XHTML" => "eXtensible HyperText Markup Language - HTML reformulated as XML",
"XML" => "eXtensible Markup Language",
"XSL" => "eXtensible Stylesheet Language",
"XSLT" => "eXtensible Stylesheet Language Transformation"
);
}
$text = " $text ";
foreach($acronym_acronym as $acronym => $description) {
/* For advanced users, there are several possible regular expressions here....
* The safest, "default" one is at the top ...
* You (or I) may choose to use one of the others!
* Pick whichever you want, and make SURE there is only one that isn't preceded by slashes: //
*/
// NEW DEFAULT
// ANOTHER ATTEMPT (v2.8)
$text = preg_replace("|(?!<[^<>]*?)(?<![?./&])\b$acronym\b(?!:)(?![^<>]*?>)|imsU","<font color=RED><b><abbr title=\"$description\">$acronym</abbr></b></font>" , $text);
// DEFAULT:
// OLD DEFAULT: CONSERVATIVE ****************************************************************************************
/// $text = preg_replace("|([\s\>])$acronym([\s\<\.,;:\\/\-])|imsU" , "$1<font color=RED><b><abbr title=\"$description\">$acronym</abbr></b></font>$2" , $text);
// NEW DEFAULT: MORE DARING *****************************************************************************************
/// $text = preg_replace("|([^./?&]\b)$acronym(\b[^:])|imsU" , "$1<font color=RED><b><abbr title=\"$description\">$acronym</abbr></b></font>$2" , $text);
//do it twice, in case they used the same acronym in their title and alt tag...
/// $text = preg_replace("|(<[A-Za-z]+[^>]*)<font color=RED><b><abbr title=\"$description\">$acronym</abbr></b></font>([^>]*>)|imsU" , "$1$acronym$2" , $text);
/// $text = preg_replace("|(<[A-Za-z]+[^>]*)<font color=RED><b><abbr title=\"$description\">$acronym</abbr></b></font>([^>]*>)|imsU" , "$1$acronym$2" , $text);
/// $text = preg_replace("|(<[A-Za-z]+[^>]*)<font color=RED><b><abbr title=\"$description\">$acronym</abbr></b></font>([^>]*>)|imsU" , "$1$acronym$2" , $text);
// SAME AS ABOVE, but CASE SENSITIVE ********************************************************************************
/// $text = preg_replace("|([^./]\b)$acronym(\b[^:])|msU" , "$1<font color=RED><b><abbr title=\"$description\">$acronym</abbr></b></font>$2" , $text);
/// $text = preg_replace("|(<[A-Za-z]* [^>]*)<font color=RED><b><abbr title=\"$description\">$acronym</abbr></b></font>([^<]*>)|msU" , "$1$acronym$2" , $text);
// BY REQUEST: if you UNCOMMENT the last commented line here: *******************************************************
// acronyms wrapped in dollar signs will just be unwrapped: *********************************************
// So: $AOL$ will become AOL, without the <font color=RED><b><abbr title="America Online">AOL</abbr></b></font> *****************
$text = preg_replace("|[$]<font color=RED><b><abbr title=\"$description\">$acronym</abbr></b></font>[$]|imsU" , "$acronym" , $text);
}
return trim( $text );
}
add_filter('the_content', 'acronyms', 18);
add_filter('comment_text', 'acronyms', 18);
?>Yazı Bana Aittir..
Medea_Seo