forked from joomla/Component-Builder
Fixed the bug for the image display on install, it was missing the component name.
This commit is contained in:
parent
ef8578104c
commit
21756c3e55
@ -117,10 +117,10 @@ class ###Component###ControllerHelp extends JControllerLegacy
|
|||||||
$text[] = '<div class="uk-container uk-container-center uk-grid-collapse">';
|
$text[] = '<div class="uk-container uk-container-center uk-grid-collapse">';
|
||||||
$text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
|
$text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
|
||||||
// build the help text
|
// build the help text
|
||||||
$text[] = '<h3 class="uk-panel-title">'.$document->title."</h3>";
|
$text[] = '<h1 class="uk-panel-title">'.$document->title."</h1>";
|
||||||
$text[] = str_replace(array_keys($images),array_values($images),$document->content);
|
$text[] = str_replace(array_keys($images),array_values($images),$document->content);
|
||||||
// end template
|
// end template
|
||||||
$text[] = '</div>';
|
$text[] = '</div><br /><br />';
|
||||||
$text[] = '</div>';
|
$text[] = '</div>';
|
||||||
$text[] = "</body>";
|
$text[] = "</body>";
|
||||||
$text[] = "</html>";
|
$text[] = "</html>";
|
||||||
|
@ -118,10 +118,10 @@ class ###Component###ControllerHelp extends JControllerLegacy
|
|||||||
$text[] = '<div class="uk-container uk-container-center uk-grid-collapse">';
|
$text[] = '<div class="uk-container uk-container-center uk-grid-collapse">';
|
||||||
$text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
|
$text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
|
||||||
// build the help text
|
// build the help text
|
||||||
$text[] = '<h3 class="uk-panel-title">'.$document->title."</h3>";
|
$text[] = '<h1 class="uk-panel-title">'.$document->title."</h1>";
|
||||||
$text[] = str_replace(array_keys($images),array_values($images),$document->content);
|
$text[] = str_replace(array_keys($images),array_values($images),$document->content);
|
||||||
// end template
|
// end template
|
||||||
$text[] = '</div>';
|
$text[] = '</div><br /><br />';
|
||||||
$text[] = '</div>';
|
$text[] = '</div>';
|
||||||
$text[] = "</body>";
|
$text[] = "</body>";
|
||||||
$text[] = "</html>";
|
$text[] = "</html>";
|
||||||
|
@ -115,10 +115,10 @@ class ComponentbuilderControllerHelp extends JControllerLegacy
|
|||||||
$text[] = '<div class="uk-container uk-container-center uk-grid-collapse">';
|
$text[] = '<div class="uk-container uk-container-center uk-grid-collapse">';
|
||||||
$text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
|
$text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
|
||||||
// build the help text
|
// build the help text
|
||||||
$text[] = '<h3 class="uk-panel-title">'.$document->title."</h3>";
|
$text[] = '<h1 class="uk-panel-title">'.$document->title."</h1>";
|
||||||
$text[] = str_replace(array_keys($images),array_values($images),$document->content);
|
$text[] = str_replace(array_keys($images),array_values($images),$document->content);
|
||||||
// end template
|
// end template
|
||||||
$text[] = '</div>';
|
$text[] = '</div><br /><br />';
|
||||||
$text[] = '</div>';
|
$text[] = '</div>';
|
||||||
$text[] = "</body>";
|
$text[] = "</body>";
|
||||||
$text[] = "</html>";
|
$text[] = "</html>";
|
||||||
|
@ -3625,6 +3625,9 @@ class Interpretation extends Fields
|
|||||||
// reset script
|
// reset script
|
||||||
$script = $this->setComponentToContentTypes('install');
|
$script = $this->setComponentToContentTypes('install');
|
||||||
|
|
||||||
|
// set the component name
|
||||||
|
$component = $this->fileContentStatic['###component###'];
|
||||||
|
|
||||||
if (isset($this->paramsBuilder) && ComponentbuilderHelper::checkString($this->paramsBuilder))
|
if (isset($this->paramsBuilder) && ComponentbuilderHelper::checkString($this->paramsBuilder))
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkString($script))
|
if (ComponentbuilderHelper::checkString($script))
|
||||||
|
@ -1417,14 +1417,14 @@ class com_componentbuilderInstallerScript
|
|||||||
|
|
||||||
// Condition.
|
// Condition.
|
||||||
$conditions = array(
|
$conditions = array(
|
||||||
$db->quoteName('element') . ' = ' . $db->quote('com_')
|
$db->quoteName('element') . ' = ' . $db->quote('com_componentbuilder')
|
||||||
);
|
);
|
||||||
|
|
||||||
$query->update($db->quoteName('#__extensions'))->set($fields)->where($conditions);
|
$query->update($db->quoteName('#__extensions'))->set($fields)->where($conditions);
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
$allDone = $db->execute();
|
$allDone = $db->execute();
|
||||||
echo '<a target="_blank" href="https://www.vdm.io/joomla-component-builder" title="Component Builder">
|
echo '<a target="_blank" href="https://www.vdm.io/joomla-component-builder" title="Component Builder">
|
||||||
<img src="components/com_/assets/images/component-300.png"/>
|
<img src="components/com_componentbuilder/assets/images/component-300.png"/>
|
||||||
</a>';
|
</a>';
|
||||||
}
|
}
|
||||||
// do any updates needed
|
// do any updates needed
|
||||||
|
@ -116,10 +116,10 @@ class ComponentbuilderControllerHelp extends JControllerLegacy
|
|||||||
$text[] = '<div class="uk-container uk-container-center uk-grid-collapse">';
|
$text[] = '<div class="uk-container uk-container-center uk-grid-collapse">';
|
||||||
$text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
|
$text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
|
||||||
// build the help text
|
// build the help text
|
||||||
$text[] = '<h3 class="uk-panel-title">'.$document->title."</h3>";
|
$text[] = '<h1 class="uk-panel-title">'.$document->title."</h1>";
|
||||||
$text[] = str_replace(array_keys($images),array_values($images),$document->content);
|
$text[] = str_replace(array_keys($images),array_values($images),$document->content);
|
||||||
// end template
|
// end template
|
||||||
$text[] = '</div>';
|
$text[] = '</div><br /><br />';
|
||||||
$text[] = '</div>';
|
$text[] = '</div>';
|
||||||
$text[] = "</body>";
|
$text[] = "</body>";
|
||||||
$text[] = "</html>";
|
$text[] = "</html>";
|
||||||
|
Loading…
Reference in New Issue
Block a user