';
}
/**
* Outputs the end of the "wrap" div.
*
* @since 1.0
* @param void
* @return string
*
*/
function wrap_footer()
{
return '';
}
/**
* Outputs the start of the table.
*
* @since 1.0
* @param string $style
* @return string
*
*/
function table_start($style = '')
{
return '
';
}
/**
* Output the start of the form tag and adds hidden fields if there are any.
*
* @since 1.0
* @param string $method
* @param string $action
* @param array $hidden_fields
* @return string
*
*/
function form_start($method = 'post', $action = '', $hidden_fields = array())
{
$return_html = '';
}
/**
* Output checkbox field in table row.
*
* @since 1.0
* @param string $text
* @param string $text_after_checkbox
* @param string $field_value
* @param string $field_name
* @param boolean $checked
* @return string
*
*/
function tr_row_checkbox($text = '', $text_after_checkbox = '', $field_value = '', $field_name = '', $checked = FALSE)
{
$field_check = $checked == TRUE ? ' checked="checked"' : '';
return '
'.$text.'
'.$text.' '.$text_after_checkbox.'
';
}
/**
* Output input field in table row.
*
* @since 1.0
* @param string $text
* @param string $description
* @param string $field_value
* @param string $field_name
* @return string
*
*/
function tr_row_input($text = '', $field_name = '', $field_value = '', $description = '')
{
if ($description !== '')
{
$description = ' '.$description.' ';
}
return '
'.$text.'
'.$text.' '.$description.'
';
}
/**
* Output the blue button.
*
* @since 1.0
* @param string $value
* @param string $field_name
* @param string $include_start_tag
* @param string $include_end_tag
* @return string
*
*/
function blue_button($value = '', $field_name = 'submit', $include_start_tag = '', $include_end_tag = '
')
{
return $include_start_tag.' '.$include_end_tag;
}
/**
* Creates the top part of the list table.
*
* @since 1.0
* @param array $table_titles
* @return void
*
*/
function list_table_start($table_titles = array())
{
if (is_array($table_titles) == FALSE || count($table_titles) == 0)
{
return '';
}
$return_str = '
';
}
/**
* Start of the post box.
*
* @since 1.0
* @param string $post_box_id
* @param string $post_box_title
* @param string $custom_style
* @param boolean $closed
* @return string
*
*/
function insert_post_box_start($post_box_id = '', $post_box_title = '', $custom_style = '', $closed = FALSE)
{
$custom_style = $custom_style !== '' ? ' style="'.$custom_style.'"' : '';
$closed = $closed == TRUE ? ' style="display: none;"' : '';
return '
';
}
/**
* Outputs the text field for the meta box.
*
* @since 1.0
* @param string $field_desc
* @param string $field_name
* @param string $field_value
* @return string
*
*/
function meta_box_text_field($field_desc = '', $field_name = '', $field_value = '')
{
return '';
}
/**
* Outputs the select field for the meta box.
*
* @since 1.0
* @param string $field_desc
* @param string $field_name
* @param array $field_values
* @return string
*
*/
function meta_box_select_field($field_desc = '', $field_name = '', $field_value = array())
{
$return_str = '';
return $return_str;
}
/**
* Outputs the checkbox field for the meta box.
*
* @since 1.0
* @param string $field_desc
* @param array $checkbox_values
* @return string
*
*/
function meta_box_checkbox_field($field_desc = '', $checkbox_values = array())
{
$return_str = '';
return $return_str;
}
/**
* Outputs the color pickers.
*
* @since 1.0
* @param string $field_desc
* @param array $color_boxes
* @return string
*
*/
function meta_box_color_pickers($field_desc = '', $color_boxes = array())
{
$return_str = '';
return $return_str;
}
/**
* Output the live ad preview.
*
* @since 1.0
* @param string $field_desc
* @param array $colors
* @return string
*
*/
function meta_box_ad_preview($field_desc = '', $colors = array())
{
return '
';
}
/**
* Outputs the select field.
*
* @since 1.0
* @param string $title
* @param string $field_name
* @param array $select_values
* @return string
*
*/
function tr_select_field($title = '', $field_name = '', $select_values = array())
{
$return_str = '
'.$title.'
';
foreach ($select_values as $value)
{
$selected = '';
if ($value['selected'] == 'yes')
{
$selected = ' selected="selected"';
}
$return_str .= ''.$value['text'].' ';
}
$return_str .= '
';
return $return_str;
}
/**
* Output the ad placement image with checkboxes.
*
* @since 1.0
* @param string $field_desc
* @param array $radio_buttons
* @param string $or_text
* @param array $placements
* @param array $input_box
* @param array $paragraph_positions
* @return string
*
*/
function meta_box_placements($field_desc = '', $radio_buttons = array(), $or_text = '', $placements = array(), $input_box = array(), $paragraph_positions = array())
{
$radio_btn_1 = $radio_buttons[0]['checked'] == 'yes' ? ' checked="checked"' : '';
$radio_btn_2 = $radio_buttons[1]['checked'] == 'yes' ? ' checked="checked"' : '';
$return_str = '';
return $return_str;
}
/**
* Output the ad placement image with checkboxes.
*
* @since 1.0
* @param string $field_desc
* @param string $field_name
* @param string $field_value
* @param string $field_style
* @param string $text_behind_field
* @return string
*
*/
function meta_box_input_field($field_desc = '', $field_name = '', $field_value = '', $field_style = '', $text_behind_field = '')
{
$return_str = '';
return $return_str;
}
/**
* Output the 4 inputs for margins.
*
* @since 1.0
* @param string $field_desc
* @param array $fields
* @return string
*
*/
function meta_box_margins_field($field_desc = '', $fields = array())
{
$return_str = '';
return $return_str;
}
/**
* Display the updated/error notice.
*
* @since 1.0
* @param string $notice_type
* @param string $notice_text
* @return string
*
*/
function admin_notice($notice_type = 'updated', $notice_text = '')
{
return '';
}
/**
* Output the top bar above the list table.
*
* @since 1.0
* @param void
* @return string
*
*/
function list_table_option()
{
return '
';
}
/**
* Used inside meta box to show simple text and nothing more really.
*
* @since 1.0
* @param array $content
* @return string
*
*/
function meta_box_insert_content($content = array())
{
$content_str = '';
foreach ($content as $value)
{
$content_str .= ''.$value.'
';
}
return '';
}
/**
* Output fields for the privacy policy page.
*
* @since 1.0
* @param string $field_desc
* @param string $checkbox_name
* @param string $checkbox
* @param string $checkbox_text_after
* @param string $description
* @param string $field_name_input
* @param string $field_value_input
* @param string $field_style_input
* @param string $field_name_textarea
* @param string $field_value_textarea
* @param string $field_style_textarea
* @return string
*
*/
function meta_box_input_pp_field($field_desc = '', $checkbox_name = '', $checkbox = '', $checkbox_text_after = '', $description = '', $field_name_input = '', $field_value_input = '', $field_style_input = '', $field_name_textarea = '', $field_value_textarea = '', $field_style_textarea = '')
{
$checkbox_checked = '';
if ($checkbox !== '')
{
$checkbox_checked = ' checked="checked"';
}
$return_str = '';
return $return_str;
}
/**
* Output the top banner.
*
* @since 1.1
* @param void
* @return string
*
*/
function show_banner()
{
return ' ';
}
/**
* Output the live ad preview.
*
* @since 1.1
* @param string $field_desc
* @param array $colors
* @return string
*
*/
function meta_box_tla_preview($field_desc = '', $colors = array())
{
return '
';
}
/**
* Output textarea field in table row.
*
* @since 1.1
* @param string $text
* @param string $description
* @param string $field_value
* @param string $field_name
* @return string
*
*/
function tr_row_textarea($text = '', $field_name = '', $field_value = '', $description = '')
{
if ($description !== '')
{
$description = ' '.$description.' ';
}
return '
'.$text.'
'.$text.' '.$description.'
';
}
/**
* Output textarea field for meta box.
*
* @since 1.1
* @param string $field_desc
* @param string $description
* @param string $field_name_textarea
* @param string $field_value_textarea
* @param string $field_style_textarea
* @return string
*
*/
function meta_box_textarea_field($field_desc = '', $description = '', $field_name_textarea = '', $field_value_textarea = '', $field_style_textarea = '')
{
$return_str = '';
return $return_str;
}
/**
* Output the secondary button.
*
* @since 1.1
* @param string $value
* @param string $field_name
* @param string $include_start_tag
* @param string $include_end_tag
* @return string
*
*/
function secondary_button($value = '', $field_name = 'submit', $include_start_tag = '', $include_end_tag = '
')
{
return $include_start_tag.' '.$include_end_tag;
}
}
?>