inicio mail me! foro sindicaci;ón

Agregando Quicktags para ayudar a hacer post semánticos.

Leyéndo en aNieto2k acerca de post más semánticos me pareció que algo que podría ayudar es agregar algunos botones en nuestro editor (no aplica a los que tienen activado el editor visual) al menos en mi caso así es, ya que por pura flojera de teclear las tags muchas veces no usaba las etiquetas

HTML:
  1. <blockquote cite=""> </blockquote> // Destinado a mostrar citas de otras páginas.
  2. <abbr title=""> </abbr> // Ideal para indicar abreviaturas.
  3. <a href=""> <abbr title="" lang=""></abbr></a> // Para indicar abreviaturas, el lenguaje y enlazar a una explicación.
  4. <acronym title=""> </acronym> // Con ella podremos definir el signifido de los acrónimos.
  5. <dfn title=""> </dfn> // Usado para mostrar definiciones de palabras claves.
  6. ó
  7. <address> </address> // Para indicar direcciones dentro de nuestros posts.

De modo que con lo aprendido en la instalación del plugin iG:Syntax Hiliter V3.5 decidí agregar los QuickTags correspondientes, así ya no hay pretexto ;)

Bien, para agregar los QuickTags habrá que editar el archivo quicktags.js que se encuentra en el directorio "wp-includes/js/", con cualquier editor de texto.

Ahí encontrarás en la línea # 126 lo siguiente:

JavaScript:
  1. edButtons[edButtons.length] =
  2. new edButton('ed_more'
  3. ,'more'
  4. ,'<a id="more-32"></a>'
  5. ,''
  6. ,'t'
  7. ,-1
  8. );

En seguida agrega el siguiente código:

JavaScript:
  1. edButtons[edButtons.length] =
  2. new edButton('ed_block'
  3. ,'b-quote cite'
  4. ,'\n\n<blockquote cite="">'
  5. ,'</blockquote>\n\n'
  6. ,'qc'
  7. );
  8.  
  9. edButtons[edButtons.length] =
  10. new edButton('ed_abbr'
  11. ,'abbr'
  12. ,'<abbr title="">'
  13. ,'</abbr>'
  14. ,'ab'
  15. );
  16.  
  17. edButtons[edButtons.length] =
  18. new edButton('ed_abbrl'
  19. ,'abbr-link'
  20. ,'<a href=""><abbr title="" lang="">'
  21. ,'</abbr></a>'
  22. ,'abl'
  23. );
  24.  
  25. edButtons[edButtons.length] =
  26. new edButton('ed_acronym'
  27. ,'acronym'
  28. ,'<acronym title="">'
  29. ,'</acronym>'
  30. ,'acro'
  31. );
  32.  
  33. edButtons[edButtons.length] =
  34. new edButton('ed_dfn'
  35. ,'dfn'
  36. ,'<dfn title="">'
  37. ,'</dfn>'
  38. ,'dfn'
  39. );
  40.  
  41. edButtons[edButtons.length] =
  42. new edButton('ed_address'
  43. ,'address'
  44. ,'<address>'
  45. ,'</address>'
  46. ,'addrs'
  47. );

y ahora sólo guarda (salva) el archivo y súbelo al sitio de nuevo.

Ahora ya tienes 6 botones (Quicktags) nuevos que te serán de mucha utilidad para escribir post más semánticos. ;)

Y ahora (10 de Octubre) me entero que ya existe un plugin que te evita todos éstos pasos :lol:

Enlaces Patrocinados:
optica | tarot

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • meneame
  • BlinkList
  • blogmarks
  • co.mments
  • connotea
  • del.icio.us
  • De.lirio.us
  • digg
  • Fark
  • feedmelinks
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • NewsVine
  • Netvouz
  • RawSugar
  • Reddit
  • scuttle
  • Shadows
  • Simpy
  • Smarking
  • Spurl
  • TailRank
  • Wists
  • YahooMyWeb

Comentarios (1) »

Gravatar

diarioTHC | Automatiza acciones en wordpress añadiendo quicktags dijo,

March 6, 2008 @ 3:03 pm

[…] Agregando Quicktags para ayudar a hacer post semánticos […]

RSS para los comentarios de éste artículo · TrackBack URI

Deja tu comentario

Dirección de tu Sitio Web o Blog

Este Blog usa el Tema Qwilm! tema, supercargado por aNieto2k