Textpattern PHP Cross Reference Content Management Systems

Summary: /textpattern/include/txp_article.php - 2302 lines - 70587 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_edit()
custField()
checkIfNeighbour()
status_display()
section_popup()
category_popup()
tab()
getDefaultSection()
form_pop()
check_url_title()
get_status_message()
textile_main_fields()
do_pings()
article_partial_html_title()
article_partial_sidehelp()
article_partial_title()
article_partial_title_value()
article_partial_author()
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: 137
Processes sent forms and saves new articles.

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

article_edit($message = '', $concurrent = false, $refresh_partials = false)  line: 516
Renders article editor form.

param: string|array $message          The activity message
param: bool         $concurrent       Treat as a concurrent save
param: bool         $refresh_partials Whether refresh partial contents
custField($num, $field, $content line: 1263
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: 1283
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 line: 1307
Renders an article status field.

return: string HTML
param: int $status Selected status
section_popup($Section, $id line: 1331
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: 1356
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 line: 1376
Renders a view tab.

return: string HTML
param: string $tabevent Target view
param: string $view     The current view
getDefaultSection()  line: 1402
Gets the name of the default section.

return: string The section
form_pop($form, $id line: 1413
Renders 'override form' field.

return: string HTML <select> input
param: string $form The selected form
param: string $id   The HTML id
check_url_title($url_title line: 1430
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: 1453
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: 1476
Parses article fields using Textile.

return: array
param: array $incoming
do_pings()  line: 1506
Pings Ping-O-Matic when an article is published.

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

return: string HTML
param: array $rs Article data
article_partial_sidehelp($rs line: 1541
Renders article formatting tips.

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

param: array $rs Article data
article_partial_title($rs line: 1562
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: 1586
Gets article's title from the given article data set.

return: string
param: array $rs Article data
article_partial_author($rs line: 1598
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_custom_field($rs, $key line: 1622
Renders custom field partial.

return: string HTML
param: array $rs Article data
article_partial_url_title($rs line: 1641
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: 1664
Gets URL title from the given article data set.

return: string HTML
param: array $rs Article data
article_partial_description($rs line: 1676
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: 1699
Gets description from the given article data set.

return: string HTML
param: array $rs Article data
article_partial_keywords($rs line: 1711
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: 1734
Gets keywords from the given article data set.

return: string
param: array $rs Article data
article_partial_image($rs line: 1747
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: 1770
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: 1792
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: 1826
Renders article 'duplicate' link.

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

return: string HTML
param: array $rs Article data
article_partial_body($rs line: 1867
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: 1890
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: 1913
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: 1944
Renders next/prev links.

return: string HTML
param: array $rs Article data
article_partial_status($rs line: 1976
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: 1991
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: 2015
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: 2048
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: 2113
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: 2161
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: 2205
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: 2218
Validates article data.

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

title

Body