Added new optional parameter for plugin config type "text": rows.
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
Version 1.5 ()
|
Version 1.5 ()
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
* Added new optional parameter for plugin config type "text": rows.
|
||||||
|
(brockhaus)
|
||||||
|
|
||||||
* pingbacks were not counted as entry trackbacks (also added to entries)
|
* pingbacks were not counted as entry trackbacks (also added to entries)
|
||||||
(brockhaus)
|
(brockhaus)
|
||||||
|
|
||||||
|
@@ -419,6 +419,7 @@ function serendipity_plugin_config(&$plugin, &$bag, &$name, &$desc, &$config_nam
|
|||||||
$radio = array();
|
$radio = array();
|
||||||
$select = array();
|
$select = array();
|
||||||
$per_row = null;
|
$per_row = null;
|
||||||
|
$text_rows = null;
|
||||||
|
|
||||||
$is_multi_select = false;
|
$is_multi_select = false;
|
||||||
$ctype = $cbag->get('type');
|
$ctype = $cbag->get('type');
|
||||||
@@ -565,6 +566,12 @@ function serendipity_plugin_config(&$plugin, &$bag, &$name, &$desc, &$config_nam
|
|||||||
|
|
||||||
case 'html':
|
case 'html':
|
||||||
case 'text':
|
case 'text':
|
||||||
|
if (empty($text_rows)) {
|
||||||
|
$text_rows = $cbag->get('rows');
|
||||||
|
if (empty($text_rows)) {
|
||||||
|
$text_rows = 20;
|
||||||
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2"><strong><?php echo $cname; ?></strong>
|
<td colspan="2"><strong><?php echo $cname; ?></strong>
|
||||||
@@ -575,7 +582,7 @@ function serendipity_plugin_config(&$plugin, &$bag, &$name, &$desc, &$config_nam
|
|||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<div>
|
<div>
|
||||||
<textarea class="direction_<?php echo $lang_direction; ?>" style="width: 100%" id="nuggets<?php echo $elcount; ?>" name="serendipity[<?php echo $postKey; ?>][<?php echo $config_item; ?>]" rows="20" cols="80"><?php echo $hvalue; ?></textarea>
|
<textarea class="direction_<?php echo $lang_direction; ?>" style="width: 100%" id="nuggets<?php echo $elcount; ?>" name="serendipity[<?php echo $postKey; ?>][<?php echo $config_item; ?>]" rows="<?php echo $text_rows; ?>" cols="80"><?php echo $hvalue; ?></textarea>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Reference in New Issue
Block a user