'footer-schedule', 'container_class' => 'content subnav cf' ) ); $lang = pll_current_language('slug'); /* * There is no better way to get where the speakers are */ if ('en' === $lang) { $s_slug = 'speakers'; } else { $s_slug = 'lektori'; } $args = array( 'name' => $s_slug, 'post_type' => 'page', 'numberposts' => 1 ); $url = ''; $my_posts = get_posts($args); if( $my_posts ) { $url = get_permalink( $my_posts[0]->ID ); } $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARATOR . 'parse.php'; //var_dump($data); ?>