Content / Category / e107 Shortcodes

e107 Shortcodes

Login Menu Shortcodes (Plugin/Plugin Shortcodes)

Last update: 2016
{LM_ADMIN_CONFIGURE}
{LM_ADMINLINK}
{LM_ADMINLINK_BULLET}
{LM_BULLET}
{LM_EXTERNAL_LINK}
{LM_EXTERNAL_LINK_LABEL}
{LM_EXTERNAL_LINKS}
{LM_FPW_LINK}
{LM_IMAGECODE}
{LM_IMAGECODE_BOX}
{LM_IMAGECODE_NUMBER}
{LM_LISTNEW_LINK}
{LM_LOGINBUTTON}
{LM_LOGOUT}
{LM_LOGOUT_HREF}
{LM_MAINTENANCE}
{LM_MESSAGE}
{LM_MESSAGE_TEXT}
{LM_NEW_COMMENTS}
{LM_NEW_NEWS}
{LM_NEW_USERS}
{LM_PASSWORD_INPUT}
{LM_PASSWORD_LABEL}
{LM_PLUGIN_STATS}
{LM_PROFILE}
{LM_PROFILE_HREF}
{LM_REMEMBERME}
{LM_RESEND_LINK}
{LM_SIGNUP_LINK}
{LM_STATS}
{LM_USERNAME_INPUT}
{LM_USERNAME_LABEL}
{LM_USERSETTINGS}
{LM_USERSETTINGS_HREF}

Contact Shortcodes

(Core/Batch)

(Core/Batch)
core/shortcodes/contact_shortcodes.php
Last check: 1.8.2018
1. {CONTACT_BODY}
2. {CONTACT_EMAIL}
3. {CONTACT_EMAIL_COPY}
4. {CONTACT_IMAGECODE}
5. {CONTACT_IMAGECODE_INPUT}
6. {CONTACT_IMAGECODE_LABEL}
7. {CONTACT_NAME}
8. {CONTACT_PERSON}
9. {CONTACT_SUBJECT}
10. {CONTACT_SUBMIT_BUTTON}

Comment shortcodes

Comment shortcodes (core/batch)

All comments are manager by comment handler, so there is no need to use them. Just for inspiration.
{AUTHOR_INPUT}
{AVATAR}
{COMMENT}
{COMMENT_AVATAR}
{COMMENT_BUTTON}
{COMMENT_INPUT}
{COMMENT_ITEMID}
{COMMENT_MODERATE}
{COMMENT_RATE}
{COMMENT_SHARE}
{COMMENT_STATUS}
{COMMENTEDIT}
{COMMENTS}
{IPADDRESS}
{JOINED}
{LEVEL}
{LOCATION}
{RATING}
{REPLY}
{SIGNATURE}
{SUBJECT}
{SUBJECT_INPUT}
{TIMEDATE}
{USERNAME}

Download shortcodes

