Skip to content

Commit

Permalink
Merge pull request #97 from oveleon/feature/twig
Browse files Browse the repository at this point in the history
Twig support
  • Loading branch information
doishub authored Mar 13, 2024
2 parents e9442be + 652e5cc commit b3e7d40
Show file tree
Hide file tree
Showing 74 changed files with 110 additions and 60 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.github export-ignore
/.gitignore export-ignore
/docs export-ignore
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
"Oveleon\\ContaoComponentStyleManager\\": "src/"
},
"classmap": [
"src/Resources/contao/"
"contao/"
],
"exclude-from-classmap": [
"src/Resources/contao/config/",
"src/Resources/contao/dca/",
"src/Resources/contao/languages/",
"src/Resources/contao/templates/"
"contao/config/",
"contao/dca/",
"contao/languages/",
"contao/templates/"
]
},
"extra": {
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions config/routes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
stylemanager:
resource: '../src/Controller'
type: annotation
4 changes: 2 additions & 2 deletions src/Resources/config/services.yaml → config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ services:
public: true

Oveleon\ContaoComponentStyleManager\:
resource: '../../'
exclude: '../../{Model,DependencyInjection,Resources}'
resource: '../src/'
exclude: '../src/{Model,DependencyInjection,Resources}'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?><xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/default.php" source-language="en" target-language="de">
<file datatype="php" original="contao/languages/en/default.php" source-language="en" target-language="de">
<body>
<trans-unit id="ERR.identifierExists">
<source>The Identifier &quot;%s&quot; already exists!</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?><xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/explain.php" source-language="en" target-language="de">
<file datatype="php" original="contao/languages/en/explain.php" source-language="en" target-language="de">
<body>
<trans-unit id="XPL.styleManagerFieldClass.0.0">
<source>colspan</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/modules.php" source-language="en" target-language="de">
<file datatype="php" original="contao/languages/en/modules.php" source-language="en" target-language="de">
<body>
<trans-unit id="MOD.style_manager.0">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_article.php" source-language="en" target-language="fr">
<file datatype="php" original="contao/languages/en/tl_article.php" source-language="en" target-language="de">
<body>
<trans-unit id="tl_article.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_calendar_events.php" source-language="en" target-language="fr">
<file datatype="php" original="contao/languages/en/tl_calendar_events.php" source-language="en" target-language="de">
<body>
<trans-unit id="tl_calendar_events.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_content.php" source-language="en" target-language="fr">
<file datatype="php" original="contao/languages/en/tl_content.php" source-language="en" target-language="de">
<body>
<trans-unit id="tl_content.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_form.php" source-language="en" target-language="de">
<file datatype="php" original="contao/languages/en/tl_form.php" source-language="en" target-language="de">
<body>
<trans-unit id="tl_form.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_form_field.php" source-language="en" target-language="fr">
<file datatype="php" original="contao/languages/en/tl_form_field.php" source-language="en" target-language="de">
<body>
<trans-unit id="tl_form_field.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_layout.php" source-language="en" target-language="fr">
<file datatype="php" original="contao/languages/en/tl_layout.php" source-language="en" target-language="de">
<body>
<trans-unit id="tl_layout.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_module.php" source-language="en" target-language="fr">
<file datatype="php" original="contao/languages/en/tl_module.php" source-language="en" target-language="de">
<body>
<trans-unit id="tl_module.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_news.php" source-language="en" target-language="fr">
<file datatype="php" original="contao/languages/en/tl_news.php" source-language="en" target-language="de">
<body>
<trans-unit id="tl_news.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_page.php" source-language="en" target-language="fr">
<file datatype="php" original="contao/languages/en/tl_page.php" source-language="en" target-language="de">
<body>
<trans-unit id="tl_page.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_style_manager.php" source-language="en" target-language="de">
<file datatype="php" original="contao/languages/en/tl_style_manager.php" source-language="en" target-language="de">
<body>
<trans-unit id="tl_style_manager.title_legend">
<source>Title</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_style_manager_archive.php" source-language="en" target-language="de">
<file datatype="php" original="contao/languages/en/tl_style_manager_archive.php" source-language="en" target-language="de">
<body>
<trans-unit id="tl_style_manager_archive.title_legend">
<source>Title</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_style_manager_import.php" source-language="en" target-language="de">
<file datatype="php" original="contao/languages/en/tl_style_manager_import.php" source-language="en" target-language="de">
<body>
<trans-unit id="tl_style_manager_import.bundleConfig">
<source>Bundle configurations</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?><xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/default.php" source-language="en">
<file datatype="php" original="contao/languages/en/default.php" source-language="en">
<body>
<trans-unit id="ERR.identifierExists">
<source>The Identifier &quot;%s&quot; already exists!</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?><xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/explain.php" source-language="en">
<file datatype="php" original="contao/languages/en/explain.php" source-language="en">
<body>
<trans-unit id="XPL.styleManagerFieldClass.0.0">
<source>colspan</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/modules.php" source-language="en">
<file datatype="php" original="contao/languages/en/modules.php" source-language="en">
<body>
<trans-unit id="MOD.style_manager.0">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_article.php" source-language="en">
<file datatype="php" original="contao/languages/en/tl_article.php" source-language="en">
<body>
<trans-unit id="tl_article.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_calendar_events.php" source-language="en">
<file datatype="php" original="contao/languages/en/tl_calendar_events.php" source-language="en">
<body>
<trans-unit id="tl_calendar_events.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_content.php" source-language="en">
<file datatype="php" original="contao/languages/en/tl_content.php" source-language="en">
<body>
<trans-unit id="tl_content.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_form.php" source-language="en">
<file datatype="php" original="contao/languages/en/tl_form.php" source-language="en">
<body>
<trans-unit id="tl_form.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_form_field.php" source-language="en">
<file datatype="php" original="contao/languages/en/tl_form_field.php" source-language="en">
<body>
<trans-unit id="tl_form_field.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_layout.php" source-language="en">
<file datatype="php" original="contao/languages/en/tl_layout.php" source-language="en">
<body>
<trans-unit id="tl_layout.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_module.php" source-language="en">
<file datatype="php" original="contao/languages/en/tl_module.php" source-language="en">
<body>
<trans-unit id="tl_module.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_news.php" source-language="en">
<file datatype="php" original="contao/languages/en/tl_news.php" source-language="en">
<body>
<trans-unit id="tl_news.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_page.php" source-language="en">
<file datatype="php" original="contao/languages/en/tl_page.php" source-language="en">
<body>
<trans-unit id="tl_page.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_style_manager.php" source-language="en">
<file datatype="php" original="contao/languages/en/tl_style_manager.php" source-language="en">
<body>
<trans-unit id="tl_style_manager.title_legend">
<source>Title</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_style_manager_archive.php" source-language="en">
<file datatype="php" original="contao/languages/en/tl_style_manager_archive.php" source-language="en">
<body>
<trans-unit id="tl_style_manager_archive.title_legend">
<source>Title</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_style_manager_import.php" source-language="en">
<file datatype="php" original="contao/languages/en/tl_style_manager_import.php" source-language="en">
<body>
<trans-unit id="tl_style_manager_import.bundleConfig">
<source>Bundle configurations</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?><xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/default.php" source-language="en" target-language="fr">
<file datatype="php" original="contao/languages/en/default.php" source-language="en" target-language="fr">
<body>
<trans-unit id="ERR.identifierExists">
<source>The Identifier &quot;%s&quot; already exists!</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?><xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/explain.php" source-language="en" target-language="fr">
<file datatype="php" original="contao/languages/en/explain.php" source-language="en" target-language="fr">
<body>
<trans-unit id="XPL.styleManagerFieldClass.0.0">
<source>colspan</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/modules.php" source-language="en" target-language="fr">
<file datatype="php" original="contao/languages/en/modules.php" source-language="en" target-language="fr">
<body>
<trans-unit id="MOD.style_manager.0">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_article.php" source-language="en" target-language="de">
<file datatype="php" original="contao/languages/en/tl_article.php" source-language="en" target-language="fr">
<body>
<trans-unit id="tl_article.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_calendar_events.php" source-language="en" target-language="de">
<file datatype="php" original="contao/languages/en/tl_calendar_events.php" source-language="en" target-language="fr">
<body>
<trans-unit id="tl_calendar_events.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_content.php" source-language="en" target-language="de">
<file datatype="php" original="contao/languages/en/tl_content.php" source-language="en" target-language="fr">
<body>
<trans-unit id="tl_content.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_form.php" source-language="en" target-language="fr">
<file datatype="php" original="contao/languages/en/tl_form.php" source-language="en" target-language="fr">
<body>
<trans-unit id="tl_form.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_form_field.php" source-language="en" target-language="de">
<file datatype="php" original="contao/languages/en/tl_form_field.php" source-language="en" target-language="fr">
<body>
<trans-unit id="tl_form_field.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_layout.php" source-language="en" target-language="de">
<file datatype="php" original="contao/languages/en/tl_layout.php" source-language="en" target-language="fr">
<body>
<trans-unit id="tl_layout.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_module.php" source-language="en" target-language="de">
<file datatype="php" original="contao/languages/en/tl_module.php" source-language="en" target-language="fr">
<body>
<trans-unit id="tl_module.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_news.php" source-language="en" target-language="de">
<file datatype="php" original="contao/languages/en/tl_news.php" source-language="en" target-language="fr">
<body>
<trans-unit id="tl_news.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_page.php" source-language="en" target-language="de">
<file datatype="php" original="contao/languages/en/tl_page.php" source-language="en" target-language="fr">
<body>
<trans-unit id="tl_page.style_manager_legend">
<source>Style Manager</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_style_manager.php" source-language="en" target-language="fr">
<file datatype="php" original="contao/languages/en/tl_style_manager.php" source-language="en" target-language="fr">
<body>
<trans-unit id="tl_style_manager.title_legend">
<source>Title</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_style_manager_archive.php" source-language="en" target-language="fr">
<file datatype="php" original="contao/languages/en/tl_style_manager_archive.php" source-language="en" target-language="fr">
<body>
<trans-unit id="tl_style_manager_archive.title_legend">
<source>Title</source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<xliff version="1.1">
<file datatype="php" original="src/Resources/contao/languages/en/tl_style_manager_import.php" source-language="en" target-language="fr">
<file datatype="php" original="contao/languages/en/tl_style_manager_import.php" source-language="en" target-language="fr">
<body>
<trans-unit id="tl_style_manager_import.bundleConfig">
<source>Bundle configurations</source>
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 5 additions & 1 deletion src/ContaoComponentStyleManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@

class ContaoComponentStyleManager extends Bundle
{
}
public function getPath(): string
{
return \dirname(__DIR__);
}
}
Loading

0 comments on commit b3e7d40

Please sign in to comment.