Miscellaneous->method() info/samples
Intra-page navigation (TOC)
theoretically helpful textlorem ipsum
Plugin->call_by_code()Some samples shown >> chasing $params <<
<?php
// display the Archives plugin (if installed)
$Plugins->call_by_code( 'qp_archives', array(
'block_start' => '<div class="bSideItem">',
'block_title_start' => '<h3>',
'title' => '<legend>'. T_('Archives'). "</legend>\n",
'block_title_end' => '</h3>',
'block_end' => '</div>',
'link_type' => 'context',
'form' => true,
'limit' => '',
'more_link' => '',
) );
// display the Calendar plugin (if installed)
$Plugins->call_by_code( 'qp_calendar', array(
'block_start' => '',
'title' => '',
'block_end' => '',
'link_type' => 'context',
'tablestart' => '<table id="wp-calendar" class="bCalendarTable" cellspacing="0" summary="Monthly calendar with links to each day\'s posts">'."\n",
'displaycaption' => true,
'linktomontharchive' => false,
'headerdisplay' => 'e',
) );
?>
⇑ top of page ⇑
MainList->date_if_changed()Minimum params with defaults shown >> chasing $params <<
<?php
// display the date if it changed
$MainList->date_if_changed( array(
'before' => '<h2>',
'after' => '</h2>',
'empty_day_display' => false,
'empty_day_before' => '<h2>',
'empty_day_after' => '</h2>',
'date_format' => '#',
) );
?>
⇑ top of page ⇑
Plugins->trigger_event()Sample shown >> chasing $params <<
<?php
// spark the plugin manager
$Plugins->trigger_event( 'EventName', array(
'depends_on_event_name' => 'supply $params for the plugin to work with',
) );
?>
⇑ top of page ⇑
Hit->log()Hit::log() accepts no parameters.
<?php
$Hit->log(); // log the hit on this page ?>
⇑ top of page ⇑
| Prev |
Up |
Next |
| Template Tags info/samples |
Templates Tutorials |
template_widget() info/samples |
|
|