Title: Wp Html Class
Author: Maickon Rangel
Published: <strong>22 ເມສາ 2015</strong>
Last modified: 22 ເມສາ 2015

---

ຄົ້ນຫາປລັກອິນ

![](https://ps.w.org/wp-html-class/assets/banner-772x250.png?rev=1142224)

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://ps.w.org/wp-html-class/assets/icon-128x128.png?rev=1142220)

# Wp Html Class

 ໂດຍ [Maickon Rangel](https://profiles.wordpress.org/maickonrabgel/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/wp-html-class.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/wp-html-class/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/wp-html-class/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/wp-html-class/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/wp-html-class/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/wp-html-class/)

## ຄຳອະທິບາຍ

A simple PHP class to work with PHP code instead of HTML in your projects. Once 
installed, simply use the object $ wp_tag to manipulate HTML elements.

With this plugin you no longer use HTML code in your projects and starts to use 
a $ wp_tag object that will refer to any tag.

For those who do not like to mix HTML with PHP code in your projects, this plugin
offers of help.

### Wp-Html-Class

Uma simples classe PHP para se trabalhar com códigos PHP ao invés de HTML em seus
projetos. Após instalado, basta utilizar o objeto $wp_tag para manipular os elementos
HTML.

    ```
    /**
     * Exemplo de uso da classe WpHtmlClass.
     * A abertura da tag é feita com um método. Este método possui somente um parametro.
     * Este parâmetro é uma String.
     * 
     */
        <?php
            $wp_tag->div('class="x" id="y"'); //Abre uma tag DIV com classe e id 
            $wp_tag->div; // fecha a tag DIV

            $wp_tag->hr(); //criar uma linha

            $wp_tag->img('src="img/image.png"'); //cria uma imagem

            $wp_tag->h1();
                $wp_tag->wp_print('Hello World'); //inprime uma string

                //wp_print() aceita um segundo parametro que por padrão é null
                //ele pode ser "decode" ou "encode"
                $wp_tag->wp_print('Hello World','decode'); 
            $wp_tag->h1;
        ?>
    ```

A idéia principal é tornar o código mais claro, sem precisar estar misturando elementos
HTML com PHP.

#### English Version

A simple PHP class to work with PHP code instead of HTML in your projects. Once 
installed, simply use the object $ wp_tag to manipulate HTML elements. ex:

    ```
    /**
     * Example using the Wp Html Class class.
     * The opening of the tag is performed with a method. This method has only one parameter.
     * This parameter is a String.
     * 
     */

        <?php
            $wp_tag->div('class="x" id="y"'); //Opens a DIV tag with class and id
            $wp_tag->div; //closes the DIV tag

            $wp_tag->hr(); //create a line

            $wp_tag->img('src="img/image.png"'); //create a image

            $wp_tag->h1();
                $wp_tag->wp_print('Hello World'); //print a string

                //print_wp () accepts a second parameter that by default is null
                //it can be "decode" or "encode"
                $wp_tag->wp_print('Hello World','decode'); 
            $wp_tag->h1;
        ?>
    ```

The main idea is to make the code clearer, without being mixing HTML elements with
PHP.

## ພາບໜ້າຈໍ

[⌊Exemple 1⌉⌊Exemple 1⌉[

Exemple 1

[⌊Exemple 2⌉⌊Exemple 2⌉[

Exemple 2

## ການຕິດຕັ້ງ

 1. Unzip `wp-html-class.zip` inside the `/wp-content/plugins/` directory (or install
    via the built-in WordPress plugin installer)
 2. Activate the plugin through the ‘Plugins’ admin menu in WordPress
 3. Create an instance of class Class WpHtml `$ wp tag = new Wp Html Class ();` within
    your PHP files and start using HTML tags with PHP code.

## ການຣີວິວ

ບໍ່ມີການຣີວິວສຳລັບປລັກອິນນີ້.

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“Wp Html Class” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມໃນການ
ພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ Maickon Rangel ](https://profiles.wordpress.org/maickonrabgel/)

[ແປ “Wp Html Class” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/wp-html-class)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/wp-html-class/), ກວດເບິ່ງ
[ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/wp-html-class/), ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/wp-html-class/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/wp-html-class/?limit=100&mode=stop_on_copy&format=rss).

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **0.0.1**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **12 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **10+**
 *  ເວີຊັນ WordPress ** 4.1.1 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **3.4.2**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/wp-html-class/)
 * ແທັກ
 * [html](https://lo.wordpress.org/plugins/tags/html/)[php](https://lo.wordpress.org/plugins/tags/php/)
   [tag](https://lo.wordpress.org/plugins/tags/tag/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/wp-html-class/advanced/)

## ການໃຫ້ຄະແນນ

ຍັງບໍ່ມີການສົ່ງຄຳວິຈານເທື່ອ.

[ການທົບທວນຂອງທ່ານ](https://wordpress.org/support/plugin/wp-html-class/reviews/#new-post)

[ເບິ່ງທັງໝົດ ການຣີວິວ](https://wordpress.org/support/plugin/wp-html-class/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

 *   [ Maickon Rangel ](https://profiles.wordpress.org/maickonrabgel/)

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/wp-html-class/)