Title: HTML Helpers
Author: karevn
Published: <strong>15. svibnja 2011.</strong>
Last modified: 16. lipnja 2011.

---

Pretraga dodataka

Dodatak **nije testiran s zadnje 3 glavna izdanja WordPressa**. Možda ga se više
ne održava ili pruža podršku i možda ima probleme sa kompatibilnošću s novijim inačicama
WordPressa.

![](https://s.w.org/plugins/geopattern-icon/html-helpers.svg)

# HTML Helpers

 Od [karevn](https://profiles.wordpress.org/karevn/)

[Preuzmi](https://downloads.wordpress.org/plugin/html-helpers.0.2.3.zip)

 * [Detalji](https://hr.wordpress.org/plugins/html-helpers/#description)
 * [Recenzije](https://hr.wordpress.org/plugins/html-helpers/#reviews)
 *  [Instalacija](https://hr.wordpress.org/plugins/html-helpers/#installation)
 * [Razvoj](https://hr.wordpress.org/plugins/html-helpers/#developers)

 [Podrška](https://wordpress.org/support/plugin/html-helpers/)

## Opis

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.

## Instalacija

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.

## Recenzije

Nema recenzija za ovaj dodatak.

## Suradnici i Programeri

“HTML Helpers” je softver otvorenog koda. Sljedeće osobe su doprinijele ovom dodatku.

Suradnici

 *   [ karevn ](https://profiles.wordpress.org/karevn/)

[Prevedite “HTML Helpers” na svoj jezik.](https://translate.wordpress.org/projects/wp-plugins/html-helpers)

### Zainteresirani ste za razvoj?

[Pregledajte kôd](https://plugins.trac.wordpress.org/browser/html-helpers/), pogledajte
[SVN spremište](https://plugins.svn.wordpress.org/html-helpers/)ili se pretplatite
na [dnevnik razvoja](https://plugins.trac.wordpress.org/log/html-helpers/) od [RSS](https://plugins.trac.wordpress.org/log/html-helpers/?limit=100&mode=stop_on_copy&format=rss).

## Dnevnik promjena

#### 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_cycle`and`_cycle` functions to support rails-style cycles
 * Added “multiple” option support for `select` tag.

#### 0.2

 * Initial public release

## Meta

 *  Version **0.2.3**
 *  Zadnje ažuriranje **prije 15 godina**
 *  Aktivnih instalacija **10+**
 *  WordPress inačica ** 1.5 ili viša **
 *  Testirano do **3.1.4**
 *  Language
 * [English (US)](https://wordpress.org/plugins/html-helpers/)
 * Oznake
 * [api](https://hr.wordpress.org/plugins/tags/api/)[code](https://hr.wordpress.org/plugins/tags/code/)
   [html](https://hr.wordpress.org/plugins/tags/html/)[php](https://hr.wordpress.org/plugins/tags/php/)
 *  [Napredni pogled](https://hr.wordpress.org/plugins/html-helpers/advanced/)

## Ocjena

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/html-helpers/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/html-helpers/reviews/)

## Suradnici

 *   [ karevn ](https://profiles.wordpress.org/karevn/)

## Podrška

Želite nešto reći? Potrebna vam je pomoć?

 [Pregledaj forum za podršku](https://wordpress.org/support/plugin/html-helpers/)

## Doniraj

Želite li podržati napredak ovog dodatka?

 [ Donirajte ovom dodatku ](https://hr.wordpress.org/plugins/html-helpers/karev.n@gmail.com?output_format=md)