Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
4d47f8292f | |||
a1ff74f157 | |||
dc1217e6d1 | |||
f2e4df6ecb | |||
a197f503a9 | |||
79ab3164a6 |
12
README.md
12
README.md
@ -1,4 +1,4 @@
|
|||||||
# Component Builder (2.3.4)
|
# Component Builder (2.3.6)
|
||||||
|
|
||||||
This is a [Joomla 3.x](http://www.joomla.org/) component.
|
This is a [Joomla 3.x](http://www.joomla.org/) component.
|
||||||
|
|
||||||
@ -8,7 +8,7 @@ The Component Builder for [Joomla](http://www.joomla.org/) that is highly advanc
|
|||||||
|
|
||||||
Whether you're a seasoned [Joomla](http://www.joomla.org/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
|
Whether you're a seasoned [Joomla](http://www.joomla.org/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
|
||||||
|
|
||||||
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.3.4) with **ALL** its features and **ALL** concepts totally open-source and free!
|
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.3.6) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||||
|
|
||||||
Once installed upgrades are quick and easy via the default Joomla upgrade area.
|
Once installed upgrades are quick and easy via the default Joomla upgrade area.
|
||||||
|
|
||||||
@ -104,12 +104,12 @@ Component Builder is mapped as a component in itself on my local development env
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
+ *Name*: [Component Builder](http://vdm.bz/component-builder)
|
+ *Name*: [Component Builder](http://vdm.bz/component-builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 13th February, 2017
|
+ *Last Build*: 1st March, 2017
|
||||||
+ *Version*: 2.3.4
|
+ *Version*: 2.3.6
|
||||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
+ *Line count*: **91942**
|
+ *Line count*: **92671**
|
||||||
+ *File count*: **594**
|
+ *File count*: **596**
|
||||||
+ *Folder count*: **105**
|
+ *Folder count*: **105**
|
||||||
|
|
||||||
> This **component** was build with a Joomla [Automated Component Builder](http://vdm.bz/component-builder).
|
> This **component** was build with a Joomla [Automated Component Builder](http://vdm.bz/component-builder).
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Component Builder (2.3.4)
|
# Component Builder (2.3.6)
|
||||||
|
|
||||||
This is a [Joomla 3.x](http://www.joomla.org/) component.
|
This is a [Joomla 3.x](http://www.joomla.org/) component.
|
||||||
|
|
||||||
@ -8,7 +8,7 @@ The Component Builder for [Joomla](http://www.joomla.org/) that is highly advanc
|
|||||||
|
|
||||||
Whether you're a seasoned [Joomla](http://www.joomla.org/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
|
Whether you're a seasoned [Joomla](http://www.joomla.org/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
|
||||||
|
|
||||||
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.3.4) with **ALL** its features and **ALL** concepts totally open-source and free!
|
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.3.6) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||||
|
|
||||||
Once installed upgrades are quick and easy via the default Joomla upgrade area.
|
Once installed upgrades are quick and easy via the default Joomla upgrade area.
|
||||||
|
|
||||||
@ -104,12 +104,12 @@ Component Builder is mapped as a component in itself on my local development env
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
+ *Name*: [Component Builder](http://vdm.bz/component-builder)
|
+ *Name*: [Component Builder](http://vdm.bz/component-builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 13th February, 2017
|
+ *Last Build*: 1st March, 2017
|
||||||
+ *Version*: 2.3.4
|
+ *Version*: 2.3.6
|
||||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
+ *Line count*: **91942**
|
+ *Line count*: **92671**
|
||||||
+ *File count*: **594**
|
+ *File count*: **596**
|
||||||
+ *Folder count*: **105**
|
+ *Folder count*: **105**
|
||||||
|
|
||||||
> This **component** was build with a Joomla [Automated Component Builder](http://vdm.bz/component-builder).
|
> This **component** was build with a Joomla [Automated Component Builder](http://vdm.bz/component-builder).
|
||||||
|
@ -101,6 +101,16 @@
|
|||||||
<action name="help_document.export" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_EXPORT" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_EXPORT_DESC" />
|
<action name="help_document.export" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_EXPORT" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_EXPORT_DESC" />
|
||||||
<action name="help_document.import" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT_DESC" />
|
<action name="help_document.import" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT_DESC" />
|
||||||
<action name="help_document.submenu" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU_DESC" />
|
<action name="help_document.submenu" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU_DESC" />
|
||||||
|
<action name="joomla_component.access" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS_DESC" />
|
||||||
|
<action name="joomla_component.batch" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE_DESC" />
|
||||||
|
<action name="joomla_component.dashboard_add" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD_DESC" />
|
||||||
|
<action name="joomla_component.dashboard_list" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_LIST" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_LIST_DESC" />
|
||||||
|
<action name="joomla_component.edit.add_license" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_LICENSE" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_LICENSE_DESC" />
|
||||||
|
<action name="joomla_component.edit.license_type" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_TYPE" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_TYPE_DESC" />
|
||||||
|
<action name="joomla_component.version" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_DESC" />
|
||||||
|
<action name="joomla_component.export" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EXPORT" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EXPORT_DESC" />
|
||||||
|
<action name="joomla_component.import" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_IMPORT" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_IMPORT_DESC" />
|
||||||
|
<action name="joomla_component.submenu" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_SUBMENU" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_SUBMENU_DESC" />
|
||||||
<action name="layout.access" title="COM_COMPONENTBUILDER_LAYOUTS_ACCESS" description="COM_COMPONENTBUILDER_LAYOUTS_ACCESS_DESC" />
|
<action name="layout.access" title="COM_COMPONENTBUILDER_LAYOUTS_ACCESS" description="COM_COMPONENTBUILDER_LAYOUTS_ACCESS_DESC" />
|
||||||
<action name="layout.batch" title="COM_COMPONENTBUILDER_LAYOUTS_BATCH_USE" description="COM_COMPONENTBUILDER_LAYOUTS_BATCH_USE_DESC" />
|
<action name="layout.batch" title="COM_COMPONENTBUILDER_LAYOUTS_BATCH_USE" description="COM_COMPONENTBUILDER_LAYOUTS_BATCH_USE_DESC" />
|
||||||
<action name="layout.dashboard_add" title="COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_ADD" description="COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_ADD_DESC" />
|
<action name="layout.dashboard_add" title="COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_ADD" description="COM_COMPONENTBUILDER_LAYOUTS_DASHBOARD_ADD_DESC" />
|
||||||
@ -134,6 +144,11 @@
|
|||||||
<action name="template.import" title="COM_COMPONENTBUILDER_TEMPLATES_IMPORT" description="COM_COMPONENTBUILDER_TEMPLATES_IMPORT_DESC" />
|
<action name="template.import" title="COM_COMPONENTBUILDER_TEMPLATES_IMPORT" description="COM_COMPONENTBUILDER_TEMPLATES_IMPORT_DESC" />
|
||||||
<action name="template.submenu" title="COM_COMPONENTBUILDER_TEMPLATES_SUBMENU" description="COM_COMPONENTBUILDER_TEMPLATES_SUBMENU_DESC" />
|
<action name="template.submenu" title="COM_COMPONENTBUILDER_TEMPLATES_SUBMENU" description="COM_COMPONENTBUILDER_TEMPLATES_SUBMENU_DESC" />
|
||||||
</section>
|
</section>
|
||||||
|
<section name="joomla_component">
|
||||||
|
<action name="joomla_component.edit.add_license" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_LICENSE" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_LICENSE_DESC" />
|
||||||
|
<action name="joomla_component.edit.license_type" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_TYPE" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_TYPE_DESC" />
|
||||||
|
<action name="joomla_component.version" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_VERSION_DESC" />
|
||||||
|
</section>
|
||||||
<section name="admin_view">
|
<section name="admin_view">
|
||||||
<action name="core.edit" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_DESC" />
|
<action name="core.edit" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_DESC" />
|
||||||
<action name="core.edit.state" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_STATE" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_STATE_DESC" />
|
<action name="core.edit.state" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_STATE" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_STATE_DESC" />
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage admin.css
|
@subpackage admin.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 95 of this MVC
|
@version @update number 99 of this MVC
|
||||||
@build 3rd February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage admin_view.css
|
@subpackage admin_view.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 95 of this MVC
|
@version @update number 99 of this MVC
|
||||||
@build 3rd February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage admin_views.css
|
@subpackage admin_views.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 17 of this MVC
|
@version @update number 26 of this MVC
|
||||||
@build 13th February, 2017
|
@build 28th February, 2017
|
||||||
@created 1st February, 2017
|
@created 1st February, 2017
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage compiler.css
|
@subpackage compiler.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 22 of this MVC
|
@version @update number 22 of this MVC
|
||||||
@build 3rd February, 2017
|
@build 1st March, 2017
|
||||||
@created 13th August, 2015
|
@created 13th August, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_admin_view.css
|
@subpackage custom_admin_view.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 22 of this MVC
|
@version @update number 22 of this MVC
|
||||||
@build 3rd February, 2017
|
@build 1st March, 2017
|
||||||
@created 13th August, 2015
|
@created 13th August, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_admin_views.css
|
@subpackage custom_admin_views.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 55 of this MVC
|
@version @update number 81 of this MVC
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 11th October, 2016
|
@created 11th October, 2016
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_code.css
|
@subpackage custom_code.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 55 of this MVC
|
@version @update number 81 of this MVC
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 11th October, 2016
|
@created 11th October, 2016
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_codes.css
|
@subpackage custom_codes.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage dashboard.css
|
@subpackage dashboard.css
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 81 of this MVC
|
@version @update number 96 of this MVC
|
||||||
@build 13th February, 2017
|
@build 17th February, 2017
|
||||||
@created 6th May, 2015
|
@created 6th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage component.css
|
@subpackage joomla_component.css
|
||||||
@author Llewellyn van der Merwe <http://vdm.bz/component-builder>
|
@author Llewellyn van der Merwe <http://vdm.bz/component-builder>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@ -9,11 +9,11 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 81 of this MVC
|
@version @update number 96 of this MVC
|
||||||
@build 13th February, 2017
|
@build 17th February, 2017
|
||||||
@created 6th May, 2015
|
@created 6th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage components.css
|
@subpackage joomla_components.css
|
||||||
@author Llewellyn van der Merwe <http://vdm.bz/component-builder>
|
@author Llewellyn van der Merwe <http://vdm.bz/component-builder>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 67 of this MVC
|
@version @update number 67 of this MVC
|
||||||
@build 11th February, 2017
|
@build 22nd February, 2017
|
||||||
@created 18th May, 2015
|
@created 18th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage layout.css
|
@subpackage layout.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 67 of this MVC
|
@version @update number 67 of this MVC
|
||||||
@build 11th February, 2017
|
@build 22nd February, 2017
|
||||||
@created 18th May, 2015
|
@created 18th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage layouts.css
|
@subpackage layouts.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 48 of this MVC
|
@version @update number 48 of this MVC
|
||||||
@build 3rd February, 2017
|
@build 1st March, 2017
|
||||||
@created 29th May, 2015
|
@created 29th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage site_view.css
|
@subpackage site_view.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 48 of this MVC
|
@version @update number 48 of this MVC
|
||||||
@build 3rd February, 2017
|
@build 1st March, 2017
|
||||||
@created 29th May, 2015
|
@created 29th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage site_views.css
|
@subpackage site_views.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 40 of this MVC
|
@version @update number 40 of this MVC
|
||||||
@build 3rd February, 2017
|
@build 22nd February, 2017
|
||||||
@created 26th May, 2015
|
@created 26th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage template.css
|
@subpackage template.css
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 40 of this MVC
|
@version @update number 40 of this MVC
|
||||||
@build 3rd February, 2017
|
@build 22nd February, 2017
|
||||||
@created 26th May, 2015
|
@created 26th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage templates.css
|
@subpackage templates.css
|
||||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
@ -681,10 +681,13 @@ abstract class ###Component###Helper
|
|||||||
return $string;
|
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 millions)
|
if ($replaceNumbers === true)
|
||||||
$string = self::replaceNumbers($string);
|
{
|
||||||
|
// 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
|
// 0nly continue if we have a string
|
||||||
if (self::checkString($string))
|
if (self::checkString($string))
|
||||||
{
|
{
|
||||||
|
@ -673,10 +673,13 @@ abstract class ###Component###Helper
|
|||||||
return $string;
|
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 millions)
|
if ($replaceNumbers === true)
|
||||||
$string = self::replaceNumbers($string);
|
{
|
||||||
|
// 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
|
// 0nly continue if we have a string
|
||||||
if (self::checkString($string))
|
if (self::checkString($string))
|
||||||
{
|
{
|
||||||
|
@ -47,5 +47,5 @@ class ###Component###Controller###Views### extends JControllerAdmin
|
|||||||
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
|
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
|
||||||
|
|
||||||
return $model;
|
return $model;
|
||||||
}###CONTROLLEREXIMPORTMETHOD### ###CUSTOM_ADMIN_DYNAMIC_BUTTONS_CONTROLLER###
|
}###CONTROLLEREXIMPORTMETHOD### ###CUSTOM_ADMIN_DYNAMIC_BUTTONS_CONTROLLER### ###ADMIN_CUSTOM_BUTTONS_CONTROLLER_LIST###
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ class ###Component###Model###Views### extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}###ADMIN_CUSTOM_BUTTONS_METHOD_LIST###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
|
@ -52,7 +52,8 @@ class ###Component###ViewImport extends JViewLegacy
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for errors.
|
// Check for errors.
|
||||||
if (count($errors = $this->get('Errors'))){
|
if (count($errors = $this->get('Errors')))
|
||||||
|
{
|
||||||
JError::raiseError(500, implode('<br />', $errors));
|
JError::raiseError(500, implode('<br />', $errors));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -132,7 +132,7 @@ class ###Component###View###Views### extends JViewLegacy
|
|||||||
// add the button to the page
|
// add the button to the page
|
||||||
$dhtml = $layout->render(array('title' => $title));
|
$dhtml = $layout->render(array('title' => $title));
|
||||||
$bar->appendButton('Custom', $dhtml, 'batch');
|
$bar->appendButton('Custom', $dhtml, 'batch');
|
||||||
}###CUSTOM_ADMIN_DYNAMIC_BUTTONS###
|
}###CUSTOM_ADMIN_DYNAMIC_BUTTONS### ###ADMIN_CUSTOM_BUTTONS_LIST###
|
||||||
|
|
||||||
if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete))
|
if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete))
|
||||||
{
|
{
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage componentbuilder.php
|
@subpackage componentbuilder.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage controller.php
|
@subpackage controller.php
|
||||||
@ -88,7 +88,7 @@ class ComponentbuilderController extends JControllerLegacy
|
|||||||
if (ComponentbuilderHelper::checkString($view))
|
if (ComponentbuilderHelper::checkString($view))
|
||||||
{
|
{
|
||||||
$views = array(
|
$views = array(
|
||||||
'component' => 'components',
|
'joomla_component' => 'joomla_components',
|
||||||
'admin_view' => 'admin_views',
|
'admin_view' => 'admin_views',
|
||||||
'custom_admin_view' => 'custom_admin_views',
|
'custom_admin_view' => 'custom_admin_views',
|
||||||
'site_view' => 'site_views',
|
'site_view' => 'site_views',
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 95 of this MVC
|
@version @update number 99 of this MVC
|
||||||
@build 3rd February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage admin_view.php
|
@subpackage admin_view.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 95 of this MVC
|
@version @update number 99 of this MVC
|
||||||
@build 3rd February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage admin_views.php
|
@subpackage admin_views.php
|
||||||
@ -107,5 +107,5 @@ class ComponentbuilderControllerAdmin_views extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=admin_views', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=admin_views', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage ajax.json.php
|
@subpackage ajax.json.php
|
||||||
@ -44,6 +44,7 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
|
|||||||
// load the tasks
|
// load the tasks
|
||||||
$this->registerTask('isNew', 'ajax');
|
$this->registerTask('isNew', 'ajax');
|
||||||
$this->registerTask('isRead', 'ajax');
|
$this->registerTask('isRead', 'ajax');
|
||||||
|
$this->registerTask('getComponentDetails', 'ajax');
|
||||||
$this->registerTask('tableColumns', 'ajax');
|
$this->registerTask('tableColumns', 'ajax');
|
||||||
$this->registerTask('fieldSelectOptions', 'ajax');
|
$this->registerTask('fieldSelectOptions', 'ajax');
|
||||||
$this->registerTask('getImportScripts', 'ajax');
|
$this->registerTask('getImportScripts', 'ajax');
|
||||||
@ -147,6 +148,44 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'getComponentDetails':
|
||||||
|
try
|
||||||
|
{
|
||||||
|
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
|
||||||
|
$idValue = $jinput->get('id', NULL, 'INT');
|
||||||
|
if($idValue && $user->id != 0)
|
||||||
|
{
|
||||||
|
$result = $this->getModel('ajax')->getComponentDetails($idValue);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$result = false;
|
||||||
|
}
|
||||||
|
if($callback = $jinput->get('callback', null, 'CMD'))
|
||||||
|
{
|
||||||
|
echo $callback . "(".json_encode($result).");";
|
||||||
|
}
|
||||||
|
elseif($returnRaw)
|
||||||
|
{
|
||||||
|
echo json_encode($result);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo "(".json_encode($result).");";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(Exception $e)
|
||||||
|
{
|
||||||
|
if($callback = $jinput->get('callback', null, 'CMD'))
|
||||||
|
{
|
||||||
|
echo $callback."(".json_encode($e).");";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo "(".json_encode($e).");";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'tableColumns':
|
case 'tableColumns':
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -577,9 +616,10 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
|
|||||||
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
|
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
|
||||||
$functioNameValue = $jinput->get('functioName', NULL, 'WORD');
|
$functioNameValue = $jinput->get('functioName', NULL, 'WORD');
|
||||||
$idValue = $jinput->get('id', NULL, 'INT');
|
$idValue = $jinput->get('id', NULL, 'INT');
|
||||||
if($functioNameValue && $idValue && $user->id != 0)
|
$targetValue = $jinput->get('target', NULL, 'WORD');
|
||||||
|
if($functioNameValue && $idValue && $targetValue && $user->id != 0)
|
||||||
{
|
{
|
||||||
$result = $this->getModel('ajax')->usedin($functioNameValue, $idValue);
|
$result = $this->getModel('ajax')->usedin($functioNameValue, $idValue, $targetValue);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 17 of this MVC
|
@version @update number 26 of this MVC
|
||||||
@build 13th February, 2017
|
@build 28th February, 2017
|
||||||
@created 1st February, 2017
|
@created 1st February, 2017
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage compiler.php
|
@subpackage compiler.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage componentbuilder.php
|
@subpackage componentbuilder.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 22 of this MVC
|
@version @update number 22 of this MVC
|
||||||
@build 3rd February, 2017
|
@build 1st March, 2017
|
||||||
@created 13th August, 2015
|
@created 13th August, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_admin_view.php
|
@subpackage custom_admin_view.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 22 of this MVC
|
@version @update number 22 of this MVC
|
||||||
@build 3rd February, 2017
|
@build 1st March, 2017
|
||||||
@created 13th August, 2015
|
@created 13th August, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_admin_views.php
|
@subpackage custom_admin_views.php
|
||||||
@ -107,5 +107,5 @@ class ComponentbuilderControllerCustom_admin_views extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=custom_admin_views', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=custom_admin_views', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 55 of this MVC
|
@version @update number 81 of this MVC
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 11th October, 2016
|
@created 11th October, 2016
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_code.php
|
@subpackage custom_code.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 55 of this MVC
|
@version @update number 81 of this MVC
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 11th October, 2016
|
@created 11th October, 2016
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_codes.php
|
@subpackage custom_codes.php
|
||||||
@ -107,5 +107,5 @@ class ComponentbuilderControllerCustom_codes extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=custom_codes', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=custom_codes', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -107,5 +107,5 @@ class ComponentbuilderControllerDynamic_gets extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=dynamic_gets', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=dynamic_gets', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -107,5 +107,5 @@ class ComponentbuilderControllerFields extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=fields', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=fields', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -107,5 +107,5 @@ class ComponentbuilderControllerFieldtypes extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=fieldtypes', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=fieldtypes', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage help.php
|
@subpackage help.php
|
||||||
|
@ -107,5 +107,5 @@ class ComponentbuilderControllerHelp_documents extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=help_documents', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=help_documents', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage import.php
|
@subpackage import.php
|
||||||
|
@ -10,11 +10,11 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 81 of this MVC
|
@version @update number 96 of this MVC
|
||||||
@build 13th February, 2017
|
@build 17th February, 2017
|
||||||
@created 6th May, 2015
|
@created 6th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage component.php
|
@subpackage joomla_component.php
|
||||||
@author Llewellyn van der Merwe <http://vdm.bz/component-builder>
|
@author Llewellyn van der Merwe <http://vdm.bz/component-builder>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
@ -30,9 +30,9 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
jimport('joomla.application.component.controllerform');
|
jimport('joomla.application.component.controllerform');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Component Controller
|
* Joomla_component Controller
|
||||||
*/
|
*/
|
||||||
class ComponentbuilderControllerComponent extends JControllerForm
|
class ComponentbuilderControllerJoomla_component extends JControllerForm
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Current or most recently performed task.
|
* Current or most recently performed task.
|
||||||
@ -45,7 +45,7 @@ class ComponentbuilderControllerComponent extends JControllerForm
|
|||||||
|
|
||||||
public function __construct($config = array())
|
public function __construct($config = array())
|
||||||
{
|
{
|
||||||
$this->view_list = 'Components'; // safeguard for setting the return view listing to the main view.
|
$this->view_list = 'Joomla_components'; // safeguard for setting the return view listing to the main view.
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,7 +59,14 @@ class ComponentbuilderControllerComponent extends JControllerForm
|
|||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
protected function allowAdd($data = array())
|
protected function allowAdd($data = array())
|
||||||
{ // In the absense of better information, revert to the component permissions.
|
{
|
||||||
|
// Access check.
|
||||||
|
$access = JFactory::getUser()->authorise('joomla_component.access', 'com_componentbuilder');
|
||||||
|
if (!$access)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// In the absense of better information, revert to the component permissions.
|
||||||
return parent::allowAdd($data);
|
return parent::allowAdd($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,10 +91,10 @@ class ComponentbuilderControllerComponent extends JControllerForm
|
|||||||
if ($recordId)
|
if ($recordId)
|
||||||
{
|
{
|
||||||
// The record has been set. Check the record permissions.
|
// The record has been set. Check the record permissions.
|
||||||
$permission = $user->authorise('core.edit', 'com_componentbuilder.component.' . (int) $recordId);
|
$permission = $user->authorise('core.edit', 'com_componentbuilder.joomla_component.' . (int) $recordId);
|
||||||
if (!$permission)
|
if (!$permission)
|
||||||
{
|
{
|
||||||
if ($user->authorise('core.edit.own', 'com_componentbuilder.component.' . $recordId))
|
if ($user->authorise('core.edit.own', 'com_componentbuilder.joomla_component.' . $recordId))
|
||||||
{
|
{
|
||||||
// Now test the owner is the user.
|
// Now test the owner is the user.
|
||||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||||
@ -182,10 +189,10 @@ class ComponentbuilderControllerComponent extends JControllerForm
|
|||||||
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
|
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
|
||||||
|
|
||||||
// Set the model
|
// Set the model
|
||||||
$model = $this->getModel('Component', '', array());
|
$model = $this->getModel('Joomla_component', '', array());
|
||||||
|
|
||||||
// Preset the redirect
|
// Preset the redirect
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=components' . $this->getRedirectToListAppend(), false));
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_components' . $this->getRedirectToListAppend(), false));
|
||||||
|
|
||||||
return parent::batch($model);
|
return parent::batch($model);
|
||||||
}
|
}
|
@ -10,11 +10,11 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 81 of this MVC
|
@version @update number 96 of this MVC
|
||||||
@build 13th February, 2017
|
@build 17th February, 2017
|
||||||
@created 6th May, 2015
|
@created 6th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage components.php
|
@subpackage joomla_components.php
|
||||||
@author Llewellyn van der Merwe <http://vdm.bz/component-builder>
|
@author Llewellyn van der Merwe <http://vdm.bz/component-builder>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
@ -30,16 +30,16 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
jimport('joomla.application.component.controlleradmin');
|
jimport('joomla.application.component.controlleradmin');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Components Controller
|
* Joomla_components Controller
|
||||||
*/
|
*/
|
||||||
class ComponentbuilderControllerComponents extends JControllerAdmin
|
class ComponentbuilderControllerJoomla_components extends JControllerAdmin
|
||||||
{
|
{
|
||||||
protected $text_prefix = 'COM_COMPONENTBUILDER_COMPONENTS';
|
protected $text_prefix = 'COM_COMPONENTBUILDER_JOOMLA_COMPONENTS';
|
||||||
/**
|
/**
|
||||||
* Proxy for getModel.
|
* Proxy for getModel.
|
||||||
* @since 2.5
|
* @since 2.5
|
||||||
*/
|
*/
|
||||||
public function getModel($name = 'Component', $prefix = 'ComponentbuilderModel', $config = array())
|
public function getModel($name = 'Joomla_component', $prefix = 'ComponentbuilderModel', $config = array())
|
||||||
{
|
{
|
||||||
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
|
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ class ComponentbuilderControllerComponents extends JControllerAdmin
|
|||||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||||
// check if export is allowed for this user.
|
// check if export is allowed for this user.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
if ($user->authorise('component.export', 'com_componentbuilder') && $user->authorise('core.export', 'com_componentbuilder'))
|
if ($user->authorise('joomla_component.export', 'com_componentbuilder') && $user->authorise('core.export', 'com_componentbuilder'))
|
||||||
{
|
{
|
||||||
// Get the input
|
// Get the input
|
||||||
$input = JFactory::getApplication()->input;
|
$input = JFactory::getApplication()->input;
|
||||||
@ -60,19 +60,19 @@ class ComponentbuilderControllerComponents extends JControllerAdmin
|
|||||||
// Sanitize the input
|
// Sanitize the input
|
||||||
JArrayHelper::toInteger($pks);
|
JArrayHelper::toInteger($pks);
|
||||||
// Get the model
|
// Get the model
|
||||||
$model = $this->getModel('Components');
|
$model = $this->getModel('Joomla_components');
|
||||||
// get the data to export
|
// get the data to export
|
||||||
$data = $model->getExportData($pks);
|
$data = $model->getExportData($pks);
|
||||||
if (ComponentbuilderHelper::checkArray($data))
|
if (ComponentbuilderHelper::checkArray($data))
|
||||||
{
|
{
|
||||||
// now set the data to the spreadsheet
|
// now set the data to the spreadsheet
|
||||||
$date = JFactory::getDate();
|
$date = JFactory::getDate();
|
||||||
ComponentbuilderHelper::xls($data,'Components_'.$date->format('jS_F_Y'),'Components exported ('.$date->format('jS F, Y').')','components');
|
ComponentbuilderHelper::xls($data,'Joomla_components_'.$date->format('jS_F_Y'),'Joomla components exported ('.$date->format('jS F, Y').')','joomla components');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Redirect to the list screen with error.
|
// Redirect to the list screen with error.
|
||||||
$message = JText::_('COM_COMPONENTBUILDER_EXPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_EXPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=components', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_components', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,10 +83,10 @@ class ComponentbuilderControllerComponents extends JControllerAdmin
|
|||||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||||
// check if import is allowed for this user.
|
// check if import is allowed for this user.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
if ($user->authorise('component.import', 'com_componentbuilder') && $user->authorise('core.import', 'com_componentbuilder'))
|
if ($user->authorise('joomla_component.import', 'com_componentbuilder') && $user->authorise('core.import', 'com_componentbuilder'))
|
||||||
{
|
{
|
||||||
// Get the import model
|
// Get the import model
|
||||||
$model = $this->getModel('Components');
|
$model = $this->getModel('Joomla_components');
|
||||||
// get the headers to import
|
// get the headers to import
|
||||||
$headers = $model->getExImPortHeaders();
|
$headers = $model->getExImPortHeaders();
|
||||||
if (ComponentbuilderHelper::checkObject($headers))
|
if (ComponentbuilderHelper::checkObject($headers))
|
||||||
@ -94,18 +94,18 @@ class ComponentbuilderControllerComponents extends JControllerAdmin
|
|||||||
// Load headers to session.
|
// Load headers to session.
|
||||||
$session = JFactory::getSession();
|
$session = JFactory::getSession();
|
||||||
$headers = json_encode($headers);
|
$headers = json_encode($headers);
|
||||||
$session->set('component_VDM_IMPORTHEADERS', $headers);
|
$session->set('joomla_component_VDM_IMPORTHEADERS', $headers);
|
||||||
$session->set('backto_VDM_IMPORT', 'components');
|
$session->set('backto_VDM_IMPORT', 'joomla_components');
|
||||||
$session->set('dataType_VDM_IMPORTINTO', 'component');
|
$session->set('dataType_VDM_IMPORTINTO', 'joomla_component');
|
||||||
// Redirect to import view.
|
// Redirect to import view.
|
||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_COMPONENTS');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_JOOMLA_COMPONENTS');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=import', false), $message);
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=import', false), $message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Redirect to the list screen with error.
|
// Redirect to the list screen with error.
|
||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=components', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_components', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 67 of this MVC
|
@version @update number 67 of this MVC
|
||||||
@build 11th February, 2017
|
@build 22nd February, 2017
|
||||||
@created 18th May, 2015
|
@created 18th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage layout.php
|
@subpackage layout.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 67 of this MVC
|
@version @update number 67 of this MVC
|
||||||
@build 11th February, 2017
|
@build 22nd February, 2017
|
||||||
@created 18th May, 2015
|
@created 18th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage layouts.php
|
@subpackage layouts.php
|
||||||
@ -107,5 +107,5 @@ class ComponentbuilderControllerLayouts extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=layouts', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=layouts', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 48 of this MVC
|
@version @update number 48 of this MVC
|
||||||
@build 3rd February, 2017
|
@build 1st March, 2017
|
||||||
@created 29th May, 2015
|
@created 29th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage site_view.php
|
@subpackage site_view.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 48 of this MVC
|
@version @update number 48 of this MVC
|
||||||
@build 3rd February, 2017
|
@build 1st March, 2017
|
||||||
@created 29th May, 2015
|
@created 29th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage site_views.php
|
@subpackage site_views.php
|
||||||
@ -107,5 +107,5 @@ class ComponentbuilderControllerSite_views extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=site_views', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=site_views', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -107,5 +107,5 @@ class ComponentbuilderControllerSnippets extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=snippets', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=snippets', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 40 of this MVC
|
@version @update number 40 of this MVC
|
||||||
@build 3rd February, 2017
|
@build 22nd February, 2017
|
||||||
@created 26th May, 2015
|
@created 26th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage template.php
|
@subpackage template.php
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 40 of this MVC
|
@version @update number 40 of this MVC
|
||||||
@build 3rd February, 2017
|
@build 22nd February, 2017
|
||||||
@created 26th May, 2015
|
@created 26th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage templates.php
|
@subpackage templates.php
|
||||||
@ -107,5 +107,5 @@ class ComponentbuilderControllerTemplates extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=templates', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=templates', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -52,6 +52,13 @@ class Get
|
|||||||
*/
|
*/
|
||||||
public $compilerPath;
|
public $compilerPath;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Switch to add custom code placeholders
|
||||||
|
*
|
||||||
|
* @var bool
|
||||||
|
*/
|
||||||
|
public $addPlaceholders = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Component data
|
* The Component data
|
||||||
*
|
*
|
||||||
@ -450,17 +457,17 @@ class Get
|
|||||||
// set the component ID
|
// set the component ID
|
||||||
$this->componentID = (int) $config['componentId'];
|
$this->componentID = (int) $config['componentId'];
|
||||||
// set this components code name
|
// set this components code name
|
||||||
if ($name_code = ComponentbuilderHelper::getVar('component', $this->componentID, 'id', 'name_code'))
|
if ($name_code = ComponentbuilderHelper::getVar('joomla_component', $this->componentID, 'id', 'name_code'))
|
||||||
{
|
{
|
||||||
// set lang prefix
|
// set lang prefix
|
||||||
$this->langPrefix .= ComponentbuilderHelper::safeString($name_code,'U');
|
$this->langPrefix .= ComponentbuilderHelper::safeString($name_code,'U');
|
||||||
// set component code name
|
// set component code name
|
||||||
$this->componentCodeName = ComponentbuilderHelper::safeString($name_code);
|
$this->componentCodeName = ComponentbuilderHelper::safeString($name_code);
|
||||||
// set if placeholders should be added to customcode
|
// set if placeholders should be added to customcode
|
||||||
$global = ((int) ComponentbuilderHelper::getVar('component', $this->componentID, 'id', 'add_placeholders') == 1) ? true:false;
|
$global = ((int) ComponentbuilderHelper::getVar('joomla_component', $this->componentID, 'id', 'add_placeholders') == 1) ? true:false;
|
||||||
$this->addPlaceholders = ((int) $config['addPlaceholders'] == 0) ? false : (((int) $config['addPlaceholders'] == 1) ? true : $global);
|
$this->addPlaceholders = ((int) $config['addPlaceholders'] == 0) ? false : (((int) $config['addPlaceholders'] == 1) ? true : $global);
|
||||||
// set if line numbers should be added to comments
|
// set if line numbers should be added to comments
|
||||||
$global = ((int) ComponentbuilderHelper::getVar('component', $this->componentID, 'id', 'debug_linenr') == 1) ? true:false;
|
$global = ((int) ComponentbuilderHelper::getVar('joomla_component', $this->componentID, 'id', 'debug_linenr') == 1) ? true:false;
|
||||||
$this->loadLineNr = ((int) $config['debugLinenr'] == 0) ? false : (((int) $config['debugLinenr'] == 1) ? true : $global);
|
$this->loadLineNr = ((int) $config['debugLinenr'] == 0) ? false : (((int) $config['debugLinenr'] == 1) ? true : $global);
|
||||||
// set the current user
|
// set the current user
|
||||||
$this->user = JFactory::getUser();
|
$this->user = JFactory::getUser();
|
||||||
@ -514,7 +521,7 @@ class Get
|
|||||||
$query = $this->db->getQuery(true);
|
$query = $this->db->getQuery(true);
|
||||||
|
|
||||||
$query->select('a.*');
|
$query->select('a.*');
|
||||||
$query->from('#__componentbuilder_component AS a');
|
$query->from('#__componentbuilder_joomla_component AS a');
|
||||||
$query->where($this->db->quoteName('a.id') . ' = '. (int) $this->componentID);
|
$query->where($this->db->quoteName('a.id') . ' = '. (int) $this->componentID);
|
||||||
|
|
||||||
// Reset the query using our newly populated query object.
|
// Reset the query using our newly populated query object.
|
||||||
@ -685,7 +692,7 @@ class Get
|
|||||||
// load the view and field data
|
// load the view and field data
|
||||||
foreach ($component->site_views as $key => &$view)
|
foreach ($component->site_views as $key => &$view)
|
||||||
{
|
{
|
||||||
// TODO this is a temp fix until front view is added
|
// has become a lacacy issue, can't remove this
|
||||||
$view['view'] = $view['siteview'];
|
$view['view'] = $view['siteview'];
|
||||||
$view['settings'] = $this->getCustomViewData($view['view']);
|
$view['settings'] = $this->getCustomViewData($view['view']);
|
||||||
}
|
}
|
||||||
@ -715,7 +722,7 @@ class Get
|
|||||||
// load the view and field data
|
// load the view and field data
|
||||||
foreach ($component->custom_admin_views as $key => &$view)
|
foreach ($component->custom_admin_views as $key => &$view)
|
||||||
{
|
{
|
||||||
// TODO this is a temp fix until front view is added
|
// has become a lacacy issue, can't remove this
|
||||||
$view['view'] = $view['customadminview'];
|
$view['view'] = $view['customadminview'];
|
||||||
$view['settings'] = $this->getCustomViewData($view['view'], 'custom_admin_view');
|
$view['settings'] = $this->getCustomViewData($view['view'], 'custom_admin_view');
|
||||||
}
|
}
|
||||||
@ -1222,8 +1229,7 @@ class Get
|
|||||||
$this->customScriptBuilder[$scripter_target][$name_single] = '';
|
$this->customScriptBuilder[$scripter_target][$name_single] = '';
|
||||||
}
|
}
|
||||||
$this->customScriptBuilder[$scripter_target][$name_single] .= $view->$scripter;
|
$this->customScriptBuilder[$scripter_target][$name_single] .= $view->$scripter;
|
||||||
if (strpos($view->$scripter,"token") !== false || strpos($view->$scripter,"task=ajax") !== false ||
|
if (strpos($view->$scripter,"token") !== false || strpos($view->$scripter,"task=ajax") !== false)
|
||||||
strpos($this->$scripter,"[CUSTOM"."CODE=") !== false) // <-- since it could have ajax in it, and we can know for sure at this point
|
|
||||||
{
|
{
|
||||||
if (!$this->customScriptBuilder['token'][$name_single])
|
if (!$this->customScriptBuilder['token'][$name_single])
|
||||||
{
|
{
|
||||||
@ -1260,14 +1266,24 @@ class Get
|
|||||||
// add the custom buttons
|
// add the custom buttons
|
||||||
if (isset($view->add_custom_button) && $view->add_custom_button == 1)
|
if (isset($view->add_custom_button) && $view->add_custom_button == 1)
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkString($view->php_model) && $view->php_mode !== '//')
|
// set for the edit views
|
||||||
|
if (ComponentbuilderHelper::checkString($view->php_model))
|
||||||
{
|
{
|
||||||
$view->php_model = $this->setDynamicValues(base64_decode($view->php_model));
|
$view->php_model = $this->setDynamicValues(base64_decode($view->php_model));
|
||||||
}
|
}
|
||||||
if (ComponentbuilderHelper::checkString($view->php_controller) && trim($view->php_controller) !== '//')
|
if (ComponentbuilderHelper::checkString($view->php_controller))
|
||||||
{
|
{
|
||||||
$view->php_controller = $this->setDynamicValues(base64_decode($view->php_controller));
|
$view->php_controller = $this->setDynamicValues(base64_decode($view->php_controller));
|
||||||
}
|
}
|
||||||
|
// set for the list views
|
||||||
|
if (isset($view->php_model_list) && ComponentbuilderHelper::checkString($view->php_model_list))
|
||||||
|
{
|
||||||
|
$view->php_model_list = $this->setDynamicValues(base64_decode($view->php_model_list));
|
||||||
|
}
|
||||||
|
if (isset($view->php_controller_list) && ComponentbuilderHelper::checkString($view->php_controller_list))
|
||||||
|
{
|
||||||
|
$view->php_controller_list = $this->setDynamicValues(base64_decode($view->php_controller_list));
|
||||||
|
}
|
||||||
// set the button array
|
// set the button array
|
||||||
$buttons = json_decode($view->custom_button,true);
|
$buttons = json_decode($view->custom_button,true);
|
||||||
unset($view->custom_button);
|
unset($view->custom_button);
|
||||||
@ -1485,6 +1501,18 @@ class Get
|
|||||||
$this->getModule[$this->target][$view->code] = true;
|
$this->getModule[$this->target][$view->code] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// (TODO) we may want to automate this .... lets see if someone asks
|
||||||
|
// if (strpos($view->$scripter,"token") !== false || strpos($view->$scripter,"task=ajax") !== false)
|
||||||
|
// {
|
||||||
|
// if(!isset($this->customScriptBuilder['token']))
|
||||||
|
// {
|
||||||
|
// $this->customScriptBuilder['token'] = array();
|
||||||
|
// }
|
||||||
|
// if (!isset($this->customScriptBuilder['token'][$this->target.$view->code]) || !$this->customScriptBuilder['token'][$this->target.$view->code])
|
||||||
|
// {
|
||||||
|
// $this->customScriptBuilder['token'][$this->target.$view->code] = true;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// add_Ajax for this view
|
// add_Ajax for this view
|
||||||
@ -1578,7 +1606,7 @@ class Get
|
|||||||
$field->type = $field->fieldtype;
|
$field->type = $field->fieldtype;
|
||||||
|
|
||||||
// load the values form params
|
// load the values form params
|
||||||
$field->xml = json_decode($field->xml);
|
$field->xml = $this->setDynamicValues(json_decode($field->xml));
|
||||||
|
|
||||||
// load the type values form type params
|
// load the type values form type params
|
||||||
$properties = json_decode($field->type_properties,true);
|
$properties = json_decode($field->type_properties,true);
|
||||||
@ -1636,8 +1664,7 @@ class Get
|
|||||||
}
|
}
|
||||||
$this->customScriptBuilder['view_footer'][$name_single] .= PHP_EOL.$this->_fieldData[$id]->javascript_view_footer;
|
$this->customScriptBuilder['view_footer'][$name_single] .= PHP_EOL.$this->_fieldData[$id]->javascript_view_footer;
|
||||||
if ( strpos($this->_fieldData[$id]->javascript_view_footer,"token") !== false ||
|
if ( strpos($this->_fieldData[$id]->javascript_view_footer,"token") !== false ||
|
||||||
strpos($this->_fieldData[$id]->javascript_view_footer,"task=ajax") !== false ||
|
strpos($this->_fieldData[$id]->javascript_view_footer,"task=ajax") !== false)
|
||||||
strpos($this->_fieldData[$id]->javascript_view_footer,"[CUSTOM"."CODE=") !== false) // <-- since it could have ajax in it, and we can know for sure at this point
|
|
||||||
{
|
{
|
||||||
if(!isset($this->customScriptBuilder['token']))
|
if(!isset($this->customScriptBuilder['token']))
|
||||||
{
|
{
|
||||||
@ -1695,8 +1722,7 @@ class Get
|
|||||||
}
|
}
|
||||||
$this->customScriptBuilder['views_footer'][$name_list] .= $this->_fieldData[$id]->javascript_views_footer;
|
$this->customScriptBuilder['views_footer'][$name_list] .= $this->_fieldData[$id]->javascript_views_footer;
|
||||||
if ( strpos($this->_fieldData[$id]->javascript_views_footer,"token") !== false ||
|
if ( strpos($this->_fieldData[$id]->javascript_views_footer,"token") !== false ||
|
||||||
strpos($this->_fieldData[$id]->javascript_views_footer,"task=ajax") !== false ||
|
strpos($this->_fieldData[$id]->javascript_views_footer,"task=ajax") !== false)
|
||||||
strpos($this->_fieldData[$id]->javascript_views_footer,"[CUSTOM"."CODE=") !== false) // <-- since it could have ajax in it, and we can know for sure at this point
|
|
||||||
{
|
{
|
||||||
if(!isset($this->customScriptBuilder['token']))
|
if(!isset($this->customScriptBuilder['token']))
|
||||||
{
|
{
|
||||||
@ -3107,7 +3133,9 @@ class Get
|
|||||||
{
|
{
|
||||||
// we must first store the current woking directory
|
// we must first store the current woking directory
|
||||||
$joomla = getcwd();
|
$joomla = getcwd();
|
||||||
$counter = array(1 => 0, 2 => 0);
|
$counter = array(1 => 0, 2 => 0);
|
||||||
|
// file types to get
|
||||||
|
$fileTypes = array('\.php', '\.js');
|
||||||
// set some local placeholders
|
// set some local placeholders
|
||||||
$placeholders = array();
|
$placeholders = array();
|
||||||
$placeholders[ComponentbuilderHelper::safeString($this->componentCodeName, 'F').'Helper::'] = '[[[Component]]]Helper::';
|
$placeholders[ComponentbuilderHelper::safeString($this->componentCodeName, 'F').'Helper::'] = '[[[Component]]]Helper::';
|
||||||
@ -3117,20 +3145,23 @@ class Get
|
|||||||
{
|
{
|
||||||
// we are changing the working directory to the componet path
|
// we are changing the working directory to the componet path
|
||||||
chdir($path);
|
chdir($path);
|
||||||
// get a list of files in the current directory tree (only PHP for now)
|
foreach ($fileTypes as $type)
|
||||||
$files = JFolder::files('.', '\.php', true, true);
|
|
||||||
foreach ($files as $file)
|
|
||||||
{
|
{
|
||||||
$this->searchFileContent($counter, $file, $target, $this->customCodePlaceholders, $placeholders, $today);
|
// get a list of files in the current directory tree (only PHP and JS for now)
|
||||||
// insert new code
|
$files = JFolder::files('.', $type, true, true);
|
||||||
if (ComponentbuilderHelper::checkArray($this->newCustomCode))
|
foreach ($files as $file)
|
||||||
{
|
{
|
||||||
$this->setNewCustomCode(100);
|
$this->searchFileContent($counter, $file, $target, $this->customCodePlaceholders, $placeholders, $today);
|
||||||
}
|
// insert new code
|
||||||
// update existing custom code
|
if (ComponentbuilderHelper::checkArray($this->newCustomCode))
|
||||||
if (ComponentbuilderHelper::checkArray($this->existingCustomCode))
|
{
|
||||||
{
|
$this->setNewCustomCode(100);
|
||||||
$this->setExistingCustomCode(30);
|
}
|
||||||
|
// update existing custom code
|
||||||
|
if (ComponentbuilderHelper::checkArray($this->existingCustomCode))
|
||||||
|
{
|
||||||
|
$this->setExistingCustomCode(30);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3241,7 +3272,7 @@ class Get
|
|||||||
$this->newCustomCode[$pointer[$targetKey]][] = $this->db->quote(0); // 'hashendtarget'
|
$this->newCustomCode[$pointer[$targetKey]][] = $this->db->quote(0); // 'hashendtarget'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// the record already exist so we must use module to update
|
// the record already exist so we must update instead
|
||||||
elseif ($i === 2)
|
elseif ($i === 2)
|
||||||
{
|
{
|
||||||
// end the bucket info for this code block
|
// end the bucket info for this code block
|
||||||
@ -3299,9 +3330,11 @@ class Get
|
|||||||
// check if the starting place holder was found
|
// check if the starting place holder was found
|
||||||
if($commentType > 0)
|
if($commentType > 0)
|
||||||
{
|
{
|
||||||
// if we have all on one line we have a problem
|
// if we have all on one line we have a problem (don't load it TODO)
|
||||||
if (strpos($lineContent, $endReplace) !== false)
|
if (strpos($lineContent, $endReplace) !== false)
|
||||||
{
|
{
|
||||||
|
// reset found comment type
|
||||||
|
$commentType = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// do a quick check to insure we have an id
|
// do a quick check to insure we have an id
|
||||||
@ -3315,6 +3348,8 @@ class Get
|
|||||||
// make sure we update it only once even if found again.
|
// make sure we update it only once even if found again.
|
||||||
if (isset($this->codeAreadyDone[$id]))
|
if (isset($this->codeAreadyDone[$id]))
|
||||||
{
|
{
|
||||||
|
// reset found comment type
|
||||||
|
$commentType = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// store the id to avoid duplication
|
// store the id to avoid duplication
|
||||||
|
@ -2728,20 +2728,33 @@ class Interpretation extends Fields
|
|||||||
|
|
||||||
public function setCustomButtons(&$view, $type = 1, $tab = '')
|
public function setCustomButtons(&$view, $type = 1, $tab = '')
|
||||||
{
|
{
|
||||||
if (1 == $type)
|
|
||||||
{
|
|
||||||
$viewName = $view['settings']->code;
|
|
||||||
}
|
|
||||||
if (2 == $type)
|
|
||||||
{
|
|
||||||
$viewName = ComponentbuilderHelper::safeString($view['settings']->name_single);
|
|
||||||
}
|
|
||||||
// ensure correct target is set
|
// ensure correct target is set
|
||||||
$TARGET = ComponentbuilderHelper::safeString($this->target,'U');
|
$TARGET = ComponentbuilderHelper::safeString($this->target,'U');
|
||||||
// set the custom buttons ###CUSTOM_BUTTONS_CONTROLLER###
|
if (1 == $type || 2 == $type)
|
||||||
$this->fileContentDynamic[$viewName]['###'.$TARGET.'_CUSTOM_BUTTONS_CONTROLLER###'] = '';
|
{
|
||||||
// set the custom buttons ###CUSTOM_BUTTONS_METHOD###
|
if (1 == $type)
|
||||||
$this->fileContentDynamic[$viewName]['###'.$TARGET.'_CUSTOM_BUTTONS_METHOD###'] = '';
|
{
|
||||||
|
$viewName = $view['settings']->code;
|
||||||
|
}
|
||||||
|
if (2 == $type)
|
||||||
|
{
|
||||||
|
$viewName = ComponentbuilderHelper::safeString($view['settings']->name_single);
|
||||||
|
}
|
||||||
|
// set the custom buttons ###CUSTOM_BUTTONS_CONTROLLER###
|
||||||
|
$this->fileContentDynamic[$viewName]['###'.$TARGET.'_CUSTOM_BUTTONS_CONTROLLER###'] = '';
|
||||||
|
// set the custom buttons ###CUSTOM_BUTTONS_METHOD###
|
||||||
|
$this->fileContentDynamic[$viewName]['###'.$TARGET.'_CUSTOM_BUTTONS_METHOD###'] = '';
|
||||||
|
}
|
||||||
|
elseif (3 == $type)
|
||||||
|
{
|
||||||
|
// set the names
|
||||||
|
$viewName = ComponentbuilderHelper::safeString($view['settings']->name_single);
|
||||||
|
$viewsName = ComponentbuilderHelper::safeString($view['settings']->name_list);
|
||||||
|
// set the custom buttons ###CUSTOM_BUTTONS_CONTROLLER_LIST###
|
||||||
|
$this->fileContentDynamic[$viewsName]['###'.$TARGET.'_CUSTOM_BUTTONS_CONTROLLER_LIST###'] = '';
|
||||||
|
// set the custom buttons ###CUSTOM_BUTTONS_METHOD_LIST###
|
||||||
|
$this->fileContentDynamic[$viewsName]['###'.$TARGET.'_CUSTOM_BUTTONS_METHOD_LIST###'] = '';
|
||||||
|
}
|
||||||
// if site add buttons to view
|
// if site add buttons to view
|
||||||
if ($this->target === 'site')
|
if ($this->target === 'site')
|
||||||
{
|
{
|
||||||
@ -2778,30 +2791,10 @@ class Interpretation extends Fields
|
|||||||
// check if custom button should be added
|
// check if custom button should be added
|
||||||
if (isset($view['settings']->add_custom_button) && $view['settings']->add_custom_button == 1)
|
if (isset($view['settings']->add_custom_button) && $view['settings']->add_custom_button == 1)
|
||||||
{
|
{
|
||||||
// insure the controller and model strings are added
|
$buttons = array();
|
||||||
if (ComponentbuilderHelper::checkString($view['settings']->php_controller) && $view['settings']->php_controller != '//')
|
$functionNames = array();
|
||||||
{
|
|
||||||
// set the custom buttons ###CUSTOM_BUTTONS_CONTROLLER###
|
|
||||||
$this->fileContentDynamic[$viewName]['###'.$TARGET.'_CUSTOM_BUTTONS_CONTROLLER###'] =
|
|
||||||
PHP_EOL.PHP_EOL.$this->setPlaceholders($view['settings']->php_controller, $this->placeholders);
|
|
||||||
if ('site' === $this->target)
|
|
||||||
{
|
|
||||||
// add the controller for this view
|
|
||||||
// build the file
|
|
||||||
$target = array($this->target => $viewName);
|
|
||||||
$this->buildDynamique($target,'custom_form');
|
|
||||||
###GET_FORM_CUSTOM###
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (ComponentbuilderHelper::checkString($view['settings']->php_model) && $view['settings']->php_model != '//')
|
|
||||||
{
|
|
||||||
// set the custom buttons ###CUSTOM_BUTTONS_METHOD###
|
|
||||||
$this->fileContentDynamic[$viewName]['###'.$TARGET.'_CUSTOM_BUTTONS_METHOD###'] =
|
|
||||||
PHP_EOL.PHP_EOL.$this->setPlaceholders($view['settings']->php_model, $this->placeholders);
|
|
||||||
}
|
|
||||||
if (isset($view['settings']->custom_buttons) && ComponentbuilderHelper::checkArray($view['settings']->custom_buttons))
|
if (isset($view['settings']->custom_buttons) && ComponentbuilderHelper::checkArray($view['settings']->custom_buttons))
|
||||||
{
|
{
|
||||||
$buttons = array();
|
|
||||||
foreach ($view['settings']->custom_buttons as $custom_button)
|
foreach ($view['settings']->custom_buttons as $custom_button)
|
||||||
{
|
{
|
||||||
if ($custom_button['target'] != 2 || $this->target === 'site')
|
if ($custom_button['target'] != 2 || $this->target === 'site')
|
||||||
@ -2817,11 +2810,69 @@ class Interpretation extends Fields
|
|||||||
$buttons[] = "\t".$tab."\t\tJToolBarHelper::custom('".$viewName.".".$custom_button['method']."', '".$custom_button['icomoon']."', '', '".$keyLang."', false);";
|
$buttons[] = "\t".$tab."\t\tJToolBarHelper::custom('".$viewName.".".$custom_button['method']."', '".$custom_button['icomoon']."', '', '".$keyLang."', false);";
|
||||||
$buttons[] = "\t".$tab."\t}";
|
$buttons[] = "\t".$tab."\t}";
|
||||||
}
|
}
|
||||||
|
// load the list button
|
||||||
|
elseif (3 == $type && ($custom_button['target'] == 2 || $custom_button['target'] == 3))
|
||||||
|
{
|
||||||
|
// Load to lang
|
||||||
|
$keyLang = $this->langPrefix.'_'.ComponentbuilderHelper::safeString($custom_button['name'],'U');
|
||||||
|
$keyCode = ComponentbuilderHelper::safeString($custom_button['name']);
|
||||||
|
$this->langContent[$this->lang][$keyLang] = trim($custom_button['name']);
|
||||||
|
// add cpanel button TODO does not work well on site with permissions
|
||||||
|
$buttons[] = "\t".$tab."\tif (\$this->canDo->get('".$viewName.".".$keyCode."'))";
|
||||||
|
$buttons[] = "\t".$tab."\t{";
|
||||||
|
$buttons[] = "\t".$tab."\t\t//".$this->setLine(__LINE__)." add ".$custom_button['name']." button.";
|
||||||
|
$buttons[] = "\t".$tab."\t\tJToolBarHelper::custom('".$viewsName.".".$custom_button['method']."', '".$custom_button['icomoon']."', '', '".$keyLang."', false);";
|
||||||
|
$buttons[] = "\t".$tab."\t}";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (ComponentbuilderHelper::checkArray($buttons))
|
}
|
||||||
|
// load the model and controller
|
||||||
|
if (3 == $type)
|
||||||
|
{
|
||||||
|
// insure the controller and model strings are added
|
||||||
|
if (isset($view['settings']->php_controller_list) && ComponentbuilderHelper::checkString($view['settings']->php_controller_list) && $view['settings']->php_controller_list != '//')
|
||||||
{
|
{
|
||||||
return PHP_EOL.implode(PHP_EOL,$buttons);
|
// set the custom buttons ###CUSTOM_BUTTONS_CONTROLLER###
|
||||||
|
$this->fileContentDynamic[$viewsName]['###'.$TARGET.'_CUSTOM_BUTTONS_CONTROLLER_LIST###'] =
|
||||||
|
PHP_EOL.PHP_EOL.$this->setPlaceholders($view['settings']->php_controller_list, $this->placeholders);
|
||||||
}
|
}
|
||||||
|
// load the model
|
||||||
|
if (isset($view['settings']->php_model_list) && ComponentbuilderHelper::checkString($view['settings']->php_model_list) && $view['settings']->php_model_list != '//')
|
||||||
|
{
|
||||||
|
// set the custom buttons ###CUSTOM_BUTTONS_METHOD###
|
||||||
|
$this->fileContentDynamic[$viewsName]['###'.$TARGET.'_CUSTOM_BUTTONS_METHOD_LIST###'] =
|
||||||
|
PHP_EOL.PHP_EOL.$this->setPlaceholders($view['settings']->php_model_list, $this->placeholders);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// insure the controller and model strings are added
|
||||||
|
if (ComponentbuilderHelper::checkString($view['settings']->php_controller) && $view['settings']->php_controller != '//')
|
||||||
|
{
|
||||||
|
// set the custom buttons ###CUSTOM_BUTTONS_CONTROLLER###
|
||||||
|
$this->fileContentDynamic[$viewName]['###'.$TARGET.'_CUSTOM_BUTTONS_CONTROLLER'.$list.'###'] =
|
||||||
|
PHP_EOL.PHP_EOL.$this->setPlaceholders($view['settings']->php_controller, $this->placeholders);
|
||||||
|
if ('site' === $this->target)
|
||||||
|
{
|
||||||
|
// add the controller for this view
|
||||||
|
// build the file
|
||||||
|
$target = array($this->target => $viewName);
|
||||||
|
$this->buildDynamique($target,'custom_form');
|
||||||
|
###GET_FORM_CUSTOM###
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// load the model
|
||||||
|
if (ComponentbuilderHelper::checkString($view['settings']->php_model) && $view['settings']->php_model != '//')
|
||||||
|
{
|
||||||
|
// set the custom buttons ###CUSTOM_BUTTONS_METHOD###
|
||||||
|
$this->fileContentDynamic[$viewName]['###'.$TARGET.'_CUSTOM_BUTTONS_METHOD'.$list.'###'] =
|
||||||
|
PHP_EOL.PHP_EOL.$this->setPlaceholders($view['settings']->php_model, $this->placeholders);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// return buttons if they were build
|
||||||
|
if (ComponentbuilderHelper::checkArray($buttons))
|
||||||
|
{
|
||||||
|
return PHP_EOL.implode(PHP_EOL,$buttons);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
|
@ -426,6 +426,8 @@ class Infusion extends Interpretation
|
|||||||
// ###CHECKINCALL### <<<DYNAMIC>>>
|
// ###CHECKINCALL### <<<DYNAMIC>>>
|
||||||
$this->fileContentDynamic[$viewName_list]['###CHECKINCALL###'] = '';
|
$this->fileContentDynamic[$viewName_list]['###CHECKINCALL###'] = '';
|
||||||
}
|
}
|
||||||
|
// ###ADMIN_CUSTOM_BUTTONS_LIST###
|
||||||
|
$this->fileContentDynamic[$viewName_list]['###ADMIN_CUSTOM_BUTTONS_LIST###'] = $this->setCustomButtons($view, 3, "\t");
|
||||||
|
|
||||||
// ###GET_ITEMS_METHOD_STRING_FIX### <<<DYNAMIC>>>
|
// ###GET_ITEMS_METHOD_STRING_FIX### <<<DYNAMIC>>>
|
||||||
$this->fileContentDynamic[$viewName_list]['###GET_ITEMS_METHOD_STRING_FIX###'] = $this->setGetItemsMethodStringFix($viewName_single,$this->fileContentStatic['###Component###']);
|
$this->fileContentDynamic[$viewName_list]['###GET_ITEMS_METHOD_STRING_FIX###'] = $this->setGetItemsMethodStringFix($viewName_single,$this->fileContentStatic['###Component###']);
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage componentbuilder.php
|
@subpackage componentbuilder.php
|
||||||
@ -412,7 +412,10 @@ abstract class ComponentbuilderHelper
|
|||||||
{
|
{
|
||||||
JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_COMPILER'), 'index.php?option=com_componentbuilder&view=compiler', $submenu === 'compiler');
|
JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_COMPILER'), 'index.php?option=com_componentbuilder&view=compiler', $submenu === 'compiler');
|
||||||
}
|
}
|
||||||
JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_COMPONENTS'), 'index.php?option=com_componentbuilder&view=components', $submenu === 'components');
|
if ($user->authorise('joomla_component.access', 'com_componentbuilder') && $user->authorise('joomla_component.submenu', 'com_componentbuilder'))
|
||||||
|
{
|
||||||
|
JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_JOOMLA_COMPONENTS'), 'index.php?option=com_componentbuilder&view=joomla_components', $submenu === 'joomla_components');
|
||||||
|
}
|
||||||
if ($user->authorise('admin_view.access', 'com_componentbuilder') && $user->authorise('admin_view.submenu', 'com_componentbuilder'))
|
if ($user->authorise('admin_view.access', 'com_componentbuilder') && $user->authorise('admin_view.submenu', 'com_componentbuilder'))
|
||||||
{
|
{
|
||||||
JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_ADMIN_VIEWS'), 'index.php?option=com_componentbuilder&view=admin_views', $submenu === 'admin_views');
|
JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_ADMIN_VIEWS'), 'index.php?option=com_componentbuilder&view=admin_views', $submenu === 'admin_views');
|
||||||
@ -1330,10 +1333,13 @@ abstract class ComponentbuilderHelper
|
|||||||
return $string;
|
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 millions)
|
if ($replaceNumbers === true)
|
||||||
$string = self::replaceNumbers($string);
|
{
|
||||||
|
// 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
|
// 0nly continue if we have a string
|
||||||
if (self::checkString($string))
|
if (self::checkString($string))
|
||||||
{
|
{
|
||||||
|
@ -69,12 +69,12 @@ class Mapping
|
|||||||
* The datatypes and it linked field types (basic)
|
* The datatypes and it linked field types (basic)
|
||||||
* (TODO) We may need to set this dynamicly
|
* (TODO) We may need to set this dynamicly
|
||||||
*/
|
*/
|
||||||
protected $dataTypes = array( 'CHAR' => 'Text', 'VARCHAR' => 'Text',
|
protected $dataTypes = array( 'VARCHAR' => 'Text', 'CHAR' => 'Text',
|
||||||
'TEXT' => 'Textarea', 'MEDIUMTEXT' => 'Textarea',
|
'MEDIUMTEXT' => 'Textarea', 'LONGTEXT' => 'Textarea',
|
||||||
'LONGTEXT' => 'Textarea', 'DATE' => 'Text', 'TIME' => 'Text',
|
'TEXT' => 'Textarea', 'DATETIME' => 'Calendar',
|
||||||
'DATETIME' => 'Calendar', 'INT' => 'Text', 'TINYINT' => 'Text',
|
'DATE' => 'Text', 'TIME' => 'Text', 'TINYINT' => 'Text',
|
||||||
'BIGINT' => 'Text', 'FLOAT' => 'Text', 'DECIMAL' => 'Text',
|
'BIGINT' => 'Text', 'INT' => 'Text', 'FLOAT' => 'Text',
|
||||||
'DOUBLE' => 'Text');
|
'DECIMAL' => 'Text', 'DOUBLE' => 'Text');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The datasize identifiers
|
* The datasize identifiers
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage headercheck.php
|
@subpackage headercheck.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage batch_.php
|
@subpackage batch_.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage indenter.php
|
@subpackage indenter.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage js.php
|
@subpackage js.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage minify.php
|
@subpackage minify.php
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -3,13 +3,13 @@ COM_COMPONENTBUILDER_CONFIGURATION="Component Builder Configuration"
|
|||||||
COM_COMPONENTBUILDER_MENU="» Component Builder"
|
COM_COMPONENTBUILDER_MENU="» Component Builder"
|
||||||
COM_COMPONENTBUILDER_MENU_ADMIN_VIEWS="Admin Views"
|
COM_COMPONENTBUILDER_MENU_ADMIN_VIEWS="Admin Views"
|
||||||
COM_COMPONENTBUILDER_MENU_COMPILER="Compiler"
|
COM_COMPONENTBUILDER_MENU_COMPILER="Compiler"
|
||||||
COM_COMPONENTBUILDER_MENU_COMPONENTS="Components"
|
|
||||||
COM_COMPONENTBUILDER_MENU_CUSTOM_ADMIN_VIEWS="Custom Admin Views"
|
COM_COMPONENTBUILDER_MENU_CUSTOM_ADMIN_VIEWS="Custom Admin Views"
|
||||||
COM_COMPONENTBUILDER_MENU_CUSTOM_CODES="Custom Codes"
|
COM_COMPONENTBUILDER_MENU_CUSTOM_CODES="Custom Codes"
|
||||||
COM_COMPONENTBUILDER_MENU_DYNAMIC_GETS="Dynamic Gets"
|
COM_COMPONENTBUILDER_MENU_DYNAMIC_GETS="Dynamic Gets"
|
||||||
COM_COMPONENTBUILDER_MENU_FIELDS="Fields"
|
COM_COMPONENTBUILDER_MENU_FIELDS="Fields"
|
||||||
COM_COMPONENTBUILDER_MENU_FIELDTYPES="Fieldtypes"
|
COM_COMPONENTBUILDER_MENU_FIELDTYPES="Fieldtypes"
|
||||||
COM_COMPONENTBUILDER_MENU_HELP_DOCUMENTS="Help Documents"
|
COM_COMPONENTBUILDER_MENU_HELP_DOCUMENTS="Help Documents"
|
||||||
|
COM_COMPONENTBUILDER_MENU_JOOMLA_COMPONENTS="Joomla Components"
|
||||||
COM_COMPONENTBUILDER_MENU_LAYOUTS="Layouts"
|
COM_COMPONENTBUILDER_MENU_LAYOUTS="Layouts"
|
||||||
COM_COMPONENTBUILDER_MENU_SITE_VIEWS="Site Views"
|
COM_COMPONENTBUILDER_MENU_SITE_VIEWS="Site Views"
|
||||||
COM_COMPONENTBUILDER_MENU_SNIPPETS="Snippets"
|
COM_COMPONENTBUILDER_MENU_SNIPPETS="Snippets"
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage css_fullwidth.php
|
@subpackage css_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_buttons_fullwidth.php
|
@subpackage custom_buttons_fullwidth.php
|
||||||
@ -31,7 +31,9 @@ $form = $displayData->getForm();
|
|||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'php_controller',
|
'php_controller',
|
||||||
'php_model'
|
'php_controller_list',
|
||||||
|
'php_model',
|
||||||
|
'php_model_list'
|
||||||
);
|
);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_buttons_left.php
|
@subpackage custom_buttons_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_import_fullwidth.php
|
@subpackage custom_import_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage fields_fullwidth.php
|
@subpackage fields_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage javascript_fullwidth.php
|
@subpackage javascript_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage linked_components_fullwidth.php
|
@subpackage linked_components_fullwidth.php
|
||||||
@ -31,37 +31,37 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
$items = $displayData->vxulinked_components;
|
$items = $displayData->vxulinked_components;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_componentbuilder&view=components&task=component.edit";
|
$edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php if (ComponentbuilderHelper::checkArray($items)): ?>
|
<?php if (ComponentbuilderHelper::checkArray($items)): ?>
|
||||||
<table class="footable table data components" data-show-toggle="true" data-toggle-column="first" data-sorting="true" data-paging="true" data-paging-size="20" data-filtering="true">
|
<table class="footable table data joomla_components" data-show-toggle="true" data-toggle-column="first" data-sorting="true" data-paging="true" data-paging-size="20" data-filtering="true">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th data-type="html" data-sort-use="text">
|
<th data-type="html" data-sort-use="text">
|
||||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPONENT_SYSTEM_NAME_LABEL'); ?>
|
<?php echo JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SYSTEM_NAME_LABEL'); ?>
|
||||||
</th>
|
</th>
|
||||||
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
|
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
|
||||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPONENT_NAME_CODE_LABEL'); ?>
|
<?php echo JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_CODE_LABEL'); ?>
|
||||||
</th>
|
</th>
|
||||||
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
|
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
|
||||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPONENT_COMPONENT_VERSION_LABEL'); ?>
|
<?php echo JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPONENT_VERSION_LABEL'); ?>
|
||||||
</th>
|
</th>
|
||||||
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
|
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
|
||||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPONENT_SHORT_DESCRIPTION_LABEL'); ?>
|
<?php echo JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SHORT_DESCRIPTION_LABEL'); ?>
|
||||||
</th>
|
</th>
|
||||||
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
|
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
|
||||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPONENT_COMPANYNAME_LABEL'); ?>
|
<?php echo JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPANYNAME_LABEL'); ?>
|
||||||
</th>
|
</th>
|
||||||
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
|
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
|
||||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPONENT_AUTHOR_LABEL'); ?>
|
<?php echo JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR_LABEL'); ?>
|
||||||
</th>
|
</th>
|
||||||
<th width="10" data-breakpoints="xs sm md">
|
<th width="10" data-breakpoints="xs sm md">
|
||||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPONENT_STATUS'); ?>
|
<?php echo JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_STATUS'); ?>
|
||||||
</th>
|
</th>
|
||||||
<th width="5" data-type="number" data-breakpoints="xs sm md">
|
<th width="5" data-type="number" data-breakpoints="xs sm md">
|
||||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPONENT_ID'); ?>
|
<?php echo JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ID'); ?>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -70,14 +70,14 @@ $edit = "index.php?option=com_componentbuilder&view=components&task=component.ed
|
|||||||
<?php
|
<?php
|
||||||
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0;
|
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0;
|
||||||
$userChkOut = JFactory::getUser($item->checked_out);
|
$userChkOut = JFactory::getUser($item->checked_out);
|
||||||
$canDo = ComponentbuilderHelper::getActions('component',$item,'components');
|
$canDo = ComponentbuilderHelper::getActions('joomla_component',$item,'joomla_components');
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('core.edit')): ?>
|
<?php if ($canDo->get('core.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=admin_view&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=admin_view&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'joomla_components.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $displayData->escape($item->system_name); ?></div>
|
<div class="name"><?php echo $displayData->escape($item->system_name); ?></div>
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage mysql_fullwidth.php
|
@subpackage mysql_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage mysql_left.php
|
@subpackage mysql_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage php_fullwidth.php
|
@subpackage php_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage settings_above.php
|
@subpackage settings_above.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage settings_left.php
|
@subpackage settings_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage settings_right.php
|
@subpackage settings_right.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage settings_under.php
|
@subpackage settings_under.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage batchselection.php
|
@subpackage batchselection.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_buttons_fullwidth.php
|
@subpackage custom_buttons_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_buttons_left.php
|
@subpackage custom_buttons_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_script_fullwidth.php
|
@subpackage custom_script_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_fullwidth.php
|
@subpackage details_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_rightside.php
|
@subpackage details_rightside.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_under.php
|
@subpackage details_under.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage linked_components_fullwidth.php
|
@subpackage linked_components_fullwidth.php
|
||||||
@ -31,37 +31,37 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
$items = $displayData->vyelinked_components;
|
$items = $displayData->vyelinked_components;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_componentbuilder&view=components&task=component.edit";
|
$edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php if (ComponentbuilderHelper::checkArray($items)): ?>
|
<?php if (ComponentbuilderHelper::checkArray($items)): ?>
|
||||||
<table class="footable table data components" data-show-toggle="true" data-toggle-column="first" data-sorting="true" data-paging="true" data-paging-size="20" data-filtering="true">
|
<table class="footable table data joomla_components" data-show-toggle="true" data-toggle-column="first" data-sorting="true" data-paging="true" data-paging-size="20" data-filtering="true">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th data-type="html" data-sort-use="text">
|
<th data-type="html" data-sort-use="text">
|
||||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPONENT_SYSTEM_NAME_LABEL'); ?>
|
<?php echo JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SYSTEM_NAME_LABEL'); ?>
|
||||||
</th>
|
</th>
|
||||||
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
|
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
|
||||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPONENT_NAME_CODE_LABEL'); ?>
|
<?php echo JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_CODE_LABEL'); ?>
|
||||||
</th>
|
</th>
|
||||||
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
|
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
|
||||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPONENT_COMPONENT_VERSION_LABEL'); ?>
|
<?php echo JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPONENT_VERSION_LABEL'); ?>
|
||||||
</th>
|
</th>
|
||||||
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
|
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
|
||||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPONENT_SHORT_DESCRIPTION_LABEL'); ?>
|
<?php echo JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SHORT_DESCRIPTION_LABEL'); ?>
|
||||||
</th>
|
</th>
|
||||||
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
|
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
|
||||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPONENT_COMPANYNAME_LABEL'); ?>
|
<?php echo JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPANYNAME_LABEL'); ?>
|
||||||
</th>
|
</th>
|
||||||
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
|
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
|
||||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPONENT_AUTHOR_LABEL'); ?>
|
<?php echo JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR_LABEL'); ?>
|
||||||
</th>
|
</th>
|
||||||
<th width="10" data-breakpoints="xs sm md">
|
<th width="10" data-breakpoints="xs sm md">
|
||||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPONENT_STATUS'); ?>
|
<?php echo JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_STATUS'); ?>
|
||||||
</th>
|
</th>
|
||||||
<th width="5" data-type="number" data-breakpoints="xs sm md">
|
<th width="5" data-type="number" data-breakpoints="xs sm md">
|
||||||
<?php echo JText::_('COM_COMPONENTBUILDER_COMPONENT_ID'); ?>
|
<?php echo JText::_('COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ID'); ?>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -70,14 +70,14 @@ $edit = "index.php?option=com_componentbuilder&view=components&task=component.ed
|
|||||||
<?php
|
<?php
|
||||||
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0;
|
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0;
|
||||||
$userChkOut = JFactory::getUser($item->checked_out);
|
$userChkOut = JFactory::getUser($item->checked_out);
|
||||||
$canDo = ComponentbuilderHelper::getActions('component',$item,'components');
|
$canDo = ComponentbuilderHelper::getActions('joomla_component',$item,'joomla_components');
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('core.edit')): ?>
|
<?php if ($canDo->get('core.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=custom_admin_view&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=custom_admin_view&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'joomla_components.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $displayData->escape($item->system_name); ?></div>
|
<div class="name"><?php echo $displayData->escape($item->system_name); ?></div>
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_fullwidth.php
|
@subpackage details_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.4
|
@version 2.3.6
|
||||||
@build 13th February, 2017
|
@build 1st March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_under.php
|
@subpackage details_under.php
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user