';
- $text[] = "";
- $text[] = "";
-
- return implode("\n",$text);
- }
- return false;
- }
-}
diff --git a/admin/controllers/help_documents.php b/admin/controllers/help_documents.php
deleted file mode 100644
index d15c775..0000000
--- a/admin/controllers/help_documents.php
+++ /dev/null
@@ -1,106 +0,0 @@
-
- @copyright Copyright (C) 2015. All Rights Reserved
- @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
- ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
- (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
-.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
-\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
-
-/------------------------------------------------------------------------------------------------------*/
-
-// No direct access to this file
-defined('_JEXEC') or die('Restricted access');
-
-// import Joomla controlleradmin library
-jimport('joomla.application.component.controlleradmin');
-
-/**
- * Help_documents Controller
- */
-class DemoControllerHelp_documents extends JControllerAdmin
-{
- protected $text_prefix = 'COM_DEMO_HELP_DOCUMENTS';
- /**
- * Proxy for getModel.
- * @since 2.5
- */
- public function getModel($name = 'Help_document', $prefix = 'DemoModel', $config = array())
- {
- $model = parent::getModel($name, $prefix, array('ignore_request' => true));
-
- return $model;
- }
-
- public function exportData()
- {
- // Check for request forgeries
- JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
- // check if export is allowed for this user.
- $user = JFactory::getUser();
- if ($user->authorise('help_document.export', 'com_demo') && $user->authorise('core.export', 'com_demo'))
- {
- // Get the input
- $input = JFactory::getApplication()->input;
- $pks = $input->post->get('cid', array(), 'array');
- // Sanitize the input
- JArrayHelper::toInteger($pks);
- // Get the model
- $model = $this->getModel('Help_documents');
- // get the data to export
- $data = $model->getExportData($pks);
- if (DemoHelper::checkArray($data))
- {
- // now set the data to the spreadsheet
- $date = JFactory::getDate();
- DemoHelper::xls($data,'Help_documents_'.$date->format('jS_F_Y'),'Help documents exported ('.$date->format('jS F, Y').')','help documents');
- }
- }
- // Redirect to the list screen with error.
- $message = JText::_('COM_DEMO_EXPORT_FAILED');
- $this->setRedirect(JRoute::_('index.php?option=com_demo&view=help_documents', false), $message, 'error');
- return;
- }
-
-
- public function importData()
- {
- // Check for request forgeries
- JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
- // check if import is allowed for this user.
- $user = JFactory::getUser();
- if ($user->authorise('help_document.import', 'com_demo') && $user->authorise('core.import', 'com_demo'))
- {
- // Get the import model
- $model = $this->getModel('Help_documents');
- // get the headers to import
- $headers = $model->getExImPortHeaders();
- if (DemoHelper::checkObject($headers))
- {
- // Load headers to session.
- $session = JFactory::getSession();
- $headers = json_encode($headers);
- $session->set('help_document_VDM_IMPORTHEADERS', $headers);
- $session->set('backto_VDM_IMPORT', 'help_documents');
- $session->set('dataType_VDM_IMPORTINTO', 'help_document');
- // Redirect to import view.
- $message = JText::_('COM_DEMO_IMPORT_SELECT_FILE_FOR_HELP_DOCUMENTS');
- $this->setRedirect(JRoute::_('index.php?option=com_demo&view=import', false), $message);
- return;
- }
- }
- // Redirect to the list screen with error.
- $message = JText::_('COM_DEMO_IMPORT_FAILED');
- $this->setRedirect(JRoute::_('index.php?option=com_demo&view=help_documents', false), $message, 'error');
- return;
- }
-}
diff --git a/admin/controllers/import.php b/admin/controllers/import.php
index de26e89..ff05a29 100644
--- a/admin/controllers/import.php
+++ b/admin/controllers/import.php
@@ -3,9 +3,9 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
+ @version 2.0.0
+ @build 8th April, 2017
+ @created 18th October, 2016
@package Demo
@subpackage import.php
@author Llewellyn van der Merwe
diff --git a/admin/controllers/look.php b/admin/controllers/look.php
index f812327..36fa449 100644
--- a/admin/controllers/look.php
+++ b/admin/controllers/look.php
@@ -3,9 +3,9 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
+ @version 2.0.0
+ @build 8th April, 2017
+ @created 18th October, 2016
@package Demo
@subpackage look.php
@author Llewellyn van der Merwe
@@ -94,7 +94,7 @@ class DemoControllerLook extends JControllerForm
{
// The record has been set. Check the record permissions.
$permission = $user->authorise('look.edit', 'com_demo.look.' . (int) $recordId);
- if (!$permission && !is_null($permission))
+ if (!$permission)
{
if ($user->authorise('look.edit.own', 'com_demo.look.' . $recordId))
{
diff --git a/admin/controllers/looks.php b/admin/controllers/looks.php
index 5176131..cc04f43 100644
--- a/admin/controllers/looks.php
+++ b/admin/controllers/looks.php
@@ -3,9 +3,9 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
+ @version 2.0.0
+ @build 8th April, 2017
+ @created 18th October, 2016
@package Demo
@subpackage looks.php
@author Llewellyn van der Merwe
@@ -102,5 +102,5 @@ class DemoControllerLooks extends JControllerAdmin
$message = JText::_('COM_DEMO_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_demo&view=looks', false), $message, 'error');
return;
- }
+ }
}
diff --git a/admin/demo.php b/admin/demo.php
index c3c4a46..61e9433 100644
--- a/admin/demo.php
+++ b/admin/demo.php
@@ -3,9 +3,9 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
+ @version 2.0.0
+ @build 8th April, 2017
+ @created 18th October, 2016
@package Demo
@subpackage demo.php
@author Llewellyn van der Merwe
diff --git a/admin/helpers/demo.php b/admin/helpers/demo.php
index 3801afa..aa9d3f7 100644
--- a/admin/helpers/demo.php
+++ b/admin/helpers/demo.php
@@ -3,9 +3,9 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
+ @version 2.0.0
+ @build 8th April, 2017
+ @created 18th October, 2016
@package Demo
@subpackage demo.php
@author Llewellyn van der Merwe
@@ -25,7 +25,7 @@ defined('_JEXEC') or die('Restricted access');
* Demo component helper.
*/
abstract class DemoHelper
-{
+{
/**
* Load the Component xml manifest.
**/
@@ -74,75 +74,11 @@ abstract class DemoHelper
}
/**
- * Load the Component Help URLs.
+ * Can be used to build help urls.
**/
public static function getHelpUrl($view)
{
- $user = JFactory::getUser();
- $groups = $user->get('groups');
- $db = JFactory::getDbo();
- $query = $db->getQuery(true);
- $query->select(array('a.id','a.groups','a.target','a.type','a.article','a.url'));
- $query->from('#__demo_help_document AS a');
- $query->where('a.admin_view = '.$db->quote($view));
- $query->where('a.location = 1');
- $query->where('a.published = 1');
- $db->setQuery($query);
- $db->execute();
- if($db->getNumRows())
- {
- $helps = $db->loadObjectList();
- if (self::checkArray($helps))
- {
- foreach ($helps as $nr => $help)
- {
- if ($help->target == 1)
- {
- $targetgroups = json_decode($help->groups, true);
- if (!array_intersect($targetgroups, $groups))
- {
- // if user not in those target groups then remove the item
- unset($helps[$nr]);
- continue;
- }
- }
- // set the return type
- switch ($help->type)
- {
- // set joomla article
- case 1:
- return self::loadArticleLink($help->article);
- break;
- // set help text
- case 2:
- return self::loadHelpTextLink($help->id);
- break;
- // set Link
- case 3:
- return $help->url;
- break;
- }
- }
- }
- }
return false;
- }
-
- /**
- * Get the Article Link.
- **/
- protected static function loadArticleLink($id)
- {
- return JURI::root().'index.php?option=com_content&view=article&id='.$id.'&tmpl=component&layout=modal';
- }
-
- /**
- * Get the Help Text Link.
- **/
- protected static function loadHelpTextLink($id)
- {
- $token = JSession::getFormToken();
- return 'index.php?option=com_demo&task=help.getText&id=' . (int) $id . '&token=' . $token;
}
/**
@@ -153,16 +89,114 @@ abstract class DemoHelper
// load user for access menus
$user = JFactory::getUser();
// load the submenus to sidebar
- JHtmlSidebar::addEntry(JText::_('COM_DEMO_SUBMENU_DASHBOARD'), 'index.php?option=com_demo&view=demo', $submenu == 'demo');
+ JHtmlSidebar::addEntry(JText::_('COM_DEMO_SUBMENU_DASHBOARD'), 'index.php?option=com_demo&view=demo', $submenu === 'demo');
if ($user->authorise('look.access', 'com_demo') && $user->authorise('look.submenu', 'com_demo'))
{
- JHtmlSidebar::addEntry(JText::_('COM_DEMO_SUBMENU_LOOKS'), 'index.php?option=com_demo&view=looks', $submenu == 'looks');
- }
- if ($user->authorise('help_document.access', 'com_demo') && $user->authorise('help_document.submenu', 'com_demo'))
- {
- JHtmlSidebar::addEntry(JText::_('COM_DEMO_SUBMENU_HELP_DOCUMENTS'), 'index.php?option=com_demo&view=help_documents', $submenu == 'help_documents');
+ JHtmlSidebar::addEntry(JText::_('COM_DEMO_SUBMENU_LOOKS'), 'index.php?option=com_demo&view=looks', $submenu === 'looks');
}
- }
+ }
+
+ /**
+ * UIKIT Component Classes
+ **/
+ public static $uk_components = array(
+ 'data-uk-grid' => array(
+ 'grid' ),
+ 'uk-accordion' => array(
+ 'accordion' ),
+ 'uk-autocomplete' => array(
+ 'autocomplete' ),
+ 'data-uk-datepicker' => array(
+ 'datepicker' ),
+ 'uk-form-password' => array(
+ 'form-password' ),
+ 'uk-form-select' => array(
+ 'form-select' ),
+ 'data-uk-htmleditor' => array(
+ 'htmleditor' ),
+ 'data-uk-lightbox' => array(
+ 'lightbox' ),
+ 'uk-nestable' => array(
+ 'nestable' ),
+ 'UIkit.notify' => array(
+ 'notify' ),
+ 'data-uk-parallax' => array(
+ 'parallax' ),
+ 'uk-search' => array(
+ 'search' ),
+ 'uk-slider' => array(
+ 'slider' ),
+ 'uk-slideset' => array(
+ 'slideset' ),
+ 'uk-slideshow' => array(
+ 'slideshow',
+ 'slideshow-fx' ),
+ 'uk-sortable' => array(
+ 'sortable' ),
+ 'data-uk-sticky' => array(
+ 'sticky' ),
+ 'data-uk-timepicker' => array(
+ 'timepicker' ),
+ 'data-uk-tooltip' => array(
+ 'tooltip' ),
+ 'uk-placeholder' => array(
+ 'placeholder' ),
+ 'uk-dotnav' => array(
+ 'dotnav' ),
+ 'uk-slidenav' => array(
+ 'slidenav' ),
+ 'uk-form' => array(
+ 'form-advanced' ),
+ 'uk-progress' => array(
+ 'progress' ),
+ 'upload-drop' => array(
+ 'upload', 'form-file' )
+ );
+
+ /**
+ * Add UIKIT Components
+ **/
+ public static $uikit = false;
+
+ /**
+ * Get UIKIT Components
+ **/
+ public static function getUikitComp($content,$classes = array())
+ {
+ if (strpos($content,'class="uk-') !== false)
+ {
+ // reset
+ $temp = array();
+ foreach (self::$uk_components as $looking => $add)
+ {
+ if (strpos($content,$looking) !== false)
+ {
+ $temp[] = $looking;
+ }
+ }
+ // make sure uikit is loaded to config
+ if (strpos($content,'class="uk-') !== false)
+ {
+ self::$uikit = true;
+ }
+ // sorter
+ if (self::checkArray($temp))
+ {
+ // merger
+ if (self::checkArray($classes))
+ {
+ $newTemp = array_merge($temp,$classes);
+ $temp = array_unique($newTemp);
+ }
+ return $temp;
+ }
+ }
+ if (self::checkArray($classes))
+ {
+ return $classes;
+ }
+ return false;
+ }
/**
* Prepares the xml document
@@ -252,7 +286,7 @@ abstract class DemoHelper
$objPHPExcel->getActiveSheet()->getColumnDimension($a)->setAutoSize(true);
$objPHPExcel->getActiveSheet()->getStyle($a.$i)->applyFromArray($headerStyles);
$objPHPExcel->getActiveSheet()->getStyle($a.$i)->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
- } elseif ($a == 'A'){
+ } elseif ($a === 'A'){
$objPHPExcel->getActiveSheet()->getStyle($a.$i)->applyFromArray($sideStyles);
} else {
$objPHPExcel->getActiveSheet()->getStyle($a.$i)->applyFromArray($normalStyles);
@@ -396,13 +430,18 @@ abstract class DemoHelper
if (self::checkArray($where))
{
+ // prep main <-- why? well if $main='' is empty then $table can be categories or users
+ if (self::checkString($main))
+ {
+ $main = '_'.ltrim($main, '_');
+ }
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array($what)));
- $query->from($db->quoteName('#__'.$main.'_'.$table));
+ $query->from($db->quoteName('#_'.$main.'_'.$table));
$query->where($db->quoteName($whereString) . ' '.$operator.' (' . implode(',',$where) . ')');
$db->setQuery($query);
$db->execute();
@@ -515,7 +554,7 @@ abstract class DemoHelper
{
// The record has been set. Check the record permissions.
$permission = $user->authorise($action->name, 'com_demo.'.$view.'.' . (int) $record->id);
- if (!$permission && !is_null($permission))
+ if (!$permission) // TODO removed && !is_null($permission)
{
if ($action->name == 'core.edit' || $action->name == $view.'.edit')
{
@@ -850,10 +889,22 @@ abstract class DemoHelper
return false;
}
- public static function checkArray($array)
+ public static function checkArray($array, $removeEmptyString = false)
{
if (isset($array) && is_array($array) && count($array) > 0)
{
+ // also make sure the empty strings are removed
+ if ($removeEmptyString)
+ {
+ foreach ($array as $key => $string)
+ {
+ if (empty($string))
+ {
+ unset($array[$key]);
+ }
+ }
+ return self::checkArray($array, false);
+ }
return true;
}
return false;
@@ -919,57 +970,86 @@ abstract class DemoHelper
return $string;
}
- public static function safeString($string, $type = 'L', $spacer = '_')
+ public static function safeString($string, $type = 'L', $spacer = '_', $replaceNumbers = true)
{
- // remove all numbers and replace with english text version (works well only up to a thousand)
- $string = self::replaceNumbers($string);
-
+ if ($replaceNumbers === true)
+ {
+ // remove all numbers and replace with english text version (works well only up to millions)
+ $string = self::replaceNumbers($string);
+ }
+ // 0nly continue if we have a string
if (self::checkString($string))
{
- // remove all other characters
- $string = trim($string);
- $string = preg_replace('/'.$spacer.'+/', ' ', $string);
- $string = preg_replace('/\s+/', ' ', $string);
- $string = preg_replace("/[^A-Za-z ]/", '', $string);
- // return a string with all first letter of each word uppercase(no undersocre)
- if ($type == 'W')
- {
- return ucwords(strtolower($string));
- }
- elseif ($type == 'w')
- {
- return strtolower($string);
- }
- elseif ($type == 'Ww')
- {
- return ucfirst(strtolower($string));
- }
- elseif ($type == 'WW')
- {
- return strtoupper($string);
- }
- elseif ($type == 'U')
- {
- // replace white space with underscore
- $string = preg_replace('/\s+/', $spacer, $string);
- // return all upper
- return strtoupper($string);
- }
- elseif ($type == 'F')
- {
- // replace white space with underscore
- $string = preg_replace('/\s+/', $spacer, $string);
- // return with first caracter to upper
- return ucfirst(strtolower($string));
- }
- elseif ($type == 'L')
+ // create file name without the extention that is safe
+ if ($type === 'filename')
+ {
+ // make sure VDM is not in the string
+ $string = str_replace('VDM', 'vDm', $string);
+ // Remove anything which isn't a word, whitespace, number
+ // or any of the following caracters -_()
+ // If you don't need to handle multi-byte characters
+ // you can use preg_replace rather than mb_ereg_replace
+ // Thanks @Ćukasz Rysiak!
+ $string = mb_ereg_replace("([^\w\s\d\-_\(\)])", '', $string);
+ // http://stackoverflow.com/a/2021729/1429677
+ return preg_replace('/\s+/', ' ', $string);
+ }
+ // remove all other characters
+ $string = trim($string);
+ $string = preg_replace('/'.$spacer.'+/', ' ', $string);
+ $string = preg_replace('/\s+/', ' ', $string);
+ $string = preg_replace("/[^A-Za-z ]/", '', $string);
+ // select final adaptations
+ if ($type === 'L' || $type === 'strtolower')
{
// replace white space with underscore
$string = preg_replace('/\s+/', $spacer, $string);
// default is to return lower
return strtolower($string);
}
-
+ elseif ($type === 'W')
+ {
+ // return a string with all first letter of each word uppercase(no undersocre)
+ return ucwords(strtolower($string));
+ }
+ elseif ($type === 'w' || $type === 'word')
+ {
+ // return a string with all lowercase(no undersocre)
+ return strtolower($string);
+ }
+ elseif ($type === 'Ww' || $type === 'Word')
+ {
+ // return a string with first letter of the first word uppercase and all the rest lowercase(no undersocre)
+ return ucfirst(strtolower($string));
+ }
+ elseif ($type === 'WW' || $type === 'WORD')
+ {
+ // return a string with all the uppercase(no undersocre)
+ return strtoupper($string);
+ }
+ elseif ($type === 'U' || $type === 'strtoupper')
+ {
+ // replace white space with underscore
+ $string = preg_replace('/\s+/', $spacer, $string);
+ // return all upper
+ return strtoupper($string);
+ }
+ elseif ($type === 'F' || $type === 'ucfirst')
+ {
+ // replace white space with underscore
+ $string = preg_replace('/\s+/', $spacer, $string);
+ // return with first caracter to upper
+ return ucfirst(strtolower($string));
+ }
+ elseif ($type === 'cA' || $type === 'cAmel' || $type === 'camelcase')
+ {
+ // convert all words to first letter uppercase
+ $string = ucwords(strtolower($string));
+ // remove white space
+ $string = preg_replace('/\s+/', '', $string);
+ // now return first letter lowercase
+ return lcfirst($string);
+ }
// return string
return $string;
}
diff --git a/admin/helpers/headercheck.php b/admin/helpers/headercheck.php
new file mode 100644
index 0000000..e796607
--- /dev/null
+++ b/admin/helpers/headercheck.php
@@ -0,0 +1,80 @@
+
+ @copyright Copyright (C) 2015. All Rights Reserved
+ @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+ ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
+ (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
+.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
+\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
+
+/------------------------------------------------------------------------------------------------------*/
+
+// No direct access to this file
+defined('_JEXEC') or die('Restricted access');
+
+class HeaderCheck
+{
+ function js_loaded($script_name)
+ {
+ // UIkit check point
+ if (strpos($script_name,'uikit') !== false)
+ {
+ $app = JFactory::getApplication();
+ $getTemplateName = $app->getTemplate('template')->template;
+
+ if (strpos($getTemplateName,'yoo') !== false)
+ {
+ return true;
+ }
+ }
+
+ $document = JFactory::getDocument();
+ $head_data = $document->getHeadData();
+ foreach (array_keys($head_data['scripts']) as $script)
+ {
+ if (stristr($script, $script_name))
+ {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+ function css_loaded($script_name)
+ {
+ // UIkit check point
+ if (strpos($script_name,'uikit') !== false)
+ {
+ $app = JFactory::getApplication();
+ $getTemplateName = $app->getTemplate('template')->template;
+
+ if (strpos($getTemplateName,'yoo') !== false)
+ {
+ return true;
+ }
+ }
+
+ $document = JFactory::getDocument();
+ $head_data = $document->getHeadData();
+
+ foreach (array_keys($head_data['styleSheets']) as $script)
+ {
+ if (stristr($script, $script_name))
+ {
+ return true;
+ }
+ }
+
+ return false;
+ }
+}
\ No newline at end of file
diff --git a/admin/helpers/html/batch_.php b/admin/helpers/html/batch_.php
index 019be86..916a2de 100644
--- a/admin/helpers/html/batch_.php
+++ b/admin/helpers/html/batch_.php
@@ -3,9 +3,9 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
+ @version 2.0.0
+ @build 8th April, 2017
+ @created 18th October, 2016
@package Demo
@subpackage batch_.php
@author Llewellyn van der Merwe
diff --git a/admin/language/en-GB/en-GB.com_demo.ini b/admin/language/en-GB/en-GB.com_demo.ini
index b26a7c3..796f586 100644
--- a/admin/language/en-GB/en-GB.com_demo.ini
+++ b/admin/language/en-GB/en-GB.com_demo.ini
@@ -1,11 +1,13 @@
COM_DEMO="Demo"
COM_DEMO_AUTHOR="Author"
COM_DEMO_BACK="Back"
+COM_DEMO_CONFIG_ALMOST_FLAT_LOAD="Almost Flat"
COM_DEMO_CONFIG_AUTHOR="Author Info"
COM_DEMO_CONFIG_AUTHOR_EMAIL_DESC="The email address of the author of this component."
COM_DEMO_CONFIG_AUTHOR_EMAIL_LABEL="Author Email"
COM_DEMO_CONFIG_AUTHOR_NAME_DESC="The name of the author of this component."
COM_DEMO_CONFIG_AUTHOR_NAME_LABEL="Author Name"
+COM_DEMO_CONFIG_AUTO_LOAD="Auto"
COM_DEMO_CONFIG_CHECK_TIMER_DESC="Set the intervals for the auto checkin fuction of tables that checks out the items to an user."
COM_DEMO_CONFIG_CHECK_TIMER_LABEL="Check in timer"
COM_DEMO_CONFIG_CHECK_TIMER_OPTION_FIVE="Once a week"
@@ -14,14 +16,29 @@ COM_DEMO_CONFIG_CHECK_TIMER_OPTION_ONE="Every five hours"
COM_DEMO_CONFIG_CHECK_TIMER_OPTION_SIX="Never"
COM_DEMO_CONFIG_CHECK_TIMER_OPTION_THREE="Once a day"
COM_DEMO_CONFIG_CHECK_TIMER_OPTION_TWO="Every twelve hours"
+COM_DEMO_CONFIG_DONT_LOAD="Not"
+COM_DEMO_CONFIG_FLAT_LOAD="Flat"
+COM_DEMO_CONFIG_FORCE_LOAD="Force"
COM_DEMO_CONFIG_GLOBAL_DESC="The Global Parameters"
COM_DEMO_CONFIG_GLOBAL_LABEL="Global"
+COM_DEMO_CONFIG_GRADIANT_LOAD="Gradient"
+COM_DEMO_CONFIG_NO="No"
+COM_DEMO_CONFIG_ONLY_EXTRA="Only Extra"
+COM_DEMO_CONFIG_UIKIT_DESC="The Parameters for the uikit are set here. Uikit is a lightweight and modular front-end framework
+for developing fast and powerful web interfaces. For more info visit http://getuikit.com/"
+COM_DEMO_CONFIG_UIKIT_LABEL="Uikit Settings"
+COM_DEMO_CONFIG_UIKIT_LOAD_DESC="Set the uikit loading option."
+COM_DEMO_CONFIG_UIKIT_LOAD_LABEL="Loading Options"
+COM_DEMO_CONFIG_UIKIT_MIN_DESC="Should the minified version of uikit files be loaded?"
+COM_DEMO_CONFIG_UIKIT_MIN_LABEL="Load Minified"
+COM_DEMO_CONFIG_UIKIT_STYLE_DESC="Set the css style that should be used."
+COM_DEMO_CONFIG_UIKIT_STYLE_LABEL="css Style"
+COM_DEMO_CONFIG_YES="Yes"
COM_DEMO_CONTRIBUTOR="Contributor"
COM_DEMO_CONTRIBUTORS="Contributors"
COM_DEMO_CREATE_NEW_S="Create New %s"
COM_DEMO_DASH="Dashboard"
COM_DEMO_DASHBOARD="Demo Dashboard"
-COM_DEMO_DASHBOARD_HELP_DOCUMENTS="Help Documents
"
COM_DEMO_DASHBOARD_LOOKS="Looks
"
COM_DEMO_DASHBOARD_LOOK_ADD="Add Look
"
COM_DEMO_DATE="Date"
@@ -35,112 +52,6 @@ COM_DEMO_EDIT_VERSIONS_DESC=" Allows users in this group to edit versions."
COM_DEMO_EXPORT_DATA="Export Data"
COM_DEMO_EXPORT_DATA_DESC=" Allows users in this group to export data."
COM_DEMO_EXPORT_FAILED="Export Failed"
-COM_DEMO_HELP_DOCUMENT="Help Document"
-COM_DEMO_HELP_DOCUMENTS="Help Documents"
-COM_DEMO_HELP_DOCUMENTS_ACCESS="Help Documents Access"
-COM_DEMO_HELP_DOCUMENTS_ACCESS_DESC="Allows the users in this group to access access help documents"
-COM_DEMO_HELP_DOCUMENTS_BATCH_OPTIONS="Batch process the selected Help Documents"
-COM_DEMO_HELP_DOCUMENTS_BATCH_TIP="All changes will be applied to all selected Help Documents"
-COM_DEMO_HELP_DOCUMENTS_BATCH_USE="Help Documents Batch Use"
-COM_DEMO_HELP_DOCUMENTS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch help documents"
-COM_DEMO_HELP_DOCUMENTS_CREATE="Help Documents Create"
-COM_DEMO_HELP_DOCUMENTS_CREATE_DESC="Allows the users in this group to create create help documents"
-COM_DEMO_HELP_DOCUMENTS_DASHBOARD_LIST="Help Documents Dashboard List"
-COM_DEMO_HELP_DOCUMENTS_DASHBOARD_LIST_DESC="Allows the users in this group to update the dashboard list of the help document"
-COM_DEMO_HELP_DOCUMENTS_DELETE="Help Documents Delete"
-COM_DEMO_HELP_DOCUMENTS_DELETE_DESC="Allows the users in this group to delete delete help documents"
-COM_DEMO_HELP_DOCUMENTS_EDIT="Help Documents Edit"
-COM_DEMO_HELP_DOCUMENTS_EDIT_DESC="Allows the users in this group to edit the help document"
-COM_DEMO_HELP_DOCUMENTS_EDIT_OWN="Help Documents Edit Own"
-COM_DEMO_HELP_DOCUMENTS_EDIT_OWN_DESC="Allows the users in this group to edit edit own help documents created by them"
-COM_DEMO_HELP_DOCUMENTS_EDIT_STATE="Help Documents Edit State"
-COM_DEMO_HELP_DOCUMENTS_EDIT_STATE_DESC="Allows the users in this group to update the state of the help document"
-COM_DEMO_HELP_DOCUMENTS_EDIT_VERSION="Help Documents Edit Version"
-COM_DEMO_HELP_DOCUMENTS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version help documents"
-COM_DEMO_HELP_DOCUMENTS_EXPORT="Help Documents Export"
-COM_DEMO_HELP_DOCUMENTS_EXPORT_DESC="Allows the users in this group to export export help documents"
-COM_DEMO_HELP_DOCUMENTS_IMPORT="Help Documents Import"
-COM_DEMO_HELP_DOCUMENTS_IMPORT_DESC="Allows the users in this group to import import help documents"
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_ARCHIVED="%s Help Documents archived."
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_ARCHIVED_1="%s Help Document archived."
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_CHECKED_IN_0="No Help Document successfully checked in."
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_CHECKED_IN_1="%d Help Document successfully checked in."
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_CHECKED_IN_MORE="%d Help Documents successfully checked in."
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_DELETED="%s Help Documents deleted."
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_DELETED_1="%s Help Document deleted."
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_FEATURED="%s Help Documents featured."
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_FEATURED_1="%s Help Document featured."
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_PUBLISHED="%s Help Documents published."
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_PUBLISHED_1="%s Help Document published."
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_TRASHED="%s Help Documents trashed."
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_TRASHED_1="%s Help Document trashed."
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_UNFEATURED="%s Help Documents unfeatured."
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_UNFEATURED_1="%s Help Document unfeatured."
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_UNPUBLISHED="%s Help Documents unpublished."
-COM_DEMO_HELP_DOCUMENTS_N_ITEMS_UNPUBLISHED_1="%s Help Document unpublished."
-COM_DEMO_HELP_DOCUMENTS_SUBMENU="Help Documents Submenu"
-COM_DEMO_HELP_DOCUMENTS_SUBMENU_DESC="Allows the users in this group to update the submenu of the help document"
-COM_DEMO_HELP_DOCUMENT_ADMIN="Admin"
-COM_DEMO_HELP_DOCUMENT_ADMIN_VIEW="Admin View"
-COM_DEMO_HELP_DOCUMENT_ADMIN_VIEW_DESCRIPTION="Select the view being targeted"
-COM_DEMO_HELP_DOCUMENT_ADMIN_VIEW_LABEL="Admin Views"
-COM_DEMO_HELP_DOCUMENT_ALIAS="Alias"
-COM_DEMO_HELP_DOCUMENT_ALIAS_HINT="Auto-generated from name"
-COM_DEMO_HELP_DOCUMENT_ALIAS_LABEL="Alias"
-COM_DEMO_HELP_DOCUMENT_ALL="All"
-COM_DEMO_HELP_DOCUMENT_ARTICLE="Article"
-COM_DEMO_HELP_DOCUMENT_ARTICLE_LABEL="Article"
-COM_DEMO_HELP_DOCUMENT_CONTENT="Content"
-COM_DEMO_HELP_DOCUMENT_CONTENT_LABEL="Content"
-COM_DEMO_HELP_DOCUMENT_CREATED_BY_DESC="The user that created this Help Document."
-COM_DEMO_HELP_DOCUMENT_CREATED_BY_LABEL="Created By"
-COM_DEMO_HELP_DOCUMENT_CREATED_DATE_DESC="The date this Help Document was created."
-COM_DEMO_HELP_DOCUMENT_CREATED_DATE_LABEL="Created Date"
-COM_DEMO_HELP_DOCUMENT_DETAILS="Details"
-COM_DEMO_HELP_DOCUMENT_EDIT="Editing the Help Document"
-COM_DEMO_HELP_DOCUMENT_ERROR_UNIQUE_ALIAS="Another Help Document has the same alias."
-COM_DEMO_HELP_DOCUMENT_GROUPS="Groups"
-COM_DEMO_HELP_DOCUMENT_GROUPS_DESCRIPTION="Select a group/s"
-COM_DEMO_HELP_DOCUMENT_GROUPS_LABEL="Group/s"
-COM_DEMO_HELP_DOCUMENT_ID="Id"
-COM_DEMO_HELP_DOCUMENT_JOOMLA_ARTICLE="Joomla Article"
-COM_DEMO_HELP_DOCUMENT_LOCATION="Location"
-COM_DEMO_HELP_DOCUMENT_LOCATION_DESCRIPTION="Select the help target location."
-COM_DEMO_HELP_DOCUMENT_LOCATION_LABEL="Location"
-COM_DEMO_HELP_DOCUMENT_MODIFIED_BY_DESC="The last user that modified this Help Document."
-COM_DEMO_HELP_DOCUMENT_MODIFIED_BY_LABEL="Modified By"
-COM_DEMO_HELP_DOCUMENT_MODIFIED_DATE_DESC="The date this Help Document was modified."
-COM_DEMO_HELP_DOCUMENT_MODIFIED_DATE_LABEL="Modified Date"
-COM_DEMO_HELP_DOCUMENT_NEW="A New Help Document"
-COM_DEMO_HELP_DOCUMENT_NOT_REQUIRED="Not Required"
-COM_DEMO_HELP_DOCUMENT_ORDERING_LABEL="Ordering"
-COM_DEMO_HELP_DOCUMENT_PERMISSION="Permissions"
-COM_DEMO_HELP_DOCUMENT_PUBLISHING="Publishing"
-COM_DEMO_HELP_DOCUMENT_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Help Document to customise the alias."
-COM_DEMO_HELP_DOCUMENT_SELECT_AN_OPTION="Select an option"
-COM_DEMO_HELP_DOCUMENT_SITE="Site"
-COM_DEMO_HELP_DOCUMENT_SITE_VIEW="Site View"
-COM_DEMO_HELP_DOCUMENT_SITE_VIEW_DESCRIPTION="Select the view being targeted"
-COM_DEMO_HELP_DOCUMENT_SITE_VIEW_LABEL="Site Views"
-COM_DEMO_HELP_DOCUMENT_SOME="Some"
-COM_DEMO_HELP_DOCUMENT_STATUS="Status"
-COM_DEMO_HELP_DOCUMENT_TARGET="Target"
-COM_DEMO_HELP_DOCUMENT_TARGET_DESCRIPTION="Select the target option in relation to groups."
-COM_DEMO_HELP_DOCUMENT_TARGET_LABEL="Target Groups"
-COM_DEMO_HELP_DOCUMENT_TEXT="Text"
-COM_DEMO_HELP_DOCUMENT_TITLE="Title"
-COM_DEMO_HELP_DOCUMENT_TITLE_DESCRIPTION="Enter Title Here"
-COM_DEMO_HELP_DOCUMENT_TITLE_HINT="Title Here"
-COM_DEMO_HELP_DOCUMENT_TITLE_LABEL="Title"
-COM_DEMO_HELP_DOCUMENT_TYPE="Type"
-COM_DEMO_HELP_DOCUMENT_TYPE_DESCRIPTION="Select the help type."
-COM_DEMO_HELP_DOCUMENT_TYPE_LABEL="Type"
-COM_DEMO_HELP_DOCUMENT_URL="Url"
-COM_DEMO_HELP_DOCUMENT_URL_DESCRIPTION="Enter url"
-COM_DEMO_HELP_DOCUMENT_URL_HINT="http://www.example.com"
-COM_DEMO_HELP_DOCUMENT_URL_LABEL="URL"
-COM_DEMO_HELP_DOCUMENT_VERSION_DESC="A count of the number of times this Help Document has been revised."
-COM_DEMO_HELP_DOCUMENT_VERSION_LABEL="Revision"
COM_DEMO_HELP_MANAGER="Help"
COM_DEMO_IMPORT_CONTINUE="Continue"
COM_DEMO_IMPORT_DATA="Import Data"
@@ -170,7 +81,6 @@ COM_DEMO_IMPORT_NO_IMPORT_TYPE_FOUND="Import type not found."
COM_DEMO_IMPORT_PLEASE_SELECT_COLUMN="-- Please Select Column --"
COM_DEMO_IMPORT_SELECT_FILE="Select File"
COM_DEMO_IMPORT_SELECT_FILE_DIRECTORY="Set the path to file"
-COM_DEMO_IMPORT_SELECT_FILE_FOR_HELP_DOCUMENTS="Select the file to import data to help_documents."
COM_DEMO_IMPORT_SELECT_FILE_FOR_LOOKS="Select the file to import data to looks."
COM_DEMO_IMPORT_SELECT_FILE_URL="Enter file URL"
COM_DEMO_IMPORT_SUCCESS="Great! Import successful."
@@ -184,9 +94,13 @@ COM_DEMO_KEEP_ORIGINAL_CATEGORY="- Keep Original Category -"
COM_DEMO_KEEP_ORIGINAL_STATE="- Keep Original State -"
COM_DEMO_LICENSE="License"
COM_DEMO_LOOK="Look"
+COM_DEMO_LOOKING_ACCESS_SITE="Looking (Site) Access"
+COM_DEMO_LOOKING_ACCESS_SITE_DESC=" Allows the users in this group to access site looking."
COM_DEMO_LOOKS="Looks"
COM_DEMO_LOOKS_ACCESS="Looks Access"
COM_DEMO_LOOKS_ACCESS_DESC="Allows the users in this group to access access looks"
+COM_DEMO_LOOKS_ACCESS_SITE="Looks (Site) Access"
+COM_DEMO_LOOKS_ACCESS_SITE_DESC=" Allows the users in this group to access site looks."
COM_DEMO_LOOKS_BATCH_OPTIONS="Batch process the selected Looks"
COM_DEMO_LOOKS_BATCH_TIP="All changes will be applied to all selected Looks"
COM_DEMO_LOOKS_BATCH_USE="Looks Batch Use"
@@ -200,23 +114,35 @@ COM_DEMO_LOOKS_DASHBOARD_LIST_DESC="Allows the users in this group to update the
COM_DEMO_LOOKS_DELETE="Looks Delete"
COM_DEMO_LOOKS_DELETE_DESC="Allows the users in this group to delete delete looks"
COM_DEMO_LOOKS_EDIT="Looks Edit"
-COM_DEMO_LOOKS_EDIT_ACRONYM="Looks Edit Acronym"
-COM_DEMO_LOOKS_EDIT_ACRONYM_DESC="Allows the users in this group to update the edit acronym of the look"
+COM_DEMO_LOOKS_EDIT_ADD="Looks Edit Add"
+COM_DEMO_LOOKS_EDIT_ADD_DESC="Allows the users in this group to update the edit add of the look"
+COM_DEMO_LOOKS_EDIT_ALIAS="Looks Edit Alias"
+COM_DEMO_LOOKS_EDIT_ALIAS_DESC="Allows the users in this group to update the edit alias of the look"
COM_DEMO_LOOKS_EDIT_CREATED_BY="Looks Edit Created By"
COM_DEMO_LOOKS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by looks"
COM_DEMO_LOOKS_EDIT_CREATED_DATE="Looks Edit Created Date"
COM_DEMO_LOOKS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created looks"
+COM_DEMO_LOOKS_EDIT_DATEOFBIRTH="Looks Edit Dateofbirth"
+COM_DEMO_LOOKS_EDIT_DATEOFBIRTH_DESC="Allows the users in this group to update the edit dateofbirth of the look"
COM_DEMO_LOOKS_EDIT_DESC="Allows the users in this group to edit the look"
COM_DEMO_LOOKS_EDIT_DESCRIPTION="Looks Edit Description"
COM_DEMO_LOOKS_EDIT_DESCRIPTION_DESC="Allows the users in this group to update the edit description of the look"
-COM_DEMO_LOOKS_EDIT_MALE="Looks Edit Male"
-COM_DEMO_LOOKS_EDIT_MALE_DESC="Allows the users in this group to update the edit male of the look"
+COM_DEMO_LOOKS_EDIT_EMAIL="Looks Edit Email"
+COM_DEMO_LOOKS_EDIT_EMAIL_DESC="Allows the users in this group to update the edit email of the look"
+COM_DEMO_LOOKS_EDIT_IMAGE="Looks Edit Image"
+COM_DEMO_LOOKS_EDIT_IMAGE_DESC="Allows the users in this group to update the edit image of the look"
+COM_DEMO_LOOKS_EDIT_MOBILE_PHONE="Looks Edit Mobile Phone"
+COM_DEMO_LOOKS_EDIT_MOBILE_PHONE_DESC="Allows the users in this group to update the edit mobile phone of the look"
+COM_DEMO_LOOKS_EDIT_NAME="Looks Edit Name"
+COM_DEMO_LOOKS_EDIT_NAME_DESC="Allows the users in this group to update the edit name of the look"
COM_DEMO_LOOKS_EDIT_OWN="Looks Edit Own"
COM_DEMO_LOOKS_EDIT_OWN_DESC="Allows the users in this group to edit edit own looks created by them"
COM_DEMO_LOOKS_EDIT_STATE="Looks Edit State"
COM_DEMO_LOOKS_EDIT_STATE_DESC="Allows the users in this group to update the state of the look"
COM_DEMO_LOOKS_EDIT_VERSION="Looks Edit Version"
COM_DEMO_LOOKS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version looks"
+COM_DEMO_LOOKS_EDIT_WEBSITE="Looks Edit Website"
+COM_DEMO_LOOKS_EDIT_WEBSITE_DESC="Allows the users in this group to update the edit website of the look"
COM_DEMO_LOOKS_EXPORT="Looks Export"
COM_DEMO_LOOKS_EXPORT_DESC="Allows the users in this group to export export looks"
COM_DEMO_LOOKS_IMPORT="Looks Import"
@@ -240,13 +166,8 @@ COM_DEMO_LOOKS_N_ITEMS_UNPUBLISHED="%s Looks unpublished."
COM_DEMO_LOOKS_N_ITEMS_UNPUBLISHED_1="%s Look unpublished."
COM_DEMO_LOOKS_SUBMENU="Looks Submenu"
COM_DEMO_LOOKS_SUBMENU_DESC="Allows the users in this group to update the submenu of the look"
-COM_DEMO_LOOK_ACRONYM="Acronym"
-COM_DEMO_LOOK_ACRONYM_DESCRIPTION="Enter an acronym"
-COM_DEMO_LOOK_ACRONYM_HINT="Acronym Here"
-COM_DEMO_LOOK_ACRONYM_LABEL="Acronym"
COM_DEMO_LOOK_ADD="Add"
-COM_DEMO_LOOK_ADD_LABEL="Add Custom Stuff"
-COM_DEMO_LOOK_AGE_LABEL="Age Group"
+COM_DEMO_LOOK_ADD_LABEL="Add More"
COM_DEMO_LOOK_ALIAS="Alias"
COM_DEMO_LOOK_ALIAS_HINT="Auto-generated from name"
COM_DEMO_LOOK_ALIAS_LABEL="Alias"
@@ -254,29 +175,32 @@ COM_DEMO_LOOK_CREATED_BY_DESC="The user that created this Look."
COM_DEMO_LOOK_CREATED_BY_LABEL="Created By"
COM_DEMO_LOOK_CREATED_DATE_DESC="The date this Look was created."
COM_DEMO_LOOK_CREATED_DATE_LABEL="Created Date"
+COM_DEMO_LOOK_DATEOFBIRTH="Dateofbirth"
+COM_DEMO_LOOK_DATEOFBIRTH_DESCRIPTION="Your date of birth"
+COM_DEMO_LOOK_DATEOFBIRTH_LABEL="Date of Birth"
COM_DEMO_LOOK_DESCRIPTION="Description"
COM_DEMO_LOOK_DESCRIPTION_DESCRIPTION="Add Description Here"
COM_DEMO_LOOK_DESCRIPTION_HINT="Add Description Here"
COM_DEMO_LOOK_DESCRIPTION_LABEL="Description"
COM_DEMO_LOOK_DETAILS="Details"
COM_DEMO_LOOK_EDIT="Editing the Look"
+COM_DEMO_LOOK_EMAIL="Email"
+COM_DEMO_LOOK_EMAIL_DESCRIPTION="Enter Email"
+COM_DEMO_LOOK_EMAIL_HINT="demo@example.com"
+COM_DEMO_LOOK_EMAIL_LABEL="Email"
COM_DEMO_LOOK_ERROR_UNIQUE_ALIAS="Another Look has the same alias."
-COM_DEMO_LOOK_FEMALE="Female"
-COM_DEMO_LOOK_FEMALE_DESCRIPTION="Here you can add females data."
-COM_DEMO_LOOK_FEMALE_SELECT="Edit/Add"
-COM_DEMO_LOOK_FIFTEENNINETEEN="15-19"
-COM_DEMO_LOOK_FIFTYFIFTY_FOUR="50-54"
-COM_DEMO_LOOK_FIFTY_FIVEFIFTY_NINE="55-59"
-COM_DEMO_LOOK_FORTYFORTY_FOUR="40-44"
-COM_DEMO_LOOK_FORTY_FIVEFORTY_NINE="45-49"
COM_DEMO_LOOK_ID="Id"
-COM_DEMO_LOOK_MALE="Male"
-COM_DEMO_LOOK_MALE_DESCRIPTION="Here you can add males data."
-COM_DEMO_LOOK_MALE_SELECT="Edit/Add"
+COM_DEMO_LOOK_IMAGE="Image"
+COM_DEMO_LOOK_IMAGE_LABEL="Image"
+COM_DEMO_LOOK_MOBILE_PHONE="Mobile Phone"
+COM_DEMO_LOOK_MOBILE_PHONE_DESCRIPTION="Enter Mobile Phone Number"
+COM_DEMO_LOOK_MOBILE_PHONE_HINT="Mobile Phone Here"
+COM_DEMO_LOOK_MOBILE_PHONE_LABEL="Mobile Phone"
COM_DEMO_LOOK_MODIFIED_BY_DESC="The last user that modified this Look."
COM_DEMO_LOOK_MODIFIED_BY_LABEL="Modified By"
COM_DEMO_LOOK_MODIFIED_DATE_DESC="The date this Look was modified."
COM_DEMO_LOOK_MODIFIED_DATE_LABEL="Modified Date"
+COM_DEMO_LOOK_MORE="More"
COM_DEMO_LOOK_NAME="Name"
COM_DEMO_LOOK_NAME_DESCRIPTION="Enter Name Here"
COM_DEMO_LOOK_NAME_HINT="Name Here"
@@ -284,49 +208,24 @@ COM_DEMO_LOOK_NAME_LABEL="Name"
COM_DEMO_LOOK_NEW="A New Look"
COM_DEMO_LOOK_NO="No"
COM_DEMO_LOOK_NOT_REQUIRED="Not Required"
-COM_DEMO_LOOK_NUMBER_HINT="Number Here"
-COM_DEMO_LOOK_NUMBER_LABEL="Number"
COM_DEMO_LOOK_ORDERING_LABEL="Ordering"
COM_DEMO_LOOK_PERMISSION="Permissions"
COM_DEMO_LOOK_PUBLISHING="Publishing"
-COM_DEMO_LOOK_REPETABLE_NUMBERS="Repetable Numbers"
COM_DEMO_LOOK_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Look to customise the alias."
-COM_DEMO_LOOK_SELECT_A_YEAR="Select a year"
-COM_DEMO_LOOK_SIXTYSIXTY_FOUR="60-64"
COM_DEMO_LOOK_STATUS="Status"
-COM_DEMO_LOOK_THIRTYTHIRTY_FOUR="30-34"
-COM_DEMO_LOOK_THIRTY_FIVETHIRTY_NINE="35-39"
-COM_DEMO_LOOK_TWENTYTWENTY_FOUR="20-24"
-COM_DEMO_LOOK_TWENTY_FIVETWENTY_NINE="25-29"
-COM_DEMO_LOOK_TWO_THOUSAND_AND_EIGHTEEN="2018"
-COM_DEMO_LOOK_TWO_THOUSAND_AND_ELEVEN="2011"
-COM_DEMO_LOOK_TWO_THOUSAND_AND_FIFTEEN="2015"
-COM_DEMO_LOOK_TWO_THOUSAND_AND_FOURTEEN="2014"
-COM_DEMO_LOOK_TWO_THOUSAND_AND_NINETEEN="2019"
-COM_DEMO_LOOK_TWO_THOUSAND_AND_SEVENTEEN="2017"
-COM_DEMO_LOOK_TWO_THOUSAND_AND_SIXTEEN="2016"
-COM_DEMO_LOOK_TWO_THOUSAND_AND_TEN="2010"
-COM_DEMO_LOOK_TWO_THOUSAND_AND_THIRTEEN="2013"
-COM_DEMO_LOOK_TWO_THOUSAND_AND_TWELVE="2012"
-COM_DEMO_LOOK_TWO_THOUSAND_AND_TWENTY="2020"
-COM_DEMO_LOOK_TWO_THOUSAND_AND_TWENTY_FOUR="2024"
-COM_DEMO_LOOK_TWO_THOUSAND_AND_TWENTY_ONE="2021"
-COM_DEMO_LOOK_TWO_THOUSAND_AND_TWENTY_THREE="2023"
-COM_DEMO_LOOK_TWO_THOUSAND_AND_TWENTY_TWO="2022"
COM_DEMO_LOOK_VERSION_DESC="A count of the number of times this Look has been revised."
COM_DEMO_LOOK_VERSION_LABEL="Revision"
COM_DEMO_LOOK_WEBSITE="Website"
COM_DEMO_LOOK_WEBSITE_DESCRIPTION="Enter website address"
COM_DEMO_LOOK_WEBSITE_HINT="http://www.example.com"
COM_DEMO_LOOK_WEBSITE_LABEL="Website"
-COM_DEMO_LOOK_YEAR_LABEL="Data Year"
COM_DEMO_LOOK_YES="Yes"
COM_DEMO_NEW="New"
+COM_DEMO_NOT_FOUND_OR_ACCESS_DENIED="Not found, or access denied."
COM_DEMO_NO_ACCESS_GRANTED="No Access Granted!"
COM_DEMO_SAVE_SUCCESS="Great! Item successfully saved."
COM_DEMO_SAVE_WARNING="The value already existed so please select another."
COM_DEMO_SUBMENU_DASHBOARD="Dashboard"
-COM_DEMO_SUBMENU_HELP_DOCUMENTS="Help Documents"
COM_DEMO_SUBMENU_LOOKS="Looks"
COM_DEMO_USE_BATCH="Use Batch"
COM_DEMO_USE_BATCH_DESC=" Allows users in this group to use batch copy/update method."
diff --git a/admin/language/en-GB/en-GB.com_demo.sys.ini b/admin/language/en-GB/en-GB.com_demo.sys.ini
index 33a636e..6ea27f5 100644
--- a/admin/language/en-GB/en-GB.com_demo.sys.ini
+++ b/admin/language/en-GB/en-GB.com_demo.sys.ini
@@ -1,5 +1,7 @@
COM_DEMO="Demo"
COM_DEMO_CONFIGURATION="Demo Configuration"
COM_DEMO_MENU="» Demo"
-COM_DEMO_MENU_HELP_DOCUMENTS="Help Documents"
COM_DEMO_MENU_LOOKS="Looks"
+COM_DEMO_MENU_LOOKS_DESC="The List of all published looks"
+COM_DEMO_MENU_LOOKS_OPTION="Looks"
+COM_DEMO_MENU_LOOKS_TITLE="Looks"
diff --git a/admin/layouts/batchselection.php b/admin/layouts/batchselection.php
index aabb0a3..56bc822 100644
--- a/admin/layouts/batchselection.php
+++ b/admin/layouts/batchselection.php
@@ -3,9 +3,9 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
+ @version 2.0.0
+ @build 8th April, 2017
+ @created 18th October, 2016
@package Demo
@subpackage batchselection.php
@author Llewellyn van der Merwe
diff --git a/admin/layouts/help_document/details_left.php b/admin/layouts/help_document/details_left.php
deleted file mode 100644
index ae13a75..0000000
--- a/admin/layouts/help_document/details_left.php
+++ /dev/null
@@ -1,53 +0,0 @@
-
- @copyright Copyright (C) 2015. All Rights Reserved
- @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
- ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
- (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
-.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
-\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
-
-/------------------------------------------------------------------------------------------------------*/
-
-// No direct access to this file
-
-defined('_JEXEC') or die('Restricted access');
-
-$form = $displayData->getForm();
-
-$fields = $displayData->get('fields') ?: array(
- 'target',
- 'groups',
- 'location',
- 'admin_view',
- 'site_view'
-);
-
-$hiddenFields = $displayData->get('hidden_fields') ?: array();
-
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
diff --git a/admin/layouts/look/details_above.php b/admin/layouts/look/details_above.php
index 12755ee..0d82da0 100644
--- a/admin/layouts/look/details_above.php
+++ b/admin/layouts/look/details_above.php
@@ -3,9 +3,9 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
+ @version 2.0.0
+ @build 8th April, 2017
+ @created 18th October, 2016
@package Demo
@subpackage details_above.php
@author Llewellyn van der Merwe
diff --git a/admin/layouts/help_document/details_fullwidth.php b/admin/layouts/look/details_fullwidth.php
similarity index 92%
rename from admin/layouts/help_document/details_fullwidth.php
rename to admin/layouts/look/details_fullwidth.php
index f0a2dd3..8800b99 100644
--- a/admin/layouts/help_document/details_fullwidth.php
+++ b/admin/layouts/look/details_fullwidth.php
@@ -3,9 +3,9 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
+ @version 2.0.0
+ @build 8th April, 2017
+ @created 18th October, 2016
@package Demo
@subpackage details_fullwidth.php
@author Llewellyn van der Merwe
@@ -25,7 +25,7 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
- 'content'
+ 'description'
);
?>
diff --git a/admin/layouts/look/details_under.php b/admin/layouts/look/details_under.php
index b957e4e..4814254 100644
--- a/admin/layouts/look/details_under.php
+++ b/admin/layouts/look/details_under.php
@@ -3,9 +3,9 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
+ @version 2.0.0
+ @build 8th April, 2017
+ @created 18th October, 2016
@package Demo
@subpackage details_under.php
@author Llewellyn van der Merwe
diff --git a/admin/layouts/look/metadata.php b/admin/layouts/look/metadata.php
index 0331c72..470bb02 100644
--- a/admin/layouts/look/metadata.php
+++ b/admin/layouts/look/metadata.php
@@ -3,9 +3,9 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
+ @version 2.0.0
+ @build 8th April, 2017
+ @created 18th October, 2016
@package Demo
@subpackage metadata.php
@author Llewellyn van der Merwe
diff --git a/admin/layouts/look/details_left.php b/admin/layouts/look/more_left.php
similarity index 90%
rename from admin/layouts/look/details_left.php
rename to admin/layouts/look/more_left.php
index 978383a..8b6d65b 100644
--- a/admin/layouts/look/details_left.php
+++ b/admin/layouts/look/more_left.php
@@ -3,11 +3,11 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
+ @version 2.0.0
+ @build 8th April, 2017
+ @created 18th October, 2016
@package Demo
- @subpackage details_left.php
+ @subpackage more_left.php
@author Llewellyn van der Merwe
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
@@ -25,7 +25,7 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
- 'description'
+ 'add'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
diff --git a/admin/layouts/look/details_right.php b/admin/layouts/look/more_right.php
similarity index 88%
rename from admin/layouts/look/details_right.php
rename to admin/layouts/look/more_right.php
index cf948b0..ca7e96c 100644
--- a/admin/layouts/look/details_right.php
+++ b/admin/layouts/look/more_right.php
@@ -3,11 +3,11 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
+ @version 2.0.0
+ @build 8th April, 2017
+ @created 18th October, 2016
@package Demo
- @subpackage details_right.php
+ @subpackage more_right.php
@author Llewellyn van der Merwe
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
@@ -25,8 +25,10 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
- 'add',
- 'acronym',
+ 'email',
+ 'mobile_phone',
+ 'dateofbirth',
+ 'image',
'website'
);
diff --git a/admin/layouts/look/publishing.php b/admin/layouts/look/publishing.php
index a6fbd39..b95bfc1 100644
--- a/admin/layouts/look/publishing.php
+++ b/admin/layouts/look/publishing.php
@@ -3,9 +3,9 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
+ @version 2.0.0
+ @build 8th April, 2017
+ @created 18th October, 2016
@package Demo
@subpackage publishing.php
@author Llewellyn van der Merwe
diff --git a/admin/models/demo.php b/admin/models/demo.php
index 3b007ae..8320184 100644
--- a/admin/models/demo.php
+++ b/admin/models/demo.php
@@ -3,9 +3,9 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
+ @version 2.0.0
+ @build 8th April, 2017
+ @created 18th October, 2016
@package Demo
@subpackage demo.php
@author Llewellyn van der Merwe
@@ -38,7 +38,7 @@ class DemoModelDemo extends JModelList
$icons = array();
// view groups array
$viewGroups = array(
- 'main' => array('png.look.add', 'png.looks', 'png.help_documents')
+ 'main' => array('png.look.add', 'png.looks')
);
// view access array
$viewAccess = array(
@@ -47,12 +47,7 @@ class DemoModelDemo extends JModelList
'look.access' => 'look.access',
'looks.submenu' => 'look.submenu',
'looks.dashboard_list' => 'look.dashboard_list',
- 'look.dashboard_add' => 'look.dashboard_add',
- 'help_document.create' => 'help_document.create',
- 'help_documents.access' => 'help_document.access',
- 'help_document.access' => 'help_document.access',
- 'help_documents.submenu' => 'help_document.submenu',
- 'help_documents.dashboard_list' => 'help_document.dashboard_list');
+ 'look.dashboard_add' => 'look.dashboard_add');
foreach($viewGroups as $group => $views)
{
$i = 0;
diff --git a/admin/models/fields/articles.php b/admin/models/fields/articles.php
deleted file mode 100644
index 778d234..0000000
--- a/admin/models/fields/articles.php
+++ /dev/null
@@ -1,165 +0,0 @@
-
- @copyright Copyright (C) 2015. All Rights Reserved
- @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
- ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
- (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
-.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
-\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
-
-/------------------------------------------------------------------------------------------------------*/
-
-// No direct access to this file
-defined('_JEXEC') or die('Restricted access');
-
-// import the list field type
-jimport('joomla.form.helper');
-JFormHelper::loadFieldClass('list');
-
-/**
- * Articles Form Field class for the Demo component
- */
-class JFormFieldArticles extends JFormFieldList
-{
- /**
- * The articles field type.
- *
- * @var string
- */
- public $type = 'articles';
- /**
- * Override to add new button
- *
- * @return string The field input markup.
- *
- * @since 3.2
- */
- protected function getInput()
- {
- // see if we should add buttons
- $setButton = $this->getAttribute('button');
- // get html
- $html = parent::getInput();
- // if true set button
- if ($setButton === 'true')
- {
- $button = array();
- $script = array();
- $buttonName = $this->getAttribute('name');
- // get the input from url
- $jinput = JFactory::getApplication()->input;
- // get the view name & id
- $values = $jinput->getArray(array(
- 'id' => 'int',
- 'view' => 'word'
- ));
- // check if new item
- $ref = '';
- $refJ = '';
- if (!is_null($values['id']) && strlen($values['view']))
- {
- // only load referal if not new item.
- $ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
- $refJ = '&ref=' . $values['view'] . '&refid=' . $values['id'];
- }
- $user = JFactory::getUser();
- // only add if user allowed to create article
- if ($user->authorise('core.create', 'com_demo'))
- {
- // build Create button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
- ';
- }
- // only add if user allowed to edit article
- if (($buttonName == 'article' || $buttonName == 'articles') && $user->authorise('core.edit', 'com_demo'))
- {
- // build edit button
- $buttonNamee = trim($buttonName);
- $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
- $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
- $buttonNamee = ucfirst(strtolower($buttonNamee));
- $button[] = '
- ';
- // build script
- $script[] = "
- jQuery(document).ready(function() {
- jQuery('#adminForm').on('change', '#jform_".$buttonName."',function (e) {
- e.preventDefault();
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
- });
- var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
- ".$buttonName."Button(".$buttonName."Value);
- });
- function ".$buttonName."Button(value) {
- if (value > 0) {
- // hide the create button
- jQuery('#".$buttonName."Create').hide();
- // show edit button
- jQuery('#".$buttonName."Edit').show();
- var url = 'index.php?option=com_demo&view=articles&task=article.edit&id='+value+'".$refJ."';
- jQuery('#".$buttonName."Edit').attr('href', url);
- } else {
- // show the create button
- jQuery('#".$buttonName."Create').show();
- // hide edit button
- jQuery('#".$buttonName."Edit').hide();
- }
- }";
- }
- // check if button was created for article field.
- if (is_array($button) && count($button) > 0)
- {
- // Load the needed script.
- $document = JFactory::getDocument();
- $document->addScriptDeclaration(implode(' ',$script));
- // return the button attached to input field.
- return '
' .$html . implode('',$button).'
';
- }
- }
- return $html;
- }
-
- /**
- * Method to get a list of options for a list input.
- *
- * @return array An array of JHtml options.
- */
- public function getOptions()
- {
- $db = JFactory::getDBO();
- $query = $db->getQuery(true);
- $query->select($db->quoteName(array('a.id','a.title','a.alias'),array('id','article_title','alias')));
- $query->from($db->quoteName('#__content', 'a'));
- $query->where($db->quoteName('a.state') . ' = 1');
- $query->order('a.title ASC');
- $db->setQuery((string)$query);
- $items = $db->loadObjectList();
- $options = array();
- if ($items)
- {
- $options[] = JHtml::_('select.option', '', 'Select an Article');
- foreach($items as $item)
- {
- $options[] = JHtml::_('select.option', $item->id, $item->article_title . ' (' . $item->alias . ')');
- }
- }
- return $options;
- }
-}
diff --git a/admin/models/forms/help_document.js b/admin/models/forms/help_document.js
deleted file mode 100644
index 6709c9d..0000000
--- a/admin/models/forms/help_document.js
+++ /dev/null
@@ -1,306 +0,0 @@
-/*----------------------------------------------------------------------------------| www.vdm.io |----/
- Vast Development Method
-/-------------------------------------------------------------------------------------------------------/
-
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
- @package Demo
- @subpackage help_document.js
- @author Llewellyn van der Merwe
- @copyright Copyright (C) 2015. All Rights Reserved
- @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
- ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
- (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
-.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
-\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
-
-/------------------------------------------------------------------------------------------------------*/
-
-// Some Global Values
-jform_vvvvvvzvvw_required = false;
-jform_vvvvvwavvx_required = false;
-jform_vvvvvwbvvy_required = false;
-jform_vvvvvwcvvz_required = false;
-
-// Initial Script
-jQuery(document).ready(function()
-{
- var location_vvvvvvx = jQuery("#jform_location input[type='radio']:checked").val();
- vvvvvvx(location_vvvvvvx);
-
- var location_vvvvvvy = jQuery("#jform_location input[type='radio']:checked").val();
- vvvvvvy(location_vvvvvvy);
-
- var type_vvvvvvz = jQuery("#jform_type").val();
- vvvvvvz(type_vvvvvvz);
-
- var type_vvvvvwa = jQuery("#jform_type").val();
- vvvvvwa(type_vvvvvwa);
-
- var type_vvvvvwb = jQuery("#jform_type").val();
- vvvvvwb(type_vvvvvwb);
-
- var target_vvvvvwc = jQuery("#jform_target input[type='radio']:checked").val();
- vvvvvwc(target_vvvvvwc);
-});
-
-// the vvvvvvx function
-function vvvvvvx(location_vvvvvvx)
-{
- // set the function logic
- if (location_vvvvvvx == 1)
- {
- jQuery('#jform_admin_view').closest('.control-group').show();
- }
- else
- {
- jQuery('#jform_admin_view').closest('.control-group').hide();
- }
-}
-
-// the vvvvvvy function
-function vvvvvvy(location_vvvvvvy)
-{
- // set the function logic
- if (location_vvvvvvy == 2)
- {
- jQuery('#jform_site_view').closest('.control-group').show();
- }
- else
- {
- jQuery('#jform_site_view').closest('.control-group').hide();
- }
-}
-
-// the vvvvvvz function
-function vvvvvvz(type_vvvvvvz)
-{
- if (isSet(type_vvvvvvz) && type_vvvvvvz.constructor !== Array)
- {
- var temp_vvvvvvz = type_vvvvvvz;
- var type_vvvvvvz = [];
- type_vvvvvvz.push(temp_vvvvvvz);
- }
- else if (!isSet(type_vvvvvvz))
- {
- var type_vvvvvvz = [];
- }
- var type = type_vvvvvvz.some(type_vvvvvvz_SomeFunc);
-
-
- // set this function logic
- if (type)
- {
- jQuery('#jform_url').closest('.control-group').show();
- if (jform_vvvvvvzvvw_required)
- {
- updateFieldRequired('url',0);
- jQuery('#jform_url').prop('required','required');
- jQuery('#jform_url').attr('aria-required',true);
- jQuery('#jform_url').addClass('required');
- jform_vvvvvvzvvw_required = false;
- }
-
- }
- else
- {
- jQuery('#jform_url').closest('.control-group').hide();
- if (!jform_vvvvvvzvvw_required)
- {
- updateFieldRequired('url',1);
- jQuery('#jform_url').removeAttr('required');
- jQuery('#jform_url').removeAttr('aria-required');
- jQuery('#jform_url').removeClass('required');
- jform_vvvvvvzvvw_required = true;
- }
- }
-}
-
-// the vvvvvvz Some function
-function type_vvvvvvz_SomeFunc(type_vvvvvvz)
-{
- // set the function logic
- if (type_vvvvvvz == 3)
- {
- return true;
- }
- return false;
-}
-
-// the vvvvvwa function
-function vvvvvwa(type_vvvvvwa)
-{
- if (isSet(type_vvvvvwa) && type_vvvvvwa.constructor !== Array)
- {
- var temp_vvvvvwa = type_vvvvvwa;
- var type_vvvvvwa = [];
- type_vvvvvwa.push(temp_vvvvvwa);
- }
- else if (!isSet(type_vvvvvwa))
- {
- var type_vvvvvwa = [];
- }
- var type = type_vvvvvwa.some(type_vvvvvwa_SomeFunc);
-
-
- // set this function logic
- if (type)
- {
- jQuery('#jform_article').closest('.control-group').show();
- if (jform_vvvvvwavvx_required)
- {
- updateFieldRequired('article',0);
- jQuery('#jform_article').prop('required','required');
- jQuery('#jform_article').attr('aria-required',true);
- jQuery('#jform_article').addClass('required');
- jform_vvvvvwavvx_required = false;
- }
-
- }
- else
- {
- jQuery('#jform_article').closest('.control-group').hide();
- if (!jform_vvvvvwavvx_required)
- {
- updateFieldRequired('article',1);
- jQuery('#jform_article').removeAttr('required');
- jQuery('#jform_article').removeAttr('aria-required');
- jQuery('#jform_article').removeClass('required');
- jform_vvvvvwavvx_required = true;
- }
- }
-}
-
-// the vvvvvwa Some function
-function type_vvvvvwa_SomeFunc(type_vvvvvwa)
-{
- // set the function logic
- if (type_vvvvvwa == 1)
- {
- return true;
- }
- return false;
-}
-
-// the vvvvvwb function
-function vvvvvwb(type_vvvvvwb)
-{
- if (isSet(type_vvvvvwb) && type_vvvvvwb.constructor !== Array)
- {
- var temp_vvvvvwb = type_vvvvvwb;
- var type_vvvvvwb = [];
- type_vvvvvwb.push(temp_vvvvvwb);
- }
- else if (!isSet(type_vvvvvwb))
- {
- var type_vvvvvwb = [];
- }
- var type = type_vvvvvwb.some(type_vvvvvwb_SomeFunc);
-
-
- // set this function logic
- if (type)
- {
- jQuery('#jform_content-lbl').closest('.control-group').show();
- if (jform_vvvvvwbvvy_required)
- {
- updateFieldRequired('content',0);
- jQuery('#jform_content').prop('required','required');
- jQuery('#jform_content').attr('aria-required',true);
- jQuery('#jform_content').addClass('required');
- jform_vvvvvwbvvy_required = false;
- }
-
- }
- else
- {
- jQuery('#jform_content-lbl').closest('.control-group').hide();
- if (!jform_vvvvvwbvvy_required)
- {
- updateFieldRequired('content',1);
- jQuery('#jform_content').removeAttr('required');
- jQuery('#jform_content').removeAttr('aria-required');
- jQuery('#jform_content').removeClass('required');
- jform_vvvvvwbvvy_required = true;
- }
- }
-}
-
-// the vvvvvwb Some function
-function type_vvvvvwb_SomeFunc(type_vvvvvwb)
-{
- // set the function logic
- if (type_vvvvvwb == 2)
- {
- return true;
- }
- return false;
-}
-
-// the vvvvvwc function
-function vvvvvwc(target_vvvvvwc)
-{
- // set the function logic
- if (target_vvvvvwc == 1)
- {
- jQuery('#jform_groups').closest('.control-group').show();
- if (jform_vvvvvwcvvz_required)
- {
- updateFieldRequired('groups',0);
- jQuery('#jform_groups').prop('required','required');
- jQuery('#jform_groups').attr('aria-required',true);
- jQuery('#jform_groups').addClass('required');
- jform_vvvvvwcvvz_required = false;
- }
-
- }
- else
- {
- jQuery('#jform_groups').closest('.control-group').hide();
- if (!jform_vvvvvwcvvz_required)
- {
- updateFieldRequired('groups',1);
- jQuery('#jform_groups').removeAttr('required');
- jQuery('#jform_groups').removeAttr('aria-required');
- jQuery('#jform_groups').removeClass('required');
- jform_vvvvvwcvvz_required = true;
- }
- }
-}
-
-// update required fields
-function updateFieldRequired(name,status)
-{
- var not_required = jQuery('#jform_not_required').val();
-
- if(status == 1)
- {
- if (isSet(not_required) && not_required != 0)
- {
- not_required = not_required+','+name;
- }
- else
- {
- not_required = ','+name;
- }
- }
- else
- {
- if (isSet(not_required) && not_required != 0)
- {
- not_required = not_required.replace(','+name,'');
- }
- }
-
- jQuery('#jform_not_required').val(not_required);
-}
-
-// the isSet function
-function isSet(val)
-{
- if ((val != undefined) && (val != null) && 0 !== val.length){
- return true;
- }
- return false;
-}
diff --git a/admin/models/forms/look.js b/admin/models/forms/look.js
index b5500ed..b2fc9f4 100644
--- a/admin/models/forms/look.js
+++ b/admin/models/forms/look.js
@@ -2,9 +2,9 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 13th July, 2016
- @created 5th August, 2015
+ @version 2.0.0
+ @build 8th April, 2017
+ @created 18th October, 2016
@package Demo
@subpackage look.js
@author Llewellyn van der Merwe
@@ -18,62 +18,67 @@
/------------------------------------------------------------------------------------------------------*/
// Some Global Values
-jform_vvvvvvwvvv_required = false;
+jform_vvvvvvvvvv_required = false;
+jform_vvvvvvvvvw_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var name_vvvvvvv = jQuery("#jform_name").val();
- vvvvvvv(name_vvvvvvv);
-
- var add_vvvvvvw = jQuery("#jform_add input[type='radio']:checked").val();
- vvvvvvw(add_vvvvvvw);
+ var add_vvvvvvv = jQuery("#jform_add input[type='radio']:checked").val();
+ vvvvvvv(add_vvvvvvv);
});
// the vvvvvvv function
-function vvvvvvv(name_vvvvvvv)
+function vvvvvvv(add_vvvvvvv)
{
// set the function logic
- if (isSet(name_vvvvvvv))
+ if (add_vvvvvvv == 1)
{
- jQuery('#jform_alias').closest('.control-group').show();
- jQuery('#jform_description').closest('.control-group').show();
- }
- else
- {
- jQuery('#jform_alias').closest('.control-group').hide();
- jQuery('#jform_description').closest('.control-group').hide();
- }
-}
-
-// the vvvvvvw function
-function vvvvvvw(add_vvvvvvw)
-{
- // set the function logic
- if (add_vvvvvvw == 1)
- {
- jQuery('#jform_acronym').closest('.control-group').show();
- if (jform_vvvvvvwvvv_required)
+ jQuery('#jform_dateofbirth').closest('.control-group').show();
+ jQuery('#jform_email').closest('.control-group').show();
+ if (jform_vvvvvvvvvv_required)
{
- updateFieldRequired('acronym',0);
- jQuery('#jform_acronym').prop('required','required');
- jQuery('#jform_acronym').attr('aria-required',true);
- jQuery('#jform_acronym').addClass('required');
- jform_vvvvvvwvvv_required = false;
+ updateFieldRequired('email',0);
+ jQuery('#jform_email').prop('required','required');
+ jQuery('#jform_email').attr('aria-required',true);
+ jQuery('#jform_email').addClass('required');
+ jform_vvvvvvvvvv_required = false;
+ }
+
+ jQuery('#jform_image').closest('.control-group').show();
+ jQuery('#jform_mobile_phone').closest('.control-group').show();
+ if (jform_vvvvvvvvvw_required)
+ {
+ updateFieldRequired('mobile_phone',0);
+ jQuery('#jform_mobile_phone').prop('required','required');
+ jQuery('#jform_mobile_phone').attr('aria-required',true);
+ jQuery('#jform_mobile_phone').addClass('required');
+ jform_vvvvvvvvvw_required = false;
}
jQuery('#jform_website').closest('.control-group').show();
}
else
{
- jQuery('#jform_acronym').closest('.control-group').hide();
- if (!jform_vvvvvvwvvv_required)
+ jQuery('#jform_dateofbirth').closest('.control-group').hide();
+ jQuery('#jform_email').closest('.control-group').hide();
+ if (!jform_vvvvvvvvvv_required)
{
- updateFieldRequired('acronym',1);
- jQuery('#jform_acronym').removeAttr('required');
- jQuery('#jform_acronym').removeAttr('aria-required');
- jQuery('#jform_acronym').removeClass('required');
- jform_vvvvvvwvvv_required = true;
+ updateFieldRequired('email',1);
+ jQuery('#jform_email').removeAttr('required');
+ jQuery('#jform_email').removeAttr('aria-required');
+ jQuery('#jform_email').removeClass('required');
+ jform_vvvvvvvvvv_required = true;
+ }
+ jQuery('#jform_image').closest('.control-group').hide();
+ jQuery('#jform_mobile_phone').closest('.control-group').hide();
+ if (!jform_vvvvvvvvvw_required)
+ {
+ updateFieldRequired('mobile_phone',1);
+ jQuery('#jform_mobile_phone').removeAttr('required');
+ jQuery('#jform_mobile_phone').removeAttr('aria-required');
+ jQuery('#jform_mobile_phone').removeClass('required');
+ jform_vvvvvvvvvw_required = true;
}
jQuery('#jform_website').closest('.control-group').hide();
}
@@ -113,103 +118,4 @@ function isSet(val)
return true;
}
return false;
-}
-
-jQuery(document).ready(function()
-{
- var values_a = jQuery('#jform_male').val();
- if (values_a)
- {
- values_a = jQuery.parseJSON(values_a);
- buildTable(values_a,'jform_male');
- }
-
- var values_b = jQuery('#jform_female').val();
- if (values_b)
- {
- values_b = jQuery.parseJSON(values_b);
- buildTable(values_b,'jform_female');
- }
-});
-
-function buildTable(array,id){
- jQuery('#table_'+id).remove();
- jQuery('#'+id).closest('.control-group').append('