Àpèjúwe
Links to LiveJournals have a very distinctive look: the icon followed by the journal name. This shortcode follows the same format as LiveJournalÌtumọ̀ Yorùbá: ’s own markup and provides the same results, which you can easily customize with your own CSS styles.
Ìgbéwọlẹ̀
- Upload
shortcode-ljto your/wp-content/pluginsdirectory. - Activate the plugin through the “Plugins” menu in your WordPress admin.
To use the shortcode, anywhere you want a LJ link:
[lj user="frank"]
or
[lj user="frank" title="Frank the Goat"]
or
[lj user="lj-maintenance" title="LiveJournal Maintenance" icon="community"]
The user parameter is required. It is the actual name of the journal and can be found from the URL when you visit that journalÌtumọ̀ Yorùbá: ’s page. For example, Frank the GoatÌtumọ̀ Yorùbá: ’s journal is at http://frank.livejournal.com and his username is “frank”. If you do not specify the user parameter, the shortcode will result in a red error message to let you know to fix it.
The title parameter is optional and controls the formatting of the visible link text on your page. By default, the user parameter will be used for the link text unless the title parameter is specified. For example, if you want the text to read “Frank the GoatÌtumọ̀ Yorùbá: ’s Totally Awesome LiveJournal” instead of just “Frank”, put that in the title parameter.
The icon parameter is optional and indicates what kind of LiveJournal this journal is. Valid options are user, community, and news. Defaults to user.
FAQ
- Can I use this shortcode in excerpts, comments, and/or widgets?
-
YES! Simply add the following four lines to your functions.php:
add_filter( 'widget_text', 'shortcode_unautop'); add_filter( 'widget_text', 'do_shortcode', 11); add_filter( 'the_excerpt', 'do_shortcode', 11); add_filter( 'comment_text', 'do_shortcode', 11); - How do I customize the link or icon used?
-
The included stylesheet
style.cssand default LiveJournal icons are easily edited and/or replaced.
Àwọn àgbéyẹ̀wò
Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.
Àwọn Olùkópa & Olùgbéejáde
“LiveJournal Shortcode” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.
Àwọn OlùkópaTúmọ̀ “LiveJournal Shortcode” sí èdè rẹ.
Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?
Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.
Àkọsílẹ̀ àwọn àyípadà
1.1
- Added ability to choose icon type (user, community, news).
- Removed solid white background behind links.
1.0
- Plug-in created.