Download shortcodes (plugin/plugin_shortcodes)
{DOWNLOAD_ADMIN_EDIT}
{DOWNLOAD_BACK_TO_CATEGORY_LIST}
{DOWNLOAD_BACK_TO_LIST}
{DOWNLOAD_BREADCRUMB}
{DOWNLOAD_CAT_MAIN_DESCRIPTION}
{DOWNLOAD_CAT_MAIN_ICON}
{DOWNLOAD_CAT_MAIN_NAME}
{DOWNLOAD_CAT_NEWDOWNLOAD_TEXT}
{DOWNLOAD_CAT_SEARCH}
{DOWNLOAD_CAT_SUB_COUNT}
{DOWNLOAD_CAT_SUB_DESCRIPTION}
{DOWNLOAD_CAT_SUB_DOWNLOADED}
{DOWNLOAD_CAT_SUB_ICON}
{DOWNLOAD_CAT_SUB_NAME}
{DOWNLOAD_CAT_SUB_NEW_ICON}
{DOWNLOAD_CAT_SUB_SIZE}
{DOWNLOAD_CAT_SUBSUB_COUNT}
{DOWNLOAD_CAT_SUBSUB_DESCRIPTION}
{DOWNLOAD_CAT_SUBSUB_DOWNLOADED}
{DOWNLOAD_CAT_SUBSUB_ICON}
{DOWNLOAD_CAT_SUBSUB_NAME}
{DOWNLOAD_CAT_SUBSUB_NEW_ICON}
{DOWNLOAD_CAT_SUBSUB_SIZE}
{DOWNLOAD_CATEGORY}
{DOWNLOAD_CATEGORY_DESCRIPTION}
{DOWNLOAD_LIST_AUTHOR}
{DOWNLOAD_LIST_CAPTION}
{DOWNLOAD_LIST_DATESTAMP}
{DOWNLOAD_LIST_FILESIZE}
{DOWNLOAD_LIST_ICON}
{DOWNLOAD_LIST_ID}
{DOWNLOAD_LIST_IMAGEFULL}
{DOWNLOAD_LIST_LINK}
{DOWNLOAD_LIST_NAME}
{DOWNLOAD_LIST_NEWICON}
{DOWNLOAD_LIST_NEXTPREV}
{DOWNLOAD_LIST_RATING}
{DOWNLOAD_LIST_RECENTICON}
{DOWNLOAD_LIST_REQUESTED}
{DOWNLOAD_LIST_THUMB}
{DOWNLOAD_LIST_TOTAL_AMOUNT}
{DOWNLOAD_LIST_TOTAL_FILES}
{DOWNLOAD_MIRROR_DESCRIPTION}
{DOWNLOAD_MIRROR_FILESIZE}
{DOWNLOAD_MIRROR_IMAGE}
{DOWNLOAD_MIRROR_LINK}
{DOWNLOAD_MIRROR_LOCATION}
{DOWNLOAD_MIRROR_NAME}
{DOWNLOAD_MIRROR_REQUEST}
{DOWNLOAD_MIRROR_REQUEST_ICON}
{DOWNLOAD_MIRROR_REQUESTS}
{DOWNLOAD_REPORT_LINK}
{DOWNLOAD_TOTAL_MIRROR_REQUESTS}
{DOWNLOAD_VIEW_AUTHOR}
{DOWNLOAD_VIEW_AUTHOR_LAN}
{DOWNLOAD_VIEW_AUTHOREMAIL}
{DOWNLOAD_VIEW_AUTHOREMAIL_LAN}
{DOWNLOAD_VIEW_AUTHORWEBSITE}
{DOWNLOAD_VIEW_AUTHORWEBSITE_LAN}
{DOWNLOAD_VIEW_CAPTION}
{DOWNLOAD_VIEW_DATE}
{DOWNLOAD_VIEW_DATE_LAN}
{DOWNLOAD_VIEW_DATE_LONG}
{DOWNLOAD_VIEW_DATE_SHORT}
{DOWNLOAD_VIEW_DESCRIPTION}
{DOWNLOAD_VIEW_DESCRIPTION_LAN}
{DOWNLOAD_VIEW_FILESIZE}
{DOWNLOAD_VIEW_FILESIZE_LAN}
{DOWNLOAD_VIEW_ID}
{DOWNLOAD_VIEW_IMAGE}
{DOWNLOAD_VIEW_IMAGE_LAN}
{DOWNLOAD_VIEW_IMAGEFULL}
{DOWNLOAD_VIEW_LINK}
{DOWNLOAD_VIEW_LINK_LAN}
{DOWNLOAD_VIEW_NAME}
{DOWNLOAD_VIEW_NAME} - returns only name
{DOWNLOAD_VIEW_NAME=view} - returns name as link to detail view
{DOWNLOAD_VIEW_NAME=request} - returns name as link to direct download link
{DOWNLOAD_VIEW_NAME_LINKED}
{DOWNLOAD_VIEW_NEXT}
{DOWNLOAD_VIEW_PREV}
{DOWNLOAD_VIEW_RATING}
{DOWNLOAD_VIEW_RATING_LAN}
{DOWNLOAD_VIEW_REQUESTED}
{DOWNLOAD_VIEW_REQUESTED_LAN}

Featurebox

Featurebox Shortcodes (Plugin/Global) + Featurebox Item (e_model ) + Featurebox Category (e_model )

Featurebox Shortcodes (global)

{FEATUREBOX}
{FEATUREBOX|default} 
{FEATUREBOX|dynamic} 
{FEATUREBOX=cols=2|tabs} 
$text = e107::getParser()->parseTemplate("{FEATUREBOX|".$type."}");
{FEATUREBOX_ITEMS}
{FEATUREBOX_NAVIGATION}
{FEATUREBOX_NAVIGATION|bootstrap3_carousel=loop&uselimit=1} 
{FEATUREBOX_NAVIGATION|dynamic=loop}  
{FEATUREBOX_NAVIGATION|tabs=loop&uselimit} 
{FEATUREBOX_NAVIGATION|camera=loop&uselimit} 

