/**
* Custom Post Type UI Admin UI.
*
* @package CPTUI
* @subpackage AdminUI
* @author WebDevStudios
* @since 1.0.0
* @license GPL-2.0+
*
* phpcs:disable WebDevStudios.All.RequireAuthor
*/
/**
* Custom Post Type UI Admin UI
*
* @since 1.0.0
*/
class cptui_admin_ui {
/**
* Return an opening `
` tag.
*
* @since 1.0.0
* @since 1.13.0 Added attributes parameter
*
* @param array $atts Array of custom attributes to add to the tag.
* @return string $value Opening `
` tag with attributes.
*/
public function get_tr_start( $atts = [] ) {
$atts_str = '';
if ( ! empty( $atts ) ) {
$atts_str = ' ' . $this->get_custom_attributes( $atts );
}
return '
';
}
/**
* Return a closing `
` tag.
*
* @since 1.0.0
*
* @return string $value Closing `` tag.
*/
public function get_tr_end() {
return '';
}
/**
* Return an opening `` tag.
*
* @since 1.0.0
* @since 1.13.0 Added attributes parameter.
*
* @param array $atts Array of attributes to add to the tag.
* @return string $value Opening ` | ` tag with attributes.
*/
public function get_th_start( $atts = [] ) {
$atts_str = '';
if ( ! empty( $atts ) ) {
$atts_str = ' ' . $this->get_custom_attributes( $atts );
}
return " | ";
}
/**
* Return a closing ` | ` tag.
*
* @since 1.0.0
*
* @return string $value Closing `` tag.
*/
public function get_th_end() {
return '';
}
/**
* Return an opening `` tag.
*
* @since 1.0.0
* @since 1.13.0 Added attributes parameter.
*
* @param array $atts Array of attributes to add to the tag.
* @return string $value Opening ` | ` tag.
*/
public function get_td_start( $atts = [] ) {
$atts_str = '';
if ( ! empty( $atts ) ) {
$atts_str = ' ' . $this->get_custom_attributes( $atts );
}
return " | ";
}
/**
* Return a closing ` | ` tag.
*
* @since 1.0.0
*
* @return string $value Closing `` tag.
*/
public function get_td_end() {
return '';
}
/**
* Return an opening `