Ejemplo n.º 1
0
echo "</tr>";
echo "<tr>";
echo "<td align='left' valign='top' class='noborder' style='padding: 5px;' >";
echo "<div class='cofiTextHeader'>" . JText::_('COFI_TEXT') . ":</div> ";
echo "<div class='cofiText'>";
echo "<textarea name='postText' cols='80' rows='20' wrap='VIRTUAL' id='postText'>";
if ($this->task == "quote") {
    echo "[quote]" . $this->messageText . "[/quote]";
}
if ($this->task == "edit") {
    echo $this->messageText;
}
echo "</textarea>";
echo "</div>";
echo "<div class='cofiTextFooter'>" . JText::_('COFI_MIN_5_CHARS') . "</div> ";
if ($CofiHelper->isPermittedForImageAttachmentsById($user->id)) {
    // image attachments (if configured)
    // get # of images from parameters
    $params = JComponentHelper::getParams('com_discussions');
    $images = $params->get('images', '3');
    // 3 default
    if ($this->task == "quote") {
        $this->image1 = "";
        $this->image1_description = "";
        $this->image2 = "";
        $this->image2_description = "";
        $this->image3 = "";
        $this->image3_description = "";
        $this->image4 = "";
        $this->image4_description = "";
        $this->image5 = "";