Featurebox Item (e_model )

In plugins/featurebox/includes/item.php

{FEATUREBOX_ACTIVE}
{FEATUREBOX_ALL}
{FEATUREBOX_BUTTON}
{FEATUREBOX_COLCOUNT}
{FEATUREBOX_COLS}
{FEATUREBOX_COLSCOUNT}
{FEATUREBOX_COUNTER}
{FEATUREBOX_COUNTER=0}
{FEATUREBOX_IMAGE}
{FEATUREBOX_IMAGE=placeholder} 
{FEATUREBOX_IMAGE|image_left=src} 
{FEATUREBOX_IMAGE|image_right=src} 
{FEATUREBOX_IMAGE|camera=src}
{FEATUREBOX_IMAGE|accordion}
{FEATUREBOX_LIMIT}
{FEATUREBOX_TEXT}
{FEATUREBOX_TEXT|default}
{FEATUREBOX_TEXT|image_left}
{FEATUREBOX_TEXT|image_right} 
{FEATUREBOX_TEXT|accordion} = tabs 
{FEATUREBOX_THUMB}
{FEATUREBOX_THUMB=src} 
{FEATUREBOX_TITLE}
{FEATUREBOX_TITLE|default}
{FEATUREBOX_TITLE|image_left} 
{FEATUREBOX_TITLE|image_right}
{FEATUREBOX_TITLE|accordion}
{FEATUREBOX_TOTAL}
{FEATUREBOX_URL}
{FEATUREBOX_URL: href=1}

Featurebox Category (e_model )

In plugins/featurebox/includes/category.php

{FEATUREBOX_CATEGORY_ALL}
{FEATUREBOX_CATEGORY_COLS}
{FEATUREBOX_CATEGORY_EMPTYFILL}
{FEATUREBOX_CATEGORY_ICON}
{FEATUREBOX_CATEGORY_LIMIT}
{FEATUREBOX_CATEGORY_TEMPLATE}
{FEATUREBOX_CATEGORY_TITLE}
{FEATUREBOX_CATEGORY_TOTAL}
{FEATUREBOX_NAV_ACTIVE}
{FEATUREBOX_NAV_COUNTER}

FAQ Shortcodes

(Plugin/Plugin Shortcodes)

(Plugin/Plugin Shortcodes)
Last check 1.8.2018
$sc = e107::getScBatch('faqs', true);

 $this->pref = e107::pref('faqs'); 

 $sc->pref = $this->pref;

 $sc->setVars($row);
1. {FAQ_ANSWER}
2. {FAQ_BREADCRUMB}
3. {FAQ_CAPTION}
4. {FAQ_CAT_DIZ}
5. {FAQ_CATEGORY}
6. {FAQ_CATEGORY_DESCRIPTION}
7. {FAQ_CATURL}
8. {FAQ_COUNT}
9. {FAQ_COUNTER}
10. {FAQ_CURRENT_TAG}
11. {FAQ_DATESTAMP}
12. {FAQ_EDIT}
13. {FAQ_ICON}
14. {FAQ_QUESTION}
15. {FAQ_QUESTION_LINK}
16. {FAQ_SEARCH}
17. {FAQ_SUBMIT_QUESTION}
18. {FAQ_SUBMIT_QUESTION_LIST}
19. {FAQ_TAGS}

JM Theme Plugin

Update 15.05.2019

Global JM Theme shortcodes. Used mainly for layouts and plugin templates in theme itself
{DEFAULT_MENUAREA=999}
- displays menuarea 999  from default layout on all other layouts (not only default) where is this shortcode used
- example:
{DEFAULT_MENUAREA=100}
{MENUAREA=100}
displays menus from area 100 set in default layout + menus from area 100 set for this layout 

- it's helpfull if more layouts use the same footer with the same content.
{SITE_PRIVACY_LINK}
 example: 
  By signing up you agree to <a href="{SITE_TERMS_LINK}">  Terms of Service</a>

- returns e_PRIVACY_URL defined in theme.php
{SITE_TERMS_LINK}
 example: 
  By signing up you agree to <a href="{SITE_TERMS_LINK}">  Terms of Service</a>

