Procedural File: _item.funcs.php
Source Location: /blogs/inc/MODEL/items/_item.funcs.php
Functions
bpost_count_words [line 700]
integer bpost_count_words(
string $string
)
|
|
Returns the number of the words in a string, sans HTML
Parameters:
void cat_select(
[boolean $display_info = true], [boolean $form_fields = true]
)
|
|
Allow recursive category selection.
Parameters:
|
boolean |
$display_info: |
|
|
boolean |
$form_fields: |
true: use form fields, false: display only |
Information Tags:
| Todo: | Allow to use a dropdown (select) to switch between blogs ( CSS / JS onchange - no submit.. ) |
cat_select_after_each [line 964]
void cat_select_after_each(
$cat_ID, $level
)
|
|
callback after each sublist element
Parameters:
cat_select_after_last [line 972]
void cat_select_after_last(
$parent_cat_ID, $level
)
|
|
callback to end sublist
Parameters:
cat_select_before_each [line 893]
void cat_select_before_each(
$cat_ID, $level, $total_count
)
|
|
callback to display sublist element
Parameters:
|
|
$cat_ID: |
|
|
|
$level: |
|
|
|
$total_count: |
|
cat_select_before_first [line 885]
void cat_select_before_first(
$parent_cat_ID, $level
)
|
|
callback to start sublist
Parameters:
cat_select_header [line 869]
void get_permalink(
$file, $id, [ $use_anchor_mode = ''], [ $use_destination = ''], [ $use_more = NULL], [ $use_comments = NULL], [ $use_trackback = NULL], [ $use_pingback = NULL]
)
|
|
Generate permalink
TODO: archives modes in clean mode
Parameters:
|
|
$file: |
|
|
|
$id: |
|
|
|
$use_anchor_mode: |
|
|
|
$use_destination: |
|
|
|
$use_more: |
|
|
|
$use_comments: |
|
|
|
$use_trackback: |
|
|
|
$use_pingback: |
|
API Tags:
void get_postdata(
$postid
)
|
|
get_postdata(-)
if global $postdata was not set it will be
Parameters:
void link_pages(
[ $before = '#'], [ $after = '#'], [ $next_or_number = 'number'], [ $nextpagelink = '#'], [ $previouspagelink = '#'], [ $pagelink = '%d'], [ $more_file = '']
)
|
|
link_pages(-)
vegarg: small bug when using $more_file fixed
Parameters:
|
|
$before: |
|
|
|
$after: |
|
|
|
$next_or_number: |
|
|
|
$nextpagelink: |
|
|
|
$previouspagelink: |
|
|
|
$pagelink: |
|
|
|
$more_file: |
|
void next_post(
[ $format = '% >> '], [ $next = '#'], [ $title = 'yes'], [ $in_same_cat = 'no'], [ $limitnext = 1], [ $excluded_categories = ''], [ $in_same_blog = true]
)
|
|
next_post(-)
Parameters:
|
|
$format: |
|
|
|
$next: |
|
|
|
$title: |
|
|
|
$in_same_cat: |
|
|
|
$limitnext: |
|
|
|
$excluded_categories: |
|
|
|
$in_same_blog: |
|
Information Tags:
| Todo: | Move to ItemList |
| Todo: | dh> see WP's previous_post_link() for param ideas (using $link instead of $previous and $title). Also, use booleans of course! $in_same_blog would also be useful! |
void next_posts(
[ $max_page = 0], [ $page = '']
)
|
|
Display a link to next page of posts
Note: remove this tag from skin template if you don't want this functionality
Parameters:
Information Tags:
next_posts_link [line 464]
void next_posts_link(
[ $label = '#'], [ $max_page = 0], [ $page = '']
)
|
|
Display a link to next page of posts
Note: remove this tag from skin template if you don't want this functionality
Parameters:
|
|
$label: |
|
|
|
$max_page: |
|
|
|
$page: |
|
Information Tags:
posts_nav_link [line 539]
void posts_nav_link(
[ $sep = ' :: '], [ $prelabel = '#'], [ $nxtlabel = '#'], [ $page = '']
)
|
|
Links to previous/next page
Note: remove this tag from skin template if you don't want this functionality
Parameters:
|
|
$sep: |
|
|
|
$prelabel: |
|
|
|
$nxtlabel: |
|
|
|
$page: |
|
Information Tags:
void previous_post(
[ $format = '<< % '], [ $previous = '#'], [ $title = 'yes'], [ $in_same_cat = 'no'], [ $limitprev = 1], [ $excluded_categories = ''], [ $in_same_blog = true]
)
|
|
previous_post(-)
Parameters:
|
|
$format: |
|
|
|
$previous: |
|
|
|
$title: |
|
|
|
$in_same_cat: |
|
|
|
$limitprev: |
|
|
|
$excluded_categories: |
|
|
|
$in_same_blog: |
|
Information Tags:
| Todo: | Move to ItemList |
| Todo: | dh> see WP's previous_post_link() for param ideas (using $link instead of $previous and $title). Also, use booleans of course! $in_same_blog would also be useful! |
previous_posts [line 436]
void previous_posts(
[ $page = '']
)
|
|
Display a link to previous page of posts
Note: remove this tag from skin template if you don't want this functionality
Parameters:
Information Tags:
previous_posts_link [line 504]
void previous_posts_link(
[ $label = '#'], [ $page = '']
)
|
|
Display a link to previous page of posts
Note: remove this tag from skin template if you don't want this functionality
Parameters:
Information Tags:
statuses_where_clause [line 731]
void statuses_where_clause(
[Array $show_statuses = ''], [ $dbprefix = 'post_'], [ $req_blog = NULL]
)
|
|
Construct the where clause to limit retrieved posts on their status
Parameters:
|
Array |
$show_statuses: |
statuses of posts we want to get |
|
|
$dbprefix: |
|
|
|
$req_blog: |
|
the_weekday_date [line 577]
void the_weekday_date(
[ $before = ''], [ $after = '']
)
|
|
the_weekday_date(-)
Parameters:
urltitle_validate [line 52]
string urltitle_validate(
string $urltitle, string $title, [integer $post_ID = 0], [ $query_only = false], [ $dbprefix = 'post_'], [ $dbIDname = 'post_ID'], [ $dbtable = 'T_posts']
)
|
|
Validate URL title
Using title as a source if url title is empty
Parameters:
|
string |
$urltitle: |
url title to validate |
|
string |
$title: |
real title to use as a source if $urltitle is empty |
|
integer |
$post_ID: |
ID of post |
|
|
$query_only: |
|
|
|
$dbprefix: |
|
|
|
$dbIDname: |
|
|
|
$dbtable: |
|
API Tags:
| Return: | validated url title |
Information Tags:
| Todo: | Use configurable char as seperator (see tracker); replace umlauts |