forked from techjoomla/com_tjfields
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request techjoomla#204 from techjoomla/release-1.4.3
Release 1.4.3
- Loading branch information
Showing
35 changed files
with
634 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?php | ||
/** | ||
* @version SVN:<SVN_ID> | ||
* @package TJFields | ||
* @author Techjoomla <extensions@techjoomla.com> | ||
* @copyright Copyright (c) 2009-2019 TechJoomla. All rights reserved | ||
* @license GNU General Public License version 2, or later | ||
*/ | ||
|
||
defined('JPATH_PLATFORM') or die; | ||
|
||
JFormHelper::loadFieldClass('textarea'); | ||
|
||
/** | ||
* Form Field Textareacounter class | ||
* Supports a multi line area for entry of plain text with count char | ||
* | ||
* @since 11.1 | ||
*/ | ||
class JFormFieldFileUploadPath extends JFormFieldTextarea | ||
{ | ||
/** | ||
* The form field type. | ||
* | ||
* @var string | ||
* @since 11.1 | ||
*/ | ||
protected $type = 'Fileuploadpath'; | ||
|
||
/** | ||
* Method to get the textarea field input markup. | ||
* Use the rows and columns attributes to specify the dimensions of the area. | ||
* | ||
* @return string The field input markup. | ||
* | ||
* @since 11.1 | ||
*/ | ||
protected function getInput() | ||
{ | ||
$layoutData = $this->getLayoutData(); | ||
$client = $layoutData['field']->form->getData()->get('client'); | ||
$client = str_replace('.', '_', $client); | ||
|
||
if (empty($this->value)) | ||
{ | ||
$this->value = JPATH_SITE . '/media/' . $client . '/'; | ||
$this->value = str_replace('/', DIRECTORY_SEPARATOR, $this->value); | ||
} | ||
|
||
$html = parent::getInput(); | ||
|
||
return $html; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.