- returns e_TERMS_URL defined in theme.php
{LAYOUT_BGIMAGE}
returns background image for layout
Example:
{LAYOUT_BGIMAGE: mode=full&template=bgimage}
returns: 
 <div class="image" style="background-image: url({BGIMAGE})"> </div> 

{LAYOUT_BGIMAGE: mode=full&template=login}
returns
style="background-image: url({BGIMAGE})'
this can be customized in theme template.
{LAYOUT_ELEMENT}
Any element defined for layout by theme.
Example:
{LAYOUT_ELEMENT: mode=full&element=title}
returns title element for full layout.

Login menu

Login menu shortcodes (plugin/plugin_shortcodes)

Last update: 2019
{LM_ADMIN_CONFIGURE}
{LM_ADMINLINK}
{LM_ADMINLINK_BULLET}
{LM_BULLET}
{LM_EXTERNAL_LINK}
{LM_EXTERNAL_LINK_LABEL}
{LM_EXTERNAL_LINKS}
{LM_FPW_LINK}
{LM_IMAGECODE}
{LM_IMAGECODE_BOX}
{LM_IMAGECODE_NUMBER}
{LM_LISTNEW_LINK}
{LM_LOGINBUTTON}
{LM_LOGOUT}
{LM_LOGOUT_HREF}
{LM_MAINTENANCE}
{LM_MESSAGE}
{LM_MESSAGE_TEXT}
{LM_NEW_COMMENTS}
{LM_NEW_NEWS}
{LM_NEW_USERS}
{LM_PASSWORD_INPUT}
{LM_PASSWORD_LABEL}
{LM_PLUGIN_STATS}
{LM_PROFILE}
{LM_PROFILE_HREF}
{LM_REMEMBERME}
{LM_RESEND_LINK}
{LM_SIGNUP_LINK}
{LM_STATS}
{LM_USERNAME_INPUT}
{LM_USERNAME_LABEL}
{LM_USERSETTINGS}
{LM_USERSETTINGS_HREF}

News Shortcodes (Core/Batch)

Path: e107_core/shortcodes/batch
List updated 29.1.2017,  examples from 07/2014

{ADMINBODY}
{ADMINCAPTION}
{ADMINOPTIONS}
{CAPTIONCLASS}
{EMAILICON}
{EXTENDED}
{NEWS_AUTHOR}
{NEWS_AUTHOR_AVATAR}
{NEWS_AUTHOR_ITEMS_URL}
{NEWS_AUTHOR_SIGNATURE}
{NEWS_BODY}
{NEWS_CATEGORY_DESCRIPTION}
{NEWS_CATEGORY_ICON}
{NEWS_CATEGORY_NAME}
{NEWS_CATEGORY_SEF}
{NEWS_COMMENT_COUNT}
{NEWS_COMMENT_LABEL}
{NEWS_DATE}
{NEWS_DESCRIPTION}
{NEWS_ID}
{NEWS_IMAGE}
Example: src="{NEWSIMAGE: type=src&class=none}"
{NEWS_RELATED}
{NEWS_SUMMARY}
{NEWS_TAGS}
returns < a > tags< /a > 
{NEWS_TITLE}
{NEWS_TITLE: link=1}
{NEWS_URL}
{NEWS_USER_AVATAR}
{NEWS_VISIBILITY}
{NEWSAUTHOR}
{NEWSAVATAR}
{NEWSBODY}
{NEWSCATEGORY}
{NEWSCATICON}
{NEWSCOMMENTCOUNT}
{NEWSCOMMENTLINK}
{NEWSCOMMENTS}
{NEWSDATE}
{NEWSDATE=short}
{NEWSDATE=long}
{NEWSDATE=forum}
{GLYPH=time} {NEWSDATE=short}
{NEWSHEADER}
{NEWSICON}
{NEWSID}
{NEWSIMAGE}
{NEWSIMAGE: item=1}
{NEWSIMAGE: type=src}
{NEWSINFO}
{NEWSITEM_SCHOOK}
{NEWSMEDIA}
{NEWSMETADIZ}
{NEWSNAVLINK}
{NEWSRELATED}
{NEWSSUMMARY}
{NEWSTAGS}
returns < li >< a > tags< /a >< /li >
{NEWSTHUMBNAIL}
{NEWSTHUMBNAIL=placeholder}
{NEWSTITLE}
{NEWSTITLELINK}
{NEWSURL}
{NEWSURLTITLE}
{NEWSVIDEO}
{PDFICON}
{PRINTICON}
{STICKY_ICON}
{TRACKBACK}


