diff --git a/DependencyInjection/Services/MenuComposer.php b/DependencyInjection/Services/MenuComposer.php new file mode 100644 index 000000000..cef6ae100 --- /dev/null +++ b/DependencyInjection/Services/MenuComposer.php @@ -0,0 +1,41 @@ +routeCollection = $router->getRouteCollection(); + } + + public function getRoutesFor($menuId, array $parameters = array()) { + $routes = array(); + + foreach ($this->routeCollection->all() as $key => $route) { + if ($route['options']['menu'] === $menuId) { + $routes[$route['options']['order']] = $route; + } + } + + return $routes; + + } + +} diff --git a/Resources/assets/gumpy/sass/_commons.scss b/Resources/assets/gumpy/sass/_commons.scss new file mode 100644 index 000000000..5818c7e52 --- /dev/null +++ b/Resources/assets/gumpy/sass/_commons.scss @@ -0,0 +1,9 @@ +.personName { + font-variant: small-caps; + text-transform: capitalize; +} + +.personName { + text-transform: capitalize; +} + diff --git a/Resources/assets/gumpy/sass/chillmain.scss b/Resources/assets/gumpy/sass/chillmain.scss index 1b5d74d66..fbd80d925 100644 --- a/Resources/assets/gumpy/sass/chillmain.scss +++ b/Resources/assets/gumpy/sass/chillmain.scss @@ -2,4 +2,6 @@ @import "_searchbox.scss"; -@import "_flashMessages.scss" +@import "_flashMessages.scss"; + +@import "_commons.scss"; diff --git a/Resources/config/services.yml b/Resources/config/services.yml index addfc89a7..827fccd64 100644 --- a/Resources/config/services.yml +++ b/Resources/config/services.yml @@ -2,6 +2,10 @@ parameters: # cl_chill_main.example.class: CL\Chill\MainBundle\Example services: + menu_composer: + class: CL\Chill\MainBundle\DependencyInjection\Services\MenuComposer + arguments: + - "@routing.loader" # cl_chill_main.example: # class: %cl_chill_main.example.class% # arguments: [@service_id, "plain_value", %parameter%] diff --git a/Resources/public/css/chillmain.css b/Resources/public/css/chillmain.css index 95dea9196..a0dabad27 100644 --- a/Resources/public/css/chillmain.css +++ b/Resources/public/css/chillmain.css @@ -12,3 +12,7 @@ div#usefulbar li#search_element div#search_form button { color: white; border: n div#flashMessages { margin-top: 20px; } div#flashMessages .flash-notice { margin-top: 10px; margin-bottom: 10px; } + +.personName { font-variant: small-caps; text-transform: capitalize; } + +.personName { text-transform: capitalize; } diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index 7ee0f1255..367648159 100644 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -63,11 +63,11 @@
  • - +
    - +
    @@ -100,19 +100,19 @@
    {% for flashMessage in app.session.flashbag.get('success') %}
    - {{ flashMessage }} + {{ flashMessage|raw }}
    {% endfor %} {% for flashMessage in app.session.flashbag.get('danger') %}
    - {{ flashMessage }} + {{ flashMessage|raw }}
    {% endfor %} {% for flashMessage in app.session.flashbag.get('info') %}
    - {{ flashMessage }} + {{ flashMessage|raw }}
    {% endfor %} @@ -124,7 +124,7 @@
    - + {% block content %}