Adonis K.

Frontend Engineer

Dropplets template variables and fuctions

It seems like there is no documentation for Dropplets' templates, so I did some digging and found the variables and functions that can be used for template development.

variables:

  • all_posts
  • blog_email
  • blog_image
  • blog_title
  • blog_twitter
  • blog_url
  • cache_directory
  • cachefile
  • category
  • content
  • currentpage
  • date_format
  • dropplets
  • error_text
  • error_title
  • feed_max_items
  • filename
  • footer_inject
  • get_page_meta
  • hasher
  • header_inject
  • homepage
  • image
  • index_cache
  • index_file
  • infinite_scroll
  • intro_text
  • intro_title
  • is_home
  • language
  • meta_description
  • not_found_file
  • offset
  • page
  • page_meta
  • page_title
  • pagination
  • pagination_on_off
  • password
  • php_errormsg
  • plugin
  • post
  • post_author
  • post_author_twitter
  • post_cache
  • post_category
  • post_category_link
  • post_content
  • post_directory
  • post_file
  • post_image
  • post_intro
  • post_link
  • post_status
  • post_title
  • posts
  • posts_dir
  • posts_file
  • posts_per_page
  • published_date
  • published_iso_date
  • template
  • template_dir
  • template_dir_url

functions:

  • count_premium_templates
  • get_all_posts
  • get_footer
  • get_header
  • get_installed_templates
  • get_pagination
  • get_posts_for_category
  • get_premium_templates
  • get_twitter_profile_img
  • identify_modifier_markdown
  • markdown
  • smarty_modifier_markdown

globals:

  • BLOG_EMAIL
  • BLOG_TWITTER
  • BLOG_URL
  • BLOG_TITLE
  • META_DESCRIPTION
  • INTRO_TITLE
  • INTRO_TEXT
  • HEADER_INJECT
  • FOOTER_INJECT
  • ACTIVE_TEMPLATE
  • PAGINATION_ON_OFF
  • POSTS_PER_PAGE
  • INFINITE_SCROLL
  • POSTS_DIR
  • CACHE_DIR
  • FILE_EXT
  • LOGIN_ERROR
  • IS_HOME
  • RSS1
  • RSS2
  • ATOM
  • MARKDOWN_VERSION
  • MARKDOWN_EMPTY_ELEMENT_SUFFIX
  • MARKDOWN_TAB_WIDTH
  • MARKDOWN_WP_POSTS
  • MARKDOWN_WP_COMMENTS
  • MARKDOWN_PARSER_CLASS

Those are the vars and functions returned via get_defined_vars() and get_defined_functions(). After a bit more digging into the dropplets' file system I've found some globals that are assigned by using define()