Skip to content
Snippets Groups Projects
Commit 2353daf0 authored by Vladimir Pelipenko's avatar Vladimir Pelipenko
Browse files

Merge pull request #16 from magento-extensibility/MAGETWO-31776-add-parent-element-theme

[Extensibility] Magetwo 31776 add parent element theme
parents a3981957 e0bb974e
Branches
No related merge requests found
Showing
with 14 additions and 98 deletions
......@@ -268,15 +268,7 @@ class Collection extends \Magento\Framework\Data\Collection implements ListInter
$relativeConfigPath = $this->_directory->getRelativePath($configPath);
$configContent = $this->_directory->isExist($relativeConfigPath) ?
$this->_directory->readFile($relativeConfigPath) : null;
$relativeComposerPath = dirname($relativeConfigPath) . '/composer.json';
$composerContent = $this->_directory->isExist($relativeComposerPath) ?
$this->_directory->readFile($relativeComposerPath) : null;
return $this->themeConfigFactory->create(
[
'configContent' => $configContent,
'composerContent' => $composerContent,
]
);
return $this->themeConfigFactory->create(['configContent' => $configContent]);
}
/**
......
......@@ -5,4 +5,5 @@
-->
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Config/etc/theme.xsd">
<title>Magento 2 backend</title>
<version>0.1.0</version>
</theme>
......@@ -5,6 +5,7 @@
-->
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Config/etc/theme.xsd">
<title>Magento Blank</title>
<version>0.1.0</version>
<media>
<preview_image>media/preview.jpg</preview_image>
</media>
......
......@@ -5,6 +5,8 @@
-->
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Config/etc/theme.xsd">
<title>Magento Luma</title>
<version>0.1.0</version>
<parent>Magento/blank</parent>
<media>
<preview_image>media/preview.jpg</preview_image>
</media>
......
{
"name": "magento/theme-frontend-a_d",
"description": "N/A",
"require": {
"php": "~5.4.11|~5.5.0",
"magento/framework": "0.1.0-alpha103",
"magento/magento-composer-installer": "*"
},
"type": "magento2-theme",
"version": "0.1.0"
}
\ No newline at end of file
......@@ -6,4 +6,5 @@
-->
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../../../../../../../lib/internal/Magento/Framework/Config/etc/theme.xsd">
<title>Theme D</title>
<version>0.1.0</version>
</theme>
{
"name": "magento/theme-fronend-b_e",
"description": "N/A",
"require": {
"php": "~5.4.11|~5.5.0",
"magento/framework": "0.1.0-alpha103",
"magento/magento-composer-installer": "*"
},
"type": "magento2-theme",
"version": "0.1.0"
}
......@@ -6,4 +6,5 @@
-->
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../../../../../../../lib/internal/Magento/Framework/Config/etc/theme.xsd">
<title>Theme E</title>
<version>0.1.0</version>
</theme>
{
"name": "magento/theme-frontend-magento_default",
"description": "N/A",
"require": {
"php": "~5.4.11|~5.5.0",
"magento/framework": "0.1.0-alpha103",
"magento/magento-composer-installer": "*"
},
"type": "magento2-theme",
"version": "0.1.0"
}
\ No newline at end of file
......@@ -6,4 +6,5 @@
-->
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../../../../../../../lib/internal/Magento/Framework/Config/etc/theme.xsd">
<title>Default</title>
<version>0.1.0</version>
</theme>
{
"name": "magento/theme-frontend-magento_g",
"description": "N/A",
"require": {
"php": "~5.4.11|~5.5.0",
"magento/framework": "0.1.0-alpha103",
"magento/theme-frontend-magento_default": "0.1.0",
"magento/magento-composer-installer": "*"
},
"type": "magento2-theme",
"version": "0.1.0"
}
\ No newline at end of file
......@@ -6,4 +6,6 @@
-->
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../../../../../../../lib/internal/Magento/Framework/Config/etc/theme.xsd">
<title>Theme G</title>
<version>0.1.0</version>
<parent>Magento/default</parent>
</theme>
{
"name": "vendor/theme-adminhtml-test",
"description": "N/A",
"require": {
"php": "~5.4.11|~5.5.0",
"magento/framework": "0.1.0-alpha103",
"magento/magento-composer-installer": "*"
},
"type": "magento2-theme",
"version": "0.1.0"
}
......@@ -5,4 +5,5 @@
-->
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../../../../../../lib/internal/Magento/Framework/Config/etc/theme.xsd">
<title>Default</title>
<version>0.1.0</version>
</theme>
{
"name": "vendor/theme-area_two-theme_one",
"description": "N/A",
"require": {
"php": "~5.4.11|~5.5.0",
"magento/framework": "0.1.0-alpha103",
"magento/magento-composer-installer": "*"
},
"type": "magento2-theme",
"version": "0.1.0"
}
......@@ -5,4 +5,5 @@
-->
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../../../../../../lib/internal/Magento/Framework/Config/etc/theme.xsd">
<title>Theme One</title>
<version>0.1.0</version>
</theme>
{
"name": "vendor/theme-design_area-theme_one",
"description": "N/A",
"require": {
"php": "~5.4.11|~5.5.0",
"magento/framework": "0.1.0-alpha103",
"magento/magento-composer-installer": "*"
},
"type": "magento2-theme",
"version": "0.1.0"
}
......@@ -5,4 +5,5 @@
-->
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../../../../../../lib/internal/Magento/Framework/Config/etc/theme.xsd">
<title>Theme One</title>
<version>0.1.0</version>
</theme>
{
"name": "magento/theme-frontend-default",
"description": "N/A",
"require": {
"php": "~5.4.11|~5.5.0",
"magento/framework": "0.1.0-alpha103",
"magento/magento-composer-installer": "*"
},
"type": "magento2-theme",
"version": "0.1.0"
}
......@@ -5,4 +5,5 @@
-->
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../../../../../../lib/internal/Magento/Framework/Config/etc/theme.xsd">
<title>Default</title>
<version>0.1.0</version>
</theme>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment