Textpattern PHP Cross Reference Content Management Systems

Summary: /textpattern/include/txp_article.php - 2205 lines - 68086 bytes - Source - Print

Description: Write panel.

Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 44 functions

article_post()
article_save()
article_preview()
article_edit()
custField()
checkIfNeighbour()
status_display()
section_popup()
category_popup()
tab()
form_pop()
check_url_title()
get_status_message()
textile_main_fields()
do_pings()
article_partial_html_title()
article_partial_title()
article_partial_title_value()
article_partial_author()
article_partial_actions()
article_partial_custom_field()
article_partial_url_title()
article_partial_url_title_value()
article_partial_description()
article_partial_description_value()
article_partial_keywords()
article_partial_keywords_value()
article_partial_image()
article_partial_custom_fields()
article_partial_recent_articles()
article_partial_article_clone()
article_partial_article_view()
article_partial_body()
article_partial_excerpt()
article_partial_view_modes()
article_partial_article_nav()
article_partial_status()
article_partial_section()
article_partial_categories()
article_partial_comments()
article_partial_posted()
article_partial_expires()
article_partial_value()
article_validate()

Functions

Functions that are not part of a class:

article_post()  line: 132
Processes sent forms and saves new articles. Deprecated in 4.7 by article_save().

article_save()  line: 141
Processes sent forms and updates existing articles.

article_preview($field = false)  line: 375
Renders article preview.

param: string $field
article_edit($message = '', $concurrent = false, $refresh_partials = false)  line: 439
Renders article editor form.

