add_theme_support( 'post-thumbnails', array( 'post', 'page', 'apartament', 'carrussel' ) ); add_image_size( 'mini', 87, 87, true); add_image_size( 'dest', 194, 194, true); add_image_size( 'noti', 320, 9999); add_image_size( 'carrussel', 1000, 431, true); register_nav_menus( array( 'main' => 'menu', 'sitemap' => 'Sitemap' ) ); @ini_set( 'upload_max_size' , '64M' ); @ini_set( 'post_max_size', '64M'); @ini_set( 'max_execution_time', '300' ); function getPageTitle($my_postid) { $content_post = get_post($my_postid); $content = $content_post->post_title; $content = apply_filters('the_title', $content); $content = str_replace(']]>', ']]>', $content); return $content; } function getPageContent($my_postid) { $content_post = get_post($my_postid); $content = $content_post->post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); return $content; } require('wpml-integration.php'); ?>