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-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
|
||||
// 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);
|
||||
// end template
|
||||
$text[] = '</div>';
|
||||
$text[] = '</div><br /><br />';
|
||||
$text[] = '</div>';
|
||||
$text[] = "</body>";
|
||||
$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-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
|
||||
// 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);
|
||||
// end template
|
||||
$text[] = '</div>';
|
||||
$text[] = '</div><br /><br />';
|
||||
$text[] = '</div>';
|
||||
$text[] = "</body>";
|
||||
$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-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
|
||||
// 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);
|
||||
// end template
|
||||
$text[] = '</div>';
|
||||
$text[] = '</div><br /><br />';
|
||||
$text[] = '</div>';
|
||||
$text[] = "</body>";
|
||||
$text[] = "</html>";
|
||||
|
@ -3624,6 +3624,9 @@ class Interpretation extends Fields
|
||||
{
|
||||
// reset script
|
||||
$script = $this->setComponentToContentTypes('install');
|
||||
|
||||
// set the component name
|
||||
$component = $this->fileContentStatic['###component###'];
|
||||
|
||||
if (isset($this->paramsBuilder) && ComponentbuilderHelper::checkString($this->paramsBuilder))
|
||||
{
|
||||
|
@ -1417,14 +1417,14 @@ class com_componentbuilderInstallerScript
|
||||
|
||||
// Condition.
|
||||
$conditions = array(
|
||||
$db->quoteName('element') . ' = ' . $db->quote('com_')
|
||||
$db->quoteName('element') . ' = ' . $db->quote('com_componentbuilder')
|
||||
);
|
||||
|
||||
$query->update($db->quoteName('#__extensions'))->set($fields)->where($conditions);
|
||||
$db->setQuery($query);
|
||||
$allDone = $db->execute();
|
||||
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>';
|
||||
}
|
||||
// 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-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
|
||||
// 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);
|
||||
// end template
|
||||
$text[] = '</div>';
|
||||
$text[] = '</div><br /><br />';
|
||||
$text[] = '</div>';
|
||||
$text[] = "</body>";
|
||||
$text[] = "</html>";
|
||||
|
Loading…
Reference in New Issue
Block a user