Textpattern PHP Cross Reference Content Management Systems

Summary: /textpattern/include/txp_section.php - 869 lines - 28081 bytes - Source - Print

Description: Sections panel.

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

Defines 10 functions

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

Functions

Functions that are not part of a class:

sec_section_list($message = '')  line: 62
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: 427
Renders and outputs the section editor panel.

section_save()  line: 557
Saves a section.

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

section_toggle_option()  line: 652
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: 685
Sets a section as the default.

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

Used for changing the default section.

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

section_multiedit_form($page, $sort, $dir, $crit, $search_method line: 757
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: 799
Processes multi-edit actions.

title

Body