From 97d6506cf6d33c591bc02c0f0945e2909007bb09 Mon Sep 17 00:00:00 2001 From: Thiago Campos Viana Date: Fri, 27 Dec 2013 11:56:40 -0200 Subject: [PATCH] - Formatting twig templates, following coding standards --- Classes/Components/Banners.php | 2 +- Classes/Components/Blocks.php | 2 +- Classes/Components/Breadcrumb.php | 2 +- Classes/Components/ExtraInfo.php | 6 +++--- Classes/Components/TopMenu.php | 2 +- Resources/views/content/default/block.html.twig | 2 +- Resources/views/content/default/box.html.twig | 6 +++--- .../views/content/default/menu_item.html.twig | 16 ++++++++-------- Resources/views/parts/breadcrumb.html.twig | 2 +- Resources/views/parts/extra_info.html.twig | 4 ++-- Resources/views/parts/page_banners.html.twig | 2 +- Resources/views/parts/page_blocks.html.twig | 2 +- Resources/views/parts/top_menu.html.twig | 16 ++++++++-------- 13 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Classes/Components/Banners.php b/Classes/Components/Banners.php index bf62257..dd39a3e 100644 --- a/Classes/Components/Banners.php +++ b/Classes/Components/Banners.php @@ -102,7 +102,7 @@ public function render() return $this->controller->render( 'TuteiBaseBundle:parts:page_banners.html.twig', array( 'banners' => $blocks, - 'relationList' => $relationList + 'relation_list' => $relationList ), $response ); } diff --git a/Classes/Components/Blocks.php b/Classes/Components/Blocks.php index ced64a1..6cec4be 100644 --- a/Classes/Components/Blocks.php +++ b/Classes/Components/Blocks.php @@ -111,7 +111,7 @@ public function render() return $this->controller->render( 'TuteiBaseBundle:parts:page_blocks.html.twig', array( 'blocks' => $blocks, - 'relationList' => $relationList + 'relation_list' => $relationList ), $response ); } diff --git a/Classes/Components/Breadcrumb.php b/Classes/Components/Breadcrumb.php index 380e5cf..c3d9972 100644 --- a/Classes/Components/Breadcrumb.php +++ b/Classes/Components/Breadcrumb.php @@ -27,7 +27,7 @@ public function render() return $this->controller->render( 'TuteiBaseBundle:parts:breadcrumb.html.twig', array( - 'locationList' => $path + 'location_list' => $path ), $response ); } diff --git a/Classes/Components/ExtraInfo.php b/Classes/Components/ExtraInfo.php index 632faae..f2b062d 100644 --- a/Classes/Components/ExtraInfo.php +++ b/Classes/Components/ExtraInfo.php @@ -77,7 +77,7 @@ public function render() if (isset($content->valueObject->fields['source'][$language]->destinationContentId)) { $srcId = $content->valueObject->fields['source'][$language]->destinationContentId; - $source = $contentService->loadContent($objId); + $source = $contentService->loadContent($srcId); $query = new Query(); $query->criterion = new LogicalAnd( @@ -96,8 +96,8 @@ public function render() return $this->controller->render( 'TuteiBaseBundle:parts:extra_info.html.twig', array( 'list' => $list, - 'relationList' => $relationList, - 'sourceItems' => $sourceItems + 'relation_list' => $relationList, + 'source_items' => $sourceItems ), $response ); } diff --git a/Classes/Components/TopMenu.php b/Classes/Components/TopMenu.php index 869ba8f..139c1ff 100644 --- a/Classes/Components/TopMenu.php +++ b/Classes/Components/TopMenu.php @@ -69,7 +69,7 @@ public function render() 'TuteiBaseBundle:parts:top_menu.html.twig', array( 'list' => $list, 'locations' => $locations, - 'locationChildren' => $locationChildren, + 'location_children' => $locationChildren, ), $response ); } diff --git a/Resources/views/content/default/block.html.twig b/Resources/views/content/default/block.html.twig index 0605baf..d14f5fe 100644 --- a/Resources/views/content/default/block.html.twig +++ b/Resources/views/content/default/block.html.twig @@ -15,7 +15,7 @@ {% set link = '' %} {% if not ez_is_field_empty( content, "link_object" ) %} - {% set link = path(relationList[content.fields.link_object[language].destinationContentId]) %} + {% set link = path(relation_list[content.fields.link_object[language].destinationContentId]) %} {% elseif not ez_is_field_empty( content, "link_external" ) %} {% set link = content.fields.link_external[language].link %} {% endif %} diff --git a/Resources/views/content/default/box.html.twig b/Resources/views/content/default/box.html.twig index 402e6a7..5b82d79 100644 --- a/Resources/views/content/default/box.html.twig +++ b/Resources/views/content/default/box.html.twig @@ -12,7 +12,7 @@ {% set link = '' %} {% if not ez_is_field_empty( content, "link_object" ) %} - {% set link = path(relationList[content.fields.link_object[language].destinationContentId]) %} + {% set link = path(relation_list[content.fields.link_object[language].destinationContentId]) %} {% elseif not ez_is_field_empty( content, "link_external" ) %} {% set link = content.fields.link_external[language].link %} {% endif %} @@ -44,8 +44,8 @@ {% endif %} - {% if sourceItems[content.fields.source[language].destinationContentId] is defined %} - {% set items = sourceItems[content.fields.source[language].destinationContentId] %} + {% if source_items[content.fields.source[language].destinationContentId] is defined %} + {% set items = source_items[content.fields.source[language].destinationContentId] %}