-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathhora-catala.php
More file actions
20 lines (17 loc) · 1.03 KB
/
hora-catala.php
File metadata and controls
20 lines (17 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
* Template Name: L’hora en català
*
* @package wp-softcatala
*/
wp_enqueue_script( 'sc-js-hora', get_template_directory_uri() . '/static/js/hora/hora.js', array(), WP_SOFTCATALA_VERSION, true );
wp_enqueue_script( 'sc-js-hora-md5', get_template_directory_uri() . '/static/js/hora/md5.js', array(), WP_SOFTCATALA_VERSION, true );
wp_enqueue_script( 'sc-js-hora-rellotge', get_template_directory_uri() . '/static/js/hora/rellotge.js', array(), WP_SOFTCATALA_VERSION, true );
wp_enqueue_script( 'sc-js-hora-start', get_template_directory_uri() . '/static/js/hora/start.js', array(), WP_SOFTCATALA_VERSION, true );
$context = Timber::context();
$context['ads_container'] = true;
$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');
$context['post'] = Timber::get_post();
Timber::render( array( 'hora-catala.twig' ), $context );