Textpattern PHP Cross Reference Content Management Systems

Summary: /textpattern/include/txp_section.php - 1112 lines - 38346 bytes - Source - Print

Description: Sections panel.

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

Defines 11 functions

sec_section_list()
section_edit()
section_save()
section_change_pageby()
section_toggle_option()
section_set_default()
section_select_list()
section_delete()
section_set_theme()
section_multiedit_form()
section_multi_edit()

Functions

Functions that are not part of a class:

sec_section_list($message = '', $update = false)  line: 65
The main panel listing all sections.

So-named to avoid clashing with the <txp:section_list /> tag.

param: string|array $message The activity message
section_edit()  line: 425
Renders and outputs the section editor panel.

section_save()  line: 586
Saves a section.

section_change_pageby()  line: 690
Changes and saves the pageby value.

section_toggle_option()  line: 700
Toggles section yes/no parameters.

This function requires three HTTP POST parameters: 'column', 'value' and
'name'. The 'value' is the new value, localised 'Yes' or 'No',
'name' is the section and the 'column' is the altered setting,
either 'on_frontpage', 'in_rss' or 'searchable'.

Outputs a text/plain response comprising the new displayable
value for the toggled parameter.
section_set_default()  line: 733
Sets a section as the default.

section_select_list()  line: 752
Renders a 'default_section' <select> input listing all sections.

Used for changing the default section.

return: string HTML
section_delete()  line: 776
Processes delete actions sent using the multi-edit form.

section_set_theme($type = 'dev_skin')  line: 813
Processes theme preview actions.

section_multiedit_form($page, $sort, $dir, $crit, $search_method, $disabled = array()  line: 844
Renders a multi-edit form widget.

return: string HTML
param: int    $page          The page number
param: string $sort          The current sorting value
param: string $dir           The current sorting direction
param: string $crit          The current search criteria
param: string $search_method The current search method
section_multi_edit()  line: 966
Processes multi-edit actions.

title

Body