phpDocumentor templates
[ class tree: templates ] [ index: templates ] [ all elements ]
Prev Next

Miscellaneous->method() info/samples

Intra-page navigation (TOC)

theoretically helpful text

lorem ipsum

Plugin->call_by_code()

Some samples shown >> chasing $params <<

  1. <?php
  2. // display the Archives plugin (if installed)
  3. $Plugins->call_by_code'qp_archives'array(
  4.     'block_start' => '<div class="bSideItem">',
  5.     'block_title_start' => '<h3>',
  6.     'title' => '<legend>'.T_('Archives')."</legend>\n",
  7.     'block_title_end' => '</h3>',
  8.     'block_end' => '</div>',
  9.     'link_type' => 'context',
  10.     'form' => true,
  11.     'limit' => '',
  12.     'more_link' => '',
  13. )    );
  14.  
  15. // display the Calendar plugin (if installed)
  16. $Plugins->call_by_code'qp_calendar'array(
  17.     'block_start' => '',
  18.     'title' => '',
  19.     'block_end' => '',
  20.     'link_type' => 'context',
  21.     'tablestart' => '<table id="wp-calendar" class="bCalendarTable" cellspacing="0" summary="Monthly calendar with links to each day\'s posts">'."\n",
  22.     'displaycaption' => true,
  23.     'linktomontharchive' => false,
  24.     'headerdisplay' => 'e',
  25. ) );
  26. ?>

⇑ top of page ⇑

MainList->date_if_changed()

Minimum params with defaults shown >> chasing $params <<

  1. <?php
  2. // display the date if it changed
  3. $MainList->date_if_changedarray(
  4.     'before' => '<h2>',
  5.     'after' => '</h2>',
  6.     'empty_day_display' => false,
  7.     'empty_day_before' => '<h2>',
  8.     'empty_day_after' => '</h2>',
  9.     'date_format' => '#',
  10. ) );
  11. ?>

⇑ top of page ⇑

Plugins->trigger_event()

Sample shown >> chasing $params <<

  1. <?php
  2. // spark the plugin manager
  3. $Plugins->trigger_event'EventName'array(
  4.     'depends_on_event_name' => 'supply $params for the plugin to work with',
  5. ) );
  6. ?>

⇑ top of page ⇑

Hit->log()

Hit::log() accepts no parameters.

  1. <?php
  2. $Hit->log()// log the hit on this page ?>

⇑ top of page ⇑

Prev Up Next
Template Tags info/samples Templates Tutorials template_widget() info/samples