HTML Helpers Icon

HTML Helpers

By karevn

Active Installs

10+

Last Updated

June 16, 2011

First Released

May 15, 2011

Download History (Last one month)


Contributors

This plugin adds simple HTML tag generation API to WordPress, like these examples:
generates and prints <img src="/wp-content/<your-theme>/images/wordpress.png" alt="Wordpress" />.
‘my-image’)) ?> generates and returns almost the same tag, just with absolute url, id and alt attributes set manually.
term_id) ?> generates select tag with options taken from WP ‘category’ taxonomy and sets $term as selected item
rails-like “cycle” that returns “odd” on first call, “even” on second, “odd” on
third call, so on. reset_cycle resets the cycle.
shortcut for echo(get_post_meta($id, ‘meta_name’, true))

Form field generators for text, checkbox, hidden input types, textarea, and more tags. More docs coming soon, you can read the code to figure out other features for now.

This section describes how to install the plugin and get it working.

  1. Upload html-helpers directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use html-helpers API in your plugins and themes.

OR

  1. Put html-helpers.php to your plugin or theme folder
  2. require it
  3. Use html-helpers API in your plugins and themes.

No FAQ provided.

Changelog

0.2.3

  • Removed unecessary closing tags for img, input
  • _img and img support image names without an extension
  • smarter ‘alt’ attribute handling for img

0.2.2

  • Fixed endless recursion for img function

0.2.1

  • Added cycle,reset_cycleand_cycle` functions to support rails-style cycles
  • Added “multiple” option support for select tag.

0.2

  • Initial public release
<br />
<b>Warning</b>:  Undefined array key /home/ylinkin/truewp.net/wp-content/plugins/truewp-plugin-info/truewp-plugin-info.php on line 756
" width="120" height="120">

Available Versions

Version Download Type
0.2.3 Download Stable
0.2.2 Download Stable
0.2.1 Download Stable
0.2 Download Stable
Development Download Trunk

Plugin Info

  • Version: 0.2.3
  • Last Updated: June 16, 2011
  • Active Installs: 10+
  • WordPress Version: 1.5 or higher
  • Tested up to: 3.1.4
  • PHP Version: or higher
  • Tags:    
    api code html php

Ratings


0.0 out of 5 stars. (0 reviews)

See all reviews
Scroll to Top