forked from Fabrik/fabrik
-
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.
- Loading branch information
Showing
5 changed files
with
76 additions
and
34 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
plugins/fabrik_element/time/layouts/fabrik-element-time-form.php
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,26 @@ | ||
<?php | ||
|
||
defined('JPATH_BASE') or die; | ||
|
||
$d = $displayData; | ||
$attribs = 'class="input-small fabrikinput inputbox ' . $d['advancedClass'] . ' ' . $d['errorCSS'] . '"'; | ||
?> | ||
|
||
<div class="fabrikSubElementContainer" id="<?php echo $d['id']; ?>"> | ||
<?php | ||
// $d['name'] already suffixed with [] as element hasSubElements = true | ||
if ($data['format'] != 'i:s') | ||
{ | ||
$str[] = JHTML::_('select.genericlist', $d['hours'], preg_replace('#(\[\])$#', '[0]', $d['name']), $attribs, 'value', 'text', $d['hourValue']) . ' ' | ||
. $data['sep']; | ||
} | ||
|
||
$str[] = JHTML::_('select.genericlist', $d['mins'], preg_replace('#(\[\])$#', '[1]', $d['name']), $attribs, 'value', 'text', $d['minValue']); | ||
|
||
if ($data['format'] != 'H:i') | ||
{ | ||
echo $data['sep'] . ' ' | ||
. JHTML::_('select.genericlist', $d['secs'], preg_replace('#(\[\])$#', '[2]', $d['name']), $attribs, 'value', 'text', $d['secValue']); | ||
} | ||
?> | ||
</div> |
37 changes: 37 additions & 0 deletions
37
plugins/fabrik_element/timer/layouts/fabrik-element-timer-form.php
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,37 @@ | ||
<?php | ||
|
||
defined('JPATH_BASE') or die; | ||
|
||
$d = $displayData; | ||
$readOnly = $d['timerReadOnly'] ? 'readonly=\"readonly\"' : ''; | ||
$kls = $d['timerReadOnly'] ? 'readonly' : ''; | ||
|
||
if ($d['elementError'] != '') : | ||
$kls .= ' elementErrorHighlight'; | ||
endif; | ||
?> | ||
|
||
<?php | ||
if (!$d['timerReadOnly']) : | ||
?> | ||
<div class="input-append"> | ||
<?php | ||
endif; | ||
?> | ||
<input type="<?php echo $d['type'];?>" | ||
class="fabrikinput input-small inputbox text <?php echo $kls;?>" | ||
name="<?php echo $d['name']; ?>" | ||
<?php echo $readOnly;?> | ||
id="<?php echo $d['id']; ?>" size="<?php echo $d['size']; ?>" | ||
value="<?php echo $d['value']; ?>" /> | ||
|
||
<?php | ||
if (!$d['timerReadOnly']) : | ||
?> | ||
<button class="btn" id="<?php echo $d['id']; ?>_button"> | ||
<i class="<?php echo $d['icon']; ?>"></i> <span><?php echo FText::_('PLG_ELEMENT_TIMER_START'); ?></span> | ||
</button> | ||
</div> | ||
<?php | ||
endif; | ||
?> |
Empty file.
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