• Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hooks

Namespaces

  • None
  • SIW
    • Admin
    • API
    • Async
    • Batch
    • Compatibility
    • Data
    • Elements
    • Email
    • External
    • Forms
    • Modules
    • Newsletter
    • Page_Builder
    • Plato
    • Widgets
    • WooCommerce
      • Admin
      • Checkout
      • Email
      • Export
      • Frontend
      • Import

Classes

  • Animation
  • Assets
  • Attachment
  • Autoloader
  • Bootstrap
  • CSS
  • Elements
  • Formatting
  • Forms
  • Head
  • htaccess
  • HTML
  • i18n
  • Icons
  • Login
  • Media_Taxonomies
  • Options
  • Properties
  • Scheduler
  • Shortcodes
  • Update
  • Upload_Subdir
  • Util
  • Widgets

Class HTML

Hulpfuncties voor het genereren van HTML

Namespace: SIW
Copyright: 2019 SIW Internationale Vrijwilligersprojecten
Since: 3.0.0
Located at html.php

Methods summary

public static string
# render_tag( string $type, array $attributes, $content = null, $close = false )

Rendert html-tag

Rendert html-tag

Parameters

$type
$attributes
$content
$close

Returns

string
public static string
# generate_tag( string $type, array $attributes, $content = null, $close = false )

Genereert html-tag

Genereert html-tag

Parameters

$type
$attributes
$content
$close

Returns

string
public static string
# generate_table( array $rows, array $headers = [], array $attributes = [] )

Genereert tabel

Genereert tabel

Parameters

$rows
$headers
$attributes

Returns

string
public static string
# generate_list( array $items, boolean $ordered = false )

Genereert een <ol> of <ul> lijst van array

Genereert een <ol> of <ul> lijst van array

Parameters

$items
$ordered

Returns

string

Todo

escaping + generate_tag gebruiken + attributes
public static string
# generate_link( string $url, string $text = null, array $attributes = [], array $icon = [] )

Genereert link

Genereert link

Parameters

$url
$text
$attributes
$icon

Returns

string

Todo

attributes, target en rel
public static string
# generate_external_link( string $url, string $text = null )

Genereert externe link

Genereert externe link

Parameters

$url
$text

Returns

string
public static string
# sanitize_html_classes( mixed $class, string $fallback = null )

sanitize_html_class voor meerdere classes

sanitize_html_class voor meerdere classes

Parameters

$class
$fallback

Returns

string
public static string
# generate_attributes( array $attributes )

Genereert attributes op basis van array

Genereert attributes op basis van array

Parameters

$attributes

Returns

string
public static string
# generate_field( string $type, array $input_args, array $wrapper_args = [] )

Genereert form field

Genereert form field

Parameters

$type
$input_args
$wrapper_args

Returns

string
SIW API documentation generated by ApiGen