-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsingle-programa.php
More file actions
23 lines (18 loc) · 915 Bytes
/
single-programa.php
File metadata and controls
23 lines (18 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
* The Template for displaying all single posts
*
* Methods for TimberHelper can be found in the /lib sub-directory
*
* @package wp-softcatala
*/
wp_enqueue_script( 'sc-js-contacte', get_template_directory_uri() . '/static/js/contact_form.js', array( 'jquery' ), WP_SOFTCATALA_VERSION, true );
wp_enqueue_script( 'jquery-browser-plugin', get_template_directory_uri() . '/static/js/jquery.browser.min.js', array( 'jquery' ), WP_SOFTCATALA_VERSION, true );
wp_enqueue_script( 'sc-js-programes', get_template_directory_uri() . '/static/js/programes.js', array( 'jquery', 'jquery-browser-plugin' ), WP_SOFTCATALA_VERSION, true );
wp_localize_script( 'sc-js-programes', 'scajax', array(
'ajax_url' => admin_url( 'admin-ajax.php' )
));
$post = Timber::query_post();
$context = get_program_context( $post );
$context['reverse_comments'] = true;
Timber::render( 'single-programa.twig', $context );