From e7a3ecd3836bebfe6b2c905b1d69a1bb5323fcdf Mon Sep 17 00:00:00 2001 From: Pau Iranzo Date: Tue, 22 Mar 2016 06:56:33 +0100 Subject: [PATCH] #158 added credits variables to templates --- aparell.php | 1 + corrector.php | 1 + diccionari-multilingue.php | 1 + page.php | 1 + single-esdeveniment.php | 1 + single-programa.php | 1 + single-projecte.php | 1 + sinonims.php | 1 + traductor.php | 1 + 9 files changed, 9 insertions(+) diff --git a/aparell.php b/aparell.php index 0b07ddcf..b339d380 100644 --- a/aparell.php +++ b/aparell.php @@ -18,6 +18,7 @@ $parent_data = get_page_parent_title( $post ); $context['sidebar_elements'] = array( 'static/suggeriment.twig', 'baixades.twig', 'links.twig' ); $context['links'] = $post->get_field( 'link' ); +$context['credits'] = $post->get_field( 'credit' ); $context['parent_title'] = $parent_data['title']; $context['page_hierarchy'] = wp_list_subpages($parent_data['id']); diff --git a/corrector.php b/corrector.php index 2728d577..1b262ca0 100644 --- a/corrector.php +++ b/corrector.php @@ -23,6 +23,7 @@ $context['post'] = $post; $context['content_title'] = 'Corrector'; $context['links'] = $post->get_field( 'link' ); +$context['credits'] = $post->get_field( 'credit' ); $context['sidebar_top'] = Timber::get_widgets('sidebar_top_recursos'); $context['sidebar_elements'] = array( 'static/ajudeu.twig', 'static/dubte_forum.twig', 'baixades.twig', 'links.twig' ); $context['sidebar_bottom'] = Timber::get_widgets('sidebar_bottom_recursos'); diff --git a/diccionari-multilingue.php b/diccionari-multilingue.php index cf7025ba..93aabdca 100644 --- a/diccionari-multilingue.php +++ b/diccionari-multilingue.php @@ -79,6 +79,7 @@ } $context['links'] = $post->get_field( 'link' ); +$context['credits'] = $post->get_field( 'credit' ); $context['sidebar_top'] = Timber::get_widgets('sidebar_top_recursos'); $context['sidebar_elements'] = array( 'static/ajudeu.twig', 'static/dubte_forum.twig', 'baixades.twig', 'links.twig' ); $context['sidebar_bottom'] = Timber::get_widgets('sidebar_bottom_recursos'); diff --git a/page.php b/page.php index 1b950dac..78e04dc4 100755 --- a/page.php +++ b/page.php @@ -12,4 +12,5 @@ $context['sidebar_bottom'] = Timber::get_widgets('sidebar_bottom'); $context['post'] = $post; $context['links'] = $post->get_field( 'link' ); +$context['credits'] = $post->get_field( 'credit' ); Timber::render( array( 'page-' . $post->post_name . '.twig', 'page.twig' ), $context ); \ No newline at end of file diff --git a/single-esdeveniment.php b/single-esdeveniment.php index cb16bca6..de205779 100644 --- a/single-esdeveniment.php +++ b/single-esdeveniment.php @@ -12,5 +12,6 @@ $context['sidebar_elements'] = array( 'baixades.twig', 'links.twig' ); $context['sidebar_bottom'] = Timber::get_widgets('sidebar_bottom'); $context['links'] = $post->get_field( 'link' ); +$context['credits'] = $post->get_field( 'credit' ); Timber::render( 'esdeveniment.twig', $context ); diff --git a/single-programa.php b/single-programa.php index 1f09d4ee..93d61ec9 100644 --- a/single-programa.php +++ b/single-programa.php @@ -21,6 +21,7 @@ $context['comment_form'] = TimberHelper::get_comment_form(); $post_links = types_child_posts('link', $post->ID); $context['links'] = $post->get_field( 'link' ); +$context['credits'] = $post->get_field( 'credit' ); $baixades = $post->get_field( 'baixada' ); //Contact Form diff --git a/single-projecte.php b/single-projecte.php index 20904d64..89690471 100644 --- a/single-projecte.php +++ b/single-projecte.php @@ -14,6 +14,7 @@ $context['comment_form'] = TimberHelper::get_comment_form(); $post_links = types_child_posts('link', $post->ID); $context['links'] = $post->get_field( 'link' ); +$context['credits'] = $post->get_field( 'credit' ); //Contact Form Data $context['contact']['to_email'] = 'web@softcatala.org'; diff --git a/sinonims.php b/sinonims.php index d946a79c..c81265cf 100644 --- a/sinonims.php +++ b/sinonims.php @@ -37,6 +37,7 @@ } $context['content_title'] = 'Diccionari de sinònims'; $context['links'] = $post->get_field( 'link' ); +$context['credits'] = $post->get_field( 'credit' ); $context['sidebar_top'] = Timber::get_widgets('sidebar_top_recursos'); $context['sidebar_elements'] = array( 'static/ajudeu.twig', 'static/dubte_forum.twig', 'baixades.twig', 'links.twig' ); $context['sidebar_bottom'] = Timber::get_widgets('sidebar_bottom_recursos'); diff --git a/traductor.php b/traductor.php index f89a3a8a..7ff34152 100644 --- a/traductor.php +++ b/traductor.php @@ -15,6 +15,7 @@ $context['post'] = $post; $context['content_title'] = 'Traductor'; $context['links'] = $post->get_field( 'link' ); +$context['credits'] = $post->get_field( 'credit' ); $context['sidebar_top'] = Timber::get_widgets('sidebar_top_recursos'); $context['sidebar_elements'] = array( 'static/ajudeu.twig', 'static/dubte_forum.twig', 'baixades.twig', 'links.twig' ); $context['sidebar_bottom'] = Timber::get_widgets('sidebar_bottom_recursos');