mirror of
https://github.com/e107inc/e107.git
synced 2025-06-02 00:45:03 +02:00
Comments example added to _blank
This commit is contained in:
parent
1841b82586
commit
62d483e51d
@ -47,6 +47,7 @@ class _blank_front
|
||||
// print_a($rows);
|
||||
foreach($rows as $key=>$value) // loop throug
|
||||
{
|
||||
// $sc->setVars($value); // if shortcodes are enabled.
|
||||
$text .= $tp->toHtml($value['blank_type'])."<br />";
|
||||
}
|
||||
|
||||
@ -59,7 +60,30 @@ class _blank_front
|
||||
}
|
||||
|
||||
|
||||
private function renderComments()
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns a rendered commenting area. (html) v2.x
|
||||
* This is the only method a plugin developer should require in order to include user comments.
|
||||
* @param string $plugin - directory of the plugin that will own these comments.
|
||||
* @param int $id - unique id for this page/item. Usually the primary ID of your plugin's database table.
|
||||
* @param string $subject
|
||||
* @param bool|false $rate true = will rendered rating buttons, false will not.
|
||||
* @return null|string
|
||||
*/
|
||||
|
||||
$plugin = '_blank';
|
||||
$id = 3;
|
||||
$subject = 'My blank item subject';
|
||||
$rate = true;
|
||||
|
||||
$ret = e107::getComment()->render($plugin, $id, $subject, $rate);
|
||||
|
||||
e107::getRender()->tablerender($ret['caption'],$ret['comment_form']. $ret['comment']);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user