Skip to content

Commit

Permalink
#158 added credits variables to templates
Browse files Browse the repository at this point in the history
  • Loading branch information
paugnu committed Mar 22, 2016
1 parent 78a643e commit e7a3ecd
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions aparell.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);

Expand Down
1 change: 1 addition & 0 deletions corrector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 1 addition & 0 deletions diccionari-multilingue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 1 addition & 0 deletions page.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
1 change: 1 addition & 0 deletions single-esdeveniment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
1 change: 1 addition & 0 deletions single-programa.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions single-projecte.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 1 addition & 0 deletions sinonims.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 1 addition & 0 deletions traductor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit e7a3ecd

Please sign in to comment.