AAAA

Shortcodes

These are used in page content to insert images, documents, videos etc. Use type = img|doc|mp3|vid (defaults to image)

image

WhatOutputCode
Html
Enclosing div / class
sample.jpg
[link src=sample.jpg width=50 enclose=div class=right]
<div class="right"><img src="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/sample.jpg" width="50" alt="sample.jpg"/></div>
Enclosing div
sample.jpg
[link src=sample.jpg width=50 enclose=div]
<div><img src="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/sample.jpg" width="50" alt="sample.jpg"/></div>
Enclosing div, class on img
sample.jpg
[link src=sample.jpg width=50 imgclass=rimg enclose=div]
<div><img src="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/sample.jpg" width="50" alt="sample.jpg" class="rimg"/></div>
class and altfounder[link src=sample.jpg alt=founder width=40 class=right]
<img src="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/sample.jpg" alt="founder" width="40" class="right"/>

post-links

WhatOutputCode
Html
Id only[link type=post id=71]
<a href="" title=""></a>
With textmy last post[link type=post id=71]my last post[/link]
<a href="" title="">my last post</a>
Text and no titlethe earlier one[link type=post id=71 notitle]the earlier one[/link]
<a 0="notitle" href="" title="">the earlier one</a>
With section[link type=post id=71 section=history]
<a href="#history" title=""></a>

docs

WhatOutputCode
Html
Doc onlyregistration form[link type=doc]registration form[/link]
<a class="doc-link ext-doc" href="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/sample.doc">registration form</a>
Custom extensionzip file[link type=doc ext=zip]zip file[/link]
<a class="doc-link ext-zip" href="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/sample.doc">zip file</a>
No extensionempty file[link type=doc file=noextn]empty file[/link]
<a class="doc-link ext-file" href="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/noextn">empty file</a>
Pdf to show iconguidelines[link type=doc file=sample.pdf]guidelines[/link]
<a class="doc-link ext-pdf" href="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/sample.pdf">guidelines</a>
Xl to show iconreport[link type=doc file=sample.xls]report[/link]
<a class="doc-link ext-xl" href="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/sample.xls">report</a>
Doc with image for contentsample.jpg[link type=doc file=sample.pdf src=sample.jpg][/link]
<a href="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/sample.pdf"><img src="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/sample.jpg" alt="sample.jpg"/></a>

misc

WhatOutputCode
Html
Audio only[link type=mp3 width=200]
<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3523697345-audio-player.swf" height="27" quality="best" width="200" flashvars="audioUrl=http://tg.cselian.com/wp-content/plugins/cs-companion/intl/sample.mp3"></embed>
Section (collapsible)
Heading ...
lorem ipsum dolor
[section enclose=div]Heading lorem ipsum dolor[/section]
<div class="section">Heading <a>...</a></div><div class="section-body">lorem ipsum dolor</div>
Section (text)
Heading more
lorem ipsum dolor
[section enclose=div text=more toggle=less]Heading lorem ipsum dolor[/section]
<div class="section">Heading <a data-exp="more" data-col="less">more</a></div><div class="section-body">lorem ipsum dolor</div>
Audio with absolute url[link type=mp3 file=http://cselian.com/d/books/audio/roark.mp3 width=200]
<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3523697345-audio-player.swf" height="27" quality="best" width="200" flashvars="audioUrl=http://cselian.com/d/books/audio/roark.mp3"></embed>
gallery
logos/youtube.gif logos/facebook.gif logos/twitter.png
[gallery type=slide id=social fol=logos images=youtube.gif|facebook.gif|twitter.png links=www.youtube.com/user/cseliantech|www.facebook.com/underthepeacocktree|www.twitter.com/SpandaFoundatio height=33]
<div id="social"><a href="www.youtube.com/user/cseliantech"><img src="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/logos/youtube.gif" height="33" alt="logos/youtube.gif"/></a> <a href="www.facebook.com/underthepeacocktree"><img src="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/logos/facebook.gif" height="33" alt="logos/facebook.gif"/></a> <a href="www.twitter.com/SpandaFoundatio"><img src="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/logos/twitter.png" height="33" alt="logos/twitter.png"/></a></div>
Gallery with slideshow
home/one.jpg
home/two.jpg
[gallery type=slide fol=home images=one.jpg|two.jpg links=1|ms.com height=320 width=300 enclose=div]
<div id="slideshow"><div><a href="http://tg.cselian.com/" title="Home"><img src="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/home/one.jpg" height="320" width="300" alt="home/one.jpg"/></a></div> <div><a href="ms.com"><img src="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/home/two.jpg" height="320" width="300" alt="home/two.jpg"/></a></div></div>

imglink

WhatOutputCode
Html
Image with href linksample.jpg[link href=momo.org src=sample.jpg width=50 target=_new class=right]
<a href="momo.org" target="_new" class="right"><img src="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/sample.jpg" width="50" alt="sample.jpg"/></a>
Image with post linksample.jpg[link id=20 src=sample.jpg width=50 target=_new class=right]
<a href="http://tg.cselian.com/uncategorized/16-autosave-v1" title="Website Environment Setup"><img src="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/sample.jpg" width="50" target="_new" class="right" alt="sample.jpg"/></a>
Wikipedia Link with sectionJimbo[link type=wiki url=Jimmy_Wales section=Political_and_economic_views]Jimbo[/link]
<a href="http://en.wikipedia.org/wiki/Jimmy_Wales#Political_and_economic_views" class="lnk-wiki" target="_new">Jimbo</a>
Image, link with contentsample.jpg
Link Text
[link id=40 src=sample.jpg width=53 height=48]<br/>Link Text[/link]
<a href="" title=""><img src="http://tg.cselian.com/wp-content/plugins/cs-companion/intl/sample.jpg" width="53" height="48" alt="sample.jpg"/><br/>Link Text</a>

snippets

WhatOutputCode
Html
paypal button[file snippets/paypal.html not found][snippet id=paypal]
[file snippets/paypal.html not found]