Updated with JCB v2.9.14
This commit is contained in:
parent
aa78275365
commit
1e24b97741
@ -12,14 +12,14 @@ Just a basic Questions & Answers.
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
+ *Name*: [Questions and Answers](https://www.vdm.io/)
|
+ *Name*: [Questions and Answers](https://www.vdm.io/)
|
||||||
+ *First Build*: 30th January, 2017
|
+ *First Build*: 30th January, 2017
|
||||||
+ *Last Build*: 27th December, 2018
|
+ *Last Build*: 4th April, 2019
|
||||||
+ *Version*: 1.0.x
|
+ *Version*: 1.0.x
|
||||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
# Component Number
|
# Component Number
|
||||||
|
|
||||||
+ *Line count*: **29049**
|
+ *Line count*: **29008**
|
||||||
+ *File count*: **201**
|
+ *File count*: **201**
|
||||||
+ *Folder count*: **62**
|
+ *Folder count*: **62**
|
||||||
|
|
||||||
|
@ -12,14 +12,14 @@ Just a basic Questions & Answers.
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
+ *Name*: [Questions and Answers](https://www.vdm.io/)
|
+ *Name*: [Questions and Answers](https://www.vdm.io/)
|
||||||
+ *First Build*: 30th January, 2017
|
+ *First Build*: 30th January, 2017
|
||||||
+ *Last Build*: 27th December, 2018
|
+ *Last Build*: 4th April, 2019
|
||||||
+ *Version*: 1.0.x
|
+ *Version*: 1.0.x
|
||||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
# Component Number
|
# Component Number
|
||||||
|
|
||||||
+ *Line count*: **29049**
|
+ *Line count*: **29008**
|
||||||
+ *File count*: **201**
|
+ *File count*: **201**
|
||||||
+ *Folder count*: **62**
|
+ *Folder count*: **62**
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage admin.css
|
@subpackage admin.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage dashboard.css
|
@subpackage dashboard.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage help_document.css
|
@subpackage help_document.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage help_documents.css
|
@subpackage help_documents.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage question_and_answer.css
|
@subpackage question_and_answer.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage questions_and_answers.css
|
@subpackage questions_and_answers.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage admin.js
|
@subpackage admin.js
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage controller.php
|
@subpackage controller.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage ajax.json.php
|
@subpackage ajax.json.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage download.php
|
@subpackage download.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage help.php
|
@subpackage help.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage help_document.php
|
@subpackage help_document.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage help_documents.php
|
@subpackage help_documents.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage import.php
|
@subpackage import.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage question_and_answer.php
|
@subpackage question_and_answer.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage questions_and_answers.php
|
@subpackage questions_and_answers.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage questionsanswers.php
|
@subpackage questionsanswers.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage headercheck.php
|
@subpackage headercheck.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage batch_.php
|
@subpackage batch_.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage questionsanswers.php
|
@subpackage questionsanswers.php
|
||||||
@ -459,6 +459,32 @@ abstract class QuestionsanswersHelper
|
|||||||
return date('jS \o\f F Y',$date);
|
return date('jS \o\f F Y',$date);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get date based in period past
|
||||||
|
*/
|
||||||
|
public static function fancyDynamicDate($date)
|
||||||
|
{
|
||||||
|
if (!self::isValidTimeStamp($date))
|
||||||
|
{
|
||||||
|
$date = strtotime($date);
|
||||||
|
}
|
||||||
|
// older then year
|
||||||
|
$lastyear = date("Y", strtotime("-1 year"));
|
||||||
|
$tragetyear = date("Y", $date);
|
||||||
|
if ($tragetyear <= $lastyear)
|
||||||
|
{
|
||||||
|
return date('m/d/y', $date);
|
||||||
|
}
|
||||||
|
// same day
|
||||||
|
$yesterday = strtotime("-1 day");
|
||||||
|
if ($date > $yesterday)
|
||||||
|
{
|
||||||
|
return date('g:i A', $date);
|
||||||
|
}
|
||||||
|
// just month day
|
||||||
|
return date('M j', $date);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Change to nice fancy day time and date
|
* Change to nice fancy day time and date
|
||||||
*/
|
*/
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage batchselection.php
|
@subpackage batchselection.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
@ -28,14 +28,19 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'title',
|
'title',
|
||||||
'alias'
|
'alias'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage details_fullwidth.php
|
@subpackage details_fullwidth.php
|
||||||
@ -32,16 +32,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'content'
|
'content'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
<?php endforeach; ?>
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
@ -38,20 +38,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
@ -36,20 +36,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage details_under.php
|
@subpackage details_under.php
|
||||||
@ -28,13 +28,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'not_required'
|
'not_required'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
@ -26,7 +26,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -38,20 +37,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
@ -26,7 +26,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -39,20 +38,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage details_fullwidth.php
|
@subpackage details_fullwidth.php
|
||||||
@ -35,16 +35,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'answer_documents_uploader'
|
'answer_documents_uploader'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
<?php endforeach; ?>
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage details_rightside.php
|
@subpackage details_rightside.php
|
||||||
@ -34,20 +34,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage details_under.php
|
@subpackage details_under.php
|
||||||
@ -28,14 +28,19 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'main_image',
|
'main_image',
|
||||||
'answer_documents'
|
'answer_documents'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage metadata.php
|
@subpackage metadata.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
@ -26,7 +26,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -44,20 +43,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage ajax.php
|
@subpackage ajax.php
|
||||||
@ -197,7 +197,7 @@ class QuestionsanswersModelAjax extends JModelList
|
|||||||
{
|
{
|
||||||
QuestionsanswersHelper::resizeImage($this->fileName, $this->fileFormat, $this->target, $this->folderPath, $this->fullPath);
|
QuestionsanswersHelper::resizeImage($this->fileName, $this->fileFormat, $this->target, $this->folderPath, $this->fullPath);
|
||||||
}
|
}
|
||||||
// Get the basic encription.
|
// Get the basic encryption.
|
||||||
$basickey = QuestionsanswersHelper::getCryptKey('basic');
|
$basickey = QuestionsanswersHelper::getCryptKey('basic');
|
||||||
$basic = null;
|
$basic = null;
|
||||||
// set link options
|
// set link options
|
||||||
@ -430,8 +430,8 @@ class QuestionsanswersModelAjax extends JModelList
|
|||||||
protected function _getPackageFromUpload()
|
protected function _getPackageFromUpload()
|
||||||
{
|
{
|
||||||
// Get the uploaded file information
|
// Get the uploaded file information
|
||||||
$app = JFactory::getApplication();
|
$app = JFactory::getApplication();
|
||||||
$input = $app->input;
|
$input = $app->input;
|
||||||
|
|
||||||
// See JInputFiles::get.
|
// See JInputFiles::get.
|
||||||
$userfiles = $input->files->get('files', null, 'array');
|
$userfiles = $input->files->get('files', null, 'array');
|
||||||
@ -465,9 +465,9 @@ class QuestionsanswersModelAjax extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Build the appropriate paths
|
// Build the appropriate paths
|
||||||
$config = JFactory::getConfig();
|
$config = JFactory::getConfig();
|
||||||
$tmp_dest = $config->get('tmp_path') . '/' . $userfile['name'];
|
$tmp_dest = $config->get('tmp_path') . '/' . $userfile['name'];
|
||||||
$tmp_src = $userfile['tmp_name'];
|
$tmp_src = $userfile['tmp_name'];
|
||||||
|
|
||||||
// Move uploaded file
|
// Move uploaded file
|
||||||
jimport('joomla.filesystem.file');
|
jimport('joomla.filesystem.file');
|
||||||
@ -537,12 +537,12 @@ class QuestionsanswersModelAjax extends JModelList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$config = JFactory::getConfig();
|
$config = JFactory::getConfig();
|
||||||
// set Package Name
|
// set Package Name
|
||||||
$check['packagename'] = $archivename;
|
$check['packagename'] = $archivename;
|
||||||
|
|
||||||
// set directory
|
// set directory
|
||||||
$check['dir'] = $config->get('tmp_path'). '/' .$archivename;
|
$check['dir'] = $config->get('tmp_path'). '/' .$archivename;
|
||||||
|
|
||||||
return $check;
|
return $check;
|
||||||
}
|
}
|
||||||
@ -559,8 +559,8 @@ class QuestionsanswersModelAjax extends JModelList
|
|||||||
{
|
{
|
||||||
jimport('joomla.filesystem.file');
|
jimport('joomla.filesystem.file');
|
||||||
|
|
||||||
$config = JFactory::getConfig();
|
$config = JFactory::getConfig();
|
||||||
$package = $config->get('tmp_path'). '/' .$package;
|
$package = $config->get('tmp_path'). '/' .$package;
|
||||||
|
|
||||||
// Is the package file a valid file?
|
// Is the package file a valid file?
|
||||||
if (is_file($package))
|
if (is_file($package))
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage adminviewfolderlist.php
|
@subpackage adminviewfolderlist.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage articles.php
|
@subpackage articles.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage siteviewfolderlist.php
|
@subpackage siteviewfolderlist.php
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage help_document.js
|
@subpackage help_document.js
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage question_and_answer.js
|
@subpackage question_and_answer.js
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage help_document.php
|
@subpackage help_document.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage help_documents.php
|
@subpackage help_documents.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage import.php
|
@subpackage import.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage question_and_answer.php
|
@subpackage question_and_answer.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage questions_and_answers.php
|
@subpackage questions_and_answers.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage questionsanswers.php
|
@subpackage questionsanswers.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage questionsanswers.php
|
@subpackage questionsanswers.php
|
||||||
|
@ -6,7 +6,7 @@ CREATE TABLE IF NOT EXISTS `#__questionsanswers_question_and_answer` (
|
|||||||
`catid` INT(11) NOT NULL DEFAULT 0,
|
`catid` INT(11) NOT NULL DEFAULT 0,
|
||||||
`main_image` TEXT NOT NULL,
|
`main_image` TEXT NOT NULL,
|
||||||
`question` TEXT NOT NULL,
|
`question` TEXT NOT NULL,
|
||||||
`params` text NOT NULL DEFAULT '',
|
`params` text NOT NULL,
|
||||||
`published` TINYINT(3) NOT NULL DEFAULT 1,
|
`published` TINYINT(3) NOT NULL DEFAULT 1,
|
||||||
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||||
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||||
@ -18,9 +18,9 @@ CREATE TABLE IF NOT EXISTS `#__questionsanswers_question_and_answer` (
|
|||||||
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
|
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||||
`access` INT(10) unsigned NOT NULL DEFAULT 0,
|
`access` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||||
`ordering` INT(11) NOT NULL DEFAULT 0,
|
`ordering` INT(11) NOT NULL DEFAULT 0,
|
||||||
`metakey` TEXT NOT NULL DEFAULT '',
|
`metakey` TEXT NOT NULL,
|
||||||
`metadesc` TEXT NOT NULL DEFAULT '',
|
`metadesc` TEXT NOT NULL,
|
||||||
`metadata` TEXT NOT NULL DEFAULT '',
|
`metadata` TEXT NOT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `idx_access` (`access`),
|
KEY `idx_access` (`access`),
|
||||||
KEY `idx_checkout` (`checked_out`),
|
KEY `idx_checkout` (`checked_out`),
|
||||||
@ -45,7 +45,7 @@ CREATE TABLE IF NOT EXISTS `#__questionsanswers_help_document` (
|
|||||||
`title` CHAR(64) NOT NULL DEFAULT '',
|
`title` CHAR(64) NOT NULL DEFAULT '',
|
||||||
`type` TINYINT(1) NOT NULL DEFAULT 0,
|
`type` TINYINT(1) NOT NULL DEFAULT 0,
|
||||||
`url` VARCHAR(255) NOT NULL DEFAULT '',
|
`url` VARCHAR(255) NOT NULL DEFAULT '',
|
||||||
`params` text NOT NULL DEFAULT '',
|
`params` text NOT NULL,
|
||||||
`published` TINYINT(3) NOT NULL DEFAULT 1,
|
`published` TINYINT(3) NOT NULL DEFAULT 1,
|
||||||
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||||
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage help_document.php
|
@subpackage help_document.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage question_and_answer.php
|
@subpackage question_and_answer.php
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage submitbutton.js
|
@subpackage submitbutton.js
|
||||||
@ -27,19 +27,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('help_document, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('help_document, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage edit.php
|
@subpackage edit.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage view.html.php
|
@subpackage view.html.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default.php
|
@subpackage default.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default_batch_body.php
|
@subpackage default_batch_body.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default_batch_footer.php
|
@subpackage default_batch_footer.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default_body.php
|
@subpackage default_body.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default_foot.php
|
@subpackage default_foot.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default_head.php
|
@subpackage default_head.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default_toolbar.php
|
@subpackage default_toolbar.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage view.html.php
|
@subpackage view.html.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default.php
|
@subpackage default.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage view.html.php
|
@subpackage view.html.php
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage submitbutton.js
|
@subpackage submitbutton.js
|
||||||
@ -27,19 +27,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('question_and_answer, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('question_and_answer, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage edit.php
|
@subpackage edit.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage view.html.php
|
@subpackage view.html.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default.php
|
@subpackage default.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default_batch_body.php
|
@subpackage default_batch_body.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default_batch_footer.php
|
@subpackage default_batch_footer.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default_body.php
|
@subpackage default_body.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default_foot.php
|
@subpackage default_foot.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default_head.php
|
@subpackage default_head.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default_toolbar.php
|
@subpackage default_toolbar.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage view.html.php
|
@subpackage view.html.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default.php
|
@subpackage default.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default_main.php
|
@subpackage default_main.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default_readme_information.php
|
@subpackage default_readme_information.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default_vast_development_method_notice_board.php
|
@subpackage default_vast_development_method_notice_board.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage default_vdm.php
|
@subpackage default_vdm.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage view.html.php
|
@subpackage view.html.php
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage A4.print.css
|
@subpackage A4.print.css
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<extension type="component" version="3.2" method="upgrade">
|
<extension type="component" version="3.2" method="upgrade">
|
||||||
<name>COM_QUESTIONSANSWERS</name>
|
<name>COM_QUESTIONSANSWERS</name>
|
||||||
<creationDate>27th December, 2018</creationDate>
|
<creationDate>4th April, 2019</creationDate>
|
||||||
<author>Llewellyn van der Merwe</author>
|
<author>Llewellyn van der Merwe</author>
|
||||||
<authorEmail>joomla@vdm.io</authorEmail>
|
<authorEmail>joomla@vdm.io</authorEmail>
|
||||||
<authorUrl>https://www.vdm.io/</authorUrl>
|
<authorUrl>https://www.vdm.io/</authorUrl>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage script.php
|
@subpackage script.php
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage category.css
|
@subpackage category.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage downloads.css
|
@subpackage downloads.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage question_and_answer.css
|
@subpackage question_and_answer.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage questions_and_answers.css
|
@subpackage questions_and_answers.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage site.css
|
@subpackage site.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage site.js
|
@subpackage site.js
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage controller.php
|
@subpackage controller.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage ajax.json.php
|
@subpackage ajax.json.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage download.php
|
@subpackage download.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage help.php
|
@subpackage help.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage question_and_answer.php
|
@subpackage question_and_answer.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage category.php
|
@subpackage category.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage categoryquestions_and_answers.php
|
@subpackage categoryquestions_and_answers.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage headercheck.php
|
@subpackage headercheck.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage questionsanswers.php
|
@subpackage questionsanswers.php
|
||||||
@ -459,6 +459,32 @@ abstract class QuestionsanswersHelper
|
|||||||
return date('jS \o\f F Y',$date);
|
return date('jS \o\f F Y',$date);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get date based in period past
|
||||||
|
*/
|
||||||
|
public static function fancyDynamicDate($date)
|
||||||
|
{
|
||||||
|
if (!self::isValidTimeStamp($date))
|
||||||
|
{
|
||||||
|
$date = strtotime($date);
|
||||||
|
}
|
||||||
|
// older then year
|
||||||
|
$lastyear = date("Y", strtotime("-1 year"));
|
||||||
|
$tragetyear = date("Y", $date);
|
||||||
|
if ($tragetyear <= $lastyear)
|
||||||
|
{
|
||||||
|
return date('m/d/y', $date);
|
||||||
|
}
|
||||||
|
// same day
|
||||||
|
$yesterday = strtotime("-1 day");
|
||||||
|
if ($date > $yesterday)
|
||||||
|
{
|
||||||
|
return date('g:i A', $date);
|
||||||
|
}
|
||||||
|
// just month day
|
||||||
|
return date('M j', $date);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Change to nice fancy day time and date
|
* Change to nice fancy day time and date
|
||||||
*/
|
*/
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.x
|
@version 1.0.x
|
||||||
@build 27th December, 2018
|
@build 4th April, 2019
|
||||||
@created 30th January, 2017
|
@created 30th January, 2017
|
||||||
@package Questions and Answers
|
@package Questions and Answers
|
||||||
@subpackage route.php
|
@subpackage route.php
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user