-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtraductor.php
More file actions
30 lines (25 loc) · 1.22 KB
/
traductor.php
File metadata and controls
30 lines (25 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* Template Name: Traductor Softcatala
*
* @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( 'sc-js-traductor', get_template_directory_uri() . '/static/js/traductor.js', array( 'jquery', 'sc-js-metacookie' ), WP_SOFTCATALA_VERSION, true );
wp_localize_script( 'sc-js-traductor', 'sc_settings', SC_Settings::get_instance()->get_setting_values() );
wp_localize_script( 'sc-js-traductor', 'scajax', array(
'ajax_url' => admin_url( 'admin-ajax.php' )
));
$context = Timber::context();
//Ads
$context['ads_container'] = true;
$timberPost = Timber::get_post();
$context['post'] = $timberPost;
$context['content_title'] = 'Traductor';
$context['credits'] = $timberPost->meta( 'credits' );
$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');
//Contact Form
$context['contact']['to_email'] = get_option('email_traductor');
Timber::render( array( 'traductor.twig' ), $context );