$team_to_research->title = array('from' => Translate::translate('Research'), 'to' => Translate::translate('Persons from IBS')); $team_to_research->to_labels = array('create' => Translate::translate('Select research'), 'singular_name' => Translate::translate('Research'), 'search_items' => Translate::translate('Search researches'), 'not_found' => Translate::translate('No research found.')); $team_to_research->from_labels = array('create' => Translate::translate('Select Person'), 'singular_name' => Translate::translate('Person'), 'search_items' => Translate::translate('Search persons'), 'not_found' => Translate::translate('No person found.')); #end team_to_research #events_to_research $events_to_research = $events->addRelationship('events_to_research', $research); $events_to_research->admin_box = array('show' => 'from'); $events_to_research->title = Translate::translate('Research'); $events_to_research->to_labels = array('create' => Translate::translate('Select Research'), 'singular_name' => Translate::translate('Research'), 'search_items' => Translate::translate('Search Researches'), 'not_found' => Translate::translate('No research found.')); #end events_to_research #events_to_resources $events_to_resources = $events->addRelationship('events_to_resources', $resources); $events_to_resources->admin_box = array('show' => 'from'); $events_to_resources->title = Translate::translate('Resources'); $events_to_resources->to_labels = array('create' => Translate::translate('Select Resource'), 'singular_name' => Translate::translate('Resource'), 'search_items' => Translate::translate('Search Resources'), 'not_found' => Translate::translate('No Resource found.')); #end events_to_resources // \SilverWp\Ajax\Tweetie::getInstance(); #widgets //new Widget\Social(); #endwidgets if (is_plugin_active('sitepress-multilingual-cms/inc/wpml-api.php')) { new Import(); if (function_exists('icl_object_id')) { Wpml::getInstance(); } } } catch (Exception $ex) { echo $ex->catchException(); } } });
/** * add language switcher to nave menu * * @param string $items * @param object $args * * @return string * @access public */ public function addLangSwitcher($items, $args) { if ('primary_navigation' === $args->theme_location) { $items .= Wpml::langSwitcher(); } return $items; }