+
+
+
+ $this));
+?>
+items)): ?>
+
+
+
+
+
+ loadTemplate('head');?>
+ loadTemplate('foot');?>
+ loadTemplate('body');?>
+
+
+ canCreate && $this->canEdit) : ?>
+ JText::_('COM_HELLO_WORLD_GREETINGS_BATCH_OPTIONS'),
+ 'footer' => $this->loadTemplate('batch_footer')
+ ),
+ $this->loadTemplate('batch_body')
+ ); ?>
+
+
+
+
+
+
+
diff --git a/admin/views/greetings/tmpl/default_batch_body.php b/admin/views/greetings/tmpl/default_batch_body.php
index 95f7590..bed8564 100644
--- a/admin/views/greetings/tmpl/default_batch_body.php
+++ b/admin/views/greetings/tmpl/default_batch_body.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@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/greetings/tmpl/default_batch_footer.php b/admin/views/greetings/tmpl/default_batch_footer.php
index ae2124c..d23075e 100644
--- a/admin/views/greetings/tmpl/default_batch_footer.php
+++ b/admin/views/greetings/tmpl/default_batch_footer.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@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/greetings/tmpl/default_body.php b/admin/views/greetings/tmpl/default_body.php
index 759bd2d..6bc2aea 100644
--- a/admin/views/greetings/tmpl/default_body.php
+++ b/admin/views/greetings/tmpl/default_body.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@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_hello_world&view=greetings&task=greeting.edit";
@@ -34,11 +34,8 @@ $edit = "index.php?option=com_hello_world&view=greetings&task=greeting.edit";
get('core.edit.state')): ?>
saveOrder)
- {
- $iconClass = ' inactive';
- }
- else
+ $iconClass = '';
+ if (!$this->saveOrder)
{
$iconClass = ' inactive tip-top" hasTooltip" title="' . JHtml::tooltipText('JORDERINGDISABLED');
}
diff --git a/admin/views/greetings/tmpl/default_foot.php b/admin/views/greetings/tmpl/default_foot.php
index 5273146..e18f179 100644
--- a/admin/views/greetings/tmpl/default_foot.php
+++ b/admin/views/greetings/tmpl/default_foot.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage default_foot.php
diff --git a/admin/views/greetings/tmpl/default_head.php b/admin/views/greetings/tmpl/default_head.php
index 6cd3461..3eb4b0c 100644
--- a/admin/views/greetings/tmpl/default_head.php
+++ b/admin/views/greetings/tmpl/default_head.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@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'); ?>
+ listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
@@ -39,11 +39,11 @@ defined('_JEXEC') or die('Restricted access');
|
- listDirn, $this->listOrder); ?>
+ listDirn, $this->listOrder); ?>
|
canState): ?>
- listDirn, $this->listOrder); ?>
+ listDirn, $this->listOrder); ?>
|
@@ -51,6 +51,6 @@ defined('_JEXEC') or die('Restricted access');
|
- listDirn, $this->listOrder); ?>
+ listDirn, $this->listOrder); ?>
|
\ No newline at end of file
diff --git a/admin/views/greetings/tmpl/default_toolbar.php b/admin/views/greetings/tmpl/default_toolbar.php
index 469c034..8613219 100644
--- a/admin/views/greetings/tmpl/default_toolbar.php
+++ b/admin/views/greetings/tmpl/default_toolbar.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage default_toolbar.php
diff --git a/admin/views/greetings/view.html.php b/admin/views/greetings/view.html.php
index 46caf58..68abbeb 100644
--- a/admin/views/greetings/view.html.php
+++ b/admin/views/greetings/view.html.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage view.html.php
@@ -43,10 +43,14 @@ class Hello_worldViewGreetings extends JViewLegacy
$this->pagination = $this->get('Pagination');
$this->state = $this->get('State');
$this->user = JFactory::getUser();
+ // Load the filter form from xml.
+ $this->filterForm = $this->get('FilterForm');
+ // Load the active filters.
+ $this->activeFilters = $this->get('ActiveFilters');
// 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 +165,26 @@ class Hello_worldViewGreetings extends JViewLegacy
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{
JToolBarHelper::preferences('com_hello_world');
- }
-
- 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_HELLO_WORLD_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_HELLO_WORLD_KEEP_ORIGINAL_ACCESS'),
- 'batch[access]',
- JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text')
- );
+ }
+
+ // Only load published batch if state and batch is allowed
+ if ($this->canState && $this->canBatch)
+ {
+ JHtmlBatch_::addListSelection(
+ JText::_('COM_HELLO_WORLD_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_HELLO_WORLD_KEEP_ORIGINAL_ACCESS'),
+ 'batch[access]',
+ JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text')
+ );
}
}
@@ -238,7 +229,7 @@ class Hello_worldViewGreetings extends JViewLegacy
protected function getSortFields()
{
return array(
- 'ordering' => JText::_('JGRID_HEADING_ORDERING'),
+ 'a.ordering' => JText::_('JGRID_HEADING_ORDERING'),
'a.published' => JText::_('JSTATUS'),
'a.greeting' => JText::_('COM_HELLO_WORLD_GREETING_GREETING_LABEL'),
'a.id' => JText::_('JGRID_HEADING_ID')
diff --git a/admin/views/hello_world/tmpl/default.php b/admin/views/hello_world/tmpl/default.php
index c364b44..2d00c09 100644
--- a/admin/views/hello_world/tmpl/default.php
+++ b/admin/views/hello_world/tmpl/default.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage default.php
diff --git a/admin/views/hello_world/tmpl/default_main.php b/admin/views/hello_world/tmpl/default_main.php
index 0f4be08..6c4df46 100644
--- a/admin/views/hello_world/tmpl/default_main.php
+++ b/admin/views/hello_world/tmpl/default_main.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage default_main.php
diff --git a/admin/views/hello_world/tmpl/default_vdm.php b/admin/views/hello_world/tmpl/default_vdm.php
index 426e5aa..f13499d 100644
--- a/admin/views/hello_world/tmpl/default_vdm.php
+++ b/admin/views/hello_world/tmpl/default_vdm.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage default_vdm.php
diff --git a/admin/views/hello_world/view.html.php b/admin/views/hello_world/view.html.php
index 60e2e44..179ec92 100644
--- a/admin/views/hello_world/view.html.php
+++ b/admin/views/hello_world/view.html.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage view.html.php
diff --git a/admin/views/import/tmpl/default.php b/admin/views/import/tmpl/default.php
index 7a044c2..2d322b5 100644
--- a/admin/views/import/tmpl/default.php
+++ b/admin/views/import/tmpl/default.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage default.php
diff --git a/admin/views/import/view.html.php b/admin/views/import/view.html.php
index f8cf2b6..d972358 100644
--- a/admin/views/import/view.html.php
+++ b/admin/views/import/view.html.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage view.html.php
diff --git a/hello_world.xml b/hello_world.xml
index bec5325..0d76581 100644
--- a/hello_world.xml
+++ b/hello_world.xml
@@ -1,15 +1,15 @@
COM_HELLO_WORLD
- 30th May, 2020
+ 4th January, 2021
Llewellyn
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
- 1.0.0
+ 1.0.1
Hello World (v.1.0.0)
+ Hello World (v.1.0.1)
Created by Llewellyn
Development started 20th September, 2017
@@ -97,6 +97,6 @@
- https://raw.githubusercontent.com/namibia/JCB-Hello-World/master/helloworld_updateserver.xml
+ https://raw.githubusercontent.com/Llewellynvdm/Joomla-Hello-World-Component/master/helloworld_updateserver.xml
\ No newline at end of file
diff --git a/helloworld_updateserver.xml b/helloworld_updateserver.xml
new file mode 100644
index 0000000..001f2e5
--- /dev/null
+++ b/helloworld_updateserver.xml
@@ -0,0 +1,19 @@
+
+
+ Hello World
+ Hello World
+ com_hello_world
+ component
+ 1.0.1
+ https://www.vdm.io
+
+ https://github.com/Llewellynvdm/Joomla-Hello-World-Component/archive/master.zip
+
+
+ stable
+
+ Llewellyn
+ https://www.vdm.io
+
+
+
\ No newline at end of file
diff --git a/script.php b/script.php
index 5b7954b..2390360 100644
--- a/script.php
+++ b/script.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage script.php
@@ -84,7 +84,7 @@ class com_hello_worldInstallerScript
$greeting_done = $db->execute();
if ($greeting_done)
{
- // If succesfully remove greeting add queued success message.
+ // If successfully remove greeting add queued success message.
$app->enqueueMessage(JText::_('The fields with type (com_hello_world.greeting) context was removed from the
#__fields table'));
}
// Also Remove greeting field values
@@ -98,7 +98,7 @@ class com_hello_worldInstallerScript
$greeting_done = $db->execute();
if ($greeting_done)
{
- // If succesfully remove greeting add queued success message.
+ // If successfully remove greeting add queued success message.
$app->enqueueMessage(JText::_('The fields values for greeting was removed from the
#__fields_values table'));
}
}
@@ -128,7 +128,7 @@ class com_hello_worldInstallerScript
$greeting_done = $db->execute();
if ($greeting_done)
{
- // If succesfully remove greeting add queued success message.
+ // If successfully remove greeting add queued success message.
$app->enqueueMessage(JText::_('The field groups with type (com_hello_world.greeting) context was removed from the
#__fields_groups table'));
}
}
@@ -160,7 +160,7 @@ class com_hello_worldInstallerScript
$greeting_done = $db->execute();
if ($greeting_done)
{
- // If succesfully remove greeting add queued success message.
+ // If successfully remove greeting add queued success message.
$app->enqueueMessage(JText::_('The (com_hello_world.greeting) type alias was removed from the
#__content_type table'));
}
@@ -175,7 +175,7 @@ class com_hello_worldInstallerScript
$greeting_done = $db->execute();
if ($greeting_done)
{
- // If succesfully remove greeting add queued success message.
+ // If successfully remove greeting add queued success message.
$app->enqueueMessage(JText::_('The (com_hello_world.greeting) type alias was removed from the
#__contentitem_tag_map table'));
}
@@ -190,7 +190,7 @@ class com_hello_worldInstallerScript
$greeting_done = $db->execute();
if ($greeting_done)
{
- // If succesfully remove greeting add queued success message.
+ // If successfully removed greeting add queued success message.
$app->enqueueMessage(JText::_('The (com_hello_world.greeting) type alias was removed from the
#__ucm_content table'));
}
@@ -246,7 +246,7 @@ class com_hello_worldInstallerScript
$greeting_done = $db->execute();
if ($greeting_done)
{
- // If succesfully remove Greeting add queued success message.
+ // If successfully remove Greeting add queued success message.
$app->enqueueMessage(JText::_('The (com_hello_world.greeting) type alias was removed from the
#__content_type table'));
}
@@ -261,7 +261,7 @@ class com_hello_worldInstallerScript
$greeting_done = $db->execute();
if ($greeting_done)
{
- // If succesfully remove Greeting add queued success message.
+ // If successfully remove Greeting add queued success message.
$app->enqueueMessage(JText::_('The (com_hello_world.greeting) type alias was removed from the
#__contentitem_tag_map table'));
}
@@ -276,7 +276,7 @@ class com_hello_worldInstallerScript
$greeting_done = $db->execute();
if ($greeting_done)
{
- // If succesfully remove Greeting add queued success message.
+ // If successfully removed Greeting add queued success message.
$app->enqueueMessage(JText::_('The (com_hello_world.greeting) type alias was removed from the
#__ucm_content table'));
}
@@ -320,7 +320,7 @@ class com_hello_worldInstallerScript
$greeting_done = $db->execute();
if ($greeting_done)
{
- // If succesfully remove hello_world add queued success message.
+ // If successfully removed hello_world add queued success message.
$app->enqueueMessage(JText::_('All related items was removed from the
#__assets table'));
}
@@ -569,7 +569,7 @@ class com_hello_worldInstallerScript
echo '
-
Upgrade to Version 1.0.0 Was Successful! Let us know if anything is not working as expected.
';
+
Upgrade to Version 1.0.1 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/greet.css b/site/assets/css/greet.css
index 1088aff..5bf90e5 100644
--- a/site/assets/css/greet.css
+++ b/site/assets/css/greet.css
@@ -2,8 +2,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage greet.css
diff --git a/site/assets/css/greeting.css b/site/assets/css/greeting.css
index 4c9fa7f..fba7b34 100644
--- a/site/assets/css/greeting.css
+++ b/site/assets/css/greeting.css
@@ -2,8 +2,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage greeting.css
diff --git a/site/assets/css/greetings.css b/site/assets/css/greetings.css
index 25e7fd6..e873ad8 100644
--- a/site/assets/css/greetings.css
+++ b/site/assets/css/greetings.css
@@ -2,8 +2,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage greetings.css
diff --git a/site/assets/css/site.css b/site/assets/css/site.css
index 0e42513..58619a1 100644
--- a/site/assets/css/site.css
+++ b/site/assets/css/site.css
@@ -2,8 +2,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage site.css
diff --git a/site/assets/js/site.js b/site/assets/js/site.js
index da9c802..cfac371 100644
--- a/site/assets/js/site.js
+++ b/site/assets/js/site.js
@@ -2,8 +2,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage site.js
diff --git a/site/controller.php b/site/controller.php
index 76bb7c5..7afa38a 100644
--- a/site/controller.php
+++ b/site/controller.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage controller.php
diff --git a/site/controllers/greeting.php b/site/controllers/greeting.php
index 9a33e31..ded5a70 100644
--- a/site/controllers/greeting.php
+++ b/site/controllers/greeting.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage greeting.php
diff --git a/site/hello_world.php b/site/hello_world.php
index 1f5992b..c7e94e5 100644
--- a/site/hello_world.php
+++ b/site/hello_world.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage hello_world.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_hello_world/assets/css/site.css');
$document->addScript('components/com_hello_world/assets/js/site.js');
// Require helper files
-JLoader::register('Hello_worldHelper', __DIR__ . '/helpers/hello_world.php');
+JLoader::register('Hello_worldHelper', __DIR__ . '/helpers/hello_world.php');
JLoader::register('Hello_worldHelperRoute', __DIR__ . '/helpers/route.php');
// Get an instance of the controller prefixed by Hello_world
diff --git a/site/helpers/category.php b/site/helpers/category.php
index 43a6b51..998be1e 100644
--- a/site/helpers/category.php
+++ b/site/helpers/category.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage category.php
diff --git a/site/helpers/headercheck.php b/site/helpers/headercheck.php
index f288cce..f352a15 100644
--- a/site/helpers/headercheck.php
+++ b/site/helpers/headercheck.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage headercheck.php
diff --git a/site/helpers/hello_world.php b/site/helpers/hello_world.php
index e7c6dc6..3aa9155 100644
--- a/site/helpers/hello_world.php
+++ b/site/helpers/hello_world.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage hello_world.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;
/**
@@ -44,7 +45,7 @@ abstract class Hello_worldHelper
*/
public static $langTag;
-/***[INSERTED$$$$]***//*69*/
+
/**
* Write a file to the server
*
@@ -76,8 +77,8 @@ abstract class Hello_worldHelper
}
return $klaar;
}
-/***[/INSERTED$$$$]***/
-/***[INSERTED$$$$]***//*60*/
+
+
/**
* get the content of a file
*
@@ -129,8 +130,8 @@ abstract class Hello_worldHelper
}
return $none;
}
-/***[/INSERTED$$$$]***/
-/***[INSERTED$$$$]***//*71*/
+
+
/**
* Remove folders with files
*
@@ -203,7 +204,7 @@ abstract class Hello_worldHelper
}
return false;
}
-/***[/INSERTED$$$$]***/
+
/**
* Load the Composer Vendors
diff --git a/site/helpers/route.php b/site/helpers/route.php
index 897b0a2..09ae8e6 100644
--- a/site/helpers/route.php
+++ b/site/helpers/route.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage route.php
diff --git a/site/language/en-GB/en-GB.com_hello_world.ini b/site/language/en-GB/en-GB.com_hello_world.ini
index ea0e6fb..b09bf2d 100644
--- a/site/language/en-GB/en-GB.com_hello_world.ini
+++ b/site/language/en-GB/en-GB.com_hello_world.ini
@@ -3,6 +3,8 @@ COM_HELLO_WORLD="Hello World"
COM_HELLO_WORLD_CREATE_NEW_S="Create New %s"
COM_HELLO_WORLD_EDIT="Edit"
COM_HELLO_WORLD_EDIT_S="Edit %s"
+COM_HELLO_WORLD_FILTER_GREETING_ASCENDING="Greeting ascending"
+COM_HELLO_WORLD_FILTER_GREETING_DESCENDING="Greeting descending"
COM_HELLO_WORLD_GREET="Greeting"
COM_HELLO_WORLD_GREETING="Greeting"
COM_HELLO_WORLD_GREETINGS="Greetings"
@@ -16,6 +18,8 @@ COM_HELLO_WORLD_GREETINGS_N_ITEMS_CHECKED_IN_1="%d Greeting successfully checked
COM_HELLO_WORLD_GREETINGS_N_ITEMS_CHECKED_IN_MORE="%d Greetings successfully checked in."
COM_HELLO_WORLD_GREETINGS_N_ITEMS_DELETED="%s Greetings deleted."
COM_HELLO_WORLD_GREETINGS_N_ITEMS_DELETED_1="%s Greeting deleted."
+COM_HELLO_WORLD_GREETINGS_N_ITEMS_FAILED_PUBLISHING="%s Greetings failed publishing."
+COM_HELLO_WORLD_GREETINGS_N_ITEMS_FAILED_PUBLISHING_1="%s Greeting failed publishing."
COM_HELLO_WORLD_GREETINGS_N_ITEMS_FEATURED="%s Greetings featured."
COM_HELLO_WORLD_GREETINGS_N_ITEMS_FEATURED_1="%s Greeting featured."
COM_HELLO_WORLD_GREETINGS_N_ITEMS_PUBLISHED="%s Greetings published."
diff --git a/site/layouts/greeting/details_left.php b/site/layouts/greeting/details_left.php
index 81705c6..49f2333 100644
--- a/site/layouts/greeting/details_left.php
+++ b/site/layouts/greeting/details_left.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage details_left.php
diff --git a/site/layouts/greeting/metadata.php b/site/layouts/greeting/metadata.php
index c3fbed0..1af483a 100644
--- a/site/layouts/greeting/metadata.php
+++ b/site/layouts/greeting/metadata.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage metadata.php
diff --git a/site/layouts/greeting/publishing.php b/site/layouts/greeting/publishing.php
index 6bb8c12..e3d12cf 100644
--- a/site/layouts/greeting/publishing.php
+++ b/site/layouts/greeting/publishing.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@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/greeting.js b/site/models/forms/greeting.js
index 3df9004..020e5df 100644
--- a/site/models/forms/greeting.js
+++ b/site/models/forms/greeting.js
@@ -2,8 +2,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage greeting.js
diff --git a/site/models/forms/greeting.xml b/site/models/forms/greeting.xml
index 8f455f7..f71faac 100644
--- a/site/models/forms/greeting.xml
+++ b/site/models/forms/greeting.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/greeting.php b/site/models/greeting.php
index c35b6d8..ca3ca4d 100644
--- a/site/models/greeting.php
+++ b/site/models/greeting.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage greeting.php
@@ -21,8 +21,8 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-use Joomla\Registry\Registry;
-use Joomla\String\StringHelper;
+use Joomla\Registry\Registry;
+use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
/**
@@ -204,23 +204,6 @@ class Hello_worldModelGreeting extends JModelAdmin
// Disable fields while saving.
$form->setFieldAttribute('created', 'filter', 'unset');
}
- // Modify the form based on Edit Greeting access controls.
- if ($id != 0 && (!$user->authorise('greeting.edit.greeting', 'com_hello_world.greeting.' . (int) $id))
- || ($id == 0 && !$user->authorise('greeting.edit.greeting', 'com_hello_world')))
- {
- // Disable fields for display.
- $form->setFieldAttribute('greeting', 'disabled', 'true');
- // Disable fields for display.
- $form->setFieldAttribute('greeting', 'readonly', 'true');
- // If there is no value continue.
- if (!$form->getValue('greeting'))
- {
- // Disable fields while saving.
- $form->setFieldAttribute('greeting', 'filter', 'unset');
- // Disable fields while saving.
- $form->setFieldAttribute('greeting', 'required', 'false');
- }
- }
// Only load these values if no id is found
if (0 == $id)
{
diff --git a/site/models/greetings.php b/site/models/greetings.php
index 251d814..07e4f8d 100644
--- a/site/models/greetings.php
+++ b/site/models/greetings.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage greetings.php
diff --git a/site/router.php b/site/router.php
index 34373ce..27a6512 100644
--- a/site/router.php
+++ b/site/router.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage router.php
diff --git a/site/views/greet/tmpl/default.php b/site/views/greet/tmpl/default.php
index c89e382..cdd63ab 100644
--- a/site/views/greet/tmpl/default.php
+++ b/site/views/greet/tmpl/default.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage default.php
@@ -21,9 +21,7 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
+
?>
toolbar->render(); ?>
-
-
-item->greeting; ?>
-
+item->greeting; ?>
diff --git a/site/views/greet/view.html.php b/site/views/greet/view.html.php
index b77cea6..fc8c06f 100644
--- a/site/views/greet/view.html.php
+++ b/site/views/greet/view.html.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage view.html.php
@@ -136,8 +136,6 @@ class Hello_worldViewGreet extends JViewLegacy
*/
protected function addToolBar()
{
- // adding the joomla toolbar to the front
- JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php');
// set help url for this view if found
$help_url = Hello_worldHelper::getHelpUrl('greet');
diff --git a/site/views/greeting/submitbutton.js b/site/views/greeting/submitbutton.js
index 0d9ab97..c2b2f5d 100644
--- a/site/views/greeting/submitbutton.js
+++ b/site/views/greeting/submitbutton.js
@@ -2,8 +2,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage submitbutton.js
diff --git a/site/views/greeting/tmpl/edit.php b/site/views/greeting/tmpl/edit.php
index 3e23fc9..5198c29 100644
--- a/site/views/greeting/tmpl/edit.php
+++ b/site/views/greeting/tmpl/edit.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@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
?>
+
diff --git a/site/views/greeting/view.html.php b/site/views/greeting/view.html.php
index 4c5bc73..d90d52e 100644
--- a/site/views/greeting/view.html.php
+++ b/site/views/greeting/view.html.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage view.html.php
@@ -86,10 +86,7 @@ class Hello_worldViewGreeting extends JViewLegacy
* Setting the toolbar
*/
protected function addToolBar()
- {
- // adding the joomla edit toolbar to the front
- JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php');
- JFactory::getApplication()->input->set('hidemainmenu', true);
+ {JFactory::getApplication()->input->set('hidemainmenu', true);
$user = JFactory::getUser();
$userId = $user->id;
$isNew = $this->item->id == 0;
diff --git a/site/views/greetings/tmpl/default.php b/site/views/greetings/tmpl/default.php
index 4579817..9ef2300 100644
--- a/site/views/greetings/tmpl/default.php
+++ b/site/views/greetings/tmpl/default.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage default.php
@@ -19,20 +19,15 @@
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
-defined('_JEXEC') or die('Restricted access');
+defined('_JEXEC') or die('Restricted access');
+
-/***[JCBGUI.site_view.php_view.50.$$$$]***/
-$edit = "index.php?option=com_hello_world&view=greetings&task=greeting.edit";/***[/JCBGUI$$$$]***/
-
-
+$edit = "index.php?option=com_hello_world&view=greetings&task=greeting.edit";
?>
toolbar->render(); ?>
-
-
-
+
diff --git a/site/views/greetings/view.html.php b/site/views/greetings/view.html.php
index 68c3bd7..91851fa 100644
--- a/site/views/greetings/view.html.php
+++ b/site/views/greetings/view.html.php
@@ -3,8 +3,8 @@
VDM
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 30th May, 2020
+ @version 1.0.1
+ @build 4th January, 2021
@created 20th September, 2017
@package Hello World
@subpackage view.html.php
@@ -107,8 +107,6 @@ class Hello_worldViewGreetings extends JViewLegacy
*/
protected function addToolBar()
{
- // adding the joomla toolbar to the front
- JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php');
// set help url for this view if found
$help_url = Hello_worldHelper::getHelpUrl('greetings');