+
+
+
+items)): ?>
+ loadTemplate('toolbar');?>
+
+
+
+
+ loadTemplate('toolbar');?>
+
+ loadTemplate('head');?>
+ loadTemplate('foot');?>
+ loadTemplate('body');?>
+
+
+ canCreate && $this->canEdit) : ?>
+ JText::_('COM_DEMO_LOOKS_BATCH_OPTIONS'),
+ 'footer' => $this->loadTemplate('batch_footer')
+ ),
+ $this->loadTemplate('batch_body')
+ ); ?>
+
+
+
+
+
+
+
+
+
diff --git a/admin/views/looks/tmpl/default_batch_body.php b/admin/views/looks/tmpl/default_batch_body.php
index dce86a9..9ee1d9f 100644
--- a/admin/views/looks/tmpl/default_batch_body.php
+++ b/admin/views/looks/tmpl/default_batch_body.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage default_batch_body.php
@@ -19,7 +19,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
-defined('_JEXEC') or die('Restricted access');
+defined('_JEXEC') or die('Restricted access');
?>
diff --git a/admin/views/looks/tmpl/default_batch_footer.php b/admin/views/looks/tmpl/default_batch_footer.php
index fed0e1a..11e5cb9 100644
--- a/admin/views/looks/tmpl/default_batch_footer.php
+++ b/admin/views/looks/tmpl/default_batch_footer.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage default_batch_footer.php
@@ -19,7 +19,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
-defined('_JEXEC') or die('Restricted access');
+defined('_JEXEC') or die('Restricted access');
?>
diff --git a/admin/views/looks/tmpl/default_body.php b/admin/views/looks/tmpl/default_body.php
index 722fd19..a4f41c4 100644
--- a/admin/views/looks/tmpl/default_body.php
+++ b/admin/views/looks/tmpl/default_body.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage default_body.php
@@ -19,7 +19,7 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
-defined('_JEXEC') or die('Restricted access');
+defined('_JEXEC') or die('Restricted access');
$edit = "index.php?option=com_demo&view=looks&task=look.edit";
@@ -34,11 +34,8 @@ $edit = "index.php?option=com_demo&view=looks&task=look.edit";
get('look.edit.state')): ?>
saveOrder)
- {
- $iconClass = ' inactive';
- }
- else
+ $iconClass = '';
+ if (!$this->saveOrder)
{
$iconClass = ' inactive tip-top" hasTooltip" title="' . JHtml::tooltipText('JORDERINGDISABLED');
}
diff --git a/admin/views/looks/tmpl/default_foot.php b/admin/views/looks/tmpl/default_foot.php
index 1d99e08..4c8993e 100644
--- a/admin/views/looks/tmpl/default_foot.php
+++ b/admin/views/looks/tmpl/default_foot.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage default_foot.php
diff --git a/admin/views/looks/tmpl/default_head.php b/admin/views/looks/tmpl/default_head.php
index 15c1e3e..ba98d16 100644
--- a/admin/views/looks/tmpl/default_head.php
+++ b/admin/views/looks/tmpl/default_head.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage default_head.php
@@ -25,7 +25,7 @@ defined('_JEXEC') or die('Restricted access');
|
canEdit&& $this->canState): ?>
- ', 'ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING'); ?>
+ ', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING'); ?>
|
diff --git a/admin/views/looks/tmpl/default_toolbar.php b/admin/views/looks/tmpl/default_toolbar.php
index 9bef3d9..0b18dbf 100644
--- a/admin/views/looks/tmpl/default_toolbar.php
+++ b/admin/views/looks/tmpl/default_toolbar.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage default_toolbar.php
diff --git a/admin/views/looks/view.html.php b/admin/views/looks/view.html.php
index 2bf92e0..afee04e 100644
--- a/admin/views/looks/view.html.php
+++ b/admin/views/looks/view.html.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage view.html.php
@@ -45,8 +45,8 @@ class DemoViewLooks extends JViewLegacy
$this->user = JFactory::getUser();
// Add the list ordering clause.
$this->listOrder = $this->escape($this->state->get('list.ordering', 'a.id'));
- $this->listDirn = $this->escape($this->state->get('list.direction', 'asc'));
- $this->saveOrder = $this->listOrder == 'ordering';
+ $this->listDirn = $this->escape($this->state->get('list.direction', 'DESC'));
+ $this->saveOrder = $this->listOrder == 'a.ordering';
// set the return here value
$this->return_here = urlencode(base64_encode((string) JUri::getInstance()));
// get global action permissions
@@ -161,39 +161,42 @@ class DemoViewLooks extends JViewLegacy
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{
JToolBarHelper::preferences('com_demo');
- }
-
- if ($this->canState)
- {
- JHtmlSidebar::addFilter(
- JText::_('JOPTION_SELECT_PUBLISHED'),
- 'filter_published',
- JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true)
- );
- // only load if batch allowed
- if ($this->canBatch)
- {
- JHtmlBatch_::addListSelection(
- JText::_('COM_DEMO_KEEP_ORIGINAL_STATE'),
- 'batch[published]',
- JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true)
- );
- }
- }
-
- JHtmlSidebar::addFilter(
- JText::_('JOPTION_SELECT_ACCESS'),
- 'filter_access',
- JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access'))
- );
-
- if ($this->canBatch && $this->canCreate && $this->canEdit)
- {
- JHtmlBatch_::addListSelection(
- JText::_('COM_DEMO_KEEP_ORIGINAL_ACCESS'),
- 'batch[access]',
- JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text')
- );
+ }
+
+ // Only load publish filter if state change is allowed
+ if ($this->canState)
+ {
+ JHtmlSidebar::addFilter(
+ JText::_('JOPTION_SELECT_PUBLISHED'),
+ 'filter_published',
+ JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true)
+ );
+ }
+
+ JHtmlSidebar::addFilter(
+ JText::_('JOPTION_SELECT_ACCESS'),
+ 'filter_access',
+ JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access'))
+ );
+
+ // Only load published batch if state and batch is allowed
+ if ($this->canState && $this->canBatch)
+ {
+ JHtmlBatch_::addListSelection(
+ JText::_('COM_DEMO_KEEP_ORIGINAL_STATE'),
+ 'batch[published]',
+ JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true)
+ );
+ }
+
+ // Only load access batch if create, edit and batch is allowed
+ if ($this->canBatch && $this->canCreate && $this->canEdit)
+ {
+ JHtmlBatch_::addListSelection(
+ JText::_('COM_DEMO_KEEP_ORIGINAL_ACCESS'),
+ 'batch[access]',
+ JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text')
+ );
}
}
@@ -238,7 +241,7 @@ class DemoViewLooks extends JViewLegacy
protected function getSortFields()
{
return array(
- 'ordering' => JText::_('JGRID_HEADING_ORDERING'),
+ 'a.ordering' => JText::_('JGRID_HEADING_ORDERING'),
'a.published' => JText::_('JSTATUS'),
'a.name' => JText::_('COM_DEMO_LOOK_NAME_LABEL'),
'a.description' => JText::_('COM_DEMO_LOOK_DESCRIPTION_LABEL'),
diff --git a/demo.xml b/demo.xml
index 847f8c0..1735358 100644
--- a/demo.xml
+++ b/demo.xml
@@ -1,15 +1,15 @@
COM_DEMO
- 30th May, 2020
+ 6th January, 2021
Llewellyn van der Merwe
joomla@vdm.io
https://www.vdm.io/
Copyright (C) 2015. All Rights Reserved
GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
- 2.0.2
+ 2.0.3
Demo (v.2.0.2)
+ Demo (v.2.0.3)
Just a basic demo of the most basic implementations of the [Joomla](http://www.joomla.org) Component Builder's ability.
Created by Llewellyn van der Merwe Development started 18th October, 2016
diff --git a/demo_updateserver.xml b/demo_updateserver.xml
index add4310..7cc5b42 100644
--- a/demo_updateserver.xml
+++ b/demo_updateserver.xml
@@ -33,4 +33,21 @@
https://www.vdm.io/
+
+ Demo
+ Demo Component
+ com_demo
+ component
+ 2.0.3
+ https://www.vdm.io/
+
+ http://domain.com/demo.zip
+
+
+ stable
+
+ Llewellyn van der Merwe
+ https://www.vdm.io/
+
+
\ No newline at end of file
diff --git a/script.php b/script.php
index c0955f5..e901d17 100644
--- a/script.php
+++ b/script.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage script.php
@@ -84,7 +84,7 @@ class com_demoInstallerScript
$look_done = $db->execute();
if ($look_done)
{
- // If succesfully remove look add queued success message.
+ // If successfully remove look add queued success message.
$app->enqueueMessage(JText::_('The fields with type (com_demo.look) context was removed from the #__fields table'));
}
// Also Remove look field values
@@ -98,7 +98,7 @@ class com_demoInstallerScript
$look_done = $db->execute();
if ($look_done)
{
- // If succesfully remove look add queued success message.
+ // If successfully remove look add queued success message.
$app->enqueueMessage(JText::_('The fields values for look was removed from the #__fields_values table'));
}
}
@@ -128,7 +128,7 @@ class com_demoInstallerScript
$look_done = $db->execute();
if ($look_done)
{
- // If succesfully remove look add queued success message.
+ // If successfully remove look add queued success message.
$app->enqueueMessage(JText::_('The field groups with type (com_demo.look) context was removed from the #__fields_groups table'));
}
}
@@ -160,7 +160,7 @@ class com_demoInstallerScript
$look_done = $db->execute();
if ($look_done)
{
- // If succesfully remove look add queued success message.
+ // If successfully remove look add queued success message.
$app->enqueueMessage(JText::_('The (com_demo.look) type alias was removed from the #__content_type table'));
}
@@ -175,7 +175,7 @@ class com_demoInstallerScript
$look_done = $db->execute();
if ($look_done)
{
- // If succesfully remove look add queued success message.
+ // If successfully remove look add queued success message.
$app->enqueueMessage(JText::_('The (com_demo.look) type alias was removed from the #__contentitem_tag_map table'));
}
@@ -190,7 +190,7 @@ class com_demoInstallerScript
$look_done = $db->execute();
if ($look_done)
{
- // If succesfully remove look add queued success message.
+ // If successfully removed look add queued success message.
$app->enqueueMessage(JText::_('The (com_demo.look) type alias was removed from the #__ucm_content table'));
}
@@ -246,7 +246,7 @@ class com_demoInstallerScript
$look_done = $db->execute();
if ($look_done)
{
- // If succesfully remove Look add queued success message.
+ // If successfully remove Look add queued success message.
$app->enqueueMessage(JText::_('The (com_demo.look) type alias was removed from the #__content_type table'));
}
@@ -261,7 +261,7 @@ class com_demoInstallerScript
$look_done = $db->execute();
if ($look_done)
{
- // If succesfully remove Look add queued success message.
+ // If successfully remove Look add queued success message.
$app->enqueueMessage(JText::_('The (com_demo.look) type alias was removed from the #__contentitem_tag_map table'));
}
@@ -276,7 +276,7 @@ class com_demoInstallerScript
$look_done = $db->execute();
if ($look_done)
{
- // If succesfully remove Look add queued success message.
+ // If successfully removed Look add queued success message.
$app->enqueueMessage(JText::_('The (com_demo.look) type alias was removed from the #__ucm_content table'));
}
@@ -320,10 +320,31 @@ class com_demoInstallerScript
$look_done = $db->execute();
if ($look_done)
{
- // If succesfully remove demo add queued success message.
+ // If successfully removed demo add queued success message.
$app->enqueueMessage(JText::_('All related items was removed from the #__assets table'));
}
+ // Get the biggest rule column in the assets table at this point.
+ $get_rule_length = "SELECT CHAR_LENGTH(`rules`) as rule_size FROM #__assets ORDER BY rule_size DESC LIMIT 1";
+ $db->setQuery($get_rule_length);
+ if ($db->execute())
+ {
+ $rule_length = $db->loadResult();
+ // Check the size of the rules column
+ if ($rule_length < 5120)
+ {
+ // Revert the assets table rules column back to the default
+ $revert_rule = "ALTER TABLE `#__assets` CHANGE `rules` `rules` varchar(5120) NOT NULL COMMENT 'JSON encoded access control.';";
+ $db->setQuery($revert_rule);
+ $db->execute();
+ $app->enqueueMessage(JText::_('Reverted the #__assets table rules column back to its default size of varchar(5120)'));
+ }
+ else
+ {
+
+ $app->enqueueMessage(JText::_('Could not revert the #__assets table rules column back to its default size of varchar(5120), since there is still one or more components that still requires the column to be larger.'));
+ }
+ }
// Set db if not set already.
if (!isset($db))
@@ -460,9 +481,9 @@ class com_demoInstallerScript
$look->type_title = 'Demo Look';
$look->type_alias = 'com_demo.look';
$look->table = '{"special": {"dbtable": "#__demo_look","key": "id","type": "Look","prefix": "demoTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
- $look->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "metadata","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "metakey","core_metadesc": "metadesc","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","website":"website","image":"image","dateofbirth":"dateofbirth","mobile_phone":"mobile_phone","email":"email","add":"add","not_required":"not_required","alias":"alias"}}';
+ $look->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "metadata","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "metakey","core_metadesc": "metadesc","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","website":"website","image":"image","dateofbirth":"dateofbirth","mobile_phone":"mobile_phone","email":"email","add":"add","alias":"alias"}}';
$look->router = 'DemoHelperRoute::getLookRoute';
- $look->content_history_options = '{"formFile": "administrator/components/com_demo/models/forms/look.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","add"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}';
+ $look->content_history_options = '{"formFile": "administrator/components/com_demo/models/forms/look.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","add"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}';
// Set the object into the content types table.
$look_Inserted = $db->insertObject('#__content_types', $look);
@@ -500,6 +521,22 @@ class com_demoInstallerScript
// Get Application object
$app = JFactory::getApplication();
$app->enqueueMessage('This is a demo component developed in JCB! You can build more components like this with JCB, checkout our page on github for more info. The future of Joomla Component Development is Here!', 'Info');
+ // Get the biggest rule column in the assets table at this point.
+ $get_rule_length = "SELECT CHAR_LENGTH(`rules`) as rule_size FROM #__assets ORDER BY rule_size DESC LIMIT 1";
+ $db->setQuery($get_rule_length);
+ if ($db->execute())
+ {
+ $rule_length = $db->loadResult();
+ // Check the size of the rules column
+ if ($rule_length <= 5600)
+ {
+ // Fix the assets table rules column size
+ $fix_rules_size = "ALTER TABLE `#__assets` CHANGE `rules` `rules` TEXT NOT NULL COMMENT 'JSON encoded access control. Enlarged to TEXT by JCB';";
+ $db->setQuery($fix_rules_size);
+ $db->execute();
+ $app->enqueueMessage(JText::_('The #__assets table rules column was resized to the TEXT datatype for the components possible large permission rules.'));
+ }
+ }
echo '
';
@@ -545,9 +582,9 @@ class com_demoInstallerScript
$look->type_title = 'Demo Look';
$look->type_alias = 'com_demo.look';
$look->table = '{"special": {"dbtable": "#__demo_look","key": "id","type": "Look","prefix": "demoTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
- $look->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "metadata","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "metakey","core_metadesc": "metadesc","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","website":"website","image":"image","dateofbirth":"dateofbirth","mobile_phone":"mobile_phone","email":"email","add":"add","not_required":"not_required","alias":"alias"}}';
+ $look->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "metadata","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "metakey","core_metadesc": "metadesc","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","website":"website","image":"image","dateofbirth":"dateofbirth","mobile_phone":"mobile_phone","email":"email","add":"add","alias":"alias"}}';
$look->router = 'DemoHelperRoute::getLookRoute';
- $look->content_history_options = '{"formFile": "administrator/components/com_demo/models/forms/look.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","add"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}';
+ $look->content_history_options = '{"formFile": "administrator/components/com_demo/models/forms/look.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","add"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}';
// Check if look type is already in content_type DB.
$look_id = null;
@@ -573,7 +610,7 @@ class com_demoInstallerScript
echo '
- Upgrade to Version 2.0.2 Was Successful! Let us know if anything is not working as expected.';
+ Upgrade to Version 2.0.3 Was Successful! Let us know if anything is not working as expected.';
// Set db if not set already.
if (!isset($db))
diff --git a/site/assets/css/look.css b/site/assets/css/look.css
index dccbae9..c9bc968 100644
--- a/site/assets/css/look.css
+++ b/site/assets/css/look.css
@@ -2,8 +2,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage look.css
diff --git a/site/assets/css/looking.css b/site/assets/css/looking.css
index 0f6bb83..40642b9 100644
--- a/site/assets/css/looking.css
+++ b/site/assets/css/looking.css
@@ -2,8 +2,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage looking.css
diff --git a/site/assets/css/looks.css b/site/assets/css/looks.css
index f6570f6..0e70b6a 100644
--- a/site/assets/css/looks.css
+++ b/site/assets/css/looks.css
@@ -2,8 +2,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage looks.css
diff --git a/site/assets/css/site.css b/site/assets/css/site.css
index edb2dbe..bb0e79d 100644
--- a/site/assets/css/site.css
+++ b/site/assets/css/site.css
@@ -2,8 +2,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage site.css
diff --git a/site/assets/js/site.js b/site/assets/js/site.js
index 9829fe5..7b3b9c1 100644
--- a/site/assets/js/site.js
+++ b/site/assets/js/site.js
@@ -2,8 +2,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage site.js
diff --git a/site/controller.php b/site/controller.php
index f84af03..785ce88 100644
--- a/site/controller.php
+++ b/site/controller.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage controller.php
diff --git a/site/controllers/look.php b/site/controllers/look.php
index 38c9444..29f7e58 100644
--- a/site/controllers/look.php
+++ b/site/controllers/look.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage look.php
diff --git a/site/demo.php b/site/demo.php
index 38b5e14..9eb4dc1 100644
--- a/site/demo.php
+++ b/site/demo.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage demo.php
@@ -20,6 +20,7 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+
JHtml::_('behavior.tabstate');
// Set the component css/js
@@ -28,7 +29,7 @@ $document->addStyleSheet('components/com_demo/assets/css/site.css');
$document->addScript('components/com_demo/assets/js/site.js');
// Require helper files
-JLoader::register('DemoHelper', __DIR__ . '/helpers/demo.php');
+JLoader::register('DemoHelper', __DIR__ . '/helpers/demo.php');
JLoader::register('DemoHelperRoute', __DIR__ . '/helpers/route.php');
// Get an instance of the controller prefixed by Demo
diff --git a/site/helpers/category.php b/site/helpers/category.php
index a65edc9..b57ad87 100644
--- a/site/helpers/category.php
+++ b/site/helpers/category.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage category.php
diff --git a/site/helpers/demo.php b/site/helpers/demo.php
index bb5b31d..3ef5e78 100644
--- a/site/helpers/demo.php
+++ b/site/helpers/demo.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage demo.php
@@ -21,8 +21,9 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-use Joomla\CMS\Language\Language;
-use Joomla\String\StringHelper;
+use Joomla\CMS\Language\Language;
+use Joomla\Registry\Registry;
+use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
/**
diff --git a/site/helpers/headercheck.php b/site/helpers/headercheck.php
index 5515472..cc6ed6e 100644
--- a/site/helpers/headercheck.php
+++ b/site/helpers/headercheck.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage headercheck.php
diff --git a/site/helpers/route.php b/site/helpers/route.php
index 0c6ee71..92ed59f 100644
--- a/site/helpers/route.php
+++ b/site/helpers/route.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage route.php
diff --git a/site/language/en-GB/en-GB.com_demo.ini b/site/language/en-GB/en-GB.com_demo.ini
index b7de3ec..a63e1ac 100644
--- a/site/language/en-GB/en-GB.com_demo.ini
+++ b/site/language/en-GB/en-GB.com_demo.ini
@@ -22,6 +22,8 @@ COM_DEMO_LOOKS_N_ITEMS_CHECKED_IN_1="%d Look successfully checked in."
COM_DEMO_LOOKS_N_ITEMS_CHECKED_IN_MORE="%d Looks successfully checked in."
COM_DEMO_LOOKS_N_ITEMS_DELETED="%s Looks deleted."
COM_DEMO_LOOKS_N_ITEMS_DELETED_1="%s Look deleted."
+COM_DEMO_LOOKS_N_ITEMS_FAILED_PUBLISHING="%s Looks failed publishing."
+COM_DEMO_LOOKS_N_ITEMS_FAILED_PUBLISHING_1="%s Look failed publishing."
COM_DEMO_LOOKS_N_ITEMS_FEATURED="%s Looks featured."
COM_DEMO_LOOKS_N_ITEMS_FEATURED_1="%s Look featured."
COM_DEMO_LOOKS_N_ITEMS_PUBLISHED="%s Looks published."
diff --git a/site/layouts/look/details_above.php b/site/layouts/look/details_above.php
index 27719ae..d7e6486 100644
--- a/site/layouts/look/details_above.php
+++ b/site/layouts/look/details_above.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage details_above.php
diff --git a/site/layouts/look/details_fullwidth.php b/site/layouts/look/details_fullwidth.php
index 28d2103..fec77af 100644
--- a/site/layouts/look/details_fullwidth.php
+++ b/site/layouts/look/details_fullwidth.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage details_fullwidth.php
diff --git a/site/layouts/look/details_under.php b/site/layouts/look/details_under.php
index 825e9ec..4751e53 100644
--- a/site/layouts/look/details_under.php
+++ b/site/layouts/look/details_under.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage details_under.php
diff --git a/site/layouts/look/metadata.php b/site/layouts/look/metadata.php
index fef27e5..2e9643c 100644
--- a/site/layouts/look/metadata.php
+++ b/site/layouts/look/metadata.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage metadata.php
diff --git a/site/layouts/look/more_left.php b/site/layouts/look/more_left.php
index bdc240e..f15f140 100644
--- a/site/layouts/look/more_left.php
+++ b/site/layouts/look/more_left.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage more_left.php
diff --git a/site/layouts/look/more_right.php b/site/layouts/look/more_right.php
index 9eb66a0..b7c633c 100644
--- a/site/layouts/look/more_right.php
+++ b/site/layouts/look/more_right.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage more_right.php
diff --git a/site/layouts/look/publishing.php b/site/layouts/look/publishing.php
index 348035b..ca6fdf4 100644
--- a/site/layouts/look/publishing.php
+++ b/site/layouts/look/publishing.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage publishing.php
@@ -35,6 +35,7 @@ $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: array(
+ 'title',
'created',
'created_by',
'modified',
diff --git a/site/models/forms/look.js b/site/models/forms/look.js
index 21f3a01..2796c28 100644
--- a/site/models/forms/look.js
+++ b/site/models/forms/look.js
@@ -2,8 +2,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage look.js
diff --git a/site/models/forms/look.xml b/site/models/forms/look.xml
index 19953c4..def7a2e 100644
--- a/site/models/forms/look.xml
+++ b/site/models/forms/look.xml
@@ -102,6 +102,14 @@
rows="3"
cols="30"
/>
+
+
+
+
getCode() == 404)
{
// Need to go thru the error handler to allow Redirect to work.
- JError::raiseWaring(404, $e->getMessage());
+ JError::raiseWarning(404, $e->getMessage());
}
else
{
diff --git a/site/models/looks.php b/site/models/looks.php
index 97260b9..bde94c8 100644
--- a/site/models/looks.php
+++ b/site/models/looks.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage looks.php
diff --git a/site/router.php b/site/router.php
index 7aaac85..bfc1b06 100644
--- a/site/router.php
+++ b/site/router.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage router.php
diff --git a/site/views/look/submitbutton.js b/site/views/look/submitbutton.js
index e3816ef..30231e9 100644
--- a/site/views/look/submitbutton.js
+++ b/site/views/look/submitbutton.js
@@ -2,8 +2,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage submitbutton.js
diff --git a/site/views/look/tmpl/edit.php b/site/views/look/tmpl/edit.php
index 1eb20ec..c4c406e 100644
--- a/site/views/look/tmpl/edit.php
+++ b/site/views/look/tmpl/edit.php
@@ -3,8 +3,8 @@
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
- @version 2.0.2
- @build 30th May, 2020
+ @version 2.0.3
+ @build 6th January, 2021
@created 18th October, 2016
@package Demo
@subpackage edit.php
@@ -21,15 +21,15 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
-JHtml::_('behavior.tooltip');
-JHtml::_('behavior.formvalidation');
-JHtml::_('formbehavior.chosen', 'select');
-JHtml::_('behavior.keepalive');
-JHtml::_('behavior.tabstate');
+JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
+JHtml::_('behavior.tooltip');
+JHtml::_('behavior.formvalidation');
+JHtml::_('formbehavior.chosen', 'select');
+JHtml::_('behavior.keepalive');
+JHtml::_('behavior.tabstate');
JHtml::_('behavior.calendar');
-$componentParams = $this->params; // will be removed just use $this->params instead
?>
+ |