param: string|array $message          The activity message
param: bool         $concurrent       Treat as a concurrent save
param: bool         $refresh_partials Whether to refresh partial contents
custField($num, $field, $content line: 1042
Renders a custom field.

return: string HTML form field
param: int    $num     The custom field number
param: string $field   The label
param: string $content The field contents
checkIfNeighbour($whichway, $sPosted, $ID = 0)  line: 1062
Gets the ID of the next or the previous article.

return: int
param: string $whichway Either '<' or '>'
param: int    Unix timestamp
param: int    pivot article ID
status_display($status = 0)  line: 1087
Renders an article status field.

return: string HTML
param: int $status Selected status
section_popup($Section, $id line: 1114
Renders a section field.

return: string HTML <select> input
param: string $Section The selected section
param: string $id      The HTML id
category_popup($name, $val, $id line: 1142
Renders a category field.

return: string HTML <select> input
param: string $name The Name of the field
param: string $val  The selected option
param: string $id   The HTML id
tab($tabevent, $view, $tag = 'li')  line: 1162
Renders a view tab.

return: string HTML
param: string $tabevent Target view
param: string $view     The current view
form_pop($form, $id, $section line: 1193
Renders 'override form' field.

return: string HTML <select> input
param: string $form    The selected form
param: string $id      HTML id to apply to the input control
param: string $section The section that is currently in use
check_url_title($url_title line: 1231
Checks URL title for duplicates.

return: string Localised feedback message, or an empty string
param: string $url_title The URL title
get_status_message($Status line: 1254
Translates a status ID to a feedback message.

This message is displayed when an article is saved.

return: string The status message
param: int $Status The status
textile_main_fields($incoming line: 1277
Parses article fields using Textile.

return: array
param: array $incoming
do_pings()  line: 1319
Raises a ping callback so plugins can take action when an article is published.

article_partial_html_title($rs line: 1335
Renders the <title> element for the 'Write' page.

return: string HTML
param: array $rs Article data
article_partial_title($rs line: 1347
Renders article title partial.

The rendered widget can be customised via the 'article_ui > title'
pluggable UI callback event.

param: array $rs Article data
article_partial_title_value($rs line: 1369
Gets article's title from the given article data set.

return: string
param: array $rs Article data
article_partial_author($rs line: 1381
Renders author partial.

The rendered widget can be customised via the 'article_ui > author'
pluggable UI callback event.

return: string HTML
param: array $rs Article data
article_partial_actions($rs line: 1419
No description
article_partial_custom_field($rs, $key line: 1432
Renders custom field partial.

return: string HTML
param: array $rs Article data
article_partial_url_title($rs line: 1451
Renders URL title partial.

The rendered widget can be customised via the 'article_ui > url_title'
pluggable UI callback event.

return: string HTML
param: array $rs Article data
article_partial_url_title_value($rs line: 1474
Gets URL title from the given article data set.

return: string HTML
param: array $rs Article data
article_partial_description($rs line: 1486
Renders description partial.

The rendered widget can be customised via the 'article_ui > description'
pluggable UI callback event.

return: string HTML
param: array $rs Article data
article_partial_description_value($rs line: 1509
Gets description from the given article data set.

return: string HTML
param: array $rs Article data
article_partial_keywords($rs line: 1521
Renders keywords partial.

The rendered widget can be customised via the 'article_ui > keywords'
pluggable UI callback event.

return: string HTML
param: array $rs Article data
article_partial_keywords_value($rs line: 1544
Gets keywords from the given article data set.

return: string
param: array $rs Article data
article_partial_image($rs line: 1557
Renders article image partial.

The rendered widget can be customised via the 'article_ui > article_image'
pluggable UI callback event.

return: string HTML
param: array $rs Article data
article_partial_custom_fields($rs line: 1580
Renders all custom fields in one partial.

The rendered widget can be customised via the 'article_ui > custom_fields'
pluggable UI callback event.

return: string HTML
param: array $rs Article data
article_partial_recent_articles($rs line: 1602
Renders <ol> list of recent articles.

The rendered widget can be customised via the 'article_ui > recent_articles'
pluggable UI callback event.

return: string HTML
param: array $rs Article data
article_partial_article_clone($rs line: 1636
Renders article 'duplicate' link.

return: string HTML
param: array $rs Article data
article_partial_article_view($rs line: 1653
Renders article 'view' link.

return: string HTML
param: array $rs Article data
article_partial_body($rs line: 1683
Renders article body field.

The rendered widget can be customised via the 'article_ui > body'
pluggable UI callback event.

return: string HTML
param: array $rs Article data
article_partial_excerpt($rs line: 1753
Renders article excerpt field.

The rendered widget can be customised via the 'article_ui > excerpt'
pluggable UI callback event.

return: string HTML
param: array $rs Article data
article_partial_view_modes($rs line: 1823
Renders list of view modes.

The rendered widget can be customised via the 'article_ui > view'
pluggable UI callback event.

return: string HTML
param: array $rs Article data
article_partial_article_nav($rs line: 1847
Renders next/prev links.

return: string HTML
param: array $rs Article data
article_partial_status($rs line: 1879
Renders article status partial.

The rendered widget can be customised via the 'article_ui > status'
pluggable UI callback event.

return: string HTML
param: array $rs Article data
article_partial_section($rs line: 1894
Renders article section partial.

The rendered widget can be customised via the 'article_ui > section'
pluggable UI callback event.

return: string HTML
param: array $rs Article data
article_partial_categories($rs line: 1918
Renders article categories partial.

The rendered widget can be customised via the 'article_ui > categories'
pluggable UI callback event.

return: string HTML
param: array $rs Article data
article_partial_comments($rs line: 1949
Renders comment options partial.

The rendered widget can be customised via the 'article_ui > annotate_invite'
pluggable UI callback event.

return: string|null HTML
param: array $rs Article data
article_partial_posted($rs line: 2011
Renders timestamp partial.

The rendered widget can be customised via the 'article_ui > timestamp'
pluggable UI callback event.

return: string HTML
param: array $rs Article data
article_partial_expires($rs line: 2059
Renders expiration date partial.

The rendered widget can be customised via the 'article_ui > expires'
pluggable UI callback event.

return: string HTML
param: array $rs Article data
article_partial_value($rs, $key line: 2108
Gets a partial value from the given article data set.

return: string HTML
param: array  $rs  Article data
param: string $key The value to get
article_validate($rs, &$msg line: 2121
Validates article data.

return: string HTML
param: array        $rs  Article data
param: string|array $msg Initial message

title

Body