New ones (2018/10):
{NEWS_RATE} 
{NEWS_RATE: readonly=1}

Page Shortcodes (Core/Batch)

Core Page Shortcodes

{BOOK_ANCHOR}
{BOOK_DESCRIPTION}
{BOOK_ICON}
{BOOK_ID}
{BOOK_NAME}
{BOOK_URL}
{CHAPTER_ANCHOR}
{CHAPTER_BREADCRUMB}
{CHAPTER_BUTTON}
{CHAPTER_DESCRIPTION}
{CHAPTER_ICON}
{CHAPTER_ID}
{CHAPTER_NAME}
{CHAPTER_URL}
{CMENUBODY}
{CMENUICON}
{CMENUICON=css} <i class="fa {CMENUICON=css} ml-2">
{CMENUIMAGE}
{CMENUNAME}
{CMENUTITLE}
{CPAGEANCHOR}
{CPAGEAUTHOR}
{CPAGEBODY}
{CPAGEBUTTON}
{CPAGEDATE}
{CPAGEEDIT}
{CPAGEID}
{CPAGEIMAGE}
{CPAGELINK}
{CPAGEMENU}
{CPAGEMESSAGE}
{CPAGEMETADIZ}
{CPAGENAV}
{CPAGERATING}
{CPAGERELATED}
{CPAGESEF}
{CPAGESUBTITLE}
{CPAGETHUMBNAIL}
{CPAGETITLE}
{CPAGEURL}

Page Shortcodes (global)

updated 15.05.2019
{CMENU}
{CMENU=feature-1}
{CHAPTER_MENUS}
{CHAPTER_MENUS: name=chapter-sef-url}
{CHAPTER_MENUS: name=chapter-sef-url&template=xxxxx}
{PAGE_CHAPTER_DESCRIPTION}
{PAGE_CHAPTER_NAME}
{PAGE_NAVIGATION}
{PAGE_NAVIGATION: template=navdoc&auto=1}

Signup Shortcodes (Core/Batch)

update 30.03.2016

{SIGNUP_ADMINOPTIONS}
{SIGNUP_COPPA_FORM}
{SIGNUP_DISPLAYNAME}
{SIGNUP_EMAIL}
{SIGNUP_EMAIL_CONFIRM}
{SIGNUP_EXTENDED_USER_FIELDS}
{SIGNUP_FORM_CLOSE}
{SIGNUP_FORM_OPEN}
{SIGNUP_HIDE_EMAIL}
{SIGNUP_IMAGECODE}
{SIGNUP_IMAGECODE_LABEL}
{SIGNUP_IMAGES}
{SIGNUP_IS_MANDATORY}
{SIGNUP_LOGINNAME}
{SIGNUP_LOGINNAME}
{SIGNUP_PASSWORD1}
{SIGNUP_PASSWORD2}
{SIGNUP_PASSWORD_LEN}
{SIGNUP_REALNAME}
{SIGNUP_SIGNATURE}
{SIGNUP_SIGNUP_TEXT}
{SIGNUP_USERCLASS_SUBSCRIBE}
{SIGNUP_XUP}
{SIGNUP_XUP_LOGIN}
{SIGNUP_XUP_SIGNUP}

Social Shortcodes

Shortcodes from social plugin

Login/Signup Shortcodes

30.3.2016

{SOCIAL_LOGIN}
$text .= $tp->parseTemplate("{SOCIAL_LOGIN}",true);
{SOCIAL_LOGIN: size=3x}
{SOCIAL_LOGIN: size=2x&label=1}
{SOCIALSHARE}
{SOCIALSHARE} 
{SOCIALSHARE: type=basic} - Show only Email, Facebook, Twitter and Google.
{SOCIALSHARE: dropdown=1&type=basic} - Show only Email, Facebook, Twitter and Google in a drop-down button  
$tp->parseTemplate("{SOCIALSHARE: size=xs&type=basic&url=".$url."&title=".$question."&tags=".$this->var['faq_tags']."}",true) 
{TWITTER_TIMELINE}
{TWITTER_TIMELINE: id=xxxxxxx&theme=light}
{XURL_ICONS}
{XURL_ICONS: size=2x}
{XURL_ICONS: type=facebook,twitter,vimeo} 
{XURL_ICONS: type=facebook,twitter,google-plus,github,instagram,linkedin&size=3x&tip-pos=bottom}