for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* UIX Footer
*
* @package ui
* @author David Cramer
* @license GPL-2.0+
* @link
* @copyright 2016 David Cramer
*/
namespace uix\ui;
* Footer type used for creating footer based sections. Mainly used in modals and pages
* @package uix\ui
class footer extends section {
* The type of object
* @since 1.0.0
* @access public
* @var string
public $type = 'footer';
* Sets the wrappers attributes
public function set_attributes() {
$this->attributes['class'][] = 'uix-' . esc_attr( $this->type );
parent::set_attributes();
}
* Render the Control
* @see \uix\ui\uix
* @return string HTML of rendered box
public function render() {
$output = $this->render_template();
if ( ! empty( $this->child ) ) {
$output .= '<div ' . $this->build_attributes() . '>';
$output .= $this->render_children();
$output .= '</div>';
return $output;