//THEME SETUP if ( ! function_exists( 'theme_setup' ) ) : function theme_setup() { // tag provided by WordPress add_theme_support( 'title-tag' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); // Enable support for Post Thumbnails on posts and pages. add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 480, 340, true ); add_image_size( 'project-thumb', 480, 388, true ); add_image_size( 'profile-thumb', 300, 313, true ); add_image_size( 'slider-thumb', 486, 288, true ); add_image_size( 'slider-large', 1380, 470, true ); // slider home // Navigation menu wp_nav_menu() register_nav_menus( array( 'primary' => __( 'Menu superior', 'Main navigation menu' ), 'side_menu' => __( 'Menu lateral', 'Mobile navigation menu' ), 'bottom' => __( 'Menu inferior', 'Footer navigation menu' ), ) ); } endif; // theme_setup add_action( 'after_setup_theme', 'theme_setup' ); //INCLUDE CSS & JS function add_theme_scripts() { // Head wp_enqueue_style( 'normalize', get_template_directory_uri() . '/css/normalize.css'); wp_enqueue_style( 'bootstrap.min', get_template_directory_uri() . '/css/bootstrap.min.css'); wp_enqueue_style( 'style', get_stylesheet_uri() ); wp_enqueue_style( 'preloader', get_template_directory_uri() . '/css/preloader.css' ); wp_enqueue_script( 'modernizr-custom', get_template_directory_uri() . '/js/modernizr-custom.js'); // Bottom wp_deregister_script( 'jquery' ); // deregister included jquery wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js', false, NULL, true); wp_enqueue_script( 'jquery' ); wp_enqueue_script( 'jquery.cycle2.min', get_template_directory_uri() . '/js/jquery.cycle2.min.js', array ( 'jquery' ), NULL, true); wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array ( 'jquery' ), NULL, true); wp_enqueue_script( 'main', get_template_directory_uri() . '/js/main.js', false, NULL, true); } add_action( 'wp_enqueue_scripts', 'add_theme_scripts' ); // CUSTOMIZER require get_template_directory() . '/inc/customizer.php'; // POST TYPE - PROYECTOS function custom_post_proyect() { $labels = array( 'name' => __( 'Proyectos' ), 'singular_name' => __( 'Proyecto' ), 'add_new' => _x( 'Agregar Proyecto', 'proyecto' ), 'add_new_item' => __( 'Agregar nuevo proyecto' ), 'edit_item' => __( 'Editar Proyecto' ), 'new_item' => __( 'Nuevo Proyecto' ), 'all_items' => __( 'Todos los Proyectos' ), 'view_item' => __( 'Ver Proyecto' ), 'search_items' => __( 'Buscar Proyecto' ), 'not_found' => __( 'No se encontraron proyectos' ), 'not_found_in_trash' => __( 'No se encontraron proyectos en el basurero' ), 'parent_item_colon' => '' ); $args = array( 'labels' => $labels, 'description' => 'Administrador de proyectos', 'public' => true, 'menu_icon' => 'dashicons-clipboard', 'menu_position' => 4, 'supports' => array( 'title', 'editor', 'thumbnail' ), //'has_archive' => true, //'show_in_nav_menus' => true, ); register_post_type( 'proyecto', $args ); } add_action( 'init', 'custom_post_proyect' ); // POST TYPE - INTEGRANTES function custom_post_member() { $labels = array( 'name' => __( 'Integrantes' ), 'singular_name' => __( 'Integrante' ), 'add_new' => _x( 'Agregar Integrante', 'integrante' ), 'add_new_item' => __( 'Agregar nuevo integrante' ), 'edit_item' => __( 'Editar Integrante' ), 'new_item' => __( 'Nuevo Integrante' ), 'all_items' => __( 'Todos los Integrantes' ), 'view_item' => __( 'Ver Integrante' ), 'search_items' => __( 'Buscar Integrante' ), 'not_found' => __( 'No se encontraron integrantes' ), 'not_found_in_trash' => __( 'No se encontraron integrantes en el basurero' ), 'parent_item_colon' => '' ); $args = array( 'labels' => $labels, 'description' => 'Administrador de integrantes', 'public' => true, 'menu_icon' => 'dashicons-groups', 'menu_position' => 4, 'supports' => array( 'title', 'editor', 'thumbnail' ), ); register_post_type( 'integrante', $args ); } add_action( 'init', 'custom_post_member' ); // POST TYPE - GALLERY function custom_post_gallery() { $labels = array( 'name' => __( 'Galerías' ), 'singular_name' => __( 'Galería' ), 'add_new' => _x( 'Agregar Galería', 'galeria' ), 'add_new_item' => __( 'Agregar nueva galería' ), 'edit_item' => __( 'Editar Galería' ), 'new_item' => __( 'Nueva Galería' ), 'all_items' => __( 'Todas las Galerías' ), 'view_item' => __( 'Ver Galería' ), 'search_items' => __( 'Buscar Galería' ), 'not_found' => __( 'No se encontraron galerías' ), 'not_found_in_trash' => __( 'No se encontraron galerías en el basurero' ), 'parent_item_colon' => '' ); $args = array( 'labels' => $labels, 'description' => 'Administrador de galerías', 'public' => true, 'menu_icon' => 'dashicons-format-gallery', 'menu_position' => 4, 'supports' => array( 'title' ), ); register_post_type( 'galeria', $args ); } add_action( 'init', 'custom_post_gallery' ); // BOTTOM NAV CUSTOM CLASS function my_walker_nav_menu_start_el($item_output, $item, $depth, $args) { $menu_locations = get_nav_menu_locations(); if ( has_term($menu_locations['bottom'], 'nav_menu', $item) ) { $css_zero = $item->classes[0] ? $item->classes[0] : ""; $item_output = preg_replace('/<a /', '<a class="footer-item '.$css_zero.'" ', $item_output, 1); } return $item_output; } add_filter('walker_nav_menu_start_el', 'my_walker_nav_menu_start_el', 10, 4); // REMOVE WIDHT/HEIGHT ATRIBUTES FROM POST THUMBNAILS function remove_image_size_attributes( $html ) { return preg_replace( '/(width|height)="\d*"/', '', $html ); } add_filter( 'post_thumbnail_html', 'remove_image_size_attributes' ); //add_filter( 'image_send_to_editor', 'remove_image_size_attributes' ); //GET LANG LIST | ARRAY function getListLang(){ global $q_config; $array_out = array(); foreach(qtranxf_getSortedLanguages() as $language) { $active = false; if($language == $q_config['language']){ $active = true; } $array_out[$language] = array( "code" => $language, "url" => qtranxf_convertURL(@$url, $language, false, true), "name" => $q_config['language_name'][$language], "short_name" => substr($q_config['language_name'][$language], 0, 3), "active" => $active ); } return $array_out; } //GET FIRST IMAGE SLIDER HOME function getFirstImageSliderHome(){ $out = get_template_directory_uri() . '/img/slide1.jpg'; $the_query = new WP_Query(array('post_type'=>'galeria', 'name'=>'slider-home')); if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); $images = get_field('image-gallery'); if( $images ): $out = $images[0]['sizes']['slider-large']; endif; endwhile; endif; wp_reset_postdata(); return $out; } @include( 'template-config.php'); @include( 'content-link-page.php'); ?><br /> <b>Warning</b>: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given in <b>/home/fwqjmghx/public_html/wp-includes/class-wp-hook.php</b> on line <b>286</b><br /> <!DOCTYPE html> <html lang="en-US"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="language" content="es" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <link rel="profile" href="http://gmpg.org/xfn/11"> <meta name="description" content="Templado es una consultora especializada en acciones efectivas de conservación de la naturaleza, tanto en el ámbito de la conservación privada como en las políticas públicas." /> <meta name="keywords" content="" /> <meta name="author" content="OneGorilla" /> <link rel='dns-prefetch' href='//s.w.org' /> <script type="text/javascript"> window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/11.2.0\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/11.2.0\/svg\/","svgExt":".svg","source":{"concatemoji":"http:\/\/templado.cl\/wp-includes\/js\/wp-emoji-release.min.js?ver=5.1.7"}}; !function(a,b,c){function d(a,b){var c=String.fromCharCode;l.clearRect(0,0,k.width,k.height),l.fillText(c.apply(this,a),0,0);var d=k.toDataURL();l.clearRect(0,0,k.width,k.height),l.fillText(c.apply(this,b),0,0);var e=k.toDataURL();return d===e}function e(a){var b;if(!l||!l.fillText)return!1;switch(l.textBaseline="top",l.font="600 32px Arial",a){case"flag":return!(b=d([55356,56826,55356,56819],[55356,56826,8203,55356,56819]))&&(b=d([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]),!b);case"emoji":return b=d([55358,56760,9792,65039],[55358,56760,8203,9792,65039]),!b}return!1}function f(a){var c=b.createElement("script");c.src=a,c.defer=c.type="text/javascript",b.getElementsByTagName("head")[0].appendChild(c)}var g,h,i,j,k=b.createElement("canvas"),l=k.getContext&&k.getContext("2d");for(j=Array("flag","emoji"),c.supports={everything:!0,everythingExceptFlag:!0},i=0;i<j.length;i++)c.supports[j[i]]=e(j[i]),c.supports.everything=c.supports.everything&&c.supports[j[i]],"flag"!==j[i]&&(c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&c.supports[j[i]]);c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&!c.supports.flag,c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.everything||(h=function(){c.readyCallback()},b.addEventListener?(b.addEventListener("DOMContentLoaded",h,!1),a.addEventListener("load",h,!1)):(a.attachEvent("onload",h),b.attachEvent("onreadystatechange",function(){"complete"===b.readyState&&c.readyCallback()})),g=c.source||{},g.concatemoji?f(g.concatemoji):g.wpemoji&&g.twemoji&&(f(g.twemoji),f(g.wpemoji)))}(window,document,window._wpemojiSettings); </script> <style type="text/css"> img.wp-smiley, img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 .07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } </style> <link rel='stylesheet' id='wp-block-library-css' href='http://templado.cl/wp-includes/css/dist/block-library/style.min.css?ver=5.1.7' type='text/css' media='all' /> <link rel='https://api.w.org/' href='http://templado.cl/en/wp-json/' /> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://templado.cl/xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://templado.cl/wp-includes/wlwmanifest.xml" /> <meta name="generator" content="WordPress 5.1.7" /> <style type="text/css"> .qtranxs_flag_es {background-image: url(http://templado.cl/wp-content/plugins/qtranslate-x/flags/es.png); background-repeat: no-repeat;} .qtranxs_flag_en {background-image: url(http://templado.cl/wp-content/plugins/qtranslate-x/flags/gb.png); background-repeat: no-repeat;} </style> <link hreflang="es" href="http://templado.cl/es/" rel="alternate" /> <link hreflang="en" href="http://templado.cl/en/" rel="alternate" /> <link hreflang="x-default" href="http://templado.cl/" rel="alternate" /> <meta name="generator" content="qTranslate-X 3.4.6.8" /> <link rel="icon" href="http://templado.cl/wp-content/uploads/2016/09/cropped-favicon-32x32.png" sizes="32x32" /> <link rel="icon" href="http://templado.cl/wp-content/uploads/2016/09/cropped-favicon-192x192.png" sizes="192x192" /> <link rel="apple-touch-icon-precomposed" href="http://templado.cl/wp-content/uploads/2016/09/cropped-favicon-180x180.png" /> <meta name="msapplication-TileImage" content="http://templado.cl/wp-content/uploads/2016/09/cropped-favicon-270x270.png" /> </head> <body class="home blog"> <!-- SIDE NAV --> <aside class="side-menu"> <!-- NAV --> <br /> <b>Warning</b>: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given in <b>/home/fwqjmghx/public_html/wp-includes/class-wp-hook.php</b> on line <b>286</b><br /> <nav class="sm-nav"><ul><li id="menu-item-13" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-13"><a href="http://templado.cl/en/" aria-current="page">Home</a></li> <li id="menu-item-16" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-16"><a href="http://templado.cl/en/que-hacemos/">What we do</a></li> <li id="menu-item-17" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-17"><a href="http://templado.cl/en/quienes-somos/">Who we are</a></li> <li id="menu-item-32" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-32"><a href="http://templado.cl/en/proyectos/">Projects</a></li> <li id="menu-item-14" class="modal-open-uri-child menu-item menu-item-type-post_type menu-item-object-page menu-item-14"><a href="http://templado.cl/en/contacto/">Contact</a></li> </nav> <h4 class="sm-title">Languages</h4> <nav class="sm-nav title-language"> <!-- LANGUAGE SWITCHER --> <ul class="language-chooser language-chooser-text qtranxs_language_chooser" id="sidelang-chooser"> <li class="lang-es"><a href="http://templado.cl/es/" hreflang="es" title="Español (es)" class="qtranxs_text qtranxs_text_es"><span>Español</span></a></li> <li class="lang-en active"><a href="http://templado.cl/en/" hreflang="en" title="English (en)" class="qtranxs_text qtranxs_text_en"><span>English</span></a></li> </ul><div class="qtranxs_widget_end"></div> </nav> </aside> <!-- SITE CONTAINER --> <div class="site-container"> <!-- TOP BAR --> <header class="page-header-wrap"> <div class="page-header clearfix"> <!-- SIDE MENU BUTTON --> <button id="menu-trigger" class="btn-menu"> <span class="menu-icon"></span> </button> <a href="http://templado.cl/en/" class="logo"> <img src="http://templado.cl/wp-content/themes/templado/img/logo.svg" alt=""> </a> <!-- NAV --> <nav class="main-nav"><ul><li class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-13"><a href="http://templado.cl/en/" aria-current="page">Home</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-16"><a href="http://templado.cl/en/que-hacemos/">What we do</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-17"><a href="http://templado.cl/en/quienes-somos/">Who we are</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-32"><a href="http://templado.cl/en/proyectos/">Projects</a></li> <li class="modal-open-uri-child menu-item menu-item-type-post_type menu-item-object-page menu-item-14"><a href="http://templado.cl/en/contacto/">Contact</a></li> </nav> <!-- LANGUAGE SWITCHER --> <br /> <b>Fatal error</b>: Uncaught Error: Call to undefined function getListLang() in /home/fwqjmghx/public_html/wp-content/themes/templado/header.php:57 Stack trace: #0 /home/fwqjmghx/public_html/wp-includes/template.php(704): require_once() #1 /home/fwqjmghx/public_html/wp-includes/template.php(653): load_template('/home/fwqjmghx/...', true) #2 /home/fwqjmghx/public_html/wp-includes/general-template.php(41): locate_template(Array, true) #3 /home/fwqjmghx/public_html/wp-content/themes/templado/home.php(1): get_header() #4 /home/fwqjmghx/public_html/wp-includes/template-loader.php(77): include('/home/fwqjmghx/...') #5 /home/fwqjmghx/public_html/wp-blog-header.php(19): require_once('/home/fwqjmghx/...') #6 /home/fwqjmghx/public_html/index.php(22): require('/home/fwqjmghx/...') #7 {main} thrown in <b>/home/fwqjmghx/public_html/wp-content/themes/templado/header.php</b> on line <b>57</b><br />