forked from joomla/Component-Builder
Futher improved the JCB package manager, so to be more stable and give enough information about selected packages
This commit is contained in:
parent
dfef0774f3
commit
d961652f56
@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
|
|||||||
|
|
||||||
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) 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](https://extensions.joomla.org/extension/component-builder/) 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.7.6) 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.7.7) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||||
|
|
||||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||||
|
|
||||||
@ -127,10 +127,10 @@ Component Builder is mapped as a component in itself on my local development env
|
|||||||
+ *Name*: [Component Builder](http://joomlacomponentbuilder.com)
|
+ *Name*: [Component Builder](http://joomlacomponentbuilder.com)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 2nd May, 2018
|
+ *Last Build*: 2nd May, 2018
|
||||||
+ *Version*: 2.7.6
|
+ *Version*: 2.7.7
|
||||||
+ *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*: **193883**
|
+ *Line count*: **193930**
|
||||||
+ *Field count*: **1027**
|
+ *Field count*: **1027**
|
||||||
+ *File count*: **1201**
|
+ *File count*: **1201**
|
||||||
+ *Folder count*: **193**
|
+ *Folder count*: **193**
|
||||||
|
@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
|
|||||||
|
|
||||||
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) 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](https://extensions.joomla.org/extension/component-builder/) 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.7.6) 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.7.7) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||||
|
|
||||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||||
|
|
||||||
@ -127,10 +127,10 @@ Component Builder is mapped as a component in itself on my local development env
|
|||||||
+ *Name*: [Component Builder](http://joomlacomponentbuilder.com)
|
+ *Name*: [Component Builder](http://joomlacomponentbuilder.com)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 2nd May, 2018
|
+ *Last Build*: 2nd May, 2018
|
||||||
+ *Version*: 2.7.6
|
+ *Version*: 2.7.7
|
||||||
+ *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*: **193883**
|
+ *Line count*: **193930**
|
||||||
+ *Field count*: **1027**
|
+ *Field count*: **1027**
|
||||||
+ *File count*: **1201**
|
+ *File count*: **1201**
|
||||||
+ *Folder count*: **193**
|
+ *Folder count*: **193**
|
||||||
|
@ -163,40 +163,9 @@ class ComponentbuilderControllerJoomla_components extends JControllerAdmin
|
|||||||
$keyNotice = '<h1>' . JText::sprintf('COM_COMPONENTBUILDER_THE_PACKAGE_KEY_IS_CODESCODE', $model->key) . '</h1>';
|
$keyNotice = '<h1>' . JText::sprintf('COM_COMPONENTBUILDER_THE_PACKAGE_KEY_IS_CODESCODE', $model->key) . '</h1>';
|
||||||
$keyNotice .= '<p>' . JText::_('COM_COMPONENTBUILDER_YOUR_DATA_IS_ENCRYPTED_WITH_A_AES_ONE_HUNDRED_AND_TWENTY_EIGHT_BIT_ENCRYPTION_USING_THE_ABOVE_THIRTY_TWO_CHARACTER_KEYBR_WITHOUT_THIS_KEY_IT_WILL_TAKE_THE_CURRENT_TECHNOLOGY_WITH_A_BRUTE_FORCE_ATTACK_METHOD_MORE_THEN_A_HREFHTTPRANDOMIZECOMHOWLONGTOHACKPASS_TARGET_BLANK_TITLEHOW_LONG_TO_HACK_PASSSEVEN_HUNDRED_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZEROA_YEARS_TO_CRACK_THEORETICALLY') . '</h1>';
|
$keyNotice .= '<p>' . JText::_('COM_COMPONENTBUILDER_YOUR_DATA_IS_ENCRYPTED_WITH_A_AES_ONE_HUNDRED_AND_TWENTY_EIGHT_BIT_ENCRYPTION_USING_THE_ABOVE_THIRTY_TWO_CHARACTER_KEYBR_WITHOUT_THIS_KEY_IT_WILL_TAKE_THE_CURRENT_TECHNOLOGY_WITH_A_BRUTE_FORCE_ATTACK_METHOD_MORE_THEN_A_HREFHTTPRANDOMIZECOMHOWLONGTOHACKPASS_TARGET_BLANK_TITLEHOW_LONG_TO_HACK_PASSSEVEN_HUNDRED_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZEROA_YEARS_TO_CRACK_THEORETICALLY') . '</h1>';
|
||||||
// set the package owner info
|
// set the package owner info
|
||||||
if ((isset($model->info['getKeyFrom']['company']) && componentbuilderHelper::checkString($model->info['getKeyFrom']['company'])) || (isset($model->info['getKeyFrom']['owner']) && componentbuilderHelper::checkString($model->info['getKeyFrom']['owner'])))
|
if (componentbuilderHelper::getPackageOwnerValue('owner', $model->info) || componentbuilderHelper::getPackageOwnerValue('company', $model->info))
|
||||||
{
|
{
|
||||||
$ownerDetails = '<h2>' . JText::_('COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS') . '</h2>';
|
$ownerDetails = componentbuilderHelper::getPackageOwnerDetailsDisplay($model->info, true);
|
||||||
$ownerDetails .= '<ul>';
|
|
||||||
if (isset($model->info['getKeyFrom']['company']) && componentbuilderHelper::checkString($model->info['getKeyFrom']['company']))
|
|
||||||
{
|
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMCOMPANYEM_BSB', $model->info['getKeyFrom']['company']) . '</li>';
|
|
||||||
}
|
|
||||||
// add value only if set
|
|
||||||
if (isset($model->info['getKeyFrom']['owner']) && componentbuilderHelper::checkString($model->info['getKeyFrom']['owner']))
|
|
||||||
{
|
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMOWNEREM_BSB', $model->info['getKeyFrom']['owner']) . '</li>';
|
|
||||||
}
|
|
||||||
// add value only if set
|
|
||||||
if (isset($model->info['getKeyFrom']['website']) && componentbuilderHelper::checkString($model->info['getKeyFrom']['website']))
|
|
||||||
{
|
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMWEBSITEEM_BSB', $model->info['getKeyFrom']['website']) . '</li>';
|
|
||||||
}
|
|
||||||
// add value only if set
|
|
||||||
if (isset($model->info['getKeyFrom']['email']) && componentbuilderHelper::checkString($model->info['getKeyFrom']['email']))
|
|
||||||
{
|
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMEMAILEM_BSB', $model->info['getKeyFrom']['email']) . '</li>';
|
|
||||||
}
|
|
||||||
// add value only if set
|
|
||||||
if (isset($model->info['getKeyFrom']['license']) && componentbuilderHelper::checkString($model->info['getKeyFrom']['license']))
|
|
||||||
{
|
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMLICENSEEM_BSB', $model->info['getKeyFrom']['license']) . '</li>';
|
|
||||||
}
|
|
||||||
// add value only if set
|
|
||||||
if (isset($model->info['getKeyFrom']['copyright']) && componentbuilderHelper::checkString($model->info['getKeyFrom']['copyright']))
|
|
||||||
{
|
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMCOPYRIGHTEM_BSB', $model->info['getKeyFrom']['copyright']) . '</li>';
|
|
||||||
}
|
|
||||||
$ownerDetails .= '</ul>';
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2042,57 +2042,47 @@ abstract class ComponentbuilderHelper
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected static $pkOwnerSearch = array(
|
||||||
|
'company' => 'COM_COMPONENTBUILDER_EMCOMPANYEM_BSB',
|
||||||
|
'owner' => 'COM_COMPONENTBUILDER_EMOWNEREM_BSB',
|
||||||
|
'website' => 'COM_COMPONENTBUILDER_EMWEBSITEEM_BSB',
|
||||||
|
'email' => 'COM_COMPONENTBUILDER_EMEMAILEM_BSB',
|
||||||
|
'license' => 'COM_COMPONENTBUILDER_EMLICENSEEM_BSB',
|
||||||
|
'copyright' => 'COM_COMPONENTBUILDER_EMCOPYRIGHTEM_BSB'
|
||||||
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get the JCB package owner details display
|
* get the JCB package owner details display
|
||||||
**/
|
**/
|
||||||
public static function getPackageOwnerDetailsDisplay(&$info, $trust = false)
|
public static function getPackageOwnerDetailsDisplay(&$info, $trust = false)
|
||||||
{
|
{
|
||||||
|
$hasOwner = false;
|
||||||
$ownerDetails = '<h2 class="module-title nav-header">' . JText::_('COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS') . '</h2>';
|
$ownerDetails = '<h2 class="module-title nav-header">' . JText::_('COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS') . '</h2>';
|
||||||
$ownerDetails .= '<ul>';
|
$ownerDetails .= '<ul>';
|
||||||
if (isset($info['getKeyFrom']['company']) && self::checkString($info['getKeyFrom']['company']))
|
// load the list items
|
||||||
|
foreach (self::$pkOwnerSearch as $key => $li)
|
||||||
{
|
{
|
||||||
$owner = $info['getKeyFrom']['company'];
|
if ($value = self::getPackageOwnerValue($key, $info))
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMCOMPANYEM_BSB', $info['getKeyFrom']['company']) . '</li>';
|
{
|
||||||
|
$ownerDetails .= '<li>' . JText::sprintf($li, $value) . '</li>';
|
||||||
|
// check if we have a owner/source name
|
||||||
|
if (('owner' === $key || 'company' === $key) && !$hasOwner)
|
||||||
|
{
|
||||||
|
$hasOwner = true;
|
||||||
|
$owner = $value;
|
||||||
}
|
}
|
||||||
// add value only if set
|
|
||||||
if (isset($info['getKeyFrom']['owner']) && self::checkString($info['getKeyFrom']['owner']))
|
|
||||||
{
|
|
||||||
if (!isset($owner))
|
|
||||||
{
|
|
||||||
$owner = $info['getKeyFrom']['owner'];
|
|
||||||
}
|
}
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMOWNEREM_BSB', $info['getKeyFrom']['owner']) . '</li>';
|
|
||||||
}
|
|
||||||
// add value only if set
|
|
||||||
if (isset($info['getKeyFrom']['website']) && self::checkString($info['getKeyFrom']['website']))
|
|
||||||
{
|
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMWEBSITEEM_BSB', $info['getKeyFrom']['website']) . '</li>';
|
|
||||||
}
|
|
||||||
// add value only if set
|
|
||||||
if (isset($info['getKeyFrom']['email']) && self::checkString($info['getKeyFrom']['email']))
|
|
||||||
{
|
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMEMAILEM_BSB', $info['getKeyFrom']['email']) . '</li>';
|
|
||||||
}
|
|
||||||
// add value only if set
|
|
||||||
if (isset($info['getKeyFrom']['license']) && self::checkString($info['getKeyFrom']['license']))
|
|
||||||
{
|
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMLICENSEEM_BSB', $info['getKeyFrom']['license']) . '</li>';
|
|
||||||
}
|
|
||||||
// add value only if set
|
|
||||||
if (isset($info['getKeyFrom']['copyright']) && self::checkString($info['getKeyFrom']['copyright']))
|
|
||||||
{
|
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMCOPYRIGHTEM_BSB', $info['getKeyFrom']['copyright']) . '</li>';
|
|
||||||
}
|
}
|
||||||
$ownerDetails .= '</ul>';
|
$ownerDetails .= '</ul>';
|
||||||
|
|
||||||
// provide some details to how the user can get a key
|
// provide some details to how the user can get a key
|
||||||
if (isset($info['getKeyFrom']['buy_link']) && self::checkString($info['getKeyFrom']['buy_link']))
|
if ($hasOwner && isset($info['getKeyFrom']['buy_link']) && self::checkString($info['getKeyFrom']['buy_link']))
|
||||||
{
|
{
|
||||||
$ownerDetails .= '<hr />';
|
$ownerDetails .= '<hr />';
|
||||||
$ownerDetails .= JText::sprintf('COM_COMPONENTBUILDER_BGET_THE_KEY_FROMB_A_CLASSBTN_BTNPRIMARY_HREFS_TARGET_BLANK_TITLEGET_A_KEY_FROM_SSA', $info['getKeyFrom']['buy_link'], $owner, $owner);
|
$ownerDetails .= JText::sprintf('COM_COMPONENTBUILDER_BGET_THE_KEY_FROMB_A_CLASSBTN_BTNPRIMARY_HREFS_TARGET_BLANK_TITLEGET_A_KEY_FROM_SSA', $info['getKeyFrom']['buy_link'], $owner, $owner);
|
||||||
}
|
}
|
||||||
// add more custom links
|
// add more custom links
|
||||||
elseif (isset($info['getKeyFrom']['buy_links']) && self::checkArray($info['getKeyFrom']['buy_links']))
|
elseif ($hasOwner && isset($info['getKeyFrom']['buy_links']) && self::checkArray($info['getKeyFrom']['buy_links']))
|
||||||
{
|
{
|
||||||
$buttons = array();
|
$buttons = array();
|
||||||
foreach ($info['getKeyFrom']['buy_links'] as $keyName => $link)
|
foreach ($info['getKeyFrom']['buy_links'] as $keyName => $link)
|
||||||
@ -2102,25 +2092,57 @@ abstract class ComponentbuilderHelper
|
|||||||
$ownerDetails .= '<hr />';
|
$ownerDetails .= '<hr />';
|
||||||
$ownerDetails .= implode('<br />', $buttons);
|
$ownerDetails .= implode('<br />', $buttons);
|
||||||
}
|
}
|
||||||
|
|
||||||
// return the owner details
|
// return the owner details
|
||||||
if (!isset($owner) && !$trust)
|
if (!$hasOwner)
|
||||||
|
{
|
||||||
|
$ownerDetails = '<h2>' . JText::_('COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS_NOT_FOUND') . '</h2>';
|
||||||
|
if (!$trust)
|
||||||
{
|
{
|
||||||
$ownerDetails = '<h2 style="color: #922924;">' . JText::_('COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS_NOT_FOUND') . '</h2>';
|
|
||||||
$ownerDetails .= '<p style="color: #922924;">' . JText::_('COM_COMPONENTBUILDER_BE_CAUTIOUS_DO_NOT_CONTINUE_UNLESS_YOU_TRUST_THE_ORIGIN_OF_THIS_PACKAGE') . '</p>';
|
$ownerDetails .= '<p style="color: #922924;">' . JText::_('COM_COMPONENTBUILDER_BE_CAUTIOUS_DO_NOT_CONTINUE_UNLESS_YOU_TRUST_THE_ORIGIN_OF_THIS_PACKAGE') . '</p>';
|
||||||
}
|
}
|
||||||
elseif (!isset($owner) && $trust)
|
|
||||||
{
|
|
||||||
$ownerDetails = '';
|
|
||||||
}
|
}
|
||||||
return $ownerDetails;
|
return $ownerDetails;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function getPackageOwnerValue($key, &$info)
|
||||||
|
{
|
||||||
|
$source = (isset($info['source']) && isset($info['source'][$key])) ? 'source' : ((isset($info['getKeyFrom']) && isset($info['getKeyFrom'][$key])) ? 'getKeyFrom' : false);
|
||||||
|
if ($source && self::checkString($info[$source][$key]))
|
||||||
|
{
|
||||||
|
return $info[$source][$key];
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get the JCB package component key status
|
||||||
|
**/
|
||||||
|
public static function getPackageComponentsKeyStatus(&$info)
|
||||||
|
{
|
||||||
|
// check the package key status
|
||||||
|
if (!isset($info['key']))
|
||||||
|
{
|
||||||
|
if (isset($info['getKeyFrom']) && isset($info['getKeyFrom']['owner']))
|
||||||
|
{
|
||||||
|
// this just confirms it for older packages
|
||||||
|
$info['key'] = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// this just confirms it for older packages
|
||||||
|
$info['key'] = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $info['key'];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get the JCB package component details display
|
* get the JCB package component details display
|
||||||
**/
|
**/
|
||||||
public static function getPackageComponentsDetailsDisplay(&$info)
|
public static function getPackageComponentsDetailsDisplay(&$info)
|
||||||
{
|
{
|
||||||
|
// check if these components need a key
|
||||||
|
$needKey = self::getPackageComponentsKeyStatus($info);
|
||||||
if (isset($info['name']) && self::checkArray($info['name']))
|
if (isset($info['name']) && self::checkArray($info['name']))
|
||||||
{
|
{
|
||||||
$cAmount = count((array) $info['name']);
|
$cAmount = count((array) $info['name']);
|
||||||
@ -2141,6 +2163,14 @@ abstract class ComponentbuilderHelper
|
|||||||
$display[] = '<div class="well well-small ' . $class2 . '">';
|
$display[] = '<div class="well well-small ' . $class2 . '">';
|
||||||
$display[] = '<h2 class="module-title nav-header">';
|
$display[] = '<h2 class="module-title nav-header">';
|
||||||
$display[] = JText::sprintf('COM_COMPONENTBUILDER_BSB_EMCOMPONENT_DETAILSEM', $value . ' v' . $info['component_version'][$key]);
|
$display[] = JText::sprintf('COM_COMPONENTBUILDER_BSB_EMCOMPONENT_DETAILSEM', $value . ' v' . $info['component_version'][$key]);
|
||||||
|
if ($needKey)
|
||||||
|
{
|
||||||
|
$display[] = ' - <em>' . JText::sprintf('COM_COMPONENTBUILDER_PAIDLOCKED') . '</em>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$display[] = ' - <em>' . JText::sprintf('COM_COMPONENTBUILDER_FREEOPEN') . '</em>';
|
||||||
|
}
|
||||||
$display[] = '</h2><p>';
|
$display[] = '</h2><p>';
|
||||||
$display[] = $info['short_description'][$key];
|
$display[] = $info['short_description'][$key];
|
||||||
$display[] = '</p><ul><li>';
|
$display[] = '</p><ul><li>';
|
||||||
@ -2171,7 +2201,7 @@ abstract class ComponentbuilderHelper
|
|||||||
}
|
}
|
||||||
return implode("\n",$display);
|
return implode("\n",$display);
|
||||||
}
|
}
|
||||||
return '<div>'.JText::_('COM_COMPONENTBUILDER_COPYRIGHT').'</div>';
|
return '<div>'.JText::_('COM_COMPONENTBUILDER_NO_COMPONENT_DETAILS_FOUND_SO_IT_IS_NOT_SAFE_TO_CONTINUE').'</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3627,10 +3627,10 @@ COM_COMPONENTBUILDER_EMAUTHOREM_BSB="<em>Author</em>: <b>%s</b>"
|
|||||||
COM_COMPONENTBUILDER_EMCOMPANYEM_BSB="<em>Company:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMCOMPANYEM_BSB="<em>Company:</em> <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_EMCOMPANY_NAMEEM_BSB="<em>Company Name</em>: <b>%s</b>"
|
COM_COMPONENTBUILDER_EMCOMPANY_NAMEEM_BSB="<em>Company Name</em>: <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_EMCOPYRIGHTEM_BSB="<em>Copyright:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMCOPYRIGHTEM_BSB="<em>Copyright:</em> <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_EMEMAILEM_BSB="<em>Email:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMEMAILEM_BSB="<em>Email</em>: <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_EMLICENSEEM_BSB="<em>License:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMLICENSEEM_BSB="<em>License:</em> <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_EMOWNEREM_BSB="<em>Owner:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMOWNEREM_BSB="<em>Owner:</em> <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_EMWEBSITEEM_BSB="<em>Website:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMWEBSITEEM_BSB="<em>Website</em>: <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_EQUAL="Equal"
|
COM_COMPONENTBUILDER_EQUAL="Equal"
|
||||||
COM_COMPONENTBUILDER_EQUAL_MEANS_THAT_THE_COMMUNITY_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_AND_YOUR_LOCAL_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_HAS_THE_SAME_BCREATIONB_AND_BMODIFIED_DATEB="Equal means that the community snippet (with the same name, library and type) and your local snippet (with the same name, library and type) has the same <b>creation</b> and <b>modified date</b>."
|
COM_COMPONENTBUILDER_EQUAL_MEANS_THAT_THE_COMMUNITY_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_AND_YOUR_LOCAL_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_HAS_THE_SAME_BCREATIONB_AND_BMODIFIED_DATEB="Equal means that the community snippet (with the same name, library and type) and your local snippet (with the same name, library and type) has the same <b>creation</b> and <b>modified date</b>."
|
||||||
COM_COMPONENTBUILDER_ERROR="Error"
|
COM_COMPONENTBUILDER_ERROR="Error"
|
||||||
@ -4038,6 +4038,7 @@ COM_COMPONENTBUILDER_FOLDER="Folder"
|
|||||||
COM_COMPONENTBUILDER_FOLDER_BSB_WAS_MOVED_TO_BSB="Folder <b>%s</b> was moved to <b>%s</b>"
|
COM_COMPONENTBUILDER_FOLDER_BSB_WAS_MOVED_TO_BSB="Folder <b>%s</b> was moved to <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_FOLDER_BSB_WAS_NOT_MOVED_TO_BSB="Folder <b>%s</b> was not moved to <b>%s</b>"
|
COM_COMPONENTBUILDER_FOLDER_BSB_WAS_NOT_MOVED_TO_BSB="Folder <b>%s</b> was not moved to <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_FORCE_LOCAL_UPDATE="Force Local Update"
|
COM_COMPONENTBUILDER_FORCE_LOCAL_UPDATE="Force Local Update"
|
||||||
|
COM_COMPONENTBUILDER_FREEOPEN="Free/Open"
|
||||||
COM_COMPONENTBUILDER_FULL_WIDTH_IN_TAB="Full Width in Tab"
|
COM_COMPONENTBUILDER_FULL_WIDTH_IN_TAB="Full Width in Tab"
|
||||||
COM_COMPONENTBUILDER_FUNCTION_NAME_ALREADY_TAKEN_PLEASE_TRY_AGAIN="Function name already taken, please try again."
|
COM_COMPONENTBUILDER_FUNCTION_NAME_ALREADY_TAKEN_PLEASE_TRY_AGAIN="Function name already taken, please try again."
|
||||||
COM_COMPONENTBUILDER_GENERAL_OVERVIEW_OF_HOW_THINGS_WORK_BSB="General overview of how things work: <b>%s</b>"
|
COM_COMPONENTBUILDER_GENERAL_OVERVIEW_OF_HOW_THINGS_WORK_BSB="General overview of how things work: <b>%s</b>"
|
||||||
@ -5407,6 +5408,7 @@ COM_COMPONENTBUILDER_NOT_FOUND_OR_ACCESS_DENIED="Not found or access denied!"
|
|||||||
COM_COMPONENTBUILDER_NOT_SET="not set"
|
COM_COMPONENTBUILDER_NOT_SET="not set"
|
||||||
COM_COMPONENTBUILDER_NO_ACCESS_GRANTED="No Access Granted!"
|
COM_COMPONENTBUILDER_NO_ACCESS_GRANTED="No Access Granted!"
|
||||||
COM_COMPONENTBUILDER_NO_COMPONENTS_WERE_SELECTED_PLEASE_MAKE_A_SELECTION_AND_TRY_AGAIN="No components were selected, please make a selection and try again!"
|
COM_COMPONENTBUILDER_NO_COMPONENTS_WERE_SELECTED_PLEASE_MAKE_A_SELECTION_AND_TRY_AGAIN="No components were selected, please make a selection and try again!"
|
||||||
|
COM_COMPONENTBUILDER_NO_COMPONENT_DETAILS_FOUND_SO_IT_IS_NOT_SAFE_TO_CONTINUE="No component details found, so it is not safe to continue!"
|
||||||
COM_COMPONENTBUILDER_NO_COMPONENT_WAS_SELECTED_PLEASE_MAKE_A_SELECTION_OF_ONE_COMPONENT_AND_TRY_AGAIN="No component was selected, please make a selection of one component and try again!"
|
COM_COMPONENTBUILDER_NO_COMPONENT_WAS_SELECTED_PLEASE_MAKE_A_SELECTION_OF_ONE_COMPONENT_AND_TRY_AGAIN="No component was selected, please make a selection of one component and try again!"
|
||||||
COM_COMPONENTBUILDER_NO_CRONJOB_PATH_FOUND_FOR_S="No cronjob path found for (%s)"
|
COM_COMPONENTBUILDER_NO_CRONJOB_PATH_FOUND_FOR_S="No cronjob path found for (%s)"
|
||||||
COM_COMPONENTBUILDER_NO_CRONJOB_PATH_FOUND_SINCE_INCORRECT_TYPE_REQUESTED="No cronjob path found since incorrect type requested."
|
COM_COMPONENTBUILDER_NO_CRONJOB_PATH_FOUND_SINCE_INCORRECT_TYPE_REQUESTED="No cronjob path found since incorrect type requested."
|
||||||
@ -5445,6 +5447,7 @@ COM_COMPONENTBUILDER_PACKAGES_FROM_VAST_DEVELOPMENT_METHOD="Packages from Vast D
|
|||||||
COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS="Package Owner Details"
|
COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS="Package Owner Details"
|
||||||
COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS_NOT_FOUND="Package owner details not found!"
|
COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS_NOT_FOUND="Package owner details not found!"
|
||||||
COM_COMPONENTBUILDER_PACKAGE_OWNER_NOT_SET="Package Owner Not Set"
|
COM_COMPONENTBUILDER_PACKAGE_OWNER_NOT_SET="Package Owner Not Set"
|
||||||
|
COM_COMPONENTBUILDER_PAIDLOCKED="Paid/Locked"
|
||||||
COM_COMPONENTBUILDER_PATH_CODESCODE="Path: <code>%s</code>"
|
COM_COMPONENTBUILDER_PATH_CODESCODE="Path: <code>%s</code>"
|
||||||
COM_COMPONENTBUILDER_PATH_TO_THE_ZIPPED_PACKAGE_IS_CODESCODE_BR_S_S="Path to the zipped package is: <code>%s</code> <br />%s %s"
|
COM_COMPONENTBUILDER_PATH_TO_THE_ZIPPED_PACKAGE_IS_CODESCODE_BR_S_S="Path to the zipped package is: <code>%s</code> <br />%s %s"
|
||||||
COM_COMPONENTBUILDER_PERMISSIONS="Permissions"
|
COM_COMPONENTBUILDER_PERMISSIONS="Permissions"
|
||||||
|
@ -896,6 +896,14 @@ class ComponentbuilderModelJoomla_components extends JModelList
|
|||||||
{
|
{
|
||||||
// set db data
|
// set db data
|
||||||
$data = serialize($this->smartBox);
|
$data = serialize($this->smartBox);
|
||||||
|
// Set the key owner information
|
||||||
|
$this->info['source'] = array();
|
||||||
|
$this->info['source']['company'] = $this->params->get('export_company', null);
|
||||||
|
$this->info['source']['owner'] = $this->params->get('export_owner', null);
|
||||||
|
$this->info['source']['email'] = $this->params->get('export_email', null);
|
||||||
|
$this->info['source']['website'] = $this->params->get('export_website', null);
|
||||||
|
$this->info['source']['license'] = $this->params->get('export_license', null);
|
||||||
|
$this->info['source']['copyright'] = $this->params->get('export_copyright', null);
|
||||||
// lock the data if set
|
// lock the data if set
|
||||||
if (ComponentbuilderHelper::checkArray($this->key))
|
if (ComponentbuilderHelper::checkArray($this->key))
|
||||||
{
|
{
|
||||||
@ -905,12 +913,12 @@ class ComponentbuilderModelJoomla_components extends JModelList
|
|||||||
$data = $locker->encryptString($data);
|
$data = $locker->encryptString($data);
|
||||||
// Set the key owner information
|
// Set the key owner information
|
||||||
$this->info['getKeyFrom'] = array();
|
$this->info['getKeyFrom'] = array();
|
||||||
$this->info['getKeyFrom']['company'] = $this->params->get('export_company', null);
|
$this->info['getKeyFrom']['company'] = $this->info['source']['company'];
|
||||||
$this->info['getKeyFrom']['owner'] = $this->params->get('export_owner', null);
|
$this->info['getKeyFrom']['owner'] = $this->info['source']['owner'];
|
||||||
$this->info['getKeyFrom']['email'] = $this->params->get('export_email', null);
|
$this->info['getKeyFrom']['email'] = $this->info['source']['email'];
|
||||||
$this->info['getKeyFrom']['website'] = $this->params->get('export_website', null);
|
$this->info['getKeyFrom']['website'] = $this->info['source']['website'];
|
||||||
$this->info['getKeyFrom']['license'] = $this->params->get('export_license', null);
|
$this->info['getKeyFrom']['license'] = $this->info['source']['license'];
|
||||||
$this->info['getKeyFrom']['copyright'] = $this->params->get('export_copyright', null);
|
$this->info['getKeyFrom']['copyright'] = $this->info['source']['copyright'];
|
||||||
// making provision for future changes
|
// making provision for future changes
|
||||||
if (count($this->exportBuyLinks) == 1)
|
if (count($this->exportBuyLinks) == 1)
|
||||||
{
|
{
|
||||||
@ -922,9 +930,13 @@ class ComponentbuilderModelJoomla_components extends JModelList
|
|||||||
$this->info['getKeyFrom']['buy_link'] = $this->params->get('export_buy_link', null);
|
$this->info['getKeyFrom']['buy_link'] = $this->params->get('export_buy_link', null);
|
||||||
}
|
}
|
||||||
$this->info['getKeyFrom']['package_links'] = $this->exportPackageLinks;
|
$this->info['getKeyFrom']['package_links'] = $this->exportPackageLinks;
|
||||||
|
// we started adding this at v2.7.7
|
||||||
|
$this->info['key'] = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// we started adding this at v2.7.7
|
||||||
|
$this->info['key'] = false;
|
||||||
// Set the owner information
|
// Set the owner information
|
||||||
$data = base64_encode($data);
|
$data = base64_encode($data);
|
||||||
}
|
}
|
||||||
|
@ -244,7 +244,7 @@ class ComponentbuilderViewImport_joomla_components extends JViewLegacy
|
|||||||
// add to form
|
// add to form
|
||||||
$form[] = $merge;
|
$form[] = $merge;
|
||||||
|
|
||||||
if (!$this->packageInfo || (isset($this->packageInfo['getKeyFrom']) && ComponentbuilderHelper::checkArray($this->packageInfo['getKeyFrom'])))
|
if (!$this->packageInfo || ComponentbuilderHelper::getPackageComponentsKeyStatus($this->packageInfo))
|
||||||
{
|
{
|
||||||
// set required field
|
// set required field
|
||||||
$required = true;
|
$required = true;
|
||||||
@ -352,7 +352,7 @@ class ComponentbuilderViewImport_joomla_components extends JViewLegacy
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif ('jcb_package' === $type && $jcbListObjects = ComponentbuilderHelper::getGithubRepoFileList('jcbGithubPackages', ComponentbuilderHelper::$jcbGithubPackagesUrl.ComponentbuilderHelper::$accessToken))
|
elseif ('jcb_package' === $type && $jcbListObjects = ComponentbuilderHelper::getGithubRepoFileList('communityGithubPackages', ComponentbuilderHelper::$jcbGithubPackagesUrl.ComponentbuilderHelper::$accessToken))
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkArray($jcbListObjects))
|
if (ComponentbuilderHelper::checkArray($jcbListObjects))
|
||||||
{
|
{
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
<authorUrl>http://joomlacomponentbuilder.com</authorUrl>
|
<authorUrl>http://joomlacomponentbuilder.com</authorUrl>
|
||||||
<copyright>Copyright (C) 2015. All Rights Reserved</copyright>
|
<copyright>Copyright (C) 2015. All Rights Reserved</copyright>
|
||||||
<license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license>
|
<license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license>
|
||||||
<version>2.7.6</version>
|
<version>2.7.7</version>
|
||||||
<description><![CDATA[
|
<description><![CDATA[
|
||||||
<h1>Component Builder (v.2.7.6)</h1>
|
<h1>Component Builder (v.2.7.7)</h1>
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
<p>The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time.
|
<p>The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time.
|
||||||
|
|
||||||
|
@ -344,10 +344,10 @@
|
|||||||
<description>Builds Complex Joomla Components</description>
|
<description>Builds Complex Joomla Components</description>
|
||||||
<element>com_componentbuilder</element>
|
<element>com_componentbuilder</element>
|
||||||
<type>component</type>
|
<type>component</type>
|
||||||
<version>2.7.6</version>
|
<version>2.7.7</version>
|
||||||
<infourl title="Component Builder!">http://joomlacomponentbuilder.com</infourl>
|
<infourl title="Component Builder!">http://joomlacomponentbuilder.com</infourl>
|
||||||
<downloads>
|
<downloads>
|
||||||
<downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Component-Builder/releases/download/v2.7.6/JCB_v2.7.6.zip</downloadurl>
|
<downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Component-Builder/releases/download/v2.7.7/JCB_v2.7.7.zip</downloadurl>
|
||||||
</downloads>
|
</downloads>
|
||||||
<tags>
|
<tags>
|
||||||
<tag>stable</tag>
|
<tag>stable</tag>
|
||||||
|
@ -4878,7 +4878,7 @@ class com_componentbuilderInstallerScript
|
|||||||
echo '<a target="_blank" href="http://joomlacomponentbuilder.com" title="Component Builder">
|
echo '<a target="_blank" href="http://joomlacomponentbuilder.com" title="Component Builder">
|
||||||
<img src="components/com_componentbuilder/assets/images/vdm-component.jpg"/>
|
<img src="components/com_componentbuilder/assets/images/vdm-component.jpg"/>
|
||||||
</a>
|
</a>
|
||||||
<h3>Upgrade to Version 2.7.6 Was Successful! Let us know if anything is not working as expected.</h3>';
|
<h3>Upgrade to Version 2.7.7 Was Successful! Let us know if anything is not working as expected.</h3>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2042,57 +2042,47 @@ abstract class ComponentbuilderHelper
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected static $pkOwnerSearch = array(
|
||||||
|
'company' => 'COM_COMPONENTBUILDER_EMCOMPANYEM_BSB',
|
||||||
|
'owner' => 'COM_COMPONENTBUILDER_EMOWNEREM_BSB',
|
||||||
|
'website' => 'COM_COMPONENTBUILDER_EMWEBSITEEM_BSB',
|
||||||
|
'email' => 'COM_COMPONENTBUILDER_EMEMAILEM_BSB',
|
||||||
|
'license' => 'COM_COMPONENTBUILDER_EMLICENSEEM_BSB',
|
||||||
|
'copyright' => 'COM_COMPONENTBUILDER_EMCOPYRIGHTEM_BSB'
|
||||||
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get the JCB package owner details display
|
* get the JCB package owner details display
|
||||||
**/
|
**/
|
||||||
public static function getPackageOwnerDetailsDisplay(&$info, $trust = false)
|
public static function getPackageOwnerDetailsDisplay(&$info, $trust = false)
|
||||||
{
|
{
|
||||||
|
$hasOwner = false;
|
||||||
$ownerDetails = '<h2 class="module-title nav-header">' . JText::_('COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS') . '</h2>';
|
$ownerDetails = '<h2 class="module-title nav-header">' . JText::_('COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS') . '</h2>';
|
||||||
$ownerDetails .= '<ul>';
|
$ownerDetails .= '<ul>';
|
||||||
if (isset($info['getKeyFrom']['company']) && self::checkString($info['getKeyFrom']['company']))
|
// load the list items
|
||||||
|
foreach (self::$pkOwnerSearch as $key => $li)
|
||||||
{
|
{
|
||||||
$owner = $info['getKeyFrom']['company'];
|
if ($value = self::getPackageOwnerValue($key, $info))
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMCOMPANYEM_BSB', $info['getKeyFrom']['company']) . '</li>';
|
{
|
||||||
|
$ownerDetails .= '<li>' . JText::sprintf($li, $value) . '</li>';
|
||||||
|
// check if we have a owner/source name
|
||||||
|
if (('owner' === $key || 'company' === $key) && !$hasOwner)
|
||||||
|
{
|
||||||
|
$hasOwner = true;
|
||||||
|
$owner = $value;
|
||||||
}
|
}
|
||||||
// add value only if set
|
|
||||||
if (isset($info['getKeyFrom']['owner']) && self::checkString($info['getKeyFrom']['owner']))
|
|
||||||
{
|
|
||||||
if (!isset($owner))
|
|
||||||
{
|
|
||||||
$owner = $info['getKeyFrom']['owner'];
|
|
||||||
}
|
}
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMOWNEREM_BSB', $info['getKeyFrom']['owner']) . '</li>';
|
|
||||||
}
|
|
||||||
// add value only if set
|
|
||||||
if (isset($info['getKeyFrom']['website']) && self::checkString($info['getKeyFrom']['website']))
|
|
||||||
{
|
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMWEBSITEEM_BSB', $info['getKeyFrom']['website']) . '</li>';
|
|
||||||
}
|
|
||||||
// add value only if set
|
|
||||||
if (isset($info['getKeyFrom']['email']) && self::checkString($info['getKeyFrom']['email']))
|
|
||||||
{
|
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMEMAILEM_BSB', $info['getKeyFrom']['email']) . '</li>';
|
|
||||||
}
|
|
||||||
// add value only if set
|
|
||||||
if (isset($info['getKeyFrom']['license']) && self::checkString($info['getKeyFrom']['license']))
|
|
||||||
{
|
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMLICENSEEM_BSB', $info['getKeyFrom']['license']) . '</li>';
|
|
||||||
}
|
|
||||||
// add value only if set
|
|
||||||
if (isset($info['getKeyFrom']['copyright']) && self::checkString($info['getKeyFrom']['copyright']))
|
|
||||||
{
|
|
||||||
$ownerDetails .= '<li>' . JText::sprintf('COM_COMPONENTBUILDER_EMCOPYRIGHTEM_BSB', $info['getKeyFrom']['copyright']) . '</li>';
|
|
||||||
}
|
}
|
||||||
$ownerDetails .= '</ul>';
|
$ownerDetails .= '</ul>';
|
||||||
|
|
||||||
// provide some details to how the user can get a key
|
// provide some details to how the user can get a key
|
||||||
if (isset($info['getKeyFrom']['buy_link']) && self::checkString($info['getKeyFrom']['buy_link']))
|
if ($hasOwner && isset($info['getKeyFrom']['buy_link']) && self::checkString($info['getKeyFrom']['buy_link']))
|
||||||
{
|
{
|
||||||
$ownerDetails .= '<hr />';
|
$ownerDetails .= '<hr />';
|
||||||
$ownerDetails .= JText::sprintf('COM_COMPONENTBUILDER_BGET_THE_KEY_FROMB_A_CLASSBTN_BTNPRIMARY_HREFS_TARGET_BLANK_TITLEGET_A_KEY_FROM_SSA', $info['getKeyFrom']['buy_link'], $owner, $owner);
|
$ownerDetails .= JText::sprintf('COM_COMPONENTBUILDER_BGET_THE_KEY_FROMB_A_CLASSBTN_BTNPRIMARY_HREFS_TARGET_BLANK_TITLEGET_A_KEY_FROM_SSA', $info['getKeyFrom']['buy_link'], $owner, $owner);
|
||||||
}
|
}
|
||||||
// add more custom links
|
// add more custom links
|
||||||
elseif (isset($info['getKeyFrom']['buy_links']) && self::checkArray($info['getKeyFrom']['buy_links']))
|
elseif ($hasOwner && isset($info['getKeyFrom']['buy_links']) && self::checkArray($info['getKeyFrom']['buy_links']))
|
||||||
{
|
{
|
||||||
$buttons = array();
|
$buttons = array();
|
||||||
foreach ($info['getKeyFrom']['buy_links'] as $keyName => $link)
|
foreach ($info['getKeyFrom']['buy_links'] as $keyName => $link)
|
||||||
@ -2102,25 +2092,57 @@ abstract class ComponentbuilderHelper
|
|||||||
$ownerDetails .= '<hr />';
|
$ownerDetails .= '<hr />';
|
||||||
$ownerDetails .= implode('<br />', $buttons);
|
$ownerDetails .= implode('<br />', $buttons);
|
||||||
}
|
}
|
||||||
|
|
||||||
// return the owner details
|
// return the owner details
|
||||||
if (!isset($owner) && !$trust)
|
if (!$hasOwner)
|
||||||
|
{
|
||||||
|
$ownerDetails = '<h2>' . JText::_('COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS_NOT_FOUND') . '</h2>';
|
||||||
|
if (!$trust)
|
||||||
{
|
{
|
||||||
$ownerDetails = '<h2 style="color: #922924;">' . JText::_('COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS_NOT_FOUND') . '</h2>';
|
|
||||||
$ownerDetails .= '<p style="color: #922924;">' . JText::_('COM_COMPONENTBUILDER_BE_CAUTIOUS_DO_NOT_CONTINUE_UNLESS_YOU_TRUST_THE_ORIGIN_OF_THIS_PACKAGE') . '</p>';
|
$ownerDetails .= '<p style="color: #922924;">' . JText::_('COM_COMPONENTBUILDER_BE_CAUTIOUS_DO_NOT_CONTINUE_UNLESS_YOU_TRUST_THE_ORIGIN_OF_THIS_PACKAGE') . '</p>';
|
||||||
}
|
}
|
||||||
elseif (!isset($owner) && $trust)
|
|
||||||
{
|
|
||||||
$ownerDetails = '';
|
|
||||||
}
|
}
|
||||||
return $ownerDetails;
|
return $ownerDetails;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function getPackageOwnerValue($key, &$info)
|
||||||
|
{
|
||||||
|
$source = (isset($info['source']) && isset($info['source'][$key])) ? 'source' : ((isset($info['getKeyFrom']) && isset($info['getKeyFrom'][$key])) ? 'getKeyFrom' : false);
|
||||||
|
if ($source && self::checkString($info[$source][$key]))
|
||||||
|
{
|
||||||
|
return $info[$source][$key];
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get the JCB package component key status
|
||||||
|
**/
|
||||||
|
public static function getPackageComponentsKeyStatus(&$info)
|
||||||
|
{
|
||||||
|
// check the package key status
|
||||||
|
if (!isset($info['key']))
|
||||||
|
{
|
||||||
|
if (isset($info['getKeyFrom']) && isset($info['getKeyFrom']['owner']))
|
||||||
|
{
|
||||||
|
// this just confirms it for older packages
|
||||||
|
$info['key'] = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// this just confirms it for older packages
|
||||||
|
$info['key'] = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $info['key'];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get the JCB package component details display
|
* get the JCB package component details display
|
||||||
**/
|
**/
|
||||||
public static function getPackageComponentsDetailsDisplay(&$info)
|
public static function getPackageComponentsDetailsDisplay(&$info)
|
||||||
{
|
{
|
||||||
|
// check if these components need a key
|
||||||
|
$needKey = self::getPackageComponentsKeyStatus($info);
|
||||||
if (isset($info['name']) && self::checkArray($info['name']))
|
if (isset($info['name']) && self::checkArray($info['name']))
|
||||||
{
|
{
|
||||||
$cAmount = count((array) $info['name']);
|
$cAmount = count((array) $info['name']);
|
||||||
@ -2141,6 +2163,14 @@ abstract class ComponentbuilderHelper
|
|||||||
$display[] = '<div class="well well-small ' . $class2 . '">';
|
$display[] = '<div class="well well-small ' . $class2 . '">';
|
||||||
$display[] = '<h2 class="module-title nav-header">';
|
$display[] = '<h2 class="module-title nav-header">';
|
||||||
$display[] = JText::sprintf('COM_COMPONENTBUILDER_BSB_EMCOMPONENT_DETAILSEM', $value . ' v' . $info['component_version'][$key]);
|
$display[] = JText::sprintf('COM_COMPONENTBUILDER_BSB_EMCOMPONENT_DETAILSEM', $value . ' v' . $info['component_version'][$key]);
|
||||||
|
if ($needKey)
|
||||||
|
{
|
||||||
|
$display[] = ' - <em>' . JText::sprintf('COM_COMPONENTBUILDER_PAIDLOCKED') . '</em>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$display[] = ' - <em>' . JText::sprintf('COM_COMPONENTBUILDER_FREEOPEN') . '</em>';
|
||||||
|
}
|
||||||
$display[] = '</h2><p>';
|
$display[] = '</h2><p>';
|
||||||
$display[] = $info['short_description'][$key];
|
$display[] = $info['short_description'][$key];
|
||||||
$display[] = '</p><ul><li>';
|
$display[] = '</p><ul><li>';
|
||||||
@ -2171,7 +2201,7 @@ abstract class ComponentbuilderHelper
|
|||||||
}
|
}
|
||||||
return implode("\n",$display);
|
return implode("\n",$display);
|
||||||
}
|
}
|
||||||
return '<div>'.JText::_('COM_COMPONENTBUILDER_COPYRIGHT').'</div>';
|
return '<div>'.JText::_('COM_COMPONENTBUILDER_NO_COMPONENT_DETAILS_FOUND_SO_IT_IS_NOT_SAFE_TO_CONTINUE').'</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,14 +23,15 @@ COM_COMPONENTBUILDER_EMAUTHOREM_BSB="<em>Author</em>: <b>%s</b>"
|
|||||||
COM_COMPONENTBUILDER_EMCOMPANYEM_BSB="<em>Company:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMCOMPANYEM_BSB="<em>Company:</em> <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_EMCOMPANY_NAMEEM_BSB="<em>Company Name</em>: <b>%s</b>"
|
COM_COMPONENTBUILDER_EMCOMPANY_NAMEEM_BSB="<em>Company Name</em>: <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_EMCOPYRIGHTEM_BSB="<em>Copyright:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMCOPYRIGHTEM_BSB="<em>Copyright:</em> <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_EMEMAILEM_BSB="<em>Email:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMEMAILEM_BSB="<em>Email</em>: <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_EMLICENSEEM_BSB="<em>License:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMLICENSEEM_BSB="<em>License:</em> <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_EMOWNEREM_BSB="<em>Owner:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMOWNEREM_BSB="<em>Owner:</em> <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_EMWEBSITEEM_BSB="<em>Website:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMWEBSITEEM_BSB="<em>Website</em>: <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_ERROR="Error!"
|
COM_COMPONENTBUILDER_ERROR="Error!"
|
||||||
COM_COMPONENTBUILDER_EXAMPLE="Example"
|
COM_COMPONENTBUILDER_EXAMPLE="Example"
|
||||||
COM_COMPONENTBUILDER_FILE="File"
|
COM_COMPONENTBUILDER_FILE="File"
|
||||||
COM_COMPONENTBUILDER_FOLDER="Folder"
|
COM_COMPONENTBUILDER_FOLDER="Folder"
|
||||||
|
COM_COMPONENTBUILDER_FREEOPEN="Free/Open"
|
||||||
COM_COMPONENTBUILDER_GET_THE_KEY_FROM_BSB_FOR_A_CLASSBTN_BTNPRIMARY_HREFS_TARGET_BLANK_TITLEGET_A_KEY_FROM_SSA="Get the key from <b>%s</b> for <a class="btn btn-primary" href="%s" target="_blank" title="get a key from %s">%s</a>"
|
COM_COMPONENTBUILDER_GET_THE_KEY_FROM_BSB_FOR_A_CLASSBTN_BTNPRIMARY_HREFS_TARGET_BLANK_TITLEGET_A_KEY_FROM_SSA="Get the key from <b>%s</b> for <a class="btn btn-primary" href="%s" target="_blank" title="get a key from %s">%s</a>"
|
||||||
COM_COMPONENTBUILDER_HTWOCURL_NOT_FOUNDHTWOPPLEASE_SETUP_CURL_ON_YOUR_SYSTEM_OR_BCOMPONENTBUILDERB_WILL_NOT_FUNCTION_CORRECTLYP="<h2>Curl Not Found!</h2><p>Please setup curl on your system, or <b>componentbuilder</b> will not function correctly!</p>"
|
COM_COMPONENTBUILDER_HTWOCURL_NOT_FOUNDHTWOPPLEASE_SETUP_CURL_ON_YOUR_SYSTEM_OR_BCOMPONENTBUILDERB_WILL_NOT_FUNCTION_CORRECTLYP="<h2>Curl Not Found!</h2><p>Please setup curl on your system, or <b>componentbuilder</b> will not function correctly!</p>"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDER_BACKUP_KEY="Joomla Component Builder - Backup Key"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDER_BACKUP_KEY="Joomla Component Builder - Backup Key"
|
||||||
@ -42,12 +43,14 @@ COM_COMPONENTBUILDER_LOCAL="Local"
|
|||||||
COM_COMPONENTBUILDER_NEW="New"
|
COM_COMPONENTBUILDER_NEW="New"
|
||||||
COM_COMPONENTBUILDER_NOT_FOUND_OR_ACCESS_DENIED="Not found or access denied!"
|
COM_COMPONENTBUILDER_NOT_FOUND_OR_ACCESS_DENIED="Not found or access denied!"
|
||||||
COM_COMPONENTBUILDER_NO_ACCESS_GRANTED="No Access Granted!"
|
COM_COMPONENTBUILDER_NO_ACCESS_GRANTED="No Access Granted!"
|
||||||
|
COM_COMPONENTBUILDER_NO_COMPONENT_DETAILS_FOUND_SO_IT_IS_NOT_SAFE_TO_CONTINUE="No component details found, so it is not safe to continue!"
|
||||||
COM_COMPONENTBUILDER_NO_KEYS_WERE_FOUND_TO_ADD_AN_EXPORT_KEY_SIMPLY_OPEN_THE_COMPONENT_GO_TO_THE_TAB_CALLED_SETTINGS_BOTTOM_RIGHT_THERE_IS_A_FIELD_CALLED_EXPORT_KEY="No keys were found. To add an export key simply open the component, go to the tab called settings, bottom right there is a field called Export Key."
|
COM_COMPONENTBUILDER_NO_KEYS_WERE_FOUND_TO_ADD_AN_EXPORT_KEY_SIMPLY_OPEN_THE_COMPONENT_GO_TO_THE_TAB_CALLED_SETTINGS_BOTTOM_RIGHT_THERE_IS_A_FIELD_CALLED_EXPORT_KEY="No keys were found. To add an export key simply open the component, go to the tab called settings, bottom right there is a field called Export Key."
|
||||||
COM_COMPONENTBUILDER_OWNER_DETAILS_WAS_SET="Owner details was set"
|
COM_COMPONENTBUILDER_OWNER_DETAILS_WAS_SET="Owner details was set"
|
||||||
COM_COMPONENTBUILDER_OWNER_S="Owner: %s"
|
COM_COMPONENTBUILDER_OWNER_S="Owner: %s"
|
||||||
COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS="Package Owner Details"
|
COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS="Package Owner Details"
|
||||||
COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS_NOT_FOUND="Package owner details not found!"
|
COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS_NOT_FOUND="Package owner details not found!"
|
||||||
COM_COMPONENTBUILDER_PACKAGE_OWNER_NOT_SET="Package Owner Not Set"
|
COM_COMPONENTBUILDER_PACKAGE_OWNER_NOT_SET="Package Owner Not Set"
|
||||||
|
COM_COMPONENTBUILDER_PAIDLOCKED="Paid/Locked"
|
||||||
COM_COMPONENTBUILDER_PROPERTY="Property"
|
COM_COMPONENTBUILDER_PROPERTY="Property"
|
||||||
COM_COMPONENTBUILDER_SBR_YOU_CAN_ADD_AN_BACCESS_TOKENB_TO_GETBIBLE_GLOBAL_OPTIONS_TO_MAKE_AUTHENTICATED_REQUESTS_AN_ACCESS_TOKEN_WITH_ONLY_PUBLIC_ACCESS_WILL_DO="%s<br />You can add an <b>access token<b/> to getBible global options to make authenticated requests. An access token with only public access will do."
|
COM_COMPONENTBUILDER_SBR_YOU_CAN_ADD_AN_BACCESS_TOKENB_TO_GETBIBLE_GLOBAL_OPTIONS_TO_MAKE_AUTHENTICATED_REQUESTS_AN_ACCESS_TOKEN_WITH_ONLY_PUBLIC_ACCESS_WILL_DO="%s<br />You can add an <b>access token<b/> to getBible global options to make authenticated requests. An access token with only public access will do."
|
||||||
COM_COMPONENTBUILDER_SINCE_THE_OWNER_DETAILS_ARE_DISPLAYED_DURING_BIMPORT_PROCESSB_BEFORE_ADDING_THE_KEY_THIS_WAY_IF_THE_USERDEV_BDOES_NOTB_HAVE_THE_KEY_THEY_CAN_SEE_BWHERE_TO_GET_ITB="Since the owner details are displayed during <b>import process</b> before adding the key, this way if the user/dev <b>does not</b> have the key they can see <b>where to get it</b>."
|
COM_COMPONENTBUILDER_SINCE_THE_OWNER_DETAILS_ARE_DISPLAYED_DURING_BIMPORT_PROCESSB_BEFORE_ADDING_THE_KEY_THIS_WAY_IF_THE_USERDEV_BDOES_NOTB_HAVE_THE_KEY_THEY_CAN_SEE_BWHERE_TO_GET_ITB="Since the owner details are displayed during <b>import process</b> before adding the key, this way if the user/dev <b>does not</b> have the key they can see <b>where to get it</b>."
|
||||||
|
Loading…
Reference in New Issue
Block a user