SproutCMS

This is the code documentation for the SproutCMS project

class Html

Helper functions for outputting HTML elements.

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-11-25
**/
class NewClassName extends Html {
    
    /**
    * Creates a link tag.
    **/
    public function link (string|array $href, string|array $rel, string|array $type, string $suffix, string|array $media, boolean $index) {
        // Method code goes here
    }
    
    /**
    * Creates a script link.
    **/
    public function script (string|array $script, boolean $index) {
        // Method code goes here
    }
    
    /**
    * Creates a image link.
    **/
    public function image (string $src, string|array $alt, boolean $index) {
        // Method code goes here
    }
    
    /**
    * Compiles an array of HTML attributes into an attribute string.
    **/
    public function attributes (string|array $attrs) {
        // Method code goes here
    }
    
    /**
    * Creates an email anchor.
    **/
    public function mailto (string $email, string $title, array $attributes) {
        // Method code goes here
    }
    
    /**
    * Generates an obfuscated version of an email address.
    **/
    public function email (string $email) {
        // Method code goes here
    }
    
    /**
    * Create HTML link anchors.
    **/
    public function anchor (string $uri, string $title, array $attributes, string $protocol, boolean $escape_title) {
        // Method code goes here
    }
    
